/* ==========================================================================
   TUR NAXÇIVAN — Design tokens
   Palette matched to the Flutter app's own Material3 theme:
   ColorScheme.fromSeed(seedColor: Colors.deepPurple), plus the
   deepPurple/purple gradient used on the app's booking screen.
   ========================================================================== */
:root{
  --brick:        #673AB7;  /* primary — Colors.deepPurple */
  --brick-dark:   #4A2E9E;
  --brick-light:  #9575CD;
  --teal:         #9C27B0;  /* secondary/accent — booking gradient purple */
  --teal-light:   #BA68C8;
  --ochre:        #7E57C2;  /* mid accent — booking gradient's other stop */
  --ochre-light:  #9575CD;
  --amber:        #FFC107;  /* rating stars — Colors.amber, as in the app */
  --charcoal:     #1E1626;
  --sand:         #F5F2FA;  /* Material3 near-white background */
  --sand-dark:    #E7DFF2;
  --cream:        #FFFFFF;
  --text:         #1C1B1F;
  --text-muted:   #625B71;
  --white:        #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(36,31,26,0.10);
  --shadow-lg: 0 20px 48px rgba(36,31,26,0.18);
  --maxw: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0 0 .4em; letter-spacing:-0.01em; }
p{ margin:0 0 1em; }
button{ font-family: inherit; cursor:pointer; }
:focus-visible{ outline:3px solid var(--ochre); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior:auto !important; }
}

/* ---- signature: geometric brick band (echoes Naxçıvan mausoleum brickwork) ---- */
.brick-rule{
  height: 10px;
  width: 100%;
  background-color: var(--sand-dark);
  background-image:
    repeating-linear-gradient(45deg, var(--brick) 0 4px, transparent 4px 9px),
    repeating-linear-gradient(-45deg, var(--ochre) 0 4px, transparent 4px 9px);
}

/* ---- header ---- */
.site-header{
  background: var(--cream);
  border-bottom: 1px solid var(--sand-dark);
  position: sticky; top:0; z-index: 100;
}
.header-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
}
.logo{ display:flex; align-items:center; gap:10px; flex-shrink:0; }
.logo-mark img{ display:block; width:38px; height:38px; object-fit:contain; }
.logo-text{ font-family: var(--font-display); font-weight:700; font-size:1.25rem; color: var(--brick-dark); }
.main-nav{ display:flex; gap: 22px; flex-wrap:wrap; }
.main-nav a{
  font-size: .95rem; font-weight:500; color: var(--text-muted);
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active{ color: var(--brick); border-color: var(--ochre); }
.menu-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px;
}
.menu-toggle span{ width:24px; height:2px; background: var(--charcoal); display:block; }

@media (max-width: 900px){
  .main-nav{
    position:absolute; top:100%; left:0; right:0;
    background: var(--cream);
    flex-direction:column; gap:0;
    max-height:0; overflow:hidden;
    border-bottom: 1px solid var(--sand-dark);
    transition: max-height .25s ease;
  }
  .main-nav.open{ max-height: 480px; }
  .main-nav a{ padding: 14px 24px; border-bottom:1px solid var(--sand-dark); }
  .menu-toggle{ display:flex; }
}

/* ---- footer ---- */
.site-footer{ background: var(--charcoal); color: var(--sand); padding-top: 48px; }
.footer-inner{
  max-width: var(--maxw); margin:0 auto; padding: 0 24px 32px;
  display:flex; justify-content:space-between; gap:48px; flex-wrap:wrap;
}
.footer-brand .logo-text{ color: var(--ochre-light); }
.footer-brand p{ color:#C9BFAE; max-width:280px; margin-top:8px; }
.footer-links{ display:flex; gap:56px; flex-wrap:wrap; }
.footer-links h4{ font-family: var(--font-body); font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:#C9BFAE; margin-bottom:12px; }
.footer-links a, .footer-links span{ display:block; color: var(--sand); opacity:.85; margin-bottom:8px; font-size:.92rem; }
.footer-links a:hover{ opacity:1; color: var(--ochre-light); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 24px; text-align:center;
  font-size:.82rem; color:#9C9080;
}

/* ---- layout helpers ---- */
.container{ max-width: var(--maxw); margin:0 auto; padding: 0 24px; }
.section{ padding: 56px 0; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom: 22px; gap:16px; flex-wrap:wrap; }
.section-head h2{ font-size: 1.7rem; color: var(--brick-dark); }
.see-all{
  font-family: var(--font-mono); font-size: .82rem; text-transform:uppercase; letter-spacing:.05em;
  color: var(--teal); border-bottom: 1px solid var(--teal); white-space:nowrap;
}
.see-all:hover{ color: var(--brick); border-color: var(--brick); }

.eyebrow{
  font-family: var(--font-mono); font-size:.78rem; text-transform:uppercase; letter-spacing:.1em;
  color: var(--ochre); margin-bottom: 10px; display:block;
}

/* ---- hero ---- */
.hero{
  position:relative;
  background:
    linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.5)),
    url('../assets/naxcivan_dag.jpg') center center/contain no-repeat var(--sand);
  color: var(--text);
  overflow:hidden;
}
.hero-inner{
  max-width: var(--maxw); margin:0 auto; padding: 80px 24px 90px;
  position:relative; z-index:2;
}
.hero h1{
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--text); max-width: 14ch; margin-bottom:.3em;
  cursor: default; user-select: none;
}
.hero p.lead{ font-size: 1.15rem; max-width: 46ch; color: var(--text-muted); margin-bottom: 28px; cursor: default; user-select: none; }
.hero-pattern{
  display:none;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight:600; font-size:.95rem; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--ochre); color: var(--white); }
.btn-primary:hover{ background: var(--ochre-light); box-shadow: var(--shadow); }
.btn-outline{ border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-block{ width:100%; justify-content:center; }
.btn-dark{ background: var(--brick); color: var(--white); }
.btn-dark:hover{ background: var(--brick-dark); }

/* ---- horizontal scroller ---- */
.hscroll{
  display:flex; gap:18px; overflow-x:auto; padding-bottom: 10px; scroll-snap-type: x proximity;
}
.hscroll::-webkit-scrollbar{ height:6px; }
.hscroll::-webkit-scrollbar-thumb{ background: var(--sand-dark); border-radius:4px; }

/* ---- cards ---- */
.card{
  background: var(--cream); border-radius: var(--radius); overflow:hidden;
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
  display:flex; flex-direction:column;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media{ position:relative; aspect-ratio: 4/3; background: var(--sand-dark); overflow:hidden; }
.card-media img{ width:100%; height:100%; object-fit:cover; }
.card-body{ padding: 16px 18px 18px; display:flex; flex-direction:column; gap:6px; flex:1; }
.card-title{ font-family: var(--font-display); font-weight:600; font-size:1.05rem; color: var(--text); }
.card-desc{ font-size:.88rem; color: var(--text-muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-price{ font-family: var(--font-mono); color: var(--teal); font-weight:600; margin-top:auto; padding-top:8px; }
.card-rating{ display:flex; gap:2px; margin-top:2px; }
.card-rating svg{ width:14px; height:14px; }

.card-mini{ min-width: 210px; scroll-snap-align:start; }
.card-mini .card-media{ aspect-ratio: 4/3.2; }

.grid{
  display:grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.list-row{
  display:grid; grid-template-columns: 260px 1fr; gap:0; background: var(--cream);
  border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); margin-bottom:20px;
  transition: transform .18s, box-shadow .18s;
}
.list-row:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.list-row .card-media{ aspect-ratio: auto; height:100%; min-height:170px; }
.list-row .card-body{ padding: 20px 22px; }
.list-row .card-desc{ -webkit-line-clamp:3; }
@media (max-width: 640px){
  .list-row{ grid-template-columns: 1fr; }
  .list-row .card-media{ aspect-ratio: 16/9; }
}

/* ---- star icon helper text colors ---- */
.star-fill{ fill: var(--amber); }
.star-empty{ fill: var(--sand-dark); }

/* ---- section variants ---- */
.section-alt{ background: var(--cream); border-top:1px solid var(--sand-dark); border-bottom:1px solid var(--sand-dark); }
.section-dark{ background: var(--charcoal); color: var(--sand); }
.section-dark h2{ color: var(--ochre-light); }

/* ---- detail page ---- */
.detail-hero{ position:relative; height: 52vh; min-height:320px; max-height:520px; overflow:hidden; background: var(--sand-dark); }
.detail-hero img{ width:100%; height:100%; object-fit:cover; }
.detail-back{
  position:absolute; top:20px; left:20px; z-index:3;
  width:42px; height:42px; border-radius:50%; background: rgba(36,31,26,.55);
  display:flex; align-items:center; justify-content:center; color:#fff; border:none;
  backdrop-filter: blur(4px);
}
.detail-back:hover{ background: rgba(36,31,26,.8); }
.detail-body{ max-width: 780px; margin: -48px auto 0; position:relative; z-index:2; padding: 0 24px 60px; }
.detail-card{ background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px; }
.detail-title-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.detail-title-row h1{ font-size: 1.9rem; color: var(--brick-dark); }
.detail-price{ font-family: var(--font-mono); font-size:1.3rem; color: var(--teal); font-weight:700; white-space:nowrap; }
.facility-row{ display:flex; gap: 28px; flex-wrap:wrap; padding: 20px 0; border-top:1px solid var(--sand-dark); border-bottom:1px solid var(--sand-dark); margin: 18px 0; }
.facility{ display:flex; flex-direction:column; align-items:center; gap:6px; font-size:.78rem; color: var(--text-muted); text-align:center; width: 88px; }
.facility svg{ color: var(--brick); }
.detail-desc{ color: var(--text); font-size:1rem; }
.includes-list{ display:flex; flex-direction:column; gap:8px; margin: 14px 0 26px; }
.includes-list span{ display:flex; align-items:center; gap:8px; font-size:.92rem; color: var(--text); }
.includes-list svg{ flex-shrink:0; color: var(--teal); }

/* ---- forms ---- */
.form-page{
  min-height: 60vh; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(160deg, var(--teal) 0%, var(--brick) 130%); padding: 60px 20px;
}
.form-card{ background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 36px; max-width: 440px; width:100%; }
.form-card .eyebrow{ text-align:center; display:block; }
.form-card h2{ text-align:center; color: var(--brick-dark); }
.form-sub{ text-align:center; color: var(--text-muted); margin-bottom: 26px; font-size:.92rem; }
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size:.82rem; font-weight:600; color: var(--text-muted); margin-bottom:6px; }
.field input, .field textarea{
  width:100%; padding: 12px 14px; border:1.5px solid var(--sand-dark); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: var(--white); color: var(--text);
}
.field input:focus, .field textarea:focus{ border-color: var(--teal); outline:none; }
.field-error{ color: var(--brick); font-size:.78rem; margin-top:4px; display:none; }
.field.invalid input{ border-color: var(--brick); }
.field.invalid .field-error{ display:block; }

/* ---- reviews ---- */
.review-card{ background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); overflow:hidden; margin-bottom:20px; }
.review-media{ aspect-ratio: 16/7; background: var(--sand-dark); overflow:hidden; }
.review-media img{ width:100%; height:100%; object-fit:cover; }
.review-body{ padding: 20px 24px; }
.review-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; flex-wrap:wrap; gap:6px; }
.review-name{ display:flex; align-items:center; gap:8px; color: var(--text-muted); font-size:.9rem; }
.review-date{ font-family: var(--font-mono); font-size:.78rem; color: var(--text-muted); }
.review-title{ font-family: var(--font-display); font-size:1.2rem; color: var(--teal); margin-bottom:4px; }

/* ---- about ---- */
.about-hero-img{ border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow); margin-bottom: 30px; aspect-ratio: 16/9; background: var(--cream); display:flex; align-items:center; justify-content:center;}
.about-hero-img img{ width:100%; height:100%; object-fit:contain; }
.info-card{ background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display:flex; gap:18px; margin-bottom:16px; }
.info-card svg{ flex-shrink:0; color: var(--brick); }
.info-card h3{ font-size:1.1rem; color: var(--brick-dark); }
.info-card p{ color: var(--text-muted); margin:0; font-size:.95rem; white-space:pre-line; }

/* ---- states ---- */
.state-msg{ text-align:center; padding: 80px 20px; color: var(--text-muted); }
.state-msg h3{ color: var(--brick-dark); margin-bottom:8px; }
.spinner{
  width:34px; height:34px; border-radius:50%; margin: 0 auto 16px;
  border: 3px solid var(--sand-dark); border-top-color: var(--brick);
  animation: spin .8s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
.skeleton{ background: linear-gradient(100deg, var(--sand-dark) 30%, var(--sand) 50%, var(--sand-dark) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer{ to{ background-position: -200% 0; } }

.toast{
  position: fixed; bottom: 26px; left:50%; transform: translateX(-50%) translateY(20px);
  background: var(--charcoal); color: var(--sand); padding: 14px 22px; border-radius: 999px;
  font-size:.92rem; box-shadow: var(--shadow-lg); z-index: 999; opacity:0; transition: all .25s ease;
  display:flex; align-items:center; gap:10px; pointer-events:none;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
.toast.error{ background: var(--brick-dark); }

/* fade-in for route changes */
.page-enter{ animation: fadeUp .35s ease; }
@keyframes fadeUp{ from{ opacity:0; transform: translateY(10px);} to{ opacity:1; transform:none; } }
