/* 原色票維持不變；版型、字體層級、元件及觸控操作的改版層。 */
:root { --page-width: 1200px; --display-font: "Noto Serif TC", "Songti TC", "PMingLiU", serif; }
html { scroll-padding-top: 100px; }
/* Keyboard focus must arrive immediately, without waiting for page scrolling. */
html:focus-within { scroll-behavior: auto; }
body { font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a, button, input, select, [tabindex] { scroll-margin-block: 110px 90px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible,
.custom-pin:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(var(--page-width), calc(100% - 80px)); }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.site-nav { background: var(--bg); backdrop-filter: none; }
.nav-inner { min-height: 82px; }
.brand { gap: 13px; }
.brand-mark { width: 42px; height: 44px; border-radius: 8px 8px 18px 8px; transform: none; font-family: var(--display-font); font-size: 24px; }
.brand-name { font-size: 19px; letter-spacing: .02em; }
.brand-name small { font-size: 11px; letter-spacing: .14em; font-weight: 500; }
.nav-links { gap: 30px; font-size: 14px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-cta { display: inline-flex; align-items: center; gap: 28px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--green); border-radius: 8px; font-size: 14px; font-weight: 700; }
.nav-cta:hover { background: var(--green-dark); }
.hero { padding: 66px 0 62px; }
.hero::before { display: none; }
.hero-grid { grid-template-columns: 1.12fr 1fr; gap: 76px; }
.place-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--green); font-size: 14px; letter-spacing: .1em; }
.location-dot { width: 9px; height: 9px; border: 2px solid var(--green); border-radius: 50%; }
.hero h1 { margin: 0 0 25px; color: var(--green-dark); font-family: var(--display-font); font-size: clamp(54px, 5.8vw, 82px); font-weight: 600; letter-spacing: .035em; line-height: 1.2; }
.hero-copy { max-width: 420px; font-size: 16px; line-height: 1.95; }
.hero-actions { margin-top: 30px; gap: 12px; }
.button { min-height: 50px; padding: 11px 22px; gap: 20px; border-radius: 8px; font-size: 14px; font-weight: 650; transition: background .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.secondary { border-color: var(--green); }
.hero-footnote { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 418px; padding-top: 25px; margin-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.hero-footnote a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; color: var(--green); }
.walk-postcard { position: relative; padding: 24px 28px 0; border: 1px solid var(--green); border-radius: 70px 8px 8px 8px; background: var(--green-soft); color: var(--green-dark); }
.postcard-top { display: flex; align-items: center; justify-content: space-between; padding-left: 16px; font-family: var(--display-font); font-size: 19px; letter-spacing: .18em; }
.postcard-stamp { display: grid; align-content: center; width: 57px; height: 57px; border: 1px solid var(--green); border-radius: 50%; font-size: 13px; line-height: 1.25; letter-spacing: .07em; text-align: center; }
.station-sketch { display: block; width: calc(100% + 20px); height: auto; margin: -2px -10px -3px; color: var(--green); }
.postcard-caption { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 10px 0 24px; }
.postcard-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.postcard-caption h2 { margin: 0; font-family: var(--display-font); font-size: 31px; font-weight: 600; letter-spacing: .04em; line-height: 1.25; }
.postcard-caption h2 span { font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif; font-size: 15px; font-weight: 450; letter-spacing: .08em; }
.round-link { flex-shrink: 0; width: 50px; height: 50px; border: 1px solid var(--green); border-radius: 50%; background: var(--yellow); color: var(--green-dark); font-size: 24px; transition: transform .18s ease; }
.round-link:hover { transform: translate(2px, -2px); }
.postcard-bottom { display: flex; justify-content: space-between; gap: 12px; margin-inline: -28px; padding: 14px 28px; border-top: 1px solid var(--green); font-size: 12px; }
.categories-section { padding: 30px 0 36px; border-block: 1px solid var(--line); background: var(--paper); }
.category-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.category-heading h2 { margin: 0; font-size: 26px; font-weight: 650; }
.category-heading p { margin: 0; font-size: 13px; color: var(--muted); }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.category-card { position: relative; align-items: flex-start; min-height: 110px; padding: 18px 22px; gap: 14px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; transition: background .16s ease; }
.category-card:first-child { padding-left: 0; }
.category-card:last-child { padding-right: 0; border-right: 0; }
.category-card:hover { background: var(--green-soft); }
.category-letter { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 48px; border-radius: 24px 24px 6px 6px; background: var(--yellow-soft); color: var(--green-dark); font-family: var(--display-font); font-size: 27px; font-weight: 600; }
.category-card h3 { margin: 2px 0 7px; font-size: 14px; font-weight: 650; }
.category-card p { font-size: 12px; line-height: 1.65; }
.category-count { display: block; margin-top: 8px; color: var(--green); font-size: 12px; }
.category-arrow { position: absolute; right: 10px; bottom: 7px; color: var(--green); font-size: 18px; }
.notice-wrap { padding-block: 22px 0; }
.demo-notice { padding: 0; gap: 10px; background: transparent; border: 0; border-radius: 0; color: var(--muted); font-size: 12px; }
.demo-notice strong { display: inline; margin-right: 12px; color: var(--green); font-weight: 600; }
.demo-icon { width: 20px; height: 20px; flex-basis: 20px; background: var(--yellow-soft); color: var(--green); }
section { padding: 64px 0; }
.map-section { padding-top: 58px; }
.section-head { margin-bottom: 28px; gap: 16px; }
.section-head h2 { margin: 0 0 10px; font-family: var(--display-font); font-size: clamp(28px, 3vw, 37px); font-weight: 600; letter-spacing: .02em; }
.section-head p { font-size: 14px; }
.section-link { display: inline-flex; align-items: center; gap: 30px; min-height: 44px; color: var(--green); font-size: 14px; white-space: nowrap; }
.map-shell { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.map-toolbar { padding: 20px 24px 12px; border: 0; gap: 24px; }
.filters { gap: 8px; }
.chip { min-width: 48px; min-height: 44px; padding: 8px 16px; border-radius: 8px; font-size: 15px; transition: background .16s ease, border-color .16s ease; }
.search-box { flex-basis: 350px; }
.search-box input { height: 48px; padding-left: 42px; border-radius: 8px; font-size: 15px; }
.search-box svg { display: block; width: 19px; height: 19px; }
.map-context { display: flex; align-items: center; gap: 12px; padding: 0 24px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.info-filters { display: flex; gap: 8px; margin-left: auto; }
.info-filters .text-button { min-height: 44px; padding: 6px 12px; text-decoration: underline; text-underline-offset: 4px; }
.info-filters [aria-pressed="true"] { background: var(--green-soft); text-decoration: none; }
.view-switch { display: none; }
.map-utility { padding: 6px 20px; background: var(--bg); }
.text-button { min-height: 44px; font-size: 12px; }
.map-layout { height: 620px; min-height: 0; grid-template-columns: minmax(0, 1.45fr) minmax(335px, .85fr); }
.map-frame { min-height: 0; height: 100%; }
.map-caption { font-size: 12px; padding: 7px 11px; bottom: 37px; }
.results-panel { height: 100%; min-height: 0; }
.results-head { flex-shrink: 0; padding: 18px 20px 12px; }
.results-head strong { font-size: 15px; }
.result-count { font-variant-numeric: tabular-nums; }
.spot-list { flex: 1 1 auto; min-height: 140px; max-height: none; padding: 0 12px 12px; overscroll-behavior: contain; scrollbar-width: thin; }
.spot-card-row { gap: 8px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.spot-card { grid-template-columns: 36px minmax(0, 1fr) 12px; gap: 10px; min-height: 76px; padding: 10px 6px; border-radius: 8px; transition: background .16s ease, border-color .16s ease; }
.spot-name { white-space: normal; font-size: 14px; font-weight: 650; line-height: 1.6; }
.spot-meta { margin-top: 3px; font-size: 12px; color: var(--green); }
.spot-number { width: 34px; height: 36px; border-radius: 6px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.spot-card[data-category="吃"] .spot-number { background: var(--yellow-soft); }
.add-route-button { min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--paper); font-size: 19px; }
.add-route-button[aria-pressed="true"] { background: var(--yellow-soft); border-color: var(--green); }
.add-route-button:hover { background: var(--green-soft); }
.selected-spot { position: relative; flex-shrink: 0; max-height: 300px; overflow-y: auto; margin: 0; padding: 20px; border-radius: 0; border-left: 0; border-top: 1px solid var(--line); background: var(--green-soft); scroll-margin-top: 100px; }
.selected-spot.has-selection { padding-right: 40px; }
.selected-top { flex-wrap: wrap; gap: 6px 10px; }
.selected-tag { padding: 3px 8px; border-radius: 5px; background: var(--paper); color: var(--green); font-size: 12px; }
.selected-hint { color: var(--muted); font-size: 11px; }
.selected-spot h3 { margin: 7px 0 8px; font-size: 18px; }
.selected-spot p { color: var(--ink); font-size: 13px; line-height: 1.85; }
.selected-spot #selectedAddress { margin-top: 10px; }
.selected-spot .selected-notes { margin-top: 8px; color: var(--muted); font-size: 12px; }
.selected-sources { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 6px; }
.selected-sources a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.selected-spot > .small-button { margin-top: 10px; }
.selected-title-row { display: flex; align-items: center; gap: 8px; }
.selected-title-row h3 { flex: 1; min-width: 0; }
.selected-details-toggle { flex-shrink: 0; min-height: 44px; padding: 6px; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.selected-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.selected-actions:has(:not([hidden])) { margin-top: 10px; }
.detail-close { position: absolute; right: 3px; top: 6px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--green); font-size: 24px; }
.small-button { min-height: 44px; border-radius: 8px; }
.small-button:hover { filter: none; background: var(--green-dark); color: white; }
.small-button.secondary:hover { background: var(--green-soft); color: var(--green-dark); }
.empty-state { padding: 38px 16px; }
.empty-state p { margin-top: 0; font-size: 14px; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--green-dark); font-size: 18px; }
.custom-pin[data-category="吃"] .pin-dot { background: var(--yellow); color: var(--green-dark); }
.custom-pin[data-category="住宿"] .pin-dot, .custom-pin[data-category="交通"] .pin-dot { background: var(--paper); color: var(--green); border-color: var(--green); }
.custom-pin .pin-dot.is-selected { background: var(--green-dark); color: white; outline: 2px solid var(--yellow); }
.custom-pin[data-route-order] .pin-dot { background: var(--green-dark); color: white; }
.maplibregl-popup-content { max-height: 330px; overflow-y: auto; border-radius: 10px; background: var(--paper); }
.maplibregl-popup-content .popup-meta { font-size: 13px; line-height: 1.7; }
.maplibregl-popup-content .small-button { margin: 4px 4px 0 0; }
.map-frame .maplibregl-popup-close-button { min-height: 44px; min-width: 44px; font-size: 21px; }
.map-frame .maplibregl-popup-content { padding-right: 44px; }
.maplibregl-ctrl-top-left .maplibregl-ctrl button { min-width: 44px; min-height: 44px; }
.planner-bar { padding: 24px; border-top: 1px solid var(--line); border-bottom: 0; background: var(--yellow-soft); gap: 15px; }
.planner-heading { gap: 18px; }
.planner-heading h3 { margin: 0 0 5px; color: var(--green-dark); font-size: 19px; font-weight: 650; }
.planner-heading p { font-size: 13px; }
.quick-routes { gap: 8px; }
.quick-routes button { padding: 9px 16px; border-color: var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.quick-routes button:hover { border-color: var(--green); }
.planner-bar .route-description { display: block; margin: 0; line-height: 1.8; }
.journey-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); gap: 24px; }
.journey-grid:not(:has(#routeResult:not([hidden]))) { grid-template-columns: 1fr; }
.journey-card { border-radius: 12px; padding: 26px; box-shadow: none; }
.journey-card h3 { font-size: 23px; }
.journey-card h4 { font-size: 15px; }
.journey-card .route-description, .route-description, .route-note { font-size: 13px; line-height: 1.8; }
.route-timeline p { font-size: 13px; }
.route-stop-name { min-height: 44px; }
.route-summary { gap: 18px; padding: 20px; border-radius: 8px; }
.route-summary strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.route-status { font-size: 13px; min-height: 24px; }
.journey-actions { gap: 8px; }
.my-route-controls { gap: 8px; }
.my-route-list:empty { display: none; }
.travel-section { background: var(--green-soft); border-block: 1px solid var(--line); }
.section-label { color: var(--green); font-size: 13px; }
.travel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.travel-card { min-width: 0; position: relative; padding-top: 20px; border-top: 1px solid var(--green); }
.travel-icon { float: right; color: var(--green); font-size: 28px; }
.travel-card h3 { margin: 0 0 16px; color: var(--green-dark); font-size: 24px; font-weight: 600; }
.travel-intro { max-width: 460px; margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.travel-place { padding-block: 16px; border-top: 1px solid var(--line); }
.travel-place h4 { margin: 0 0 6px; font-size: 17px; }
.travel-place p { margin: 4px 0; font-size: 13px; color: var(--muted); }
.travel-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.travel-links a, .travel-links button { display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.travel-footnote { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.walking-guide { padding-block: 60px; }
.route-panel { grid-template-columns: 1fr 1.5fr; gap: 55px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.route-intro { padding: 0; }
.route-intro h2 { font-family: var(--display-font); font-size: 33px; font-weight: 600; line-height: 1.5; letter-spacing: .03em; }
.route-intro .button { margin-top: 24px; }
.route-steps { grid-template-columns: 1fr; gap: 0; }
.route-step { display: grid; grid-template-columns: 42px 1fr; column-gap: 18px; min-height: auto; padding: 20px 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.step-num { grid-row: span 2; width: 36px; height: 36px; margin: 0; border-radius: 50%; background: var(--yellow-soft); color: var(--green); font-size: 14px; }
.route-step h3 { font-size: 16px; }
.route-step p { font-size: 13px; }
footer { padding: 35px 0; }
.footer-brand { font-size: 18px; }
.footer-brand small { margin-top: 8px; font-size: 12px; }
.footer-copy { font-size: 12px; line-height: 1.9; }
.route-planner { max-height: 88dvh; width: min(620px, calc(100% - 32px)); border-radius: 14px; padding: 28px; overscroll-behavior: contain; }
.planner-title h2 { font-size: 24px; }
.planner-input-grid { gap: 16px; }
.route-planner fieldset { margin-block: 24px; }
.interest-options { gap: 8px; }
.interest-options label { min-height: 46px; border-radius: 8px; font-size: 14px; }
.planner-category-hint { color: var(--muted); font-size: 12px; }
.planner-error { font-size: 14px; }
.planner-privacy { font-size: 12px; line-height: 1.8; }
.planner-submit { bottom: -28px; padding: 16px 0; }
.route-planner select { min-height: 48px; border-radius: 8px; }
.analytics-footer-button { min-height: 44px; }
.analytics-consent { bottom: 16px; }
.mobile-dock { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > div:first-child { animation: hero-enter .45s ease both; }
  .walk-postcard { animation: hero-enter .55s .07s ease both; }
  .selected-spot.has-selection { animation: detail-enter .18s ease; }
  @keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes detail-enter { from { opacity: .6; } to { opacity: 1; } }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: 64px; }
  .nav-links { gap: 18px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .category-card { padding: 14px !important; border: 1px solid var(--line); border-radius: 8px; }
  .category-card:last-child { border: 1px solid var(--line); }
  .category-card h3 { font-size: 15px; }
  .category-card p { font-size: 13px; }
  .category-arrow { right: 15px; bottom: 12px; }
  .map-layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
  .travel-grid { gap: 36px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .wrap { width: calc(100% - 36px); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  a, button, input, select, [tabindex] { scroll-margin-block: 90px 105px; }
  .nav-inner { min-height: 68px; gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 34px; height: 38px; font-size: 22px; }
  .brand-name { font-size: 16px; }
  .brand-name small { font-size: 10px; }
  .nav-links { gap: 0; }
  .nav-links a { display: none; }
  .nav-cta { padding: 9px 12px; gap: 8px; font-size: 12px; }
  .hero { padding: 36px 0 34px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .hero h1 { font-size: 49px; }
  .hero-copy { font-size: 14px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .button { width: 100%; min-height: 46px; padding: 10px 14px; }
  .hero-footnote { flex-wrap: wrap; padding-top: 14px; margin-top: 18px; gap: 0 8px; }
  .walk-postcard { padding-inline: 18px; border-top-left-radius: 48px; }
  .postcard-top { padding-left: 10px; font-size: 16px; }
  .postcard-stamp { width: 47px; height: 47px; font-size: 11px; }
  .postcard-caption h2 { font-size: 27px; }
  .postcard-caption h2 span { font-size: 13px; }
  .postcard-bottom { margin-inline: -18px; padding-inline: 18px; font-size: 11px; }
  .category-heading { align-items: start; flex-direction: column; gap: 5px; margin-bottom: 16px; }
  .categories-section { padding-block: 26px; }
  .category-heading h2 { font-size: 26px; }
  .notice-wrap { padding-top: 20px; }
  .demo-notice { font-size: 12px; line-height: 1.8; }
  .demo-notice strong { display: block; }
  .map-section { padding-top: 36px; }
  .section-head { flex-direction: row; align-items: end; gap: 12px; margin-bottom: 22px; }
  .section-head h2 { font-size: 29px; }
  .section-head p { font-size: 13px; }
  .section-link { gap: 8px; font-size: 12px; white-space: normal; }
  .map-toolbar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 14px 6px; }
  .search-box { order: -1; flex-basis: auto; }
  .search-box input { height: 48px; font-size: 16px; }
  .filters { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 8px; }
  .chip { min-width: 0; min-height: 46px; padding: 8px; font-size: 15px; }
  .map-context { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 0 14px 12px; }
  #activeFilterLabel { grid-column: 1 / -1; min-height: 30px; padding-top: 5px; }
  .info-filters { margin-left: 0; }
  .info-filters .text-button { padding-inline: 10px; }
  .view-switch { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
  .view-switch button { min-width: 54px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 13px; }
  .view-switch [aria-pressed="true"] { background: var(--green); color: white; }
  .map-utility { padding: 8px 12px; gap: 2px; }
  .map-utility-actions { width: 100%; gap: 4px; justify-content: space-between; }
  .map-utility-actions .text-button { padding: 7px 4px; min-height: 44px; }
  .map-layout { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .map-frame { height: min(460px, 60dvh); min-height: 320px; flex-shrink: 0; }
  .map-caption { font-size: 11px; }
  .results-panel { height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .results-head { order: 0; padding: 16px; }
  .spot-list { display: block; order: 2; min-height: 0; max-height: 500px; padding-inline: 12px; }
  .selected-spot { order: 1; max-height: none; padding: 12px 14px; margin: 0; border-top: 0; }
  .selected-spot.has-selection { padding-right: 14px; border-bottom: 1px solid var(--line); }
  .selected-spot.has-selection .selected-top { padding-right: 32px; }
  .selected-spot.has-selection .selected-actions { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin-top: 4px; }
  .selected-actions .small-button { min-width: 0; padding: 8px; font-size: 13px; }
  .maplibregl-popup .popup-description, .maplibregl-popup .popup-address { display: none; }
  .maplibregl-popup .small-button { padding: 8px; font-size: 13px; }
  .selected-spot p { font-size: 14px; }
  .selected-top { padding-right: 10px; }
  .selected-spot .selected-notes { font-size: 12px; }
  .spot-card { padding: 12px 8px; min-height: 82px; }
  .spot-name { font-size: 15px; }
  .spot-meta { font-size: 13px; }
  .map-layout[data-view="list"] .map-frame { display: none; }
  .map-layout[data-view="list"] .selected-spot:not(.has-selection) { display: none; }
  .map-layout[data-view="map"] .results-head, .map-layout[data-view="map"] .spot-list { display: none; }
  .planner-bar { padding: 20px 16px; gap: 15px; }
  .planner-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .planner-heading h3 { font-size: 19px; }
  .planner-heading .button { width: 100%; }
  .quick-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-routes button { padding: 8px 4px; font-size: 12px; }
  .planner-bar .route-description { font-size: 11px; }
  .journey-grid { grid-template-columns: 1fr; gap: 18px; }
  .journey-card { padding: 20px 16px; }
  .journey-card h3 { font-size: 22px; }
  .journey-actions .small-button { flex: 1 1 auto; }
  .travel-section { padding-block: 36px; }
  .travel-grid { grid-template-columns: 1fr; gap: 38px; }
  .travel-card h3 { font-size: 23px; }
  .travel-intro { max-width: none; }
  .section-label { display: none; }
  .walking-guide { padding-block: 36px; }
  .route-panel { grid-template-columns: 1fr; gap: 20px; }
  .route-intro h2 { font-size: 30px; }
  .route-intro .button { margin-top: 16px; }
  .route-step { column-gap: 12px; }
  .footer-inner { flex-direction: column; align-items: start; gap: 20px; }
  .footer-copy { text-align: left; }
  .route-planner { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .planner-title h2 { font-size: 23px; }
  .planner-input-grid { gap: 10px; }
  .planner-submit { bottom: calc(-18px - env(safe-area-inset-bottom)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .planner-privacy { font-size: 12px; }
  .mobile-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-dock a, .mobile-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 54px; padding: 5px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--green); font-size: 11px; font-weight: 600; }
  .mobile-dock a:hover, .mobile-dock button:hover { background: var(--green-soft); }
  .mobile-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .analytics-consent { bottom: calc(82px + env(safe-area-inset-bottom)); max-height: 48dvh; overflow-y: auto; }
}
@media (max-width: 540px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(46px, 13.5vw, 64px); line-height: 1.16; margin-bottom: 20px; }
  .place-kicker { margin-bottom: 18px; font-size: 12px; }
  .hero-copy { max-width: 100%; font-size: 15px; line-height: 1.9; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .button { width: auto; flex: 1 1 0; padding-inline: 10px; gap: 6px; font-size: 13px; white-space: nowrap; }
  .hero-footnote { margin-top: 14px; padding-top: 8px; font-size: 11px; }
  .walk-postcard { padding-top: 18px; }
  .station-sketch { width: 62%; margin: -5px 0 -8px auto; }
  .postcard-top { font-size: 16px; }
  .postcard-stamp { position: absolute; top: 19px; right: 20px; width: 42px; height: 42px; font-size: 10px; }
  .postcard-caption { position: relative; margin-top: -53px; padding-bottom: 17px; align-items: end; }
  .postcard-label { font-size: 10px; margin-bottom: 5px; }
  .postcard-caption h2 { font-size: 26px; }
  .postcard-caption h2 span { font-size: 13px; }
  .round-link { width: 44px; height: 44px; font-size: 22px; }
  .postcard-bottom { padding-block: 11px; }
  .category-grid { gap: 10px; }
  .category-card { min-height: 144px; padding: 12px !important; flex-direction: column; gap: 10px; }
  .category-letter { width: 34px; height: 38px; font-size: 23px; }
  .category-card h3 { font-size: 13px; margin-top: 0; margin-bottom: 5px; }
  .category-card p { font-size: 11px; }
  .category-count { font-size: 11px; }
  .category-arrow { top: 18px; right: 14px; bottom: auto; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 27px; }
  .section-head .section-link { max-width: 65px; gap: 2px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* design-taste-frontend: readable copy, one restrained interaction language.
   Existing brand tokens, map geometry and original information take precedence. */
:root { --m-in: 150ms; --m-out: 120ms; --m-press: 90ms; --m-ease: cubic-bezier(.2,.8,.2,1); }
.hero-copy, .selected-spot p, .travel-intro, .travel-place p, .route-intro p, .route-step p,
.planner-heading p, .journey-card .route-description, .route-timeline p, .route-reasons { font-size: 16px; line-height: 1.8; }
.selected-spot p, .travel-place p, .route-step p, .route-timeline p { color: var(--ink); }
.brand { min-height: 44px; }
/* Impeccable review: existing muted ink is 4.42:1 on green-soft;
   reuse the existing green token for small text on this surface. */
.postcard-label, .selected-hint, .selected-spot .selected-notes,
.spot-card[aria-current="true"] .spot-meta, .spot-card:hover .spot-meta, .category-card:hover p,
.travel-section .section-head p, .travel-intro, .travel-footnote,
.map-fallback { color: var(--green); }
.spot-name { font-size: 16px; }
.spot-meta, .category-card p, .category-count, .hero-footnote, .postcard-label, .postcard-bottom,
.demo-notice, .selected-hint, .selected-sources a, .selected-spot .selected-notes, .planner-privacy,
.planner-bar .route-description, .route-note, .footer-copy, .footer-brand small, .travel-footnote,
.mobile-dock a, .mobile-dock button, .result-count, .text-button { font-size: 13px; }
.category-card { transition: transform 180ms var(--m-ease), background var(--m-in) var(--m-ease); }
.button, .small-button, .nav-cta, .round-link { transition: transform var(--m-out) var(--m-ease), background var(--m-in) var(--m-ease), border-color var(--m-in) var(--m-ease); }
.button:hover, .round-link:hover { transform: none; }
.nav-links > a, .section-link, .hero-footnote a { position: relative; }
.nav-links > a::after, .section-link::after, .hero-footnote a::after { content: ''; position: absolute; inset: auto 0 5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--m-in) var(--m-ease); pointer-events: none; }
.nav-links > a:focus-visible::after, .section-link:focus-visible::after, .hero-footnote a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .category-card:hover { transform: translateY(-2px); }
  .button:hover, .small-button:hover, .nav-cta:hover, .round-link:hover { transform: translateY(-1px); transition-duration: var(--m-in); }
  .button:active, .small-button:active, .nav-cta:active, .round-link:active { transform: translateY(1px) scale(.985); transition-duration: var(--m-press); }
  .nav-links > a:hover::after, .section-link:hover::after, .hero-footnote a:hover::after { transform: scaleX(1); }
}
@media (hover: none) {
  .button:active, .small-button:active, .nav-cta:active { transform: none; background: var(--green-dark); color: white; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .small-button, .nav-cta, .round-link, .category-card { transform: none !important; }
}
