
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@500;600;700&display=swap');

:root {
  --nx-primary: hsl(202 99% 37%);
  --nx-primary-dark: hsl(202 80% 24%);
  --nx-secondary: hsl(100 44% 62%);
  --nx-accent: hsl(14 84% 63%);
  --nx-background: hsl(210 40% 98%);
  --nx-foreground: hsl(202 18% 21%);
  --nx-muted: hsl(202 11% 40%);
  --nx-border: hsl(200 36% 90%);
  --nx-card: hsl(0 0% 100%);
  --nx-radius: 0.85rem;
  --nx-font-sans: 'Plus Jakarta Sans', 'Avenir Next', Avenir, sans-serif;
  --nx-font-display: 'Outfit', 'Roboto Slab', serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--nx-background);
  color: var(--nx-foreground);
  font-family: var(--nx-font-sans);
  line-height: 1.55;
}

a { color: inherit; }

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  border-bottom: 1px solid var(--nx-border);
  background: var(--nx-card);
}

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

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--nx-primary-dark);
}

.brand img { height: 32px; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--nx-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--nx-primary-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--nx-muted);
  margin: 20px 0;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--nx-foreground); font-weight: 600; }

.page-hero {
  padding: 12px 0 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nx-primary);
  margin: 0 0 10px;
}

h1 {
  font-family: var(--nx-font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--nx-primary-dark);
}

h2 {
  font-family: var(--nx-font-display);
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.page-intro {
  max-width: 62ch;
  color: var(--nx-muted);
  font-size: 1.05rem;
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 10px;
  margin: 22px 0;
  max-width: 560px;
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input[type="search"] {
  flex: 1 1 220px;
  border: 1px solid var(--nx-border);
  border-radius: calc(var(--nx-radius) - 0.3rem);
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

.search-box input[type="search"]:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--nx-accent);
  outline-offset: 2px;
}

.search-box button {
  border: none;
  background: var(--nx-accent);
  color: #fff;
  font-weight: 700;
  border-radius: calc(var(--nx-radius) - 0.3rem);
  padding: 10px 20px;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.search-note {
  font-size: 0.85rem;
  color: var(--nx-muted);
  margin-top: -8px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0 36px;
}

.entity-card, .place-card {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.entity-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: var(--nx-surface-muted);
}

.place-card:hover, .entity-card a.card-link:hover { border-color: var(--nx-primary); }

.card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: hsl(202 40% 95%);
  color: var(--nx-primary-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-distance {
  background: hsl(14 60% 94%);
  color: hsl(14 70% 38%);
}

.tag-virtual {
  background: hsl(265 45% 94%);
  color: hsl(265 45% 38%);
}

.entity-card h3 { margin: 0; font-size: 1.05rem; font-family: var(--nx-font-display); }

.entity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--nx-muted);
}

.entity-desc { color: var(--nx-muted); font-size: 0.92rem; margin: 0; }

.card-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--nx-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.place-card strong { font-family: var(--nx-font-display); font-size: 1.1rem; }
.place-card span { color: var(--nx-muted); font-size: 0.85rem; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 28px;
}

.category-chip {
  display: inline-block;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nx-primary-dark);
  background: var(--nx-card);
}

.category-chip:hover { border-color: var(--nx-primary); }

.map-placeholder {
  border: 1px dashed var(--nx-border);
  border-radius: var(--nx-radius);
  background: hsl(202 40% 96%);
  color: var(--nx-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  margin: 24px 0 36px;
  font-size: 0.9rem;
}

/* --- Interactive map/discovery experience (Phase 4) --------------------- */

.map-experience {
  margin: 24px 0 36px;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  overflow: hidden;
  background: var(--nx-card);
}

/* Hidden by default -- only JS-only controls that require the client
   script to function. The bootstrap script in Document.tsx adds
   the js-enabled class to <html> as soon as JS runs, revealing these;
   if JS is unavailable, none of these ever render, so nothing looks
   broken. */
.js-only { display: none; }
html.js-enabled .js-only { display: flex; }

.map-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nx-border);
  background: hsl(202 30% 98%);
}

.map-controls label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nx-muted);
}

.map-controls select {
  border: 1px solid var(--nx-border);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}

.btn-secondary {
  border: 1px solid var(--nx-border);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nx-primary-dark);
  cursor: pointer;
}

.btn-secondary:hover { border-color: var(--nx-primary); }
.btn-secondary[aria-pressed="true"] { background: var(--nx-primary); color: #fff; border-color: var(--nx-primary); }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.map-canvas {
  height: 420px;
  background: hsl(202 40% 96%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nx-muted);
  font-size: 0.9rem;
  padding: 24px;
  text-align: center;
}

.map-status {
  margin: 0;
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--nx-muted);
  min-height: 1.4em;
}

.map-experience.map-list-mode .map-canvas { display: none; }

.map-info-window { font-size: 0.85rem; max-width: 220px; }
.map-info-window h4 { margin: 0 0 4px; font-size: 0.95rem; }
.map-info-window a { color: var(--nx-primary-dark); font-weight: 700; }

.entity-card.map-highlighted {
  border-color: var(--nx-primary);
  box-shadow: 0 0 0 2px hsl(202 60% 80%);
}

.near-me-widget {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
}

.near-me-results {
  margin-top: 12px;
}

.map-results {
  padding: 0 18px 18px;
  margin: 0;
}

.map-results[hidden] { display: none; }

@media (max-width: 640px) {
  .map-canvas { height: 300px; }
  .map-controls { padding: 12px; }
}

.empty-state {
  border: 1px dashed var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 28px;
  text-align: center;
  color: var(--nx-muted);
  margin: 18px 0 36px;
}

.notfound-banner {
  background: hsl(14 70% 96%);
  border: 1px solid hsl(14 60% 85%);
  color: hsl(14 70% 32%);
  border-radius: var(--nx-radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.location-choice-panel {
  background: var(--nx-card);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 20px;
  margin-bottom: 20px;
}

.location-choice-panel h2 { margin-bottom: 4px; }
.location-choice-panel p { margin: 0 0 14px; color: var(--nx-muted); }
.location-choice-panel ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.location-choice-panel a {
  display: inline-flex;
  padding: 9px 14px;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  color: var(--nx-primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.location-choice-panel a:hover { border-color: var(--nx-primary); color: var(--nx-primary); }

.site-footer {
  border-top: 1px solid var(--nx-border);
  margin-top: 60px;
  padding: 32px 0 48px;
  color: var(--nx-muted);
  font-size: 0.85rem;
}

.site-footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

main { padding-bottom: 40px; }

.aeo-content {
  margin-top: 28px;
  margin-bottom: 34px;
  display: grid;
  gap: 22px;
}

.aeo-summary,
.aeo-category-context,
.aeo-faq {
  max-width: 760px;
}

.aeo-summary {
  border-left: 4px solid var(--nx-primary);
  background: hsl(202 52% 97%);
  border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  padding: 22px 24px;
}

.aeo-summary p:last-child,
.aeo-category-context p,
.aeo-faq p {
  color: var(--nx-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.aeo-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

.aeo-facts div {
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  padding: 16px;
  background: var(--nx-card);
}

.aeo-facts dt {
  color: var(--nx-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.aeo-facts dd {
  margin: 7px 0 0;
  color: var(--nx-primary-dark);
  font-family: var(--nx-font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.aeo-faq {
  display: grid;
  gap: 14px;
}

.aeo-faq article {
  border-top: 1px solid var(--nx-border);
  padding-top: 14px;
}

.aeo-faq h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.aeo-freshness,
.aeo-source-note {
  margin: 0;
  color: var(--nx-muted);
  font-size: 0.82rem;
}

.aeo-nearby-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.aeo-nearby-links a {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  color: var(--nx-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.notfound-main {
  text-align: center;
  padding: 80px 24px;
}

.notfound-main a {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--nx-primary);
  text-decoration: none;
}

.custom-page { padding: 20px 0 72px; }
.custom-page-article { max-width: 860px; }
.custom-page-header { max-width: 760px; margin: 34px 0 42px; }
.custom-page-header h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.04em; }
.custom-page-excerpt { max-width: 62ch; color: var(--nx-muted); font-size: 1.15rem; }
.custom-page-featured-image { width: 100%; max-height: 520px; object-fit: cover; margin-top: 26px; border-radius: var(--nx-radius); }
.custom-page-body { max-width: 72ch; font-size: 1rem; line-height: 1.75; }
.custom-page-body h2 { margin-top: 2.2em; font-size: 1.75rem; color: var(--nx-primary-dark); }
.custom-page-body h3 { margin-top: 1.8em; color: var(--nx-primary-dark); }
.custom-page-body p, .custom-page-body ul, .custom-page-body ol, .custom-page-body blockquote { margin: 1.1em 0; }
.custom-page-body blockquote { padding: 12px 22px; border-left: 4px solid var(--nx-accent); background: hsl(14 70% 97%); color: var(--nx-muted); }
.custom-page-body img { max-width: 100%; height: auto; border-radius: var(--nx-radius); }
.custom-page-body a { color: var(--nx-primary); font-weight: 700; }
.custom-page-body code { padding: 2px 5px; border-radius: 4px; background: hsl(202 30% 93%); }
.custom-page-cta { display: inline-flex; gap: 10px; align-items: center; margin-top: 34px; padding: 12px 20px; border-radius: 999px; background: var(--nx-primary-dark); color: #fff; text-decoration: none; font-weight: 700; }
.custom-page-faq { max-width: 72ch; margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--nx-border); }
.custom-page-faq > div { padding: 18px 0; border-bottom: 1px solid var(--nx-border); }
.custom-page-faq h3 { margin: 0 0 8px; font-size: 1.05rem; }
.custom-page-faq p { margin: 0; color: var(--nx-muted); }
.custom-page-landing .custom-page-article { max-width: 1040px; }
.custom-page-landing .custom-page-header { max-width: 900px; text-align: center; margin-inline: auto; }
.custom-page-landing .custom-page-body { margin-inline: auto; }
.custom-page-resource .custom-page-body { padding: 28px; background: #fff; border: 1px solid var(--nx-border); border-radius: var(--nx-radius); }

@media (max-width: 640px) {
  .nav-wrap { flex-wrap: wrap; }
  .main-nav { gap: 14px; font-size: 0.88rem; }
  .custom-page { padding-top: 4px; }
  .custom-page-header { margin-top: 20px; }
  .custom-page-resource .custom-page-body { padding: 20px; }
}

/* Shared public shell: keep SSR discovery pages on the same grid and visual
   hierarchy as the SPA without changing their progressive enhancement. */
:root {
  --nx-shell-width: 1180px;
  --nx-gutter: 32px;
  --nx-radius: 3px;
  --nx-primary: #0174BA;
  --nx-primary-dark: #2D3940;
  --nx-ink: #2D3940;
  --nx-slate: #5D6A72;
  --nx-cream: #F6F9FC;
  --nx-line: #DCE8EE;
  --nx-coral: #F07951;
  --nx-coral-text: #A6452C;
  --nx-gold: #E0CB40;
}

body { color: var(--nx-ink); background: var(--nx-cream); }
.shell {
  width: min(var(--nx-shell-width), calc(100% - (var(--nx-gutter) * 2)));
  max-width: var(--nx-shell-width);
  padding: 0;
}
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 0;
  background: var(--nx-cream);
}
.nav-wrap {
  min-height: 86px;
  padding: 0;
  gap: 30px;
}
.brand { flex: 0 0 auto; color: var(--nx-ink); }
.brand-logo { width: auto; height: 37px; object-fit: contain; }
.main-nav {
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.main-nav a { color: var(--nx-ink); }
.main-nav a:hover, .admin-link:hover { color: var(--nx-coral); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.admin-link {
  color: var(--nx-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-cta {
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid var(--nx-primary);
  border-radius: 3px;
  background: var(--nx-primary);
  font-size: 12px;
  line-height: 1;
}
.nav-cta:hover { background: var(--nx-ink); border-color: var(--nx-ink); }
.mobile-nav { display: none; }
.breadcrumbs {
  gap: 10px;
  margin: 28px auto 20px;
  color: #84928c;
  font-size: 11px;
}
.breadcrumbs a { color: var(--nx-coral-text); }
.breadcrumbs span[aria-current] { color: var(--nx-ink); }
.page-hero { padding: 30px 0 34px; }
.page-hero .eyebrow { color: var(--nx-coral-text); }
.page-hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  color: var(--nx-ink);
  font-size: clamp(46px, 6vw, 72px);
  letter-spacing: -.055em;
}
.page-intro {
  max-width: 620px;
  margin: 0;
  color: var(--nx-slate);
  font-size: 16px;
  line-height: 1.55;
}
.discovery-filters { margin-bottom: 14px; }
.search-box {
  width: min(100%, 760px);
  max-width: none;
  min-height: 67px;
  margin: 0;
  padding: 8px;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(10,22,36,.06);
}
.search-box input[type="search"] {
  min-height: 47px;
  border-color: transparent;
  border-radius: 2px;
  background: var(--nx-cream);
}
.search-box input[type="search"]:focus-visible { border-color: var(--nx-primary); }
.search-box button {
  min-height: 47px;
  border-radius: 3px;
  background: var(--nx-primary);
}
.search-box button:hover { background: var(--nx-ink); }
.near-me-widget { margin: 0 0 20px; }
.near-me-widget .btn-secondary,
.btn-secondary {
  min-height: 39px;
  padding: 0 16px;
  border-radius: 3px;
  border-color: var(--nx-line);
}
.btn-secondary[aria-pressed="true"] { background: var(--nx-primary); border-color: var(--nx-primary); }
.map-experience {
  margin: 6px 0 0;
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(10,22,36,.06);
}
.map-controls {
  gap: 14px;
  padding: 13px 18px;
  background: var(--nx-cream);
}
.map-controls select {
  min-height: 36px;
  border-radius: 3px;
  background: var(--nx-card);
}
.map-canvas { height: 430px; padding: 20px; }
.map-results {
  padding: 20px;
  margin: 0;
  border-top: 1px solid var(--nx-line);
}
.results-section { margin-top: 48px; }
.results-section + .results-section { margin-top: 34px; }
.results-section .section-heading {
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--nx-line);
}
.results-section .section-heading h2,
.browse-section .section-heading h2 {
  margin: 0;
  color: var(--nx-ink);
  font-size: 26px;
  letter-spacing: -.035em;
}
.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.entity-card, .place-card {
  min-width: 0;
  border-radius: 3px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(10,22,36,.035);
}
.entity-card:hover, .place-card:hover {
  border-color: var(--nx-primary);
  transform: translateY(-2px);
}
.entity-image { border-radius: 2px; }
.tag {
  min-height: 23px;
  padding: 0 8px;
  border-radius: 2px;
  color: var(--nx-primary);
  background: #E8F4FA;
  font-size: 10px;
  letter-spacing: .02em;
}
.tag-distance { color: #9a4d36; background: #fae2da; }
.tag-virtual { color: #5a4a87; background: #f0ecfa; }
.entity-card h3 { color: var(--nx-ink); font-size: 17px; }
.entity-meta { color: #75857e; }
.card-link { color: var(--nx-primary); }
.category-chip-row {
  gap: 8px;
  margin: 0 auto 20px;
}
.category-chip {
  min-height: 39px;
  padding: 0 14px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  color: var(--nx-ink);
  font-size: 12px;
}
.category-chip:hover {
  color: var(--nx-primary);
  border-color: var(--nx-primary);
  background: #fff;
}
.browse-section { margin-top: 48px; }
.browse-section .section-heading { margin-bottom: 18px; }
.place-card { gap: 7px; }
.empty-state {
  border-radius: 3px;
  background: rgba(231,238,225,.42);
}
.aeo-content {
  margin-top: 58px;
  margin-bottom: 0;
  padding-top: 34px;
  border-top: 1px solid var(--nx-line);
}
.aeo-summary { border-radius: 0 3px 3px 0; }
.site-footer {
  margin-top: 72px;
  padding: 34px 0 46px;
  background: #fff;
}

@media (max-width: 900px) {
  :root { --nx-gutter: 22px; }
  .nav-wrap { gap: 20px; }
  .main-nav, .admin-link, .nav-cta { display: none; }
  .nav-actions { gap: 11px; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nx-line);
    color: var(--nx-ink);
    background: transparent;
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    line-height: 1;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { color: #fff; background: var(--nx-primary); border-color: var(--nx-primary); }
  .mobile-nav > nav {
    position: absolute;
    top: 48px;
    right: 0;
    z-index: 20;
    width: min(280px, calc(100vw - 44px));
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nx-line);
    box-shadow: 0 12px 30px rgba(10,22,36,.13);
  }
  .mobile-nav > nav a {
    padding: 13px;
    color: var(--nx-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-nav > nav a:hover { color: var(--nx-coral-text); }
  .mobile-nav > nav .mobile-nav-cta {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    background: var(--nx-gold);
  }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero h1 { font-size: clamp(44px, 7vw, 62px); }
}

@media (max-width: 700px) {
  :root { --nx-gutter: 18px; }
  .nav-wrap { min-height: 72px; flex-wrap: nowrap; }
  .brand-logo { height: 34px; max-width: 145px; }
  .main-nav, .admin-link, .nav-cta { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--nx-line);
    color: var(--nx-ink);
    background: transparent;
    cursor: pointer;
    list-style: none;
    font-size: 19px;
    line-height: 1;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary { color: #fff; background: var(--nx-primary); border-color: var(--nx-primary); }
  .mobile-nav > nav {
    position: absolute;
    top: 44px;
    right: 0;
    z-index: 20;
    width: min(280px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--nx-line);
    box-shadow: 0 12px 30px rgba(10,22,36,.13);
  }
  .mobile-nav > nav a {
    padding: 13px;
    color: var(--nx-ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
  }
  .mobile-nav > nav a:hover { color: var(--nx-coral); }
  .mobile-nav > nav .mobile-nav-cta {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    background: var(--nx-gold);
  }
  .breadcrumbs { margin-top: 20px; margin-bottom: 16px; line-height: 1.5; }
  .page-hero { padding-top: 20px; padding-bottom: 28px; }
  .page-hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .page-intro { font-size: 15px; }
  .search-box { width: 100%; flex-direction: column; }
  .search-box input[type="search"], .search-box button { width: 100%; flex-basis: auto; }
  .near-me-widget { align-items: stretch; flex-direction: column; }
  .near-me-widget .btn-secondary { width: 100%; }
  .category-chip-row { margin-bottom: 16px; }
  .category-chip { min-height: 42px; }
  .map-canvas { height: 320px; }
  .map-controls { align-items: stretch; flex-direction: column; }
  .map-controls label, .map-controls button { min-height: 40px; }
  .map-controls label { justify-content: space-between; }
  .map-controls select { min-height: 40px; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .results-section, .browse-section { margin-top: 38px; }
  .results-section + .results-section { margin-top: 30px; }
  .map-results { padding: 14px; }
  .aeo-content { margin-top: 46px; padding-top: 26px; }
  .site-footer { margin-top: 54px; }
  .site-footer .footer-row { align-items: flex-start; flex-direction: column; }
}
