/*
  ═══════════════════════════════════════════════════════════════
  OBX GUIDE — SHARED DESIGN SYSTEM
  Typography : DM Serif Display (display) + DM Sans (body)
  Palette    : Atlantic Navy · Saltmarsh Gold · Surf Sand ·
               Sea Glass Teal · Coral Sunset
  Version    : 3.0  — multi-page static template build
  ═══════════════════════════════════════════════════════════════
*/

/* ─────────────────────────────────────────
   CUSTOM PROPERTIES
───────────────────────────────────────── */
:root {
  color-scheme: light;

  /* Type scale — 1.333 ratio */
  --ts-xs:   0.75rem;
  --ts-sm:   0.875rem;
  --ts-base: 1rem;
  --ts-md:   1.125rem;
  --ts-lg:   1.333rem;
  --ts-xl:   1.777rem;
  --ts-2xl:  2.369rem;
  --ts-3xl:  3.157rem;
  --ts-4xl:  4.209rem;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* ── Atlantic Deep Navy ── */
  --navy-950: #060d14;
  --navy-900: #0b1a25;
  --navy-800: #112233;
  --navy-700: #1a3348;
  --navy-600: #22475f;
  --navy-500: #2b5c78;
  --navy-400: #3d7a99;
  --navy-300: #6aa3be;
  --navy-200: #9ec7d9;
  --navy-100: #d1e8f0;
  --navy-50:  #eaf4f8;

  /* ── Saltmarsh Gold ── */
  --gold-900: #2e1e00;
  --gold-800: #4a3100;
  --gold-700: #6a4700;
  --gold-600: #8e6200;
  --gold-500: #b47e00;
  --gold-400: #d49c1e;
  --gold-300: #e8bb4a;
  --gold-200: #f2d47e;
  --gold-100: #f8e9b8;
  --gold-50:  #fdf7e8;

  /* ── Surf & Sand ── */
  --sand-900: #2d2419;
  --sand-800: #4a3c2e;
  --sand-700: #6e5a46;
  --sand-600: #947a62;
  --sand-500: #b99d83;
  --sand-400: #d4bfa8;
  --sand-300: #e6d8cc;
  --sand-200: #f0e8e0;
  --sand-100: #f7f2ec;
  --sand-50:  #fdfaf7;

  /* ── Sea Glass Teal ── */
  --teal-700: #0d4a44;
  --teal-600: #136b63;
  --teal-500: #1a8c82;
  --teal-400: #2aaea2;
  --teal-300: #52c4b9;
  --teal-200: #92dbd5;
  --teal-100: #c8f0ec;
  --teal-50:  #edfaf9;

  /* ── Coral Sunset ── */
  --coral-600: #9b3a28;
  --coral-500: #c94e33;
  --coral-400: #e06a4f;
  --coral-300: #ed8d77;
  --coral-200: #f4b5a4;
  --coral-100: #fde6df;

  /* ── Semantic tokens ── */
  --color-bg:            var(--sand-50);
  --color-bg-alt:        var(--sand-100);
  --color-surface:       #ffffff;
  --color-surface-glass: rgba(255, 252, 248, 0.78);
  --color-surface-muted: var(--sand-100);
  --color-text:          var(--navy-800);
  --color-text-soft:     var(--navy-600);
  --color-text-muted:    var(--navy-400);
  --color-text-invert:   #fdfaf7;
  --color-border:        var(--sand-300);
  --color-border-strong: var(--sand-400);
  --color-accent:        var(--gold-400);
  --color-accent-dim:    var(--gold-100);
  --color-primary:       var(--navy-600);
  --color-primary-hover: var(--navy-700);
  --color-link:          var(--navy-500);
  --color-success:       var(--teal-600);
  --color-warning:       var(--gold-600);
  --color-danger:        var(--coral-600);

  /* ── Shadow system — 5 elevation levels ── */
  --shadow-e1: 0 1px 2px rgba(11,26,37,.06), 0 1px 3px rgba(11,26,37,.04);
  --shadow-e2: 0 2px 6px rgba(11,26,37,.07), 0 4px 12px rgba(11,26,37,.06);
  --shadow-e3: 0 4px 12px rgba(11,26,37,.09), 0 10px 28px rgba(11,26,37,.08);
  --shadow-e4: 0 8px 24px rgba(11,26,37,.12), 0 20px 48px rgba(11,26,37,.10);
  --shadow-e5: 0 16px 40px rgba(11,26,37,.18), 0 40px 80px rgba(11,26,37,.14);
  --shadow-gold:  0 0 0 1px rgba(212,156,30,.22), 0 4px 20px rgba(180,126,0,.18);
  --shadow-focus: 0 0 0 3px rgba(43,92,120,.22), 0 0 0 1px rgba(43,92,120,.5);
  --shadow-inner: inset 0 1px 3px rgba(11,26,37,.08);

  /* ── Glassmorphism ── */
  --glass-nav:   rgba(253, 250, 247, 0.88);
  --glass-card:  rgba(255, 252, 250, 0.72);
  --glass-modal: rgba(249, 246, 242, 0.96);
  --glass-dark:  rgba(6,  13,  20,  0.82);
  --blur-sm:  blur(8px);
  --blur-md:  blur(16px);
  --blur-lg:  blur(28px);

  /* ── Radii ── */
  --r-xs:   3px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-pill: 999px;

  /* ── Spacing — 8px grid ── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  /* ── Layout ── */
  --container: 1240px;
  --header-h:  76px;

  /* ── Noise texture (SVG data URI) ── */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-bg:            var(--navy-950);
    --color-bg-alt:        var(--navy-900);
    --color-surface:       var(--navy-800);
    --color-surface-glass: rgba(17, 34, 51, 0.82);
    --color-surface-muted: var(--navy-700);
    --color-text:          var(--sand-100);
    --color-text-soft:     var(--sand-300);
    --color-text-muted:    var(--navy-300);
    --color-border:        var(--navy-600);
    --color-border-strong: var(--navy-500);
    --color-accent:        var(--gold-300);
    --glass-nav:           rgba(11, 26, 37, 0.90);
    --glass-modal:         rgba(11, 26, 37, 0.96);
    --shadow-e1: 0 1px 2px rgba(0,0,0,.30);
    --shadow-e2: 0 2px 6px rgba(0,0,0,.32), 0 4px 12px rgba(0,0,0,.28);
    --shadow-e3: 0 4px 12px rgba(0,0,0,.36), 0 10px 28px rgba(0,0,0,.30);
    --shadow-e4: 0 8px 24px rgba(0,0,0,.40), 0 20px 48px rgba(0,0,0,.34);
    --shadow-e5: 0 16px 40px rgba(0,0,0,.46), 0 40px 80px rgba(0,0,0,.38);
  }
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--ts-base);
  line-height: 1.6;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img    { display: block; width: 100%; }
a      { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
p      { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Body-level grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .022;
  background-image: var(--noise);
  background-size: 256px 256px;
}

/* ─────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────── */
.container {
  width: min(100% - var(--sp-8), var(--container));
  margin: 0 auto;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.section      { padding: var(--sp-16) 0; }
.section-tight { padding: var(--sp-8) 0 var(--sp-12); }
.section-xl   { padding: var(--sp-20) 0; }
.section-muted {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212,156,30,.06) 0%, transparent 70%),
    var(--color-bg-alt);
}

/* Gradient dividers */
.divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
  margin: var(--sp-12) 0;
}
.divider-gold {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--gold-300) 20%, var(--gold-300) 80%, transparent);
  margin: var(--sp-8) 0;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--color-text);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(var(--ts-2xl), 5.5vw, var(--ts-4xl)); }
h2 { font-size: clamp(var(--ts-xl),  3.8vw, var(--ts-3xl)); }
h3 { font-size: clamp(var(--ts-lg),  2.2vw, var(--ts-xl));  }
h4 {
  font-family: var(--font-body);
  font-size: var(--ts-md);
  font-weight: 700;
  letter-spacing: -.01em;
}

.page-h1 { font-size: clamp(var(--ts-xl), 3.5vw, var(--ts-2xl)); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-family: var(--font-body);
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}
.eyebrow-invert { color: var(--gold-300); }
.eyebrow-invert::before { background: var(--gold-300); }

.intro-text, .section-lead {
  font-size: var(--ts-md);
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 62ch;
}
.muted  { color: var(--color-text-muted); }
.italic { font-style: italic; }

/* Heading rows */
.section-heading { margin-bottom: var(--sp-8); }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}
.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.town-directory-controls {
	align-items: end;
	display: flex;
	gap: var(--sp-5);
	justify-content: space-between;
	margin-bottom: var(--sp-7);
}
.town-directory-controls > div { flex: 1 1 26rem; }
.town-directory-controls label { display: block; font-size: var(--ts-sm); font-weight: 700; margin-bottom: var(--sp-2); }
.town-directory-controls input { width: 100%; }
.town-directory-controls p { color: var(--color-text-muted); font-size: var(--ts-sm); font-weight: 600; white-space: nowrap; }

/* Inline text link */
.text-link {
  color: var(--color-link);
  font-weight: 600;
  font-size: var(--ts-sm);
  transition: color .18s ease;
}
.text-link:hover { text-decoration: underline; color: var(--color-primary-hover); }

/* ─────────────────────────────────────────
   PILLS, BADGES, TAGS
───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: .02em;
}
.pill-navy  { background: var(--navy-100);  color: var(--navy-700);  }
.pill-gold  { background: var(--gold-100);  color: var(--gold-700);  }
.pill-teal  { background: var(--teal-100);  color: var(--teal-700);  }
.pill-sand  { background: var(--sand-200);  color: var(--sand-700);  }
.pill-coral { background: var(--coral-100); color: var(--coral-600); }

.badge, .tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: var(--ts-xs);
  font-weight: 600;
  background: var(--sand-200);
  color: var(--sand-700);
}

/* Status */
.status-open {
  color: var(--teal-600);
  font-weight: 600;
  font-size: var(--ts-sm);
}
.status-open::before { content: '●'; margin-right: 5px; font-size: 8px; }

/* Quick-pills / meta tags list */
.quick-pills, .meta-list, .hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: var(--sp-5) 0 0;
}
.quick-pills li, .hero-highlights li {
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-pill);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--color-text);
  box-shadow: var(--shadow-e1);
}
.meta-list { margin-top: var(--sp-4); }
.meta-list li {
  padding: 6px 14px;
  background: var(--glass-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: rgba(255,255,255,.88);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--ts-sm);
  font-weight: 600;
  letter-spacing: .01em;
  transition:
    transform  .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
  user-select: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn:hover         { transform: translateY(-1px); }
.btn:active        { transform: translateY(1px) scale(.995); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  color: #fff;
  box-shadow: var(--shadow-e2), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { box-shadow: var(--shadow-e3), inset 0 1px 0 rgba(255,255,255,.12); }

.btn-accent {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold), var(--shadow-e1);
}
.btn-accent:hover { box-shadow: var(--shadow-gold), var(--shadow-e3); }

.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: var(--shadow-e1);
}
.btn-secondary:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-e2); }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.5); }

.btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--ts-xs); }
.btn-lg { min-height: 54px; padding: 0 var(--sp-8); font-size: var(--ts-base); }

/* Chip / filter buttons */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: var(--ts-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: var(--shadow-e1);
  white-space: nowrap;
}
.chip:hover      { border-color: var(--color-accent); color: var(--color-text); box-shadow: var(--shadow-e2); }
.chip.is-active  { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: var(--shadow-e2); }
.chip.is-active:hover { transform: translateY(-1px); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ─────────────────────────────────────────
   FORM INPUTS
───────────────────────────────────────── */
input, select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 var(--sp-4);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--ts-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-inner);
}
input::placeholder, textarea::placeholder { color: var(--color-text-muted); }
input:hover, select:hover, textarea:hover  { border-color: var(--color-border-strong); }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--navy-400);
  box-shadow: var(--shadow-focus);
}
textarea { min-height: 120px; padding: var(--sp-3) var(--sp-4); resize: vertical; line-height: 1.6; }

/* Search / filter bars */
.search-bar {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--glass-nav);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid rgba(180,160,140,.22);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-e3);
}
.search-bar input, .search-bar select {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.search-bar input:focus-visible, .search-bar select:focus-visible {
  background: var(--color-surface);
  border-color: var(--navy-200);
  box-shadow: var(--shadow-focus);
}
.search-bar-hero    { grid-template-columns: 1.5fr 1fr 1fr auto; }
.search-bar-toolbar { grid-template-columns: 1.25fr 1fr 1fr auto; }

/* ─────────────────────────────────────────
   SITE HEADER — GLASSMORPHISM
───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--glass-nav);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border-bottom: 1px solid rgba(180,160,140,.20);
  box-shadow: var(--shadow-e2), inset 0 1px 0 rgba(255,255,255,.5);
  transition: box-shadow .26s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-e3), inset 0 1px 0 rgba(255,255,255,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: 100%;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 600;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-500) 50%, var(--teal-500) 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: var(--shadow-e2), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  background-size: 128px 128px;
  opacity: .06;
  pointer-events: none;
}
.logo-wordmark {
  font-size: var(--ts-md);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.logo-sub {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-top: 1px;
}

/* Primary nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-wrap: wrap;
}
.site-nav a {
  position: relative;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  transition: color .18s ease, background .18s ease;
  text-decoration: none;
}
.site-nav a:hover   { color: var(--color-text); background: rgba(0,0,0,.04); }
.site-nav a.active  { color: var(--color-primary); font-weight: 600; }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: var(--sp-3); right: var(--sp-3);
  bottom: -2px;
  height: 2px;
  border-radius: var(--r-pill);
  background: var(--color-accent);
}

/* Header actions */
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.header-saved {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all .18s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.header-saved:hover { border-color: var(--color-accent); color: var(--color-text); box-shadow: var(--shadow-e2); }
.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-accent);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--r-pill);
}
.header-owner-login {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--ts-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all .18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.header-owner-login:hover { border-color: var(--color-accent); color: var(--color-text); box-shadow: var(--shadow-e2); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile search toggle */
.mobile-search-toggle { display: none; }

/* Mobile search panel */
.mobile-search-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 150;
  background: var(--glass-modal);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--sp-4) 0 var(--sp-6);
  box-shadow: var(--shadow-e4);
}
.mobile-search-panel.is-open { display: block; }
.mobile-search-card {
  display: grid;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e3);
}

/* ─────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs li { font-size: var(--ts-xs); color: var(--color-text-soft); }
.breadcrumbs li + li::before { content: '›'; margin-right: var(--sp-1); color: var(--color-text-muted); }
.breadcrumbs a { color: var(--color-primary); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────
   HERO SECTIONS
───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) 0 0;
  background:
    radial-gradient(ellipse 90% 70% at 75% -10%, rgba(61,122,153,.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at -10% 80%, rgba(180,126,0,.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--sand-100) 0%, var(--color-bg) 100%);
}
.hero-parallax-layer {
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(43,92,120,.10) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 15% 70%, rgba(212,156,30,.08) 0%, transparent 50%);
  will-change: transform;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--sp-12);
  align-items: center;
}
.hero-copy { padding-bottom: var(--sp-12); }
.hero-title {
  font-size: clamp(var(--ts-2xl), 5.5vw, var(--ts-4xl));
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: var(--sp-5);
  color: var(--navy-900);
}
@media (prefers-color-scheme: dark) {
  .hero-title { color: var(--sand-100); }
}
.hero-title em   { font-style: italic; color: var(--navy-500); }
.hero-title span { color: var(--gold-500); }
@media (prefers-color-scheme: dark) {
  .hero-title em   { color: var(--navy-200); }
  .hero-title span { color: var(--gold-300); }
}

/* Hero photo card */
.hero-photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  min-height: 480px;
  background:
    linear-gradient(185deg, rgba(6,13,20,.05) 0%, rgba(6,13,20,.72) 100%),
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1400&q=80') center/cover;
  box-shadow: var(--shadow-e5);
  border: 1px solid rgba(180,160,140,.15);
}
.hero-photo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  background-size: 256px;
  opacity: .03;
  pointer-events: none;
  z-index: 1;
}
.hero-card-badge {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-5);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  background: rgba(212,156,30,.88);
  backdrop-filter: blur(8px);
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-e2);
}
.hero-card-badge::before { content: '✦'; font-size: 9px; }
.hero-card-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-6);
  z-index: 2;
}
.hero-card-content h2, .hero-card-content p { color: #fff; }
.hero-card-content h2 {
  font-family: var(--font-display);
  font-size: clamp(var(--ts-lg), 2.2vw, var(--ts-xl));
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}
.hero-card-content p { font-size: var(--ts-sm); opacity: .88; }
.hero-card-pills {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.hero-pill {
  padding: 6px 14px;
  background: var(--glass-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: var(--ts-xs);
  font-weight: 600;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .18s ease;
}
.hero-pill:hover { background: rgba(255,255,255,.18); }

/* Mini photo strip in hero visual */
.hero-visual { display: grid; gap: var(--sp-4); }
.hero-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.mini-photo {
  height: 120px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-e2);
  border: 1px solid rgba(180,160,140,.15);
  transition: transform .6s cubic-bezier(.19,1,.22,1), box-shadow .6s cubic-bezier(.19,1,.22,1);
  overflow: hidden;
  position: relative;
}
.mini-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6,13,20,.38) 100%);
  opacity: 0;
  transition: opacity .18s ease;
}
.mini-photo:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-e4); }
.mini-photo:hover::after { opacity: 1; }

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--sp-4);
  padding: var(--sp-6);
  margin-top: var(--sp-6);
  background: var(--glass-nav);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid rgba(180,160,140,.20);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-e3);
  position: relative;
  z-index: 3;
}
.stat-item {
  padding: var(--sp-4);
  border-radius: var(--r-lg);
  transition: background .18s ease;
}
.stat-item:hover { background: rgba(255,255,255,.5); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(var(--ts-xl), 3vw, var(--ts-2xl));
  font-weight: 400;
  line-height: 1;
  color: var(--navy-800);
  letter-spacing: -.03em;
  margin-bottom: var(--sp-1);
}
@media (prefers-color-scheme: dark) { .stat-num { color: var(--sand-100); } }
.stat-num em   { font-style: italic; color: var(--gold-500); }
.stat-label    { font-size: var(--ts-xs); color: var(--color-text-soft); font-weight: 500; line-height: 1.4; }

/* Image hero overlays (detail / town / event pages) */
.img-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-e5);
  border: 1px solid rgba(180,160,140,.15);
  background-size: cover;
  background-position: center;
}
.img-hero-lg  { min-height: 420px; }
.img-hero-md  { min-height: 360px; }
.img-hero-sm  { min-height: 300px; }

.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--sp-8);
  background: linear-gradient(0deg, rgba(6,13,20,.6) 0%, transparent 100%);
  color: #fff;
}
.hero-overlay h1, .hero-overlay h2, .hero-overlay p, .hero-overlay .eyebrow { color: #fff; }

/* Detail tabs (shown in hero overlay area) */
.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: var(--sp-4) 0 0;
}
.detail-tab {
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.85);
  font-family: var(--font-body);
  font-size: var(--ts-xs);
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.detail-tab:hover      { background: rgba(255,255,255,.22); }
.detail-tab.is-active  { background: #fff; border-color: #fff; color: var(--navy-800); }

/* ─────────────────────────────────────────
   CARD SYSTEM
───────────────────────────────────────── */

/* Shared card hover lift */
.card-lift {
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .5s cubic-bezier(.19,1,.22,1), border-color .18s ease;
}
.card-lift:hover { transform: translateY(-5px); box-shadow: var(--shadow-e4); border-color: rgba(212,156,30,.28); }

/* Category card */
.category-card {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--teal-400));
  opacity: 0;
  transition: opacity .18s ease;
}
.category-card:hover::before { opacity: 1; }
.category-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-50), var(--sand-100));
  border: 1px solid var(--color-border);
  font-size: 1.6rem;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-e1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.category-card:hover .category-icon { transform: scale(1.08) rotate(3deg); box-shadow: var(--shadow-e2); }
.category-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--ts-base);
  letter-spacing: -.01em;
  margin-bottom: var(--sp-2);
}
.category-card p { font-size: var(--ts-sm); color: var(--color-text-soft); line-height: 1.5; }

/* Photo cards (destination, town) */
.photo-card {
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
  background: var(--color-surface);
  cursor: pointer;
}
.photo-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.19,1,.22,1);
  display: block;
}

.photo-card-placeholder,
.listing-photo-placeholder {
	background: linear-gradient(145deg, var(--navy-500), var(--teal-500) 58%, var(--gold-400));
}

.photo-card-placeholder {
	align-items: end;
	color: #fff;
	display: flex;
	font-family: var(--font-display);
	font-size: var(--ts-2xl);
	font-weight: 400;
	height: 100%;
	justify-content: start;
	min-height: 220px;
	padding: var(--sp-5);
}
.photo-card:hover .photo-card-img { transform: scale(1.06); }
.photo-card-body { padding: var(--sp-4) var(--sp-5); }
.photo-card-body h3 {
  font-family: var(--font-display);
  font-size: var(--ts-lg);
  margin-bottom: var(--sp-2);
}
.photo-card-body h2 { font-family: var(--font-display); font-size: var(--ts-lg); margin-bottom: var(--sp-2); }
.photo-card-body p { font-size: var(--ts-sm); color: var(--color-text-soft); }

/* Town card (slightly taller image) */
.town-card-img { height: 180px; }

/* Listing card */
.listing-card {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
  position: relative;
}
.listing-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.19,1,.22,1);
}
.listing-card:hover .listing-photo { transform: scale(1.05); }
.listing-body { padding: var(--sp-4) var(--sp-5); }
.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: var(--ts-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.listing-rating { color: var(--gold-500); }
.listing-rating::before { content: '★ '; }
.listing-body h3 {
  font-family: var(--font-display);
  font-size: var(--ts-lg);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}
.listing-body h2 { font-family: var(--font-display); font-size: var(--ts-lg); line-height: 1.2; margin-bottom: var(--sp-2); }
.listing-body p { font-size: var(--ts-sm); color: var(--color-text-soft); }
.listing-review-count { font-size: var(--ts-xs) !important; margin-top: var(--sp-3); }
.listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--ts-sm);
  color: var(--color-text-soft);
}
/* Save/favorite button on card */
.card-fave {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--glass-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.4);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  box-shadow: var(--shadow-e2);
  transition: all .18s ease;
  color: var(--color-text-soft);
}
.card-fave:hover  { transform: scale(1.12); box-shadow: var(--shadow-e3); }
.card-fave.saved  { color: var(--coral-500); background: rgba(255,255,255,.96); }

/* Guide / article card */
.guide-card {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
}
.guide-card-img {
  height: 140px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-4);
}
.guide-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.19,1,.22,1); }
.guide-card:hover .guide-card-img img { transform: scale(1.04); }
.guide-card h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--ts-base); letter-spacing: -.01em; margin-bottom: var(--sp-2); }
.guide-card p  { font-size: var(--ts-sm); color: var(--color-text-soft); margin-top: var(--sp-2); }

/* Info / amenity / experience card */
.info-card, .amenity-card, .experience-card {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
}
.info-card h3, .info-card h4,
.amenity-card h3, .amenity-card h4,
.experience-card h3, .experience-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--ts-base);
  letter-spacing: -.01em;
  margin-bottom: var(--sp-2);
}
.info-card p, .amenity-card p, .experience-card p { font-size: var(--ts-sm); color: var(--color-text-soft); }

/* Event card */
.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .5s cubic-bezier(.19,1,.22,1);
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-e3); }
.event-card-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.event-type-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  object-fit: cover;
  border: 1px solid var(--color-border);
}
.event-date {
  display: grid;
  place-items: center;
  text-align: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  border: 1px solid var(--navy-200);
  color: var(--navy-700);
  flex-shrink: 0;
}
.event-date-month { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; }
.event-date-day   { font-family: var(--font-display); font-size: var(--ts-xl); line-height: 1; }
.event-location   { font-size: var(--ts-xs); font-weight: 600; color: var(--color-primary); margin-top: var(--sp-2); display: inline-block; }

.event-hero-fallback {
	background: linear-gradient(145deg, var(--navy-800), var(--teal-700) 58%, var(--gold-500));
}
.event-hero-pills { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.event-calendar { display: grid; gap: var(--sp-3); }
.event-calendar-item {
	align-items: baseline;
	background: var(--color-bg-alt);
	border-left: 3px solid var(--color-accent);
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	justify-content: space-between;
	padding: var(--sp-4);
}
.event-calendar-item span { color: var(--color-text-soft); font-size: var(--ts-sm); }
.event-calendar-item em { color: var(--color-danger); font-size: var(--ts-sm); font-weight: 700; font-style: normal; }

.listing-detail-hero {
	background: linear-gradient(145deg, var(--navy-800), var(--teal-700) 58%, var(--gold-500));
}
.listing-detail-hero-image {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}
.listing-detail-hero .hero-overlay { z-index: 1; }
.listing-gallery-image { object-fit: cover; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { border-bottom: 1px solid var(--color-border); font-size: var(--ts-sm); padding: var(--sp-2) 0; text-align: left; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table th { color: var(--color-text-soft); font-weight: 600; width: 42%; }
.hours-table td { color: var(--color-text); font-weight: 500; text-align: right; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--teal-600); font-weight: 700; }
.map-placeholder { align-items: center; background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--r-lg); display: flex; justify-content: center; min-height: 220px; padding: var(--sp-5); text-align: center; }
.map-pin { color: var(--color-text-soft); font-size: var(--ts-sm); font-weight: 700; }
.address-block { color: var(--color-text-soft); font-size: var(--ts-sm); line-height: 1.7; }
.address-block strong { color: var(--color-text); }
.milepost-chip { background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--r-pill); color: var(--navy-600); display: inline-flex; font-family: var(--font-mono); font-size: var(--ts-xs); font-weight: 500; padding: 3px 10px; }
.public-review-list { display: grid; gap: var(--sp-4); margin: var(--sp-5) 0; }
.public-review-card { border-bottom: 1px solid var(--color-border); padding-bottom: var(--sp-4); }
.public-review-card:last-child { border-bottom: none; padding-bottom: 0; }
.public-review-card strong { display: block; }
.public-review-card p { color: var(--color-text-soft); font-size: var(--ts-sm); margin: var(--sp-2) 0 0; }
.public-review-date { color: var(--color-text-muted); font-size: var(--ts-xs); }
.public-review-rating { color: var(--gold-500); font-size: var(--ts-sm); letter-spacing: .05em; margin-top: var(--sp-2); }
.public-review-rating span { color: var(--color-border-strong); }
.public-review-form { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.public-review-form .btn { justify-self: start; }
.review-notice { border-radius: var(--r-lg); font-size: var(--ts-sm); margin: var(--sp-4) 0; padding: var(--sp-3) var(--sp-4); }
.review-notice-success { background: var(--teal-100); color: var(--teal-700); }
.review-notice-error { background: var(--coral-100); color: var(--coral-700); }

/* Testimonial card */
.testimonial-card {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold-200);
  line-height: 1;
  pointer-events: none;
}
.testimonial-card p { font-size: var(--ts-base); color: var(--color-text); line-height: 1.7; position: relative; z-index: 1; }
.testimonial-footer {
  margin-top: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}
.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
}
.testimonial-name   { font-weight: 700; font-size: var(--ts-sm); }
.testimonial-origin { font-size: var(--ts-xs); color: var(--color-text-soft); }

/* ─────────────────────────────────────────
   GRID LAYOUTS
───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }

/* Detail / sidebar layouts */
.detail-layout,
.event-layout,
.town-detail-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-8); align-items: start; }
.category-layout    { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-8); align-items: start; }
.split-layout       { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--sp-8); align-items: start; }

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */
.sidebar-stack { display: grid; gap: var(--sp-4); position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.sidebar-card, .panel {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e2);
}
.sidebar-title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--ts-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-4);
}
.sidebar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.sidebar-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--ts-sm);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-soft);
}
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list li strong { color: var(--color-text); font-weight: 600; text-align: right; }

.quick-facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.town-page-intro { padding-bottom: var(--sp-5); }
.town-page-intro .section-lead { max-width: 72ch; }
.conditions-section { padding-top: var(--sp-5); background: var(--color-bg-alt); }
.conditions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.condition-card { padding: var(--sp-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r-xl); box-shadow: var(--shadow-e2); }
.condition-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.condition-card h3 { margin: 0; font-size: var(--ts-lg); }
.condition-status { font-size: var(--ts-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); }
.condition-card--stale .condition-status { color: var(--gold-600); }
.condition-card--unavailable .condition-status { color: var(--color-text-soft); }
.condition-summary { min-height: 2.8em; margin: var(--sp-3) 0 var(--sp-4); color: var(--color-text-soft); }
.condition-metrics { display: grid; gap: var(--sp-2); margin: 0; }
.condition-metrics div { display: flex; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--color-border); }
.condition-metrics dt { color: var(--color-text-soft); font-size: var(--ts-sm); }
.condition-metrics dd { margin: 0; color: var(--color-text); font-size: var(--ts-sm); font-weight: 700; text-align: right; }
.condition-source { margin: var(--sp-5) 0 0; font-size: var(--ts-xs); line-height: 1.5; color: var(--color-text-soft); }
@media (max-width: 900px) { .conditions-grid { grid-template-columns: 1fr; } }
.quick-fact {
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-bg-alt);
  border-radius: var(--r-lg);
  border: 1px solid var(--color-border);
}
.quick-fact-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 3px; }
.quick-fact-value { font-size: var(--ts-sm); font-weight: 600; color: var(--color-text); }

/* ─────────────────────────────────────────
   HIGHLIGHTS LIST
───────────────────────────────────────── */
.highlights-list { display: grid; gap: var(--sp-4); }
.highlights-list article {
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--color-accent);
  background: linear-gradient(90deg, rgba(212,156,30,.06) 0%, transparent 60%);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  transition: border-color .18s ease;
}
.highlights-list article:hover { border-color: var(--teal-400); }
.highlights-list h4 { font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2); }
.highlights-list p  { font-size: var(--ts-sm); color: var(--color-text-soft); }

/* ─────────────────────────────────────────
   PHOTO STRIP (gallery)
───────────────────────────────────────── */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.gallery-photo {
  height: 160px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-e1);
  cursor: pointer;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.19,1,.22,1), box-shadow .5s cubic-bezier(.19,1,.22,1);
}
.gallery-photo:hover { transform: scale(1.02); box-shadow: var(--shadow-e3); }
.gallery-photo:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ─────────────────────────────────────────
   GALLERY LIGHTBOX
───────────────────────────────────────── */
.gallery-lightbox {
  width: min(92vw, 1100px);
  max-height: calc(100vh - 64px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.gallery-lightbox::backdrop { background: rgba(6,13,20,.78); }
.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 64px);
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--navy-950);
  box-shadow: var(--shadow-e5);
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-pill);
  background: rgba(6,13,20,.6);
  color: #fff;
  font-size: var(--ts-xl);
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { background: rgba(6,13,20,.85); }
.gallery-lightbox-close { top: -56px; right: 0; font-size: var(--ts-lg); }
.gallery-lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-invert);
  font-size: var(--ts-sm);
  font-weight: 600;
}
@media (max-width: 640px) {
  .gallery-lightbox-close { top: -44px; }
  .gallery-lightbox-nav { width: 36px; height: 36px; font-size: var(--ts-lg); }
  .gallery-lightbox-counter { bottom: -32px; }
}

/* ─────────────────────────────────────────
   CTA PANEL
───────────────────────────────────────── */
.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
  padding: var(--sp-8) var(--sp-10);
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 60%, var(--teal-600) 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-e4);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  background-size: 256px;
  opacity: .04;
  pointer-events: none;
}
.cta-panel::after {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,156,30,.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-panel h2, .cta-panel p { color: #fff; position: relative; z-index: 1; }
.cta-panel h2 { font-size: clamp(var(--ts-xl), 3vw, var(--ts-2xl)); margin-bottom: var(--sp-2); }
.cta-panel p  { opacity: .78; font-size: var(--ts-base); max-width: 52ch; }
.cta-actions  { display: flex; gap: var(--sp-3); flex-wrap: wrap; position: relative; z-index: 1; flex-shrink: 0; }

/* ─────────────────────────────────────────
   TOOLBAR (browse page)
───────────────────────────────────────── */
.toolbar            { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.results-count      { font-size: var(--ts-sm); font-weight: 600; color: var(--color-text-muted); }
.filter-bar-row     { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

/* Empty state */
.empty-state {
  padding: var(--sp-12) var(--sp-8);
  border-radius: var(--r-xl);
  border: 2px dashed var(--color-border);
  background: var(--color-bg-alt);
  text-align: center;
}
.empty-state-icon { font-size: 3rem; margin-bottom: var(--sp-4); display: block; }
.empty-state h3   { font-family: var(--font-body); font-weight: 700; margin-bottom: var(--sp-2); }
.empty-state p    { font-size: var(--ts-sm); color: var(--color-text-soft); }

/* ─────────────────────────────────────────
   SITE FOOTER
───────────────────────────────────────── */
.site-footer {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  padding: var(--sp-16) 0 var(--sp-8);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  background-size: 256px;
  opacity: .03;
  pointer-events: none;
}
.site-footer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,156,30,.3) 30%, rgba(61,122,153,.3) 70%, transparent);
}
.footer-inner    { position: relative; z-index: 1; }
.footer-grid     { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); }
.footer-logo .logo-wordmark,
.footer-logo .logo-sub { color: rgba(255,255,255,.9); }
.footer-copy     { margin-top: var(--sp-4); font-size: var(--ts-sm); color: rgba(255,255,255,.5); line-height: 1.7; max-width: 36ch; }
.footer-col h3   { font-family: var(--font-body); font-size: var(--ts-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--sp-5); }
.footer-col ul   { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.footer-col a    { font-size: var(--ts-sm); color: rgba(255,255,255,.55); transition: color .18s ease; }
.footer-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--ts-xs);
  color: rgba(255,255,255,.35);
}

/* ─────────────────────────────────────────
   TOAST
───────────────────────────────────────── */
.toast {
  position: fixed;
  right: var(--sp-5);
  bottom: var(--sp-5);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-xl);
  background: var(--navy-800);
  color: #fff;
  font-size: var(--ts-sm);
  font-weight: 500;
  box-shadow: var(--shadow-e4);
  border: 1px solid rgba(255,255,255,.10);
  opacity: 0;
  transform: translateY(12px) scale(.97);
  pointer-events: none;
  transition: opacity .24s ease, transform .32s cubic-bezier(.19,1,.22,1);
  max-width: 320px;
}
.toast::before { content: '✓'; font-weight: 700; color: var(--teal-300); font-size: var(--ts-base); }
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ─────────────────────────────────────────
   PUBLIC SHARE ACTIONS
───────────────────────────────────────── */
.public-share-section { padding-top: 0; }
.public-share-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-e1);
}
.public-share-panel h2 { margin: var(--sp-1) 0 0; font-size: var(--ts-xl); }
.public-share-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.public-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--r-md);
	background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font-family: inherit;
	font-size: var(--ts-sm);
	font-weight: 700;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
	position: relative;
}
.public-share-button:hover { border-color: var(--teal-600); background: var(--teal-50); box-shadow: var(--shadow-e1); }
.public-share-button:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; }
.public-share-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.public-share-monogram { font-size: 1.2rem; font-weight: 800; line-height: 1; }
.public-share-button--facebook { color: #1877f2; }
.public-share-button--linkedin { color: #0a66c2; }
.public-share-button--pinterest { color: #bd081c; }
.public-share-button--whatsapp { color: #128c7e; }
.public-share-button--x { color: var(--color-text); }
.public-share-button:hover::after,
.public-share-button:focus-visible::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + var(--sp-2));
	transform: translateX(-50%);
	z-index: 10;
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--r-sm);
	background: var(--navy-900);
	color: var(--color-text-invert);
	font-size: var(--ts-xs);
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	pointer-events: none;
}

/* ─────────────────────────────────────────
   PAGE TRANSITION
───────────────────────────────────────── */
.page-fade-in {
  animation: pageFadeIn .45s cubic-bezier(.19,1,.22,1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger children on page load */
.stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.19,1,.22,1);
}
.stagger.visible > * { opacity: 1; transform: translateY(0); }
.stagger.visible > *:nth-child(1)  { transition-delay:   0ms; }
.stagger.visible > *:nth-child(2)  { transition-delay:  60ms; }
.stagger.visible > *:nth-child(3)  { transition-delay: 120ms; }
.stagger.visible > *:nth-child(4)  { transition-delay: 180ms; }
.stagger.visible > *:nth-child(5)  { transition-delay: 240ms; }
.stagger.visible > *:nth-child(6)  { transition-delay: 300ms; }
.stagger.visible > *:nth-child(7)  { transition-delay: 360ms; }
.stagger.visible > *:nth-child(8)  { transition-delay: 420ms; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-grid       { grid-template-columns: 1fr; }
  .hero-photo-card { min-height: 380px; }
  .grid-4          { grid-template-columns: repeat(2, 1fr); }
  .grid-3          { grid-template-columns: repeat(2, 1fr); }
  .stats-bar        { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .detail-layout,
  .event-layout,
  .town-detail-layout,
  .category-layout,
  .split-layout     { grid-template-columns: 1fr; }
  .sidebar-stack    { position: static; }
  .search-bar-hero,
  .search-bar-toolbar { grid-template-columns: 1fr 1fr; }
  .section-heading-row,
  .page-title-row,
  .town-directory-controls,
  .cta-panel        { flex-direction: column; align-items: flex-start; }
  .cta-panel        { padding: var(--sp-8); }
  .public-share-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 820px) {
  .nav-toggle,
  .mobile-search-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--glass-modal);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
    padding: var(--sp-5);
    overflow-y: auto;
    z-index: 190;
  }
  .site-nav a {
    padding: var(--sp-4);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-e1);
    font-size: var(--ts-base);
  }
  .site-nav a.active::after { display: none; }
  .site-nav.is-open { display: flex; }
  .header-saved,
  .btn-header-cta,
  .header-owner-login { display: none; }
  .mobile-search-toggle { display: inline-flex; }
  .grid-4  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }
  .grid-2  { grid-template-columns: 1fr; }
  .hero-mini-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .container { width: min(100% - var(--sp-6), var(--container)); }
  .search-bar-hero,
  .search-bar-toolbar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar   { grid-template-columns: repeat(2, 1fr); }
  .quick-facts-grid { grid-template-columns: 1fr; }
  .hero-mini-grid   { grid-template-columns: repeat(3, 1fr); }
  .mini-photo       { height: 90px; }
  .photo-strip      { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   PRINT
───────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .toast, .mobile-search-panel { display: none !important; }
  body { background: white; color: black; font-size: 12pt; }
  .listing-card, .photo-card, .guide-card { box-shadow: none !important; border: 1px solid #ccc !important; }
  a { color: inherit; }
  .img-hero, .hero-photo-card { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
