@import url("./assets/fonts/fonts.css");

/* ==========================================================================
   Madeira Travel Companion — design system
   Editorial travel-magazine. Tokens synthesised from .stitch/DESIGN.md
   ========================================================================== */

:root {
  /* Colour */
  --primary: #00563e;
  --primary-container: #1f6f54;
  --on-primary: #ffffff;
  --on-primary-container: #a2efcd;
  --surface-mint: #e7fff1;
  --canvas: #faf9f5;
  --surface-container: #c8f9e0;
  --surface-low: #ceffe5;
  --white: #ffffff;
  --on-surface: #06251a;
  --on-surface-variant: #3f4944;
  --outline: #6f7973;
  --outline-variant: #bec9c2;
  --secondary: #1661a1;
  --secondary-container: #cfe2ff;
  --tertiary: #8b5700;
  --tertiary-fixed: #ffe7c6;
  --error: #ba1a1a;
  --error-container: #ffdad6;

  /* Category colours */
  --cat-base: #c0392b;
  --cat-hike: #1f6f54;
  --cat-culture: #2c6fb0;
  --cat-food: #b9770e;
  --cat-swim: #17a2b8;
  --cat-travel: #555555;

  /* Type */
  --serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radius / shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow: 0 18px 40px -16px rgba(0, 86, 62, 0.18);
  --shadow-soft: 0 8px 24px -12px rgba(0, 33, 21, 0.14);
  --shadow-nav: 0 -8px 32px rgba(0, 33, 21, 0.06);

  /* Layout */
  --max: 1180px;
  --gutter: 20px;
  --tabbar-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--on-surface);
  background: var(--canvas);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--tabbar-h); /* room for mobile tab bar */
}
@media (min-width: 960px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Visible keyboard focus (none was defined before) */
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 5px; }
/* headings receive scripted focus on view change — don't show a ring there */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
/* lighter ring for controls sitting on photos / dark surfaces */
.hero a:focus-visible, .daycard:focus-visible, .datepill:focus-visible,
.cta a:focus-visible, footer.site a:focus-visible { outline-color: #ffffff; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,33,21,.18); border-radius: 99px; }

/* ---------- typography helpers ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--primary);
}
.muted { color: var(--on-surface-variant); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 14px;
  letter-spacing: .02em; transition: transform .12s ease, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #044a36; }
.btn-ghost { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: rgba(0,86,62,.06); }
.btn-light { background: var(--white); color: var(--primary); box-shadow: var(--shadow-soft); }
.btn-block { width: 100%; }
.btn .ico { width: 19px; height: 19px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px; background: var(--white);
  border: .5px solid var(--outline-variant); box-shadow: var(--shadow-soft);
  font-size: 13.5px; font-weight: 500; color: var(--on-surface-variant); white-space: nowrap;
}
.chip .ico { width: 17px; height: 17px; color: var(--primary); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.actpill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: #1f3a30; color: color-mix(in srgb, var(--ac, #1f6f54) 62%, #06251a);
  background: #fff; background: color-mix(in srgb, var(--ac, #1f6f54) 13%, #fff);
  border: 1px solid #dfe7e2; border-color: color-mix(in srgb, var(--ac, #1f6f54) 34%, #fff); }
.actpill .ico { width: 15px; height: 15px; }

.badge.g-hard { background: var(--error-container); color: #8c0009; }
.badge.g-mod  { background: var(--surface-container); color: var(--primary); }
.badge.g-easy { background: var(--secondary-container); color: #00497f; }
.badge.g-neutral { background: #eceeec; color: var(--on-surface-variant); }

.mist {
  background: rgba(200, 249, 224, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: .5px solid rgba(111,121,115,.22);
}
.card-shadow { box-shadow: var(--shadow); }

/* ---------- icons ---------- */
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ico-fill { fill: currentColor; stroke: none; }

/* ==========================================================================
   App shell — top nav (desktop) + bottom tab bar (mobile)
   ========================================================================== */
.topnav {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(231,255,241,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: .5px solid rgba(190,201,194,.5); transition: box-shadow .25s;
}
.topnav.scrolled { box-shadow: var(--shadow-soft); }
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--primary);
  letter-spacing: -.01em; display: flex; align-items: center; gap: 9px;
}
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--primary);
  display: grid; place-items: center; color: #fff; font-size: 15px; }
.topnav .links { display: none; gap: 26px; align-items: center; }
.topnav .links a {
  font-size: 13.5px; letter-spacing: .04em; font-weight: 500; color: var(--on-surface-variant);
  padding-bottom: 3px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.topnav .links a:hover { color: var(--primary); }
.topnav .links a.active { color: var(--primary); border-color: var(--primary); }
@media (min-width: 960px) {
  .topnav { padding: 16px 40px; }
  .topnav .links { display: flex; }
}

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 9px 6px calc(env(safe-area-inset-bottom, 0px) + 9px);
  background: rgba(250,249,245,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: .5px solid var(--outline-variant); box-shadow: var(--shadow-nav);
  border-radius: 16px 16px 0 0;
}
.tabbar button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; min-width: 0;
  color: rgba(63,73,68,.7); font-size: 10.5px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap; transition: color .2s, transform .15s;
}
.tabbar button:active { transform: scale(.9); }
.tabbar button.active { color: var(--primary); font-weight: 600; }
.tabbar button.active .ico { stroke-width: 2; }
.tabbar .ico { width: 23px; height: 23px; }
@media (min-width: 960px) { .tabbar { display: none; } }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 960px) { .wrap { padding: 0 40px; } }
.view { display: none; animation: fade .35s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 92px 0; } }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(28px, 5vw, 44px); margin-bottom: 12px; }
.section-head p { color: var(--on-surface-variant); font-size: 16px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.hero.compact { min-height: 64vh; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hero-grad-bottom { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 78%); }
.hero-grad-left { position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(6,37,26,.78) 0%, rgba(6,37,26,.30) 45%, rgba(6,37,26,0) 80%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) 44px; max-width: var(--max); margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 8vw, 76px); line-height: 1.04; color: #fff; max-width: 14ch; }
.hero .lede { font-size: clamp(15px, 2.4vw, 19px); margin-top: 18px; max-width: 44ch; color: rgba(255,255,255,.9); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .glasspill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.hero .basepill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  background: rgba(31,111,84,.5); color: #eafff5; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600; margin-bottom: 14px; backdrop-filter: blur(6px);
}
.hero .day-eyebrow { margin-bottom: auto; }
@media (min-width: 960px) {
  .hero { align-items: center; }
  .hero-inner { padding-bottom: 0; }
}

/* ---------- stat bento ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px 16px; border-radius: var(--r); text-align: center; }
.stat .num { font-family: var(--serif); font-size: clamp(34px, 6vw, 48px); color: var(--primary); display: block; line-height: 1; }
.stat .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--on-surface-variant); margin-top: 8px; display: block; }

/* ---------- base cards ---------- */
.bases { display: grid; gap: 20px; }
@media (min-width: 760px) { .bases { grid-template-columns: 1fr 1fr; } }
.base-card { border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: var(--shadow-soft); transition: box-shadow .4s; }
.base-card:hover { box-shadow: var(--shadow); }
.base-card .img { height: 220px; overflow: hidden; }
.base-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.base-card:hover .img img { transform: scale(1.06); }
.base-card .body { padding: 24px; }
.base-card h3 { font-size: 28px; margin: 6px 0 10px; }
.base-card .focus { color: var(--on-surface-variant); font-size: 15px; }
.base-card .stay { font-size: 13.5px; color: var(--on-surface-variant); margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--outline-variant); }

/* ---------- day slider / grid ---------- */
.slider { display: flex; gap: 18px; overflow-x: auto; padding: 4px var(--gutter) 14px; scroll-snap-type: x mandatory; }
.slider::-webkit-scrollbar { display: none; }
.slider { -ms-overflow-style: none; scrollbar-width: none; }
.daycard { min-width: 270px; max-width: 270px; scroll-snap-align: start; cursor: pointer; }
.daycard .img { aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; position: relative; }
.daycard .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.daycard:hover .img img { transform: scale(1.08); }
.daycard .datepill { position: absolute; top: 12px; left: 12px; background: rgba(0,86,62,.88); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.daycard .meta { padding: 12px 4px 0; }
.daycard h4 { font-size: 19px; margin: 4px 0 8px; line-height: 1.15; }
.daycard .sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--on-surface-variant); }

/* days list (Days view) */
.daylist { display: grid; gap: 16px; }
@media (min-width: 720px) { .daylist { grid-template-columns: 1fr 1fr; } }
.dayrow { display: flex; gap: 16px; background: var(--white); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-soft); cursor: pointer; transition: box-shadow .3s, transform .15s; }
.dayrow:hover { box-shadow: var(--shadow); }
.dayrow:active { transform: scale(.995); }
.dayrow .img { width: 116px; flex: none; }
.dayrow .img img { width: 100%; height: 100%; object-fit: cover; }
.dayrow .body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.dayrow .eyebrow { margin-bottom: 4px; }
.dayrow h4 { font-size: 18px; line-height: 1.18; }
.dayrow .sub { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* ==========================================================================
   Hike cards
   ========================================================================== */
.hikegrid { display: grid; gap: 18px; }
@media (min-width: 680px) { .hikegrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .hikegrid { grid-template-columns: repeat(3, 1fr); } }
.hikecard { padding: 22px; border-radius: var(--r); display: flex; flex-direction: column; }
.hikecard .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hikecard .code { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }
.daypill { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px;
  padding: 6px 11px; min-height: 30px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--primary); color: #fff; }
.daypill .ico { width: 13px; height: 13px; }
.daypill-alt { background: #eceeec; color: var(--on-surface-variant); }
.hikecard h3 { font-size: 21px; margin: 6px 0 0; }
.hikecard .notes { color: var(--on-surface-variant); font-size: 13.5px; font-style: italic; margin: 12px 0 18px; }
.hikecard .figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 18px; }
.profile { margin-bottom: 20px; }
.profile-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.profile-alt { font-size: 11px; font-weight: 600; color: var(--on-surface-variant); }
.profile-svg { width: 100%; height: 62px; display: block; }
.profile-axis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--on-surface-variant); margin-top: 3px; }
.hikecard .fig { border-left: 1px solid var(--outline-variant); padding-left: 12px; }
.hikecard .fig .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-surface-variant); display: block; }
.hikecard .fig .v { font-weight: 700; font-size: 15px; }
.hikecard .actions { display: flex; gap: 10px; margin-top: auto; }
.hikecard .actions .btn { flex: 1; padding: 11px 16px; }
.iconbtn { width: 46px; height: 46px; flex: none; border-radius: 999px; border: 1px solid var(--outline-variant);
  display: grid; place-items: center; color: var(--primary); background: var(--white); transition: background .2s, transform .12s; }
.iconbtn:hover { background: var(--surface-low); }
.iconbtn:active { transform: scale(.92); }

/* Trails (routes) map on the Hikes view */
.trailmap-wrap { display: grid; gap: 16px; }
@media (min-width: 860px) { .trailmap-wrap { grid-template-columns: 1fr 320px; align-items: start; } }
#hikemap { height: 52vh; min-height: 320px; border-radius: var(--r); overflow: hidden; z-index: 1; }
.trail-legend { display: flex; flex-direction: column; gap: 7px; }
.trail-leg { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; cursor: pointer;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--white);
  border: .5px solid rgba(190,201,194,.5); box-shadow: var(--shadow-soft); transition: background .15s; }
.trail-leg:hover { background: var(--surface-low); }
.trail-leg .swatch { width: 16px; height: 5px; border-radius: 3px; flex: none; }
.trail-leg .t-name { font-size: 13px; flex: 1; min-width: 0; }
.trail-leg small { color: var(--on-surface-variant); font-size: 11px; white-space: nowrap; }

/* ==========================================================================
   Day detail — chips, actions, callout, timeline, stops
   ========================================================================== */
.dd-canvas { margin-top: -34px; position: relative; z-index: 3; }
.dd-chips { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 8px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.dd-chips::-webkit-scrollbar { display: none; }
.dd-actions { display: grid; gap: 12px; margin: 18px 0; }
@media (min-width: 560px) { .dd-actions { grid-template-columns: 1fr 1fr; } }

.callout { display: flex; gap: 14px; padding: 18px; border-radius: var(--r);
  background: var(--surface-low); border: 1px solid rgba(0,86,62,.12); }
.callout .ico { color: var(--primary); width: 24px; height: 24px; }
.callout p { font-size: 14.5px; color: var(--on-surface-variant); }
.callout .lbl { font-weight: 700; color: var(--primary); display: block; margin-bottom: 2px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em; }

.section-sub { font-family: var(--serif); font-size: 26px; margin: 30px 0 18px; }

.timeline { position: relative; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1.5px; background: var(--outline-variant); }
.tl-item { position: relative; padding-left: 38px; margin-bottom: 26px; }
.tl-item::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 4px solid var(--primary); z-index: 1; }
.tl-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft);
  border: .5px solid rgba(190,201,194,.5); }
.tl-card .img { height: 130px; }
.tl-card .img img { width: 100%; height: 100%; object-fit: cover; }
.tl-card .body { padding: 16px 18px; }
.tl-time { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 700; }
.tl-card h4 { font-size: 19px; margin: 5px 0 7px; }
.tl-card p { font-size: 14.5px; color: var(--on-surface-variant); }

.stops { display: grid; gap: 12px; }
.stop { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: .5px solid rgba(190,201,194,.5); border-radius: var(--r);
  padding: 14px 16px; box-shadow: var(--shadow-soft); }
.stop .info { display: flex; align-items: center; gap: 13px; min-width: 0; }
.stop .info h5 { font-family: var(--sans); font-weight: 600; font-size: 15.5px; }
.stop .info p { font-size: 12.5px; color: var(--on-surface-variant); }

/* ==========================================================================
   Map view
   ========================================================================== */
.map-shell { display: flex; flex-direction: column; }
.map-side { background: var(--canvas); padding: 18px var(--gutter); }
#map { height: 56vh; min-height: 320px; z-index: 1; order: -1; }
@media (min-width: 960px) {
  .map-shell { flex-direction: row; height: calc(100vh - 64px); }
  .map-side { width: 360px; flex: none; border-right: .5px solid var(--outline-variant); overflow-y: auto; min-height: 0; }
  #map { height: auto; flex: 1; order: 0; }
}
.dayfilter { display: flex; gap: 7px; overflow-x: auto; padding: 10px var(--gutter); background: var(--surface-mint);
  border-bottom: .5px solid var(--outline-variant);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent); }
.dayfilter::-webkit-scrollbar { display: none; }
.fbtn { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--outline-variant);
  background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 500;
  white-space: nowrap; color: var(--on-surface-variant); transition: .15s; }
.fbtn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 18px; }
.legend span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--on-surface-variant); }
.poi-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: var(--r-sm); cursor: pointer; }
.poi-row:hover { background: var(--surface-low); }
.poi-row .name { font-size: 13.5px; }
.poi-row .name small { color: var(--on-surface-variant); }
.poi-row .ml { margin-left: auto; }

.pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pin span { transform: rotate(45deg); color: #fff; font-size: 11px; font-weight: 700; }
.leaflet-popup-content { font-size: 13.5px; line-height: 1.45; }
.leaflet-popup-content b { color: var(--primary); }
.leaflet-popup-content .gmaps { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-weight: 600; }

/* ==========================================================================
   Food & wine
   ========================================================================== */
.food-grid { display: grid; gap: 18px; }
@media (min-width: 680px) { .food-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
.food-card { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.food-card .img { height: 168px; }
.food-card .img img { width: 100%; height: 100%; object-fit: cover; }
.food-card.noimg { background: color-mix(in srgb, var(--surface-container) 40%, #fff);
  border: 1px solid var(--outline-variant); box-shadow: none; }
.food-card .body { padding: 18px; }
.food-card h4 { display: flex; align-items: center; gap: 9px; font-size: 19px; margin-bottom: 7px; }
.fc-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--surface-low); color: var(--primary); flex: none; }
.fc-ic .ico { width: 17px; height: 17px; }
.food-card p { font-size: 13.5px; color: var(--on-surface-variant); }
.subhead { font-family: var(--serif); font-size: 24px; margin: 34px 0 18px; }
.subhead:first-child { margin-top: 0; }

.placelist { display: grid; gap: 12px; }
.placecard { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--white);
  border: .5px solid rgba(190,201,194,.5); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow-soft); }
.placecard h5 { font-family: var(--sans); font-weight: 600; font-size: 15.5px; }
.placecard .area { font-size: 12px; color: var(--primary); font-weight: 600; }
.placecard p { font-size: 13px; color: var(--on-surface-variant); margin-top: 2px; }

/* ==========================================================================
   Practical
   ========================================================================== */
.info-block { background: var(--white); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow-soft); margin-bottom: 18px; }
.info-block h3 { font-size: 21px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.info-block h3 .ico { color: var(--primary); }
.info-block p { color: var(--on-surface-variant); font-size: 15px; }
.checklist { list-style: none; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist .ico { color: var(--primary); margin-top: 2px; flex: none; }
.linkgrid { display: grid; gap: 10px; }
@media (min-width: 620px) { .linkgrid { grid-template-columns: 1fr 1fr; } }
.linkrow { display: flex; align-items: center; gap: 12px; padding: 15px 18px; background: var(--white);
  border: .5px solid rgba(190,201,194,.5); border-radius: var(--r); box-shadow: var(--shadow-soft);
  font-weight: 600; font-size: 14.5px; color: var(--on-surface); transition: background .2s; }
.linkrow:hover { background: var(--surface-low); }
.linkrow .ico { color: var(--primary); }
.linkrow .ml { margin-left: auto; color: var(--outline); }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */
.cta { background: var(--primary); color: #fff; border-radius: var(--r-xl); padding: 48px 28px; text-align: center;
  position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.9) 1px, transparent 1.4px); background-size: 18px 18px; }
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(28px, 5vw, 44px); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 26px; }
.cta .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

footer.site {
  background: var(--primary); color: #fff; padding: 56px var(--gutter) calc(var(--tabbar-h) + 28px);
}
@media (min-width: 960px) { footer.site { padding-bottom: 40px; } }
footer.site .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
footer.site .brand { color: #fff; }
footer.site .blurb { color: rgba(255,255,255,.8); font-size: 14px; max-width: 30ch; margin-top: 14px; }
footer.site .col h5 { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .14em;
  color: rgba(255,255,255,.7); margin-bottom: 12px; }
footer.site .col a { display: block; color: rgba(255,255,255,.85); font-size: 14px; padding: 5px 0; }
footer.site .col a:hover { color: #fff; }
footer.site .legal { max-width: var(--max); margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12.5px; color: rgba(255,255,255,.6); }

/* small helpers */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.offline-banner { position: fixed; bottom: calc(var(--tabbar-h) + 10px); left: 50%; transform: translateX(-50%);
  background: var(--on-surface); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13px; z-index: 2000;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.offline-banner.show { opacity: 1; }
@media (min-width: 960px) { .offline-banner { bottom: 20px; } }
