:root {
  --bg: #f7f8fb;
  --surface: rgba(255,255,255,0.9);
  --surface-strong: #ffffff;
  --text: #162033;
  --muted: #5f6b7a;
  --primary: #0f766e;
  --primary-2: #14b8a6;
  --accent: #f59e0b;
  --accent-2: #ef4444;
  --border: rgba(19,32,51,0.12);
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
  --page-accent: var(--primary);
  --page-accent-2: var(--accent);
  --page-hero-image: none;
  --page-hero-overlay: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(15, 118, 110, 0.22));
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  zoom: 1;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.12), transparent 28%),
    radial-gradient(circle at top right, rgba(245,158,11,.10), transparent 24%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  line-height: 1.55;
  min-height: 100vh;
}

body[data-page="home"] {
  --page-accent: #0f766e;
  --page-accent-2: #f59e0b;
  --page-hero-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(13,19,35,.68), rgba(15,118,110,.32));
}

body[data-page="parks"], body[data-page="outdoors"] {
  --page-accent: #0f766e;
  --page-accent-2: #14b8a6;
  --page-hero-image: url('https://images.unsplash.com/photo-1509316975850-ff9c5deb0cd9?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(13,43,41,.68), rgba(15,118,110,.28));
}

body[data-page="food"] {
  --page-accent: #f97316;
  --page-accent-2: #f59e0b;
  --page-hero-image: url('https://images.unsplash.com/photo-1498579809087-ef1e558fd1da?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(36,20,13,.68), rgba(249,115,22,.26));
}

body[data-page="bars"] {
  --page-accent: #8b5cf6;
  --page-accent-2: #ec4899;
  --page-hero-image: url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(15,23,42,.74), rgba(139,92,246,.24));
}

body[data-page="events"] {
  --page-accent: #2563eb;
  --page-accent-2: #f97316;
  --page-hero-image: url('https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(10,18,46,.72), rgba(37,99,235,.26));
}

body[data-page="gems"] {
  --page-accent: #db2777;
  --page-accent-2: #f59e0b;
  --page-hero-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80');
  --page-hero-overlay: linear-gradient(120deg, rgba(40,16,35,.70), rgba(219,39,119,.22));
}

body[data-page="events"] .hero,
body[data-page="bars"] .hero,
body[data-page="parks"] .hero,
body[data-page="outdoors"] .hero,
body[data-page="food"] .hero,
body[data-page="gems"] .hero,
body[data-page="home"] .hero {
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
}

body[data-page="events"] .hero p,
body[data-page="bars"] .hero p,
body[data-page="parks"] .hero p,
body[data-page="outdoors"] .hero p,
body[data-page="food"] .hero p,
body[data-page="gems"] .hero p,
body[data-page="home"] .hero p,
body[data-page="events"] .hero li,
body[data-page="bars"] .hero li,
body[data-page="parks"] .hero li,
body[data-page="outdoors"] .hero li,
body[data-page="food"] .hero li,
body[data-page="gems"] .hero li,
body[data-page="home"] .hero li {
  color: var(--muted);
}

body[data-page="events"] .hero .section-title,
body[data-page="bars"] .hero .section-title,
body[data-page="parks"] .hero .section-title,
body[data-page="outdoors"] .hero .section-title,
body[data-page="food"] .hero .section-title,
body[data-page="gems"] .hero .section-title,
body[data-page="home"] .hero .section-title {
  color: var(--text);
}

body[data-page="events"] .hero::after,
body[data-page="bars"] .hero::after,
body[data-page="parks"] .hero::after,
body[data-page="outdoors"] .hero::after,
body[data-page="food"] .hero::after,
body[data-page="gems"] .hero::after,
body[data-page="home"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
  pointer-events: none;
  z-index: 0;
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }

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

button, input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(20,184,166,.34);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

header.topbar,
.topbar,
header.site-header {
  position: sticky;
  top: 12px;
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(19,32,51,.08);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.topbar,
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.topbar strong,
.topbar-logo,
.brand h1,
.brand span {
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.topbar nav,
.topbar-nav,
nav.primary-nav,
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topbar nav a,
.topbar-nav a,
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.topbar nav a:hover,
.topbar-nav a:hover,
.nav-links a:hover,
.nav-links a.active {
  background: rgba(15,118,110,.10);
  color: var(--page-accent);
}

.layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.hero,
.section,
.panel,
.widget,
.sidebar-widget,
.card,
.restaurant,
.event,
.resource,
.spot,
.feature,
.stat,
.mini-banner,
.site-list a,
.ad-slot {
  background: var(--surface);
  border: 1px solid rgba(19,32,51,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  isolation: isolate;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20px auto auto -20px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 65%);
  pointer-events: none;
}

.hero h1,
.hero h2 {
  margin: 0 0 12px;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 { font-size: clamp(2rem, 4vw, 4.1rem); }
.hero h2 { font-size: clamp(2rem, 4vw, 4.1rem); }

.hero-eyebrow,
.eyebrow,
.tag,
.card-tag,
.ad-badge,
.badge,
.filter-btn,
.mini-feature .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-eyebrow,
.eyebrow {
  padding: 8px 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero p,
.section p,
.panel p,
.widget p,
.resource p,
.event p,
.restaurant p,
.spot p {
  color: var(--muted);
  line-height: 1.7;
}

.where,
.note {
  color: var(--muted);
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  color: var(--page-accent);
  font-weight: 700;
}

.hero-actions,
.cta-row,
.filters,
.meta,
.pill-row,
.nav-actions,
.footer-bottom,
.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.button-primary,
.button-secondary,
.filter-btn,
.contact-form button,
.newsletter button,
.ad-cta,
.btn-primary,
.btn-secondary,
.back-to-top,
.close,
.close-x,
.hamburger,
.burger {
  border: none;
  cursor: pointer;
}

.btn,
.button-primary,
.button-secondary,
.contact-form button,
.newsletter button,
.ad-cta,
.btn-primary,
.btn-secondary,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn:hover,
.button-primary:hover,
.button-secondary:hover,
.contact-form button:hover,
.newsletter button:hover,
.ad-cta:hover,
.btn-primary:hover,
.btn-secondary:hover,
.filter-btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.button-primary,
.contact-form button,
.newsletter button,
.ad-cta,
.btn.btn-primary {
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15,118,110,.22);
}

.button-secondary,
.btn-secondary,
.filter-btn,
.searchbar input,
.modal-body input,
.modal-body textarea,
.contact-form input,
.contact-form textarea,
.newsletter input {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(19,32,51,.10);
}

.button-secondary,
.btn-secondary,
.filter-btn {
  color: var(--text);
}

.searchbar,
.search-strip {
  position: relative;
}

.searchbar input,
.search-strip input,
.contact-form input,
.contact-form textarea,
.modal-body input,
.modal-body textarea,
.newsletter input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}

.searchbar input:focus,
.search-strip input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.modal-body input:focus,
.modal-body textarea:focus,
.newsletter input:focus {
  border-color: rgba(20,184,166,.45);
  box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}

.searchbar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.section,
.panel,
.widget,
.sidebar-widget,
.section-card {
  padding: 20px;
  margin-top: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 22px;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(245,158,11,.10), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,252,.96));
}

.hero::after {
  display: none;
}

.hero > :not(.stats) {
  grid-column: 1;
}

.hero .stats {
  grid-column: 1;
  margin-top: 10px;
}

.hero .tag,
.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  background: rgba(15,118,110,.10);
  color: var(--page-accent);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.hero p {
  max-width: 62ch;
}

.hero .cta-row,
.hero .hero-actions {
  margin-top: 18px;
}

body[data-page="home"] .hero { --hero-image: url('https://images.unsplash.com/photo-1501555088652-021faa106b9b?auto=format&fit=crop&w=1200&q=80'); }
body[data-page="parks"] .hero,
body[data-page="outdoors"] .hero { --hero-image: url('https://images.unsplash.com/photo-1509316975850-ff9c5deb0cd9?auto=format&fit=crop&w=1200&q=80'); }
body[data-page="food"] .hero,
body[data-page="bars"] .hero { --hero-image: url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?auto=format&fit=crop&w=1200&q=80'); }
body[data-page="events"] .hero { --hero-image: url('https://images.unsplash.com/photo-1511578314322-379afb476865?auto=format&fit=crop&w=1200&q=80'); }
body[data-page="gems"] .hero { --hero-image: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1200&q=80'); }

.hero-card,
.hero-copy,
.hero-grid {
  min-width: 0;
}

.hero-grid {
  display: contents;
}

.section-head h2,
.section-head h3,
.section-title,
.sidebar-title,
.footer h4,
.hero h3 {
  margin: 0 0 10px;
  letter-spacing: -0.04em;
}

.section-head p,
.section p.lead {
  margin: 0;
}

.grid,
.grid-5,
.grid-4,
.grid-3,
.grid-2,
.feature-strip,
.restaurant-grid,
.event-grid,
.spots,
.spot-grid,
.trail-grid,
.resource-list,
.stats {
  display: grid;
  gap: 16px;
}

.grid,
.restaurant-grid,
.event-grid,
.spots,
.spot-grid,
.trail-grid,
.resource-list,
.grid-5,
.grid-4,
.grid-3,
.grid-2,
.feature-strip,
.stats {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.spot,
.trail-card,
.map-box {
  background: var(--surface);
  border: 1px solid rgba(19,32,51,.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.spot,
.trail-card {
  padding: 16px;
}

.map-box {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(15,118,110,.12), transparent 0 18%),
    radial-gradient(circle at 55% 58%, rgba(245,158,11,.12), transparent 0 18%),
    radial-gradient(circle at 78% 36%, rgba(59,130,246,.12), transparent 0 18%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(242,247,250,.96));
}

.pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 50% 0;
  background: var(--page-accent);
  transform: rotate(-45deg);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.pin.green { background: var(--primary); }
.pin.blue { background: #2563eb; }

.pin-label {
  position: absolute;
  top: 18px;
  left: 18px;
  transform: rotate(45deg);
  white-space: nowrap;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(19,32,51,.08);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text);
}

.card,
.restaurant,
.event,
.resource,
.spot,
.feature,
.stat,
.mini-banner,
.site-list a,
.ad-slot {
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover,
.restaurant:hover,
.event:hover,
.resource:hover,
.spot:hover,
.feature:hover,
.mini-banner:hover,
.site-list a:hover,
.ad-slot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(20,184,166,.22);
}

.card img,
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body,
.restaurant,
.event,
.resource,
.spot,
.feature,
.stat,
.mini-banner,
.site-list a,
.ad-slot {
  padding: 16px;
}

.tag,
.card-tag,
.ad-badge,
.best,
.meta span,
.pill,
.mini-feature .tag {
  padding: 6px 10px;
  font-size: .78rem;
  background: rgba(15,118,110,.10);
  color: var(--page-accent);
}

.best,
.meta span,
.pill {
  border: 1px solid rgba(19,32,51,.08);
  background: rgba(255,255,255,.9);
}

.map,
.map-box,
.banner,
.hero-visual,
.mini-feature {
  border-radius: 28px;
}

.banner {
  background: linear-gradient(135deg, rgba(45,91,255,.96), rgba(15,157,138,.95));
  color: #fff;
}

.banner p,
.banner h3 {
  color: #fff;
}

.hero-visual,
.hero-card,
.mini-feature {
  position: relative;
  overflow: hidden;
}

.hero-visual {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(7,12,24,.10), rgba(7,12,24,.34)),
    var(--page-hero-image) center/cover no-repeat;
  display: block;
  padding: 0;
}

.mini-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255,255,255,.94);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.mini-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
}

.rotating-tagline,
.rotating,
.hero-kicker {
  color: #fff;
}

.hero .cta-row .btn-secondary,
.hero .button-secondary {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.26);
}

.topbar .btn-primary,
.topbar .button-primary,
.topbar .btn-secondary,
.topbar .button-secondary {
  min-height: 40px;
  padding: 10px 14px;
}

.footer,
footer {
  margin-top: 30px;
  background: #101827;
  color: #d5ddf0;
  padding: 34px 0 24px;
}

.footer a,
footer a {
  color: #d5ddf0;
}

.footer a:hover,
footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr .8fr .8fr 1fr;
}

.copyright,
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #aab5cc;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--page-accent), #fb7185);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal-backdrop,
.modal {
  display: none;
}

.modal-backdrop.show {
  position: fixed;
  inset: 0;
  background: rgba(10,16,28,.56);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.modal {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-backdrop.show .modal {
  display: block;
}

.modal-head {
  padding: 1rem 1.2rem;
  background: linear-gradient(135deg, var(--page-accent), var(--page-accent-2));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.modal-body {
  padding: 1.2rem;
}

.close,
.close-x,
.hamburger,
.burger {
  background: rgba(255,255,255,.16);
  color: inherit;
  border-radius: 14px;
  width: 42px;
  height: 42px;
}

.hidden,
.filtered-hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-actions { display: none; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-grid, .split, .footer-grid, .grid-5, .grid-4, .grid-3, .grid-2, .feature-strip, .stats { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
}
