/* ==========================================================================
   Hyde Park Haven — Boise, Idaho
   Single stylesheet for the whole site.
   ========================================================================== */

:root {
  --forest:      #1f3a32;
  --forest-deep: #15281f;
  --moss:        #3f6b58;
  --sand:        #f6f1e8;
  --sand-warm:   #ece3d4;
  --cream:       #fffdf9;
  --clay:        #b5613c;
  --clay-dark:   #8f4a2c;
  --ink:         #22201d;
  --ink-soft:    #55504a;
  --line:        #ded4c3;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 2px rgba(34,32,29,.06), 0 4px 14px rgba(34,32,29,.05);
  --shadow-md:   0 2px 6px rgba(34,32,29,.07), 0 18px 44px rgba(34,32,29,.10);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1160px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

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

img { max-width: 100%; display: block; height: auto; }

a { color: var(--forest); text-decoration-color: rgba(31,58,50,.32); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--forest-deep);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: clamp(1.18rem, 2.2vw, 1.42rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .85rem;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--ink-soft); line-height: 1.6; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: .92rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap; max-width: 100%;
}
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-dark); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--forest); background: var(--cream); }
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,253,249,.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--forest);
  display: grid; place-items: center; color: var(--sand);
  font-family: var(--serif); font-size: 1rem; font-weight: 700; letter-spacing: -.03em;
}
.brand-text { font-family: var(--serif); font-size: 1.06rem; font-weight: 600; color: var(--forest-deep); line-height: 1.15; }
.brand-text small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--clay); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: .5rem .7rem; cursor: pointer; color: var(--forest); font-size: .85rem; font-weight: 600;
}
.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--forest-deep); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .btn { margin-left: .25rem; padding: .62rem 1.15rem; font-size: .87rem; }
/* .nav a is more specific than .btn-primary for color, which turned the nav
   CTA text dark on the orange button. Re-assert white here. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.15rem;
    box-shadow: var(--shadow-md);
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .82rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin: .9rem 0 0; border-bottom: none; justify-content: center; padding: .85rem 1.2rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--forest-deep); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,40,31,.72) 0%, rgba(21,40,31,.55) 45%, rgba(21,40,31,.9) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 8vw, 5.5rem); max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .55rem; }
.hero .eyebrow { color: #e6c3ae; }
.hero p { color: rgba(255,255,255,.86); font-size: clamp(1.03rem, 2vw, 1.2rem); max-width: 56ch; }
.hero .btn-row { margin-top: 1.9rem; }

.hero-facts {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: .5rem 1.8rem;
  padding: 0 0 clamp(2.2rem, 5vw, 3.2rem);
  font-size: .87rem; color: rgba(255,255,255,.8);
}
.hero-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-facts span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

/* ---------- Page header (interior pages) ---------- */
.page-head { background: var(--sand); border-bottom: 1px solid var(--line); padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(2rem, 5vw, 3rem); }
.page-head h1 { margin-bottom: .35rem; }
.page-head .lede { max-width: 62ch; }

.crumbs { font-size: .8rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.crumbs a { text-decoration: none; }
.crumbs span { opacity: .5; margin: 0 .4rem; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-sand { background: var(--sand); }
.section-forest { background: var(--forest); color: rgba(255,255,255,.85); }
.section-forest h2, .section-forest h3 { color: #fff; }
.section-forest .eyebrow { color: #e6c3ae; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }

.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.6vw, 1.85rem); box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.5rem; line-height: 1; margin-bottom: .8rem; display: block; }

.link-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.link-card .thumb { aspect-ratio: 16/10; background: var(--sand-warm); }
.link-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.link-card .body { padding: 1.25rem 1.35rem 1.5rem; }
.link-card h3 { margin-bottom: .35rem; font-size: 1.2rem; }
.link-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.link-card .more { margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--clay); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 1.5rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--clay); line-height: 1; }
.section-forest .stat b { color: #e8bfa4; }
.stat span { display: block; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; margin-top: .5rem; opacity: .85; }

/* ---------- Amenity list ---------- */
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: .55rem 1.6rem; }
.amenities li { position: relative; padding-left: 1.6rem; font-size: .95rem; padding-block: .28rem; }
.amenities li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--clay);
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(1.5rem, 4vw, 3.4rem); align-items: center; }
.split-media img, .split-media .ph { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; }
.gallery img, .gallery .ph { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery figcaption { font-size: .82rem; color: var(--ink-soft); padding: .5rem .2rem 0; }

/* Placeholder shown when a photo is missing / fails to load */
.ph {
  display: grid; place-items: center; aspect-ratio: 4/3; width: 100%;
  background: repeating-linear-gradient(45deg, var(--sand) 0 12px, var(--sand-warm) 12px 24px);
  border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-soft); font-size: .8rem; text-align: center; padding: 1rem;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
@media (min-width: 521px) { table { min-width: 460px; } }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); background: var(--sand); }
tr:last-child td { border-bottom: none; }

/* ---------- Prose (guide articles) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.4em; }
.prose h3 { margin-top: 1.8em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.8em 0; padding: .3em 0 .3em 1.4rem; border-left: 3px solid var(--clay);
  font-family: var(--serif); font-size: 1.1rem; color: var(--forest-deep);
}

.callout {
  background: var(--sand); border: 1px solid var(--line); border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.15rem 1.35rem; margin: 1.9em 0;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--forest-deep); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.15rem 2.4rem 1.15rem 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--forest-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 1.4rem; font-weight: 400; color: var(--clay);
}
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 1.3rem; color: var(--ink-soft); font-size: .96rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.2rem; }
.review { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--clay); letter-spacing: .12em; font-size: .9rem; margin-bottom: .7rem; }
.review p { font-family: var(--serif); font-size: 1.03rem; color: var(--forest-deep); }
.review cite { font-style: normal; font-size: .82rem; color: var(--ink-soft); }

/* ---------- Booking CTA band ---------- */
.cta-band { background: var(--forest); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.7rem; }
.cta-note { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 1.4rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255,255,255,.62); padding: clamp(2.8rem, 6vw, 4rem) 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.13); display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ---------- Sticky mobile book bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: .6rem; padding: .7rem var(--gut) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,253,249,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(34,32,29,.1);
}
.book-bar .btn { flex: 1; padding: .8rem 1rem; font-size: .88rem; }
@media (max-width: 700px) {
  .book-bar { display: flex; }
  body { padding-bottom: 74px; }
}

/* ---------- Tables on the dark forest section ---------- */
.section-forest .table-wrap { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.18); }
.section-forest th { background: rgba(255,255,255,.07); color: rgba(255,255,255,.62); }
.section-forest th, .section-forest td { border-bottom-color: rgba(255,255,255,.13); }
.section-forest td { color: rgba(255,255,255,.9); }
.section-forest tr:last-child td, .section-forest tr:last-child th { border-bottom: none; }

/* ---------- Card icons ---------- */
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 1rem;
  border-radius: 12px; background: var(--sand-warm); color: var(--clay);
}
.section-sand .card-icon { background: var(--cream); }
.card-icon svg { width: 21px; height: 21px; stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Orientation diagram (plain HTML: wraps and reflows on any screen) ---------- */
.map-panel {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.route-wrap { max-width: 640px; margin-inline: auto; }
.route-note {
  text-align: center; font-size: .88rem; color: var(--ink-soft);
  font-style: italic; margin: 0 0 .9rem;
}
.route-wrap > .route-note:last-child { margin: 1.1rem 0 0; font-style: normal; max-width: 52ch; margin-inline: auto; }
.route-cap {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 .4rem; padding-left: 86px;
}
.route-cap:last-of-type { color: var(--ink-soft); margin: .4rem 0 0; }

.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: ""; position: absolute; left: 79px; top: 14px; bottom: 14px;
  width: 2px; background: var(--line);
}
.stop {
  display: grid; grid-template-columns: 56px 16px 1fr;
  column-gap: 14px; align-items: center; padding: .32rem 0;
}
.stop-time { text-align: right; line-height: 1.15; }
.stop-time b { display: block; font-size: .92rem; color: var(--ink); }
.stop-time small { font-size: .72rem; color: var(--ink-soft); }
.stop-dot {
  width: 12px; height: 12px; border-radius: 50%; justify-self: center;
  position: relative; z-index: 1; box-shadow: 0 0 0 3px var(--cream);
}
.d-forest { background: var(--forest-deep); }
.d-moss   { background: var(--moss); }
.d-clay   { background: var(--clay); }
.d-sand   { background: #8a7d68; }
.d-house  { background: var(--clay); width: 18px; height: 18px; border: 3px solid var(--cream); outline: 2px solid var(--clay); }

.stop-card { border-radius: 12px; padding: .7rem 1rem .75rem; line-height: 1.35; }
.stop-card strong { display: block; font-size: .97rem; letter-spacing: -.01em; }
.stop-card span { display: block; font-size: .8rem; margin-top: .15rem; }
.t-forest { background: var(--forest-deep); color: rgba(255,255,255,.62); }
.t-forest strong { color: #fffdf9; }
.t-moss { background: var(--moss); color: rgba(255,255,255,.68); }
.t-moss strong { color: #fffdf9; }
.t-house { background: var(--clay); color: rgba(255,253,249,.85); }
.t-house strong { color: #fffdf9; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.t-hyde { background: var(--cream); border: 2px solid var(--clay); color: var(--ink-soft); }
.t-hyde strong { color: var(--clay-dark); }
.t-sand { background: var(--sand-warm); color: var(--ink-soft); }
.t-sand strong { color: var(--ink); }
.t-cream { background: var(--sand); border: 1px solid var(--line); color: var(--ink-soft); }
.t-cream strong { color: var(--ink); }

@media (max-width: 480px) {
  .stop { grid-template-columns: 44px 14px 1fr; column-gap: 10px; }
  .route::before { left: 60px; }
  .route-cap { padding-left: 64px; }
  .stop-time b { font-size: .84rem; }
  .stop-card { padding: .6rem .8rem .65rem; }
  .stop-card strong { font-size: .9rem; }
  .stop-card span { font-size: .76rem; }
}

/* ---------- Compare pair (Hyde Park vs North End) ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr)); gap: 1.1rem; }
.compare .card { position: relative; padding-top: 1.6rem; }
.compare .card::before {
  content: attr(data-tag); position: absolute; top: -.72rem; left: 1.4rem;
  background: var(--forest); color: #fff; font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px;
}
.compare .card.is-here::before { background: var(--clay); }
.compare .card.is-here { border-color: var(--clay); }
