:root {
  --sea-deep: #173b4a;
  --sea-glass: #79aeb0;
  --sea-mist: #e9f0ed;
  --foam: #fbfaf5;
  --tile: #a65343;
  --sand: #d8bf91;
  --ink: #20343a;
  --muted: #4c5c64;
  --copy-ink: #000000;
  --line: rgba(23,59,74,.18);
  --mist-paper: rgba(248, 247, 239, .54);
  --mist-paper-strong: rgba(251, 250, 245, .68);
  --ticket-accent: #a65343;
}

body.soft {
  --foam: #FFF9F7;
  --sea-mist: #EBDDE0;
  --sea-deep: #55434B;
  --tile: #9D5B53;
  --sand: #D5B98F;
  --ink: #4A3A40;
  --muted: #6E5B62;
  --copy-ink: #45363D;
  --mist-paper: rgba(255, 245, 243, .66);
  --mist-paper-strong: rgba(255, 249, 247, .84);
  --ticket-accent: #9D5B53;
}

body.soft .qd-scenery {
  filter: saturate(.82) brightness(1.04) sepia(.08) hue-rotate(-5deg);
}

body.soft .hero,
body.soft .compass-surface,
body.soft .prep-surface,
body.soft .spot-header,
body.soft .guide-section,
body.soft .invalid-spot {
  background: linear-gradient(135deg, var(--mist-paper-strong), var(--mist-paper));
}

body.soft .route-recommendations,
body.soft .coastline-index,
body.soft .food-entry,
body.soft .food-header,
body.soft .food-locator,
body.soft .food-catalogue {
  border-color: color-mix(in srgb, var(--sea-glass) 46%, transparent);
  background: linear-gradient(145deg, var(--mist-paper-strong), var(--mist-paper));
  box-shadow: 0 20px 54px rgba(75, 52, 60, .14);
}

body.soft .route-hint,
body.soft .route-hint::after {
  border-color: color-mix(in srgb, var(--sea-deep) 34%, transparent);
  background: var(--mist-paper-strong);
  color: var(--sea-deep);
}

body.soft .route-food-stop {
  border-color: color-mix(in srgb, var(--tile) 70%, transparent);
  background: linear-gradient(135deg, rgba(235, 202, 179, .38), var(--mist-paper-strong));
}

body.soft .bottle-note {
  border-color: color-mix(in srgb, var(--tile) 58%, transparent);
  background: linear-gradient(135deg, rgba(221, 194, 166, .34), var(--mist-paper-strong));
}

body.soft .spot-gallery img {
  filter: saturate(.94) sepia(.04);
}

body.soft .action-footer {
  border-top-color: color-mix(in srgb, var(--sea-glass) 50%, transparent);
  background: color-mix(in srgb, var(--foam) 90%, transparent);
  box-shadow: 0 -12px 38px rgba(75, 52, 60, .13);
}

body.soft .route-preview__close {
  border-color: var(--sand);
  color: var(--foam);
}

body.soft .route-preview__close:hover,
body.soft .route-preview__close:focus-visible {
  background: color-mix(in srgb, var(--sand) 24%, transparent);
}

body.soft .tide-scale button:hover {
  background: color-mix(in srgb, var(--sea-glass) 16%, transparent);
}

body.soft .red-tile-sign {
  border-color: var(--tile);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--sea-deep) 18%, transparent);
}

body.soft .compass-surface[data-location-state="permission-denied"] .location-status,
body.soft .compass-surface[data-location-state="position-unavailable"] .location-status,
body.soft .compass-surface[data-location-state="timeout"] .location-status,
body.soft .compass-surface[data-location-state="low-accuracy"] .location-status,
body.soft .compass-surface[data-location-state="out-of-range"] .location-status,
body.soft .compass-surface[data-location-state="configuration-error"] .location-status,
body.soft .compass-surface[data-location-state="insecure-context"] .location-status,
body.soft .compass-surface[data-location-state="unsupported"] .location-status {
  color: #9B4C4C;
}

body[data-page="landing"],
body[data-page="spot"] { overscroll-behavior-y: none; }

* { box-sizing: border-box; }

html { background: #102f3c; color: var(--ink); font-family: ui-serif, Georgia, "Noto Serif SC", serif; }

body { min-height: 100svh; min-width: 320px; margin: 0; background: transparent; overflow-x: clip; }

button,
a { font: inherit; }

button { cursor: pointer; }

[hidden] { display: none !important; }

.city-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 42px) 42px;
}

.city-switch {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--sea-deep);
  font-size: .9rem;
  text-decoration-color: var(--sea-glass);
  text-underline-offset: 4px;
}

.hero {
  margin: clamp(26px, 6vw, 52px) 0 22px;
  border: 1px solid rgba(238, 248, 245, .52);
  background: linear-gradient(145deg, var(--mist-paper-strong), rgba(226, 238, 230, .66));
  box-shadow: 0 24px 70px rgba(9, 35, 46, .16);
  padding: clamp(34px, 8vw, 70px) clamp(22px, 6vw, 48px) clamp(38px, 9vw, 70px);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}

.eyebrow,
.section-mark { margin: 0 0 12px; color: var(--tile); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .73rem; font-weight: 700; letter-spacing: .12em; }

.hero h1,
.compass-surface h2,
.prep-surface h2,
.invalid-spot h1 { margin: 0; color: var(--sea-deep); font-size: clamp(2.7rem, 11vw, 5.6rem); font-weight: 600; letter-spacing: -.07em; line-height: .95; }

.hero p:last-child { max-width: 30rem; margin: 24px 0 0; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.18rem); line-height: 1.8; }

.compass-surface,
.prep-surface,
.spot-surface,
.invalid-spot {
  border: 1px solid rgba(238, 248, 245, .46);
  background: linear-gradient(135deg, var(--mist-paper-strong), var(--mist-paper));
  box-shadow: 0 18px 48px rgba(9, 35, 46, .13);
  padding: 28px clamp(20px, 5vw, 36px) 30px;
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}

.compass-surface,
.prep-surface { margin-bottom: 22px; }

.hero,
.compass-surface {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.compass-surface h2,
.prep-surface h2 { font-size: clamp(1.8rem, 7vw, 3rem); letter-spacing: -.055em; line-height: 1.06; }

.compass-surface > p:not(.section-mark):not(.privacy-note):not(.location-status),
.privacy-note,
.invalid-spot p { max-width: 38rem; color: var(--muted); line-height: 1.75; }

.privacy-note { font-size: .91rem; }

.primary-control,
.secondary-control,
.amap-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--sea-deep);
  border-radius: 0;
  padding: 0 20px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-control { width: 100%; margin-top: 16px; background: var(--sea-deep); color: var(--foam); }
.secondary-control { background: transparent; color: var(--sea-deep); }
.amap-control { background: var(--tile); border-color: var(--tile); color: var(--foam); }
.primary-control:hover,
.primary-control:focus-visible { background: var(--tile); border-color: var(--tile); }
.secondary-control:hover,
.secondary-control:focus-visible { background: var(--sea-mist); }
.amap-control:hover,
.amap-control:focus-visible { background: var(--sea-deep); border-color: var(--sea-deep); }
.primary-control:active,
.secondary-control:active,
.amap-control:active { transform: translateY(1px); }

.location-status { min-height: 1.5em; margin: 14px 0 0; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }
.location-status:empty { display: none; min-height: 0; margin: 0; }

.manual-picker { min-width: 0; margin-top: 16px; border-left: 3px solid var(--sand); padding: 2px 0 2px 14px; color: var(--muted); line-height: 1.7; }
.manual-picker [data-manual-list] { width: 100%; }
.manual-spot { color: var(--sea-deep); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 700; text-decoration-color: var(--sea-glass); text-underline-offset: 4px; }
.manual-spot:hover,
.manual-spot:focus-visible { color: var(--tile); }
.nearby-choices { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.nearby-choices__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nearby-choices__head .section-mark { margin: 0; }
.nearby-choices .secondary-control { min-height: 38px; padding: 0 12px; font-size: .78rem; }
.route-recommendations {
  margin: 34px 0 22px;
  border: 1px solid rgba(238, 248, 245, .64);
  background: linear-gradient(145deg, rgba(251, 250, 245, .84), rgba(226, 238, 230, .76));
  box-shadow: 0 20px 54px rgba(9, 35, 46, .18);
  padding: clamp(20px, 5vw, 32px);
  -webkit-backdrop-filter: blur(28px) saturate(1.12);
  backdrop-filter: blur(28px) saturate(1.12);
}
.route-recommendations h2 { margin: 0; color: var(--sea-deep); font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.06em; line-height: 1; }
.route-intro { max-width: 42rem; margin: 16px 0 22px; color: var(--muted); line-height: 1.75; }
.route-hint { position: relative; width: fit-content; max-width: 100%; margin: 0 0 22px; border: 1px solid rgba(23, 59, 74, .24); border-radius: 999px; background: rgba(251, 250, 245, .76); color: var(--sea-deep); padding: 7px 13px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.45; }
.route-hint::after { content: ''; position: absolute; left: 20px; bottom: -7px; width: 12px; height: 12px; border-right: 1px solid rgba(23, 59, 74, .24); border-bottom: 1px solid rgba(23, 59, 74, .24); background: rgba(251, 250, 245, .76); transform: rotate(45deg); }
.route-list { display: grid; gap: 18px; }
.route-card { display: grid; grid-template-columns: minmax(118px, .65fr) 1fr; gap: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.route-card__preview { display: block; min-width: 0; border: 0; padding: 0; background: transparent; }
.route-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid rgba(238, 248, 245, .6); box-shadow: 0 14px 32px rgba(9, 35, 46, .12); }
.route-card__preview:hover img { filter: brightness(.88); }
.route-card__preview:focus-visible { outline: 3px solid var(--tile); outline-offset: 4px; }
.route-card__body { min-width: 0; }
.route-card__eyebrow { margin: 0 0 8px; color: var(--tile); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .74rem; font-weight: 700; letter-spacing: .12em; }
.route-card h3 { margin: 0; color: var(--sea-deep); font-size: clamp(1.45rem, 5vw, 2.15rem); letter-spacing: -.05em; }
.route-card__title-link { color: inherit; text-decoration: underline; text-decoration-color: var(--sea-glass); text-decoration-thickness: .08em; text-underline-offset: .14em; }
.route-card__title-link:hover { text-decoration-color: currentColor; }
.route-card__title-link:focus-visible { outline: 3px solid var(--tile); outline-offset: 4px; }
.route-card__body > p:not(.route-card__eyebrow) { margin: 12px 0 14px; color: var(--muted); line-height: 1.7; }
.route-card__nodes { display: flex; flex-wrap: wrap; gap: 7px 10px; }
.route-card__nodes a { color: var(--sea-deep); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; text-decoration-color: var(--sea-glass); text-underline-offset: 3px; }
.coastline-index,
.food-entry,
.food-header,
.food-locator,
.food-catalogue {
  border: 1px solid rgba(238, 248, 245, .64);
  background: linear-gradient(145deg, rgba(251, 250, 245, .88), rgba(226, 238, 230, .74));
  box-shadow: 0 20px 54px rgba(9, 35, 46, .15);
  padding: clamp(20px, 5vw, 32px);
}
.coastline-index,
.food-entry { margin: 22px 0; }
.coastline-index h2,
.food-entry h2,
.food-header h1,
.food-locator h2,
.food-catalogue h2 { margin: 0; color: var(--sea-deep); letter-spacing: -.055em; line-height: 1.05; }
.coastline-index h2,
.food-header h1 { font-size: clamp(2.1rem, 8vw, 4rem); }
.coastline-index h2 a { color: inherit; text-decoration-color: var(--sea-glass); text-underline-offset: .16em; }
.coastline-index > p:not(.section-mark),
.food-entry > p:not(.section-mark),
.food-header > p:not(.section-mark),
.food-locator > p:not(.location-status),
.food-catalogue > p:not(.section-mark) { color: var(--muted); line-height: 1.75; }
.coastline-index__sections { display: grid; gap: 10px; margin-top: 18px; }
.coastline-index__sections section { border-left: 3px solid var(--sea-glass); padding: 4px 0 4px 12px; }
.coastline-index__sections h3 { margin: 0; color: var(--sea-deep); font: 700 .88rem/1.45 ui-sans-serif, system-ui, sans-serif; }
.coastline-index__sections p { margin: 5px 0 0; color: var(--copy-ink); font-size: .9rem; line-height: 1.65; }
.coastline-index__link,
.food-entry__link,
.food-card__map { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 18px; background: var(--sea-deep); color: var(--foam); padding: 0 16px; font: 700 .88rem/1 ui-sans-serif, system-ui, sans-serif; text-decoration: none; }
.coastline-index__link:hover,
.coastline-index__link:focus-visible,
.food-entry__link:hover,
.food-entry__link:focus-visible,
.food-card__map:hover,
.food-card__map:focus-visible { background: var(--tile); }
.food-shell { padding-top: 28px; }
.food-header { margin-top: 28px; }
.food-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  margin-top: 20px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 245, .72);
  padding: 4px;
}
.food-tabs button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font: 700 .86rem/1 ui-sans-serif, system-ui, sans-serif;
}
.food-tabs button[aria-selected="true"] { background: var(--sea-deep); color: var(--foam); }
.food-tabs button:hover { color: var(--tile); }
.food-tabs button[aria-selected="true"]:hover { color: var(--foam); }
.food-locator,
.food-catalogue { margin-top: 18px; }
.food-locator h2,
.food-catalogue h2 { font-size: clamp(1.75rem, 7vw, 2.8rem); }
.food-locator .secondary-control { width: 100%; margin-top: 10px; }
.food-list { display: grid; gap: 14px; margin-top: 18px; }
.food-card { border: 1px solid var(--line); background: rgba(251, 250, 245, .72); padding: 18px; }
.food-card--featured { border-color: var(--tile); box-shadow: 0 10px 28px rgba(166, 83, 67, .14); }
.food-card__eyebrow { margin: 0 0 7px; color: var(--tile); font: 700 .75rem/1.35 ui-sans-serif, system-ui, sans-serif; letter-spacing: .09em; }
.food-card h3 { margin: 0; color: var(--sea-deep); font-size: 1.42rem; letter-spacing: -.04em; }
.food-card__branch,
.food-card__address,
.food-card__note { margin: 8px 0 0; color: var(--copy-ink); line-height: 1.65; }
.food-card__branch { color: var(--sea-deep); font-weight: 700; }
.food-card__note { color: var(--muted); font-size: .9rem; }
.drink-card .food-card__note { max-width: 34rem; }
.drink-tip {
  border-left: 3px solid var(--tile);
  background: rgba(255, 248, 238, .88);
  color: var(--copy-ink);
  padding: 13px 14px;
  font-size: .9rem;
  line-height: 1.65;
}
.route-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.route-shortcut { border-top: 2px solid var(--tile); padding-top: 12px; }
.route-shortcut h3 { margin: 0; color: var(--sea-deep); font-size: 1.15rem; }
.route-shortcut p { margin: 8px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.route-shortcut__nodes { color: var(--sea-deep) !important; font-family: ui-sans-serif, system-ui, sans-serif; }
.route-preview { width: min(92vw, 680px); max-width: 92vw; max-height: calc(100svh - 24px); overflow: auto; border: 1px solid rgba(238, 248, 245, .48); background: rgba(12, 31, 40, .94); color: var(--foam); box-shadow: 0 24px 72px rgba(0, 0, 0, .48); padding: 0; }
.route-preview::backdrop { background: rgba(5, 18, 25, .72); }
.route-preview__frame { position: relative; padding: 18px; }
.route-preview__title { margin: 0 46px 14px 0; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .9rem; font-weight: 700; }
.route-preview img { display: block; width: 100%; max-height: 82vh; object-fit: contain; }
.route-preview__close { position: absolute; top: 12px; right: 12px; min-height: 36px; border: 1px solid rgba(238, 248, 245, .7); background: transparent; color: var(--foam); padding: 0 10px; }
.route-preview__close:hover { background: rgba(238, 248, 245, .16); }
.route-preview__close:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.route-shell { min-height: 100svh; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.route-header,
.route-chooser {
  margin-top: clamp(28px, 8vw, 72px);
  border: 1px solid rgba(238, 248, 245, .72);
  background: rgba(251, 250, 245, .94);
  box-shadow: 0 20px 54px rgba(9, 35, 46, .18);
  padding: clamp(24px, 6vw, 44px);
}
.route-header h1,
.route-chooser h1 { margin: 0; color: var(--sea-deep); font-size: clamp(2.5rem, 10vw, 5.2rem); font-weight: 600; letter-spacing: -.07em; line-height: .95; }
.route-header__summary,
.route-chooser > p:not(.section-mark) { max-width: 38rem; margin: 22px 0 0; color: var(--copy-ink); line-height: 1.85; }
.route-chooser__list { display: grid; gap: 10px; margin-top: 24px; }
.route-chooser__link,
.route-stop__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sea-deep);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  text-decoration-color: var(--tile);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.route-chooser__link:hover,
.route-chooser__link:focus-visible,
.route-stop__link:hover,
.route-stop__link:focus-visible { color: var(--tile); }
.route-stops {
  --route-rail-indent: clamp(24px, 5vw, 38px);
  position: relative;
  display: grid;
  gap: 20px;
  margin: 22px 0 0;
  padding: 0 0 0 var(--route-rail-indent);
  list-style: none;
}
.route-stops::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(2px - var(--route-rail-indent));
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tile), var(--sea-glass) 45%, var(--sand));
  opacity: .82;
}
.route-stop {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(238, 248, 245, .72);
  background: rgba(251, 250, 245, .94);
  box-shadow: 0 14px 36px rgba(9, 35, 46, .13);
  padding: clamp(22px, 5vw, 34px);
}
.route-stop::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(2px - var(--route-rail-indent));
  width: 12px;
  height: 12px;
  border: 3px solid var(--tile);
  border-radius: 50%;
  background: var(--foam);
  box-shadow: 0 0 0 4px rgba(251, 250, 245, .64);
}
.route-stop__time { margin: 0 0 8px; color: var(--tile); font: 700 .84rem/1.35 ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; }
.route-stop__segment { margin: 0 0 12px; color: var(--sea-deep); font: 700 .78rem/1.35 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; }
.route-stop__sequence { margin: 0 0 10px; color: var(--tile); font: 700 .76rem/1.25 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; }
.route-stop__name { margin: 0; color: var(--sea-deep); font-size: clamp(1.7rem, 6vw, 2.5rem); letter-spacing: -.05em; line-height: 1.05; }
.route-stop__label { margin: 10px 0 0; color: var(--copy-ink); font: 700 .9rem/1.55 ui-sans-serif, system-ui, sans-serif; }
.route-stop__reason { margin: 14px 0 0; color: var(--copy-ink); line-height: 1.8; }
.route-stop__next { margin: 14px 0 0; border-left: 3px solid var(--sea-glass); background: var(--sea-mist); color: var(--copy-ink); padding: 10px 12px; line-height: 1.7; }
.route-stop__link { margin-top: 12px; }
.route-food-stop { border: 1px dashed var(--tile); background: rgba(255, 248, 238, .88); padding: clamp(18px, 4vw, 26px); }
.route-food-stop__eyebrow { margin: 0 0 8px; color: var(--tile); font: 700 .76rem/1.35 ui-sans-serif, system-ui, sans-serif; letter-spacing: .1em; }
.route-food-stop__name { margin: 0; color: var(--sea-deep); font-size: clamp(1.35rem, 5vw, 1.85rem); letter-spacing: -.04em; }
.route-food-stop__branch,
.route-food-stop__note { margin: 8px 0 0; color: var(--copy-ink); line-height: 1.65; }
.route-food-stop__note { color: var(--muted); }
.route-food-stop__link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 12px; color: var(--sea-deep); font: 700 .88rem/1 ui-sans-serif, system-ui, sans-serif; text-decoration-color: var(--tile); text-underline-offset: 4px; }
.spot-gallery { margin: 26px 0; }
.spot-gallery figure { margin: 0; }
.spot-gallery img { display: block; width: 100%; max-height: 520px; object-fit: cover; border: 1px solid rgba(238, 248, 245, .58); box-shadow: 0 18px 42px rgba(9, 35, 46, .14); }
.spot-gallery figcaption { margin-top: 10px; color: var(--muted); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .82rem; line-height: 1.65; }
.compass-surface[data-location-state="locating"] { animation: compass-drift 1.8s ease-in-out infinite; }
.compass-surface[data-location-state="locating"] .location-status { color: var(--sea-deep); font-weight: 700; }
.compass-surface[data-location-state="ready"] .location-status { color: var(--tile); font-size: 1rem; font-weight: 700; }
.compass-surface[data-location-state="permission-denied"] .location-status,
.compass-surface[data-location-state="position-unavailable"] .location-status,
.compass-surface[data-location-state="timeout"] .location-status,
.compass-surface[data-location-state="low-accuracy"] .location-status,
.compass-surface[data-location-state="out-of-range"] .location-status,
.compass-surface[data-location-state="configuration-error"] .location-status,
.compass-surface[data-location-state="insecure-context"] .location-status,
.compass-surface[data-location-state="unsupported"] .location-status { color: #9d3f34; font-weight: 700; }

@keyframes compass-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.preparation-list { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.preparation-list li { border-top: 1px solid var(--line); padding: 15px 0; color: var(--ink); line-height: 1.65; }
.preparation-list li::before { content: "~"; margin-right: 10px; color: var(--tile); font-weight: 700; }

.distance { color: var(--tile); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
.invalid-spot { margin-top: clamp(50px, 14vw, 112px); }
.invalid-spot h1 { font-size: clamp(2.2rem, 8vw, 4.2rem); }

.action-footer { position: sticky; z-index: 20; bottom: 0; border-top: 1px solid rgba(238, 248, 245, .54); background: color-mix(in srgb, var(--foam) 86%, transparent); box-shadow: 0 -12px 38px rgba(9, 35, 46, .16); -webkit-backdrop-filter: blur(22px) saturate(1.16); backdrop-filter: blur(22px) saturate(1.16); }
.action-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.action-footer .location-status { grid-column: 1 / -1; margin-top: 0; }

@media (min-width: 560px) {
  .compass-surface { display: grid; grid-template-columns: 1fr 1.35fr; column-gap: 36px; align-items: start; }
  .compass-surface .section-mark { grid-column: 1; grid-row: 1; }
  .compass-surface h2,
  .compass-surface > p,
  .compass-surface > button,
  .compass-surface > div { grid-column: 2; }
  .compass-surface h2 { grid-row: 1 / span 1; }
  .action-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .route-card { grid-template-columns: 92px 1fr; gap: 13px; }
  .route-shortcuts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .route-preview { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
  .route-preview__frame { padding: 14px; }
  .route-preview img { max-height: calc(100svh - 104px); }
  .route-shell { padding-top: 14px; }
  .route-header,
  .route-chooser { margin-top: 20px; padding: 22px 20px; }
  .route-stops { --route-rail-indent: 24px; gap: 14px; margin-top: 14px; }
  .route-stop { padding: 20px 18px; }
  .route-stop::before { top: 24px; width: 12px; height: 12px; }
  .route-stop__link { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Qingdao food page: illustrated warm dining and cool summer drinks */
body[data-page="food"] { background: #f4b459; }

.food-shell {
  --scene-page: #f4b459;
  --scene-surface: rgba(255, 246, 225, .92);
  --scene-surface-strong: #fff4d8;
  --scene-ink: #5f3028;
  --scene-muted: #7a4b39;
  --scene-line: rgba(119, 61, 39, .22);
  --scene-accent: #d95835;
  --scene-action: #8c3928;
  position: relative;
  isolation: isolate;
  max-width: 1120px;
  min-height: 100svh;
  overflow: clip;
  padding: 22px clamp(20px, 6vw, 66px) 24px;
  color: var(--scene-ink);
}

.food-shell[data-category="food"] {
  --food-scene-warm: #f2a246;
  --scene-page: #f4b459;
  --scene-surface: rgba(255, 246, 225, .92);
  --scene-surface-strong: #fff4d8;
  --scene-ink: #5f3028;
  --scene-muted: #7a4b39;
  --scene-line: rgba(119, 61, 39, .22);
  --scene-accent: #d95835;
  --scene-action: #8c3928;
}

.food-shell[data-category="drink"] {
  --drink-scene-cool: #4aaeb8;
  --scene-page: #72c6cf;
  --scene-surface: rgba(239, 252, 251, .92);
  --scene-surface-strong: #effcfb;
  --scene-ink: #174b63;
  --scene-muted: #3d7180;
  --scene-line: rgba(23, 75, 99, .2);
  --scene-accent: #2e98a7;
  --scene-action: #167286;
}

body[data-page="food"].soft .food-shell[data-category="food"] {
  --scene-page: #D99A79;
  --scene-surface: rgba(255, 240, 231, .95);
  --scene-surface-strong: #FFF2E8;
  --scene-ink: #5A3731;
  --scene-muted: #785A53;
  --scene-line: rgba(110, 64, 53, .22);
  --scene-accent: #B85E4B;
  --scene-action: #7A4035;
}

body[data-page="food"].soft .food-shell[data-category="drink"] {
  --scene-page: #7CAEB3;
  --scene-surface: rgba(238, 248, 247, .95);
  --scene-surface-strong: #F4FBFA;
  --scene-ink: #294F5A;
  --scene-muted: #54747C;
  --scene-line: rgba(41, 79, 90, .24);
  --scene-accent: #3F8F96;
  --scene-action: #2C6875;
}

body[data-page="food"].soft .food-shell[data-category="food"] .food-scene-header::before {
  background: linear-gradient(90deg, rgba(255, 242, 228, .99) 0%, rgba(255, 242, 228, .9) 36%, rgba(255, 242, 228, .28) 70%, rgba(255, 242, 228, 0) 100%);
}

body[data-page="food"].soft .food-shell[data-category="drink"] .food-scene-header::before {
  background: linear-gradient(90deg, rgba(239, 250, 249, .99) 0%, rgba(239, 250, 249, .9) 36%, rgba(239, 250, 249, .3) 70%, rgba(239, 250, 249, 0) 100%);
}

.food-shell::before,
.food-shell::after {
  content: '';
  position: fixed;
  pointer-events: none;
  inset: -10vh -8vw;
}

.food-shell::before {
  z-index: -2;
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 250, 214, .6), transparent 20%),
    radial-gradient(circle at 12% 78%, rgba(213, 80, 48, .23), transparent 28%),
    var(--scene-page);
  transition: background 520ms cubic-bezier(.2, .8, .2, 1);
}

.food-shell[data-category="drink"]::before {
  background:
    radial-gradient(circle at 84% 14%, rgba(248, 255, 255, .76), transparent 20%),
    radial-gradient(circle at 13% 78%, rgba(43, 155, 171, .3), transparent 29%),
    var(--scene-page);
}

.food-shell::after {
  z-index: -1;
  opacity: .45;
  background: repeating-radial-gradient(ellipse at 40% 110%, transparent 0 28px, rgba(255, 245, 210, .36) 29px 31px, transparent 32px 62px);
  animation: food-scene-wave 16s ease-in-out infinite alternate;
}

.food-shell[data-category="drink"]::after {
  background: repeating-radial-gradient(ellipse at 48% 110%, transparent 0 25px, rgba(237, 255, 255, .5) 26px 28px, transparent 29px 56px);
  animation-name: drink-scene-wave;
}

.food-shell .city-switch {
  color: var(--scene-ink);
  text-decoration-color: var(--scene-accent);
}

.food-shell > [data-warm-mode-toggle] {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--scene-ink, #41322d);
  padding: 8px 16px;
  font: 700 0.78rem/1 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(91, 49, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.food-shell > [data-warm-mode-toggle]:not(.on):not([aria-pressed="true"]):hover,
.food-shell > [data-warm-mode-toggle]:not(.on):not([aria-pressed="true"]):focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: var(--scene-ink, #41322d);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(91, 49, 32, 0.14), inset 0 1px 0 #fff;
}

.food-shell > [data-warm-mode-toggle]:active {
  transform: translateY(0) scale(0.96);
}

.food-shell > [data-warm-mode-toggle].on,
.food-shell > [data-warm-mode-toggle][aria-pressed="true"] {
  background: var(--scene-action, #7A4035) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 4px 16px rgba(91, 49, 32, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

.food-shell > [data-warm-mode-toggle].on:hover,
.food-shell > [data-warm-mode-toggle][aria-pressed="true"]:hover,
.food-shell > [data-warm-mode-toggle].on:focus-visible,
.food-shell > [data-warm-mode-toggle][aria-pressed="true"]:focus-visible {
  background: var(--scene-accent, #B85E4B) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(91, 49, 32, 0.4) !important;
}

.food-scene-header {
  position: relative;
  clear: both;
  min-height: 360px;
  margin-top: clamp(40px, 8vw, 78px);
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 28px;
  background: var(--scene-surface);
  box-shadow: 0 24px 56px rgba(91, 49, 32, .2);
  padding: clamp(30px, 6vw, 64px) clamp(24px, 7vw, 78px) 44px;
  overflow: hidden;
  transition: background-color 520ms ease, box-shadow 520ms ease;
}

.food-scene-art,
.food-scene-header::before,
.food-scene-header::after {
  position: absolute;
  pointer-events: none;
  inset: 0;
}

.food-scene-art { z-index: 0; overflow: hidden; }
.food-scene-art__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1);
}
.food-shell[data-category="food"] .food-scene-art__image--food { opacity: 1; transform: scale(1); animation: food-scene-heat 14s ease-in-out infinite alternate; }
.food-shell[data-category="drink"] .food-scene-art__image--drink { opacity: 1; transform: scale(1); animation: drink-scene-chill 15s ease-in-out infinite alternate; }

.food-scene-header::before {
  content: '';
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 244, 214, .97) 0%, rgba(255, 244, 214, .87) 35%, rgba(255, 244, 214, .24) 68%, rgba(255, 244, 214, .02) 100%);
  transition: background 520ms ease;
}

.food-shell[data-category="drink"] .food-scene-header::before {
  background: linear-gradient(90deg, rgba(234, 251, 251, .97) 0%, rgba(234, 251, 251, .87) 35%, rgba(234, 251, 251, .26) 68%, rgba(234, 251, 251, .02) 100%);
}

.food-scene-header::after {
  content: '';
  z-index: 0;
  inset: auto -10% -38% 42%;
  height: 78%;
  border: 1px solid rgba(255, 238, 190, .7);
  border-radius: 50%;
  opacity: .58;
  transform: rotate(-12deg);
}

.food-shell[data-category="drink"] .food-scene-header::after {
  border-color: rgba(233, 255, 255, .78);
}

.food-scene-header > *:not(.food-scene-art) { position: relative; z-index: 1; }
.food-scene-header .section-mark { color: var(--scene-accent); }
.food-scene-header h1 {
  max-width: 8.5ch;
  color: var(--scene-ink);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  letter-spacing: -.075em;
  line-height: .96;
}
.food-scene-header > p:last-child {
  max-width: 30rem;
  margin-top: 20px;
  color: var(--scene-muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.72;
}

.food-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: min(100%, 344px);
  margin: -25px 0 0 24px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  padding: 5px;
  box-shadow: 0 12px 28px rgba(91, 49, 32, .14);
  overflow: hidden;
}

.food-tabs__indicator {
  position: absolute;
  z-index: 0;
  inset: 5px auto 5px 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--scene-action);
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1), background-color 520ms ease;
}
.food-shell[data-category="drink"] .food-tabs__indicator { transform: translateX(100%); }
.food-tabs__button {
  position: relative;
  z-index: 1;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--scene-muted);
  padding: 0 18px;
  font: 700 .92rem/1 ui-sans-serif, system-ui, sans-serif;
  transition: color 220ms ease, transform 180ms ease;
}
.food-tabs__button[aria-selected="true"] { color: #fffdf5; }
.food-tabs__button:hover,
.food-tabs__button:focus-visible { color: var(--scene-accent); }
.food-tabs__button[aria-selected="true"]:hover,
.food-tabs__button[aria-selected="true"]:focus-visible { color: #fffdf5; transform: scale(.98); }

.food-stage { position: relative; margin-top: 34px; }
.food-stage__panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms cubic-bezier(.2, .8, .2, 1), transform 520ms cubic-bezier(.2, .8, .2, 1);
}
.food-stage__panel.is-active { opacity: 1; transform: translateY(0); }
.food-shell.is-switching .food-stage__panel.is-active { transform: translateY(-4px); }

[data-category-panel="food"] {
  display: grid;
  grid-template-columns: minmax(230px, .76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 6vw, 66px);
  align-items: start;
}

.food-stage__panel > .food-locator,
.food-stage__panel > .food-catalogue,
.food-stage__panel.food-catalogue {
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 24px;
  background: var(--scene-surface);
  box-shadow: 0 18px 36px rgba(91, 49, 32, .13);
  padding: clamp(22px, 4vw, 34px);
  transition: background-color 520ms ease, box-shadow 520ms ease;
}

.food-locator { position: sticky; top: 18px; }
.food-locator h2,
.food-catalogue h2 { color: var(--scene-ink); }
.food-stage__panel > p:not(.section-mark),
.food-stage__panel .food-locator > p:not(.location-status) { color: var(--scene-muted); }
.food-stage__panel .section-mark { color: var(--scene-accent); }
.food-locator .primary-control,
.food-card__map {
  border: 1px solid var(--scene-action);
  border-radius: 999px;
  background: var(--scene-action);
  color: #fffdf5;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--scene-action) 24%, transparent);
}
.food-locator .primary-control:hover,
.food-locator .primary-control:focus-visible,
.food-card__map:hover,
.food-card__map:focus-visible { background: var(--scene-accent); border-color: var(--scene-accent); }
.food-locator .secondary-control {
  width: 100%;
  margin-top: 10px;
  border-color: var(--scene-line);
  border-radius: 999px;
  background: transparent;
  color: var(--scene-ink);
}
.food-locator .secondary-control:hover,
.food-locator .secondary-control:focus-visible { background: color-mix(in srgb, var(--scene-surface-strong) 78%, transparent); }
.food-stage__panel .location-status { color: var(--scene-muted); }

.food-list { display: grid; gap: 16px; margin-top: 22px; }
.food-card {
  border: 1px solid color-mix(in srgb, var(--scene-line) 76%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--scene-surface-strong) 78%, transparent);
  box-shadow: 0 10px 22px rgba(91, 49, 32, .08);
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.food-card--featured { border-color: var(--scene-accent); box-shadow: 0 14px 28px color-mix(in srgb, var(--scene-accent) 18%, transparent); }
.food-card:hover { border-color: var(--scene-accent); box-shadow: 0 14px 26px rgba(91, 49, 32, .14); transform: translateY(-3px); }
.food-card__eyebrow { color: var(--scene-accent); }
.food-card h3,
.food-card__branch,
.food-card__address { color: var(--scene-ink); }
.food-card__note { color: var(--scene-muted); }
.food-card__map { margin-top: 16px; min-height: 42px; padding: 0 16px; }

.food-expand-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--scene-line);
  border-radius: 999px;
  background: var(--scene-surface-strong);
  color: var(--scene-ink);
  padding: 10px 18px;
  font: 700 .86rem/1.3 ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(91, 49, 32, .12);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: bubble-pop-in 320ms cubic-bezier(.18, .89, .32, 1.28);
}
.food-expand-bubble:hover,
.food-expand-bubble:focus-visible {
  background: var(--scene-surface);
  border-color: var(--scene-accent);
  color: var(--scene-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(91, 49, 32, .18);
}
.food-expand-bubble__icon { font-size: 1rem; }

@keyframes bubble-pop-in {
  0% { opacity: 0; transform: scale(.9) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.drink-group + .drink-group { margin-top: 46px; }
.drink-group__title { color: var(--scene-ink); }
.drink-group__intro { color: var(--scene-muted); }
.drink-group__list { gap: 18px; }
.drink-card { min-width: 0; }
.drink-card--illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: start;
  gap: 18px;
}
.drink-card__content { min-width: 0; }
.drink-card__image-button {
  display: block;
  width: 126px;
  height: 164px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--scene-line) 82%, transparent);
  border-radius: 14px;
  background: var(--scene-surface-strong);
  cursor: zoom-in;
  box-shadow: 0 8px 18px rgba(38, 40, 30, .12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.drink-card__image-button:hover,
.drink-card__image-button:focus-visible {
  border-color: var(--scene-accent);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--scene-accent) 20%, transparent);
  transform: translateY(-2px);
}
.drink-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-image-modal {
  width: min(92vw, 760px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--scene-line) 76%, transparent);
  border-radius: 22px;
  color: var(--scene-ink);
  background: var(--scene-surface-strong);
  box-shadow: 0 28px 80px rgba(12, 35, 42, .32);
}
.food-image-modal::backdrop { background: rgba(7, 25, 31, .72); backdrop-filter: blur(5px); }
.food-image-modal__surface { display: grid; gap: 12px; padding: 16px; }
.food-image-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.food-image-modal__title { margin: 0; color: var(--scene-ink); font-weight: 700; }
.food-image-modal__close {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--scene-line);
  border-radius: 999px;
  background: transparent;
  color: var(--scene-ink);
  cursor: pointer;
}
.food-image-modal__close:hover,
.food-image-modal__close:focus-visible { border-color: var(--scene-accent); background: var(--scene-accent); color: #fff; }
.food-image-modal__image {
  display: block;
  width: 100%;
  max-height: calc(92vh - 84px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, .12);
}
.drink-tip {
  border: 0;
  border-left: 4px solid var(--scene-accent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--scene-surface-strong) 88%, transparent);
  color: var(--scene-ink);
  box-shadow: none;
}

@keyframes food-scene-heat {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-1.2%, -1%, 0); }
}
@keyframes drink-scene-chill {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.035) translate3d(-1.4%, 1%, 0); }
}
@keyframes food-scene-wave {
  from { transform: translate3d(-1%, 0, 0); opacity: .32; }
  to { transform: translate3d(2%, -1%, 0); opacity: .55; }
}
@keyframes drink-scene-wave {
  from { transform: translate3d(1%, 0, 0); opacity: .28; }
  to { transform: translate3d(-2%, -1%, 0); opacity: .56; }
}

@media (prefers-color-scheme: dark) {
  .food-shell[data-category="food"] {
    --scene-page: #663d2d;
    --scene-surface: rgba(86, 50, 36, .92);
    --scene-surface-strong: #754934;
    --scene-ink: #fff1d4;
    --scene-muted: #f1c89b;
    --scene-line: rgba(255, 230, 183, .26);
    --scene-action: #cc7542;
  }
  .food-shell[data-category="drink"] {
    --scene-page: #164d67;
    --scene-surface: rgba(25, 73, 94, .92);
    --scene-surface-strong: #205e77;
    --scene-ink: #e9ffff;
    --scene-muted: #b8e5e9;
    --scene-line: rgba(218, 255, 255, .25);
    --scene-action: #379fb0;
  }
  .food-scene-header::before { background: linear-gradient(90deg, rgba(77, 43, 33, .92) 0%, rgba(77, 43, 33, .78) 39%, rgba(77, 43, 33, .16) 70%, transparent 100%); }
  .food-shell[data-category="drink"] .food-scene-header::before { background: linear-gradient(90deg, rgba(17, 56, 76, .94) 0%, rgba(17, 56, 76, .78) 39%, rgba(17, 56, 76, .16) 70%, transparent 100%); }
  .food-shell > [data-warm-mode-toggle]:not(.on):not([aria-pressed="true"]),
  .food-tabs { background: rgba(30, 47, 49, .72); border-color: rgba(255, 255, 255, .2); }
}

@media (max-width: 720px) {
  .food-shell { padding-inline: 18px; }
  .food-scene-header { min-height: 324px; padding: 30px 24px 34px; }
  .food-scene-art__image { object-position: 64% center; }
  .food-scene-header::before { background: linear-gradient(90deg, rgba(255, 244, 214, .95) 0%, rgba(255, 244, 214, .78) 58%, rgba(255, 244, 214, .28) 100%); }
  .food-shell[data-category="drink"] .food-scene-header::before { background: linear-gradient(90deg, rgba(234, 251, 251, .96) 0%, rgba(234, 251, 251, .78) 58%, rgba(234, 251, 251, .28) 100%); }
  .food-scene-header h1 { max-width: 7ch; font-size: clamp(2.7rem, 13vw, 4rem); }
  .food-scene-header > p:last-child { max-width: 18rem; }
  .food-tabs { width: min(100%, 340px); margin: -22px auto 0; }
  [data-category-panel="food"] { display: block; }
  .food-locator { position: static; margin-bottom: 22px; }
  .drink-group__list { grid-template-columns: 1fr; }
  .drink-card--illustrated { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; }
  .drink-card__image-button { width: 104px; height: 138px; }
}

@media (max-width: 420px) {
  .drink-card--illustrated { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; }
  .drink-card__image-button { width: 88px; height: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .food-shell::after,
  .food-scene-art__image { animation: none !important; }
  .food-scene-art__image,
  .food-tabs__indicator,
  .food-stage__panel,
  .food-card,
  .food-shell > [data-warm-mode-toggle] { transition: none !important; }
}

.city-shell {
  isolation: isolate;
  padding-bottom: max(20px, calc(12px + env(safe-area-inset-bottom)));
}

.city-switch,
.manual-spot,
.distance {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

:focus-visible {
  outline: 3px solid var(--tile);
  outline-offset: 4px;
}

.hero { position: relative; }
.gull-post {
  position: absolute;
  z-index: -1;
  top: clamp(10px, 3vw, 32px);
  right: clamp(8px, 8vw, 78px);
  width: 112px;
  height: 56px;
  border-top: 2px solid rgba(23, 59, 74, .35);
  transform: rotate(-8deg);
}
.gull-post::before,
.gull-post::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 44px;
  height: 22px;
  border-top: 2px solid var(--sea-deep);
  border-radius: 50% 50% 0 0;
}
.gull-post::before { right: 16px; transform: rotate(18deg); }
.gull-post::after { right: -18px; transform: rotate(-18deg); }

.sea-compass {
  position: relative;
  overflow: hidden;
  border-color: rgba(166, 83, 67, .38);
}
.sea-compass::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -72px;
  bottom: -104px;
  width: 238px;
  aspect-ratio: 1;
  border: 1px solid rgba(23, 59, 74, .2);
  border-radius: 50%;
  background: repeating-conic-gradient(from 18deg, transparent 0 12deg, rgba(23, 59, 74, .09) 12deg 13deg, transparent 13deg 24deg);
}
.sea-compass::after {
  content: "N  ·  E  ·  S  ·  W";
  position: absolute;
  right: 12px;
  bottom: 22px;
  color: rgba(23, 59, 74, .46);
  font: 700 .62rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .18em;
}

.red-tile-sign {
  display: flex;
  align-items: end;
  gap: 5px;
  width: fit-content;
  margin: 20px 0 14px;
  color: var(--foam);
  background: var(--tile);
  border: 1px solid #7f3b31;
  box-shadow: 5px 5px 0 rgba(23, 59, 74, .14);
  padding: 10px 13px 8px;
  font: 800 .68rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .16em;
}
.red-tile-sign i { display: block; width: 8px; height: 8px; border: 1px solid rgba(251, 250, 245, .7); transform: rotate(45deg); }

.tide-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin: 0 0 24px;
}
.tide-scale button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 8px 5px;
  color: var(--sea-deep);
  background: transparent;
  font: 700 .78rem/1.2 ui-sans-serif, system-ui, sans-serif;
}
.tide-scale button:last-child { border-right: 0; }
.tide-scale button:hover { color: var(--tile); background: rgba(121, 174, 176, .12); }

.spot-shell.city-shell { padding-bottom: 0; }
.spot-view { padding-bottom: 12px; }
.spot-header {
  margin: 18px 0 22px;
  border: 1px solid rgba(238, 248, 245, .48);
  background: linear-gradient(145deg, var(--mist-paper-strong), var(--mist-paper));
  box-shadow: 0 18px 48px rgba(9, 35, 46, .14);
  padding: clamp(26px, 6vw, 46px) clamp(20px, 5vw, 36px);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}
.spot-district { margin: 0 0 10px; color: var(--tile); font: 700 .76rem/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .09em; }
.spot-title { margin: 0; color: var(--sea-deep); font-size: clamp(2.6rem, 12vw, 5.1rem); font-weight: 600; letter-spacing: -.075em; line-height: .92; }
.spot-lede { max-width: 33rem; margin: 20px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.8; }
.spot-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.travel-stamp {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--tile);
  padding: 3px 8px;
  color: var(--tile);
  font: 700 .72rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .05em;
  transform: rotate(-1.5deg);
}
.travel-stamp:nth-child(even) { transform: rotate(1.5deg); }

.guide-section,
.bottle-note {
  scroll-margin-top: 18px;
  border: 1px solid rgba(238, 248, 245, .42);
  padding: 27px clamp(20px, 5vw, 34px);
}
.guide-section {
  margin: 0 0 18px;
  background: linear-gradient(135deg, var(--mist-paper-strong), rgba(233, 240, 237, .7));
  box-shadow: 0 15px 38px rgba(9, 35, 46, .12);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
}
.guide-section h2 { margin: 0 0 12px; color: var(--sea-deep); font-size: clamp(1.45rem, 5vw, 2rem); letter-spacing: -.04em; }
.guide-section p,
.bottle-note p { margin: 0; color: var(--ink); line-height: 1.85; }
.guide-section p + p,
.bottle-note p { margin-top: 13px; }
.nearby-note { color: var(--copy-ink) !important; font-size: .93rem; }
.bottle-note {
  position: relative;
  margin: 24px 0;
  border: 1px solid rgba(166, 83, 67, .42);
  background: linear-gradient(135deg, rgba(216, 191, 145, .26), rgba(251, 250, 245, .88));
  padding: 22px 22px 22px 28px;
}
.bottle-note::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 18px; width: 2px; background: var(--tile); }
.bottle-note strong { color: var(--tile); font: 800 .83rem/1.2 ui-sans-serif, system-ui, sans-serif; letter-spacing: .08em; }
.official-links { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 14px; }
.official-links a { color: var(--sea-deep); font: 700 .82rem/1.5 ui-sans-serif, system-ui, sans-serif; text-decoration-color: var(--sea-glass); text-underline-offset: 3px; }
.official-links a:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; }
.coast-milepost { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.coast-milepost .location-status { grid-column: 1 / -1; }
.action-footer__inner,
.action-footer__inner.city-shell { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

@media (max-width: 520px) {
  .city-shell { padding-inline: 18px; }
  .gull-post { right: 18px; opacity: .72; }
  .sea-compass::before { right: -112px; bottom: -126px; }
  .tide-scale { margin-inline: -2px; }
  .tide-scale button { font-size: .72rem; }
  .action-footer__inner { padding-inline: 18px; }
  .coast-milepost { grid-template-columns: 1fr; }
  .coast-milepost .secondary-control { width: 100%; }
}

.qd-scenery { position: fixed; inset: 0; z-index: 0; width: 100vw; height: 100svh; overflow: hidden; background: #173b4a; pointer-events: none; }
.qd-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; will-change: opacity; }
.qd-scene.is-active { opacity: 1; }
.qd-scene svg { display: block; width: 100%; height: 100%; }

.ticket-rail { display: flex; gap: 12px; width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-color: var(--sand) transparent; padding: 10px clamp(2px, 2vw, 12px) 18px; }
.ticket-card {
  --ticket-accent: var(--tile);
  flex: 0 0 clamp(164px, 48vw, 190px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 148px;
  border: 1px solid rgba(166, 83, 67, .42);
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent 0 8px, rgba(166, 83, 67, .1) 8px 9px, transparent 9px),
    var(--mist-paper-strong);
  box-shadow: 5px 7px 0 rgba(23, 59, 74, .12);
  padding: 10px 12px 12px 18px;
  color: var(--sea-deep);
  text-decoration: none;
  font-family: ui-sans-serif, system-ui, sans-serif;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.ticket-card:hover,
.ticket-card:focus-visible {
  border-color: var(--tile);
  box-shadow: 7px 10px 0 rgba(23, 59, 74, .16);
  transform: translateY(-4px);
}
.ticket-card__art { flex: 1 1 auto; display: grid; place-items: center; width: 100%; color: var(--sea-deep); }
.ticket-card__art svg { display: block; width: 100%; max-height: 86px; }
.ticket-card__name { display: block; margin-top: 5px; color: var(--sea-deep); font-size: .78rem; font-weight: 700; line-height: 1.35; text-align: center; }

@keyframes qd-water-breathe {
  0%, 100% { transform: translate3d(-4px, 0, 0); }
  50% { transform: translate3d(7px, -3px, 0); }
}

@keyframes qd-air-drift {
  0%, 100% { transform: translate3d(-3px, 1px, 0) rotate(-.3deg); }
  50% { transform: translate3d(6px, -5px, 0) rotate(.4deg); }
}

@keyframes qd-grass-sway {
  0%, 100% { transform: skewX(-.6deg); }
  50% { transform: skewX(1.2deg); }
}

.qd-scene.is-active [data-scene-depth="near"] .qd-wave { animation: qd-water-breathe 7s ease-in-out infinite; }
.qd-scene.is-active [data-scene-depth="near"] .qd-gull,
.qd-scene.is-active [data-scene-depth="near"] .qd-leaf { animation: qd-air-drift 8.5s ease-in-out infinite; transform-origin: center; }
.qd-scene.is-active [data-scene-depth="near"] .qd-grass-blades { animation: qd-grass-sway 6.5s ease-in-out infinite; transform-origin: bottom; }

@supports not (backdrop-filter: blur(1px)) and not (-webkit-backdrop-filter: blur(1px)) {
  .hero,
  .compass-surface,
  .prep-surface,
  .spot-header,
  .guide-section,
  .invalid-spot,
  .action-footer {
    background: rgba(251, 250, 245, .94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .compass-surface[data-location-state="locating"] { animation: none; }
  .qd-scene, .qd-wave, .qd-gull, .qd-leaf, .qd-grass, .ticket-card { animation: none !important; transition: none !important; }
}

.hero p:last-child,
.compass-surface > p:not(.section-mark):not(.privacy-note):not(.location-status),
.privacy-note,
.invalid-spot p,
.location-status,
.manual-picker,
.route-intro,
.route-card__body > p:not(.route-card__eyebrow),
.route-shortcut p,
.spot-gallery figcaption,
.spot-lede,
.nearby-note {
  color: var(--copy-ink);
  text-shadow: 0 1px 1px rgba(251, 250, 245, .62);
}

/* Romantic Easter Eggs */
.food-card__eyebrow--interactive,
.ticket-card__name--interactive {
  cursor: pointer;
  user-select: none;
  transition: transform 180ms ease, color 180ms ease;
}
.food-card__eyebrow--interactive:hover,
.ticket-card__name--interactive:hover {
  transform: scale(1.03);
}
.food-card__eyebrow--interactive.is-morphed,
.ticket-card__name--interactive.is-morphed {
  color: var(--scene-accent, #c95138);
  font-weight: 700;
  display: inline-block;
}

.polaroid-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  border: 1px solid var(--scene-line, rgba(23, 59, 74, 0.2));
  border-radius: 999px;
  background: var(--scene-surface-strong, rgba(255, 255, 255, 0.85));
  color: var(--scene-ink, #173b4a);
  padding: 4px 12px;
  font: 600 .76rem/1.2 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
  transition: transform 180ms ease, background-color 180ms ease;
}
.polaroid-trigger:hover {
  transform: translateY(-1px) scale(1.02);
  background: var(--scene-surface, #fff);
  border-color: var(--scene-accent, #c95138);
}

.polaroid-modal,
.drift-bottle-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  width: 360px;
  margin: auto;
  box-shadow: 0 24px 48px rgba(23, 59, 74, 0.28);
}
.polaroid-modal::backdrop,
.drift-bottle-modal::backdrop {
  background: rgba(23, 59, 74, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.polaroid-card {
  background: #faf8f5;
  border: 1px solid rgba(23, 59, 74, 0.15);
  border-radius: 20px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.polaroid-card__frame {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 16px 14px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}
.polaroid-card__badge {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #c95138;
  color: #fff;
  font: 700 0.72rem/1 system-ui, sans-serif;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(201, 81, 56, 0.3);
}
.polaroid-card__art {
  font-weight: 700;
  color: #173b4a;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.polaroid-card__quote {
  font-size: 0.88rem;
  color: #c95138;
  font-weight: 600;
  line-height: 1.5;
  margin: 12px 0 8px;
}
.polaroid-card__note {
  font-size: 0.76rem;
  color: #667c85;
}
.polaroid-card__close,
.drift-bottle-card__close {
  margin-top: 18px;
  width: 100%;
}

.drift-bottle-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(23, 59, 74, 0.2);
}
.drift-bottle-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.drift-bottle-card__icon {
  font-size: 1.5rem;
}
.drift-bottle-card__title {
  margin: 0;
  font-size: 1.1rem;
  color: #173b4a;
  font-weight: 700;
}
.drift-bottle-card__body p {
  margin: 8px 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #2c4a57;
}
.drift-bottle-card__ps {
  font-size: 0.82rem;
  color: #c95138;
  font-weight: 600;
  text-align: right;
  margin-top: 14px;
}
