/* Visit DC Now — /map/ page styles. Header/nav/footer reuse the homepage
   (index.html) look; map + list styles follow the app's in-app map. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Franklin:wght@700;800;900&display=swap');

:root {
  color-scheme: light dark;
  --paper: #f6f1e7;
  --surface: #fffdf8;
  --ink: #14213d;
  --muted: #535b69;
  --line: #d8d0c1;
  --blue: #173f73;
  --gold: #f0b44d;
  --green: #0e7c5b;
  --sans: "DM Sans", sans-serif;
  --display: "Libre Franklin", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101621;
    --surface: #171f2c;
    --ink: #f7f1e7;
    --muted: #c0c5ce;
    --line: #37404d;
    --blue: #9fc7f2;
    --gold: #f2bd5e;
    --green: #4db38a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; }
img { display: block; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }

/* Header — same markup as the homepage; solid navy bar instead of the
   absolute-over-hero placement, since this page has no hero photo. */
.topbar {
  position: relative; z-index: 10; background: #14213d;
  display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(18px, 4vw, 60px);
}
.brand img { display: block; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.nav {
  width: auto; max-width: min(1180px, 100%); display: flex; justify-content: flex-end; align-items: center; gap: 26px;
  color: white; font-weight: 700; text-shadow: 0 1px 15px rgba(0,0,0,.35);
  background: rgba(8,18,32,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 10px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: white; }
.nav a[aria-current="page"] { border-color: var(--gold); }
.nav .contact-link { border: 1px solid rgba(255,255,255,.72); border-radius: 999px; padding: 8px 16px; }
.nav .contact-link:hover { background: white; color: #14213d; text-shadow: none; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); color: white; background: rgba(8,18,32,.94); padding: 14px 24px; border-radius: 999px; font: 700 15px var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

/* Page */
.map-main { width: min(1180px, calc(100% - 32px)); margin: auto; padding: 28px 0 64px; }
.map-head h1 { margin: 0 0 6px; font: 900 clamp(1.9rem, 5vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; }
.map-head .lede { margin: 0 0 20px; color: var(--muted); max-width: 70ch; }

.map-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; font-family: var(--sans); }
.pill.on { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.pill.nearme { border-color: var(--gold); }

.nearme-fallback { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); border: 1px solid var(--gold); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 0 0 12px; flex-wrap: wrap; color: var(--ink); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
#map { height: 62vh; min-height: 380px; border-radius: 16px; border: 1px solid var(--line); z-index: 1; }
#map-note { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }

.map-list h2 { margin: 0 0 12px; font: 800 1.15rem var(--display); }
.map-list h2.food-head { margin-top: 22px; }
.spot { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); margin-bottom: 12px; scroll-margin-top: 20px; }
.spot.flash { outline: 3px solid var(--gold); outline-offset: 2px; }
.spot h3 { margin: 0 0 2px; font: 800 1.05rem/1.3 var(--display); letter-spacing: -.01em; }
.spot .cat { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }
.spot .dist { float: right; font-size: .8rem; font-weight: 700; color: var(--green); }
.spot p { margin: 6px 0; font-size: .92rem; }
.spot .tip { font-size: .88rem; color: var(--muted); }
.spot .meta { font-size: .85rem; color: var(--muted); }
.spot .badges { margin: 6px 0; }
.spot .badge { display: inline-block; background: var(--gold); color: #14213d; font-weight: 800; font-size: .72rem; border-radius: 999px; padding: 3px 10px; margin: 0 4px 4px 0; }
.spot .dirs { font-size: .88rem; font-weight: 700; color: var(--blue); }
.spot.food h3::before { content: "🍽 "; }

footer { background: #0a1220; color: rgba(255,255,255,.62); padding: 30px 20px; }
.footer-inner { width: min(1180px, 100%); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
footer p { margin: 0; font-size: .88rem; }
footer a { color: white; font-weight: 700; text-decoration-color: rgba(255,255,255,.45); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  #map { height: 56vh; min-height: 340px; }
}
@media (max-width: 850px) {
  .topbar { justify-content: space-between; }
  .nav-toggle { display: block; position: relative; z-index: 12; }
  .nav { display: none; position: absolute; top: 78px; right: 18px; width: min(290px, calc(100% - 36px)); padding: 18px; background: rgba(8,18,32,.96); box-shadow: 0 18px 50px rgba(0,0,0,.3); flex-direction: column; align-items: stretch; gap: 2px; text-shadow: none; border-radius: 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav .contact-link { margin-top: 6px; text-align: center; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
