/* ==========================================================
   Haghpat Stays — Top 10 Hotels in Haghpat
   Palette: Armenian tuff stone (apricot/terracotta) + Debed forest green
   ========================================================== */

:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --surface-2: #f3ebdf;
  --ink: #2b2420;
  --muted: #6b5f55;
  --line: #e6dccf;
  --accent: #b5562f;
  --accent-ink: #ffffff;
  --accent-soft: #f6e3d7;
  --green: #2f5d50;
  --green-soft: #e1ece7;
  --warn: #8a5a12;

  /* hero illustration */
  --sky-top: #f7d9b8;
  --sky-bottom: #fbeee0;
  --sun: #f0a46b;
  --hill-far: #9bb7a4;
  --hill-mid: #6f9784;
  --hill-near: #3f6b5a;
  --tree: #2f5d50;
  --stone: #c9825c;
  --stone-shade: #7a4128;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 36, 32, .06), 0 8px 24px rgba(43, 36, 32, .06);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171411;
    --surface: #211d19;
    --surface-2: #2a241f;
    --ink: #f1e9df;
    --muted: #b3a597;
    --line: #3a332c;
    --accent: #e48a5c;
    --accent-ink: #1b1410;
    --accent-soft: #3a261b;
    --green: #8cc2ad;
    --green-soft: #1f2e28;
    --warn: #e7b866;

    --sky-top: #2b2238;
    --sky-bottom: #4a3242;
    --sun: #e9a36f;
    --hill-far: #3c4f48;
    --hill-mid: #2d3f38;
    --hill-near: #1e2c27;
    --tree: #16211d;
    --stone: #a8694a;
    --stone-shade: #3e2216;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #171411;
  --surface: #211d19;
  --surface-2: #2a241f;
  --ink: #f1e9df;
  --muted: #b3a597;
  --line: #3a332c;
  --accent: #e48a5c;
  --accent-ink: #1b1410;
  --accent-soft: #3a261b;
  --green: #8cc2ad;
  --green-soft: #1f2e28;
  --warn: #e7b866;

  --sky-top: #2b2238;
  --sky-bottom: #4a3242;
  --sun: #e9a36f;
  --hill-far: #3c4f48;
  --hill-mid: #2d3f38;
  --hill-near: #1e2c27;
  --tree: #16211d;
  --stone: #a8694a;
  --stone-shade: #3e2216;

  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand span { color: var(--ink); }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav { gap: 14px; }
  .site-nav a:nth-child(n+3) { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 24px; }
.hero-inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 40px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}
.kicker { color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: .8em; }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 3.9rem); margin-bottom: .35em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.byline { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; display: inline-block; }

.hero-art { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 600 / 380; }
.hero-art svg { display: block; width: 100%; height: 100%; }
.hero-art figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  color: var(--ink); font-size: .78rem; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Article ---------- */
.article { padding-bottom: 72px; }
.article > section { margin-top: 56px; }
.article > section:first-child { margin-top: 8px; }
.prose { max-width: 44em; }
.intro p:first-child::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.4em; line-height: .9;
  padding: 6px 10px 0 0; color: var(--accent); font-weight: 700;
}

/* ---------- Quick picks ---------- */
.quick-picks {
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 24px;
}
@media (min-width: 720px) { .quick-picks { padding: 32px; } }
.quick-picks h2 { font-size: 1.4rem; }
.qp-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.qp-grid li { background: var(--surface); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); }
.qp-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); font-weight: 600; }
.qp-grid a { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.qp-grid a:hover { color: var(--accent); }
.qp-note { font-size: .85rem; color: var(--muted); }

/* ---------- List + filters ---------- */
.list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.list-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .85rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-status { color: var(--muted); font-size: .88rem; min-height: 1.4em; margin: 6px 0 18px; }

.hotel {
  display: grid; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.hotel[hidden] { display: none; }
@media (min-width: 760px) { .hotel { grid-template-columns: 220px 1fr; } }

.hotel-media {
  position: relative; min-height: 150px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 20px;
  color: #fff;
  overflow: hidden;
}
.hotel-media::after {
  /* layered "canyon ridge" texture */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background:
    radial-gradient(120% 90% at 20% 100%, rgba(0,0,0,.18) 0 50%, transparent 51%),
    radial-gradient(110% 80% at 85% 100%, rgba(0,0,0,.12) 0 50%, transparent 51%);
  pointer-events: none;
}
.hotel-media .rank {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 4.2rem; line-height: .8;
  text-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.hotel-media .icon {
  position: relative; z-index: 1; width: 40px; height: 40px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  opacity: .9;
}
#kefilyan .icon { fill: currentColor; stroke: none; }
.hotel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.tone-1  { background: linear-gradient(160deg, #c8683c, #8f3f1f); }
.tone-2  { background: linear-gradient(160deg, #4f8a74, #2a5446); }
.tone-3  { background: linear-gradient(160deg, #d29a4a, #9b6223); }
.tone-4  { background: linear-gradient(160deg, #4b8ea6, #285a6c); }
.tone-5  { background: linear-gradient(160deg, #a5533c, #6c2e1f); }
.tone-6  { background: linear-gradient(160deg, #7c8a52, #4d5a2e); }
.tone-7  { background: linear-gradient(160deg, #8b5f7a, #573a4c); }
.tone-8  { background: linear-gradient(160deg, #b9803f, #7a4e1f); }
.tone-9  { background: linear-gradient(160deg, #d07a54, #974a2b); }
.tone-10 { background: linear-gradient(160deg, #5c7d8e, #354f5c); }
@media (min-width: 760px) { .hotel-media { min-height: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between; } }

.hotel-body { padding: 22px 20px 24px; }
@media (min-width: 760px) { .hotel-body { padding: 28px 32px 30px; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4em; }
.hotel h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 18px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }
.facts div { min-width: 0; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-size: .92rem; font-weight: 500; }
.tier { color: var(--green); font-weight: 700; margin-right: 4px; }

.proscons { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 620px) { .proscons { grid-template-columns: 1fr 1fr; } }
.proscons h4 { margin-bottom: .4em; }
.pros h4 { color: var(--green); }
.cons h4 { color: var(--warn); }
.proscons ul { margin: 0; padding: 0; list-style: none; font-size: .93rem; }
.proscons li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons li::before { content: "!"; position: absolute; left: 4px; color: var(--warn); font-weight: 700; }

.amenities { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.amenities li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: 11px 20px; border-radius: 10px;
  transition: transform .15s, filter .15s;
}
.btn::after { content: "→"; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- Compare table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
td:first-child { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
td a { color: var(--ink); font-weight: 600; text-decoration: none; }
td a:hover { color: var(--accent); }
.note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Getting there ---------- */
.gt-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .gt-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.gt-grid h3 { font-size: 1.1rem; margin-top: 1.2em; margin-bottom: .3em; }
.gt-grid h3:first-child { margin-top: 0; }
.map { margin: 0; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); display: block; background: var(--surface-2); }
.map figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- Tips ---------- */
.tip-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tip-grid li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px; font-size: .94rem; }
.tip-grid strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 32px 0 40px; }
.footer-inner p { margin: 0 0 .6em; }
.fine { font-size: .84rem; color: var(--muted); max-width: 52em; }
