.map-page { padding-bottom: 4rem; }
.map-page-header { padding-block: clamp(1.5rem, 3vw, 2.5rem) 1.25rem; }
.map-page-header .kicker { margin-bottom: .6rem; }
.map-page-header h1 { max-width: 60rem; margin-bottom: .6rem; font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.2; font-weight: 650; letter-spacing: normal; }
.map-page-header > .map-planning-note { max-width: 780px; margin: .75rem 0 0; padding: .85rem 1rem; border-radius: 6px; color: #624734; background: #fff8f2; font-size: .875rem; line-height: 1.65; }
.map-filters { display: grid; grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr); gap: 1rem 1.5rem; align-items: end; padding: .9rem 1.1rem; border: 1px solid var(--line); background: #fcfaf7; }
.map-search-field > label, .map-kind-filters > legend { display: block; margin-bottom: .4rem; padding: 0; font-size: .8125rem; line-height: 1.5; font-weight: 650; }
.map-search-control { display: flex; border: 1px solid #bfc9cb; background: #fff; }
.map-search-control input { width: 100%; min-width: 0; min-height: 46px; padding: .6rem .75rem; border: 0; border-radius: 0; background: transparent; font-size: .875rem; appearance: none; }
.map-search-control input:focus-visible { outline-offset: -3px; }
.map-search-control > button { flex: 0 0 44px; min-height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; font-size: 1.5rem; }
.map-search-control > button:hover { color: var(--accent-dark); background: #fff0ea; }
.map-kind-filters { min-width: 0; margin: 0; padding: 0; border: 0; }
.map-kind-options { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.map-kind-option { display: flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .5rem; border-radius: 4px; font-size: .8125rem; line-height: 1.4; cursor: pointer; }
.map-kind-option:hover { background: #f0efec; }
.map-kind-option:has(input:focus-visible) { outline: 3px solid #151a1c; outline-offset: 2px; }
.map-kind-option input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent-dark); cursor: pointer; }
.map-kind-dot, .map-kind > span { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--map-kind-color); }
.map-kind-sight { --map-kind-color: #b52f16; }
.map-kind-hub { --map-kind-color: #1f526e; }
.map-kind-hotel { --map-kind-color: #745099; }
.map-kind-food { --map-kind-color: #986013; }
.map-kind-nightlife { --map-kind-color: #315f51; }
.map-hotel-filter { display: flex; align-items: center; gap: .5rem; max-width: 100%; }
.map-hotel-filter > .map-kind-option { flex-shrink: 0; font-weight: 650; }
.map-brand-field { position: relative; width: 12.5rem; min-width: 0; }
.map-brand-field select { display: block; width: 100%; min-height: 44px; padding: .5rem 2.3rem .5rem .8rem; border: 1px solid #bfc9cb; border-radius: 4px; color: var(--ink); background: #fff; font-size: .875rem; appearance: none; }
.map-brand-chevron { position: absolute; right: .8rem; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.map-brand-field select:disabled { color: #6a6c70; border-color: #d4d6d8; background: #ececed; cursor: not-allowed; }
.map-workspace { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); align-items: stretch; gap: 0; margin-top: 1.3rem; border: 1px solid var(--line); }
.map-canvas-panel { min-width: 0; background: #f4f1ea; }
.map-view-controls { display: flex; flex-wrap: wrap; gap: .45rem; padding: .8rem; border-bottom: 1px solid var(--line); background: #fff; }
.map-view-controls button, .map-empty button { min-height: 44px; padding: .6rem .75rem; border: 1px solid #c8d0d1; color: var(--ink); background: #fff; font-size: .8125rem; font-weight: 650; line-height: 1.45; }
.map-view-controls button:hover, .map-empty button:hover { border-color: var(--accent-dark); color: var(--accent-dark); background: #fff5ef; }
.map-view-controls button:disabled { color: #667277; background: #f3f5f5; }
.map-canvas { width: 100%; height: clamp(480px, calc(100svh - 14rem), 780px); background: #e7ebdf; z-index: 1; font-family: var(--sans); touch-action: none; }
.map-canvas:focus-visible { outline-offset: -4px; }
.map-canvas .leaflet-control-attribution { max-width: min(100%, 22rem); padding: 3px 6px; background: #fffffff5; color: #33434b; font-size: .625rem; overflow-wrap: anywhere; }
.map-canvas .leaflet-control-attribution a { color: #294b5d; }
.map-canvas .leaflet-control-zoom { border: 1px solid #6f7d83; border-radius: 0; box-shadow: 0 2px 8px #26343f20; }
.map-canvas .leaflet-control-zoom a { width: 44px; height: 44px; border-radius: 0; line-height: 44px; color: var(--ink); }
.map-canvas .leaflet-control-zoom a:focus-visible { outline-offset: -4px; }
.map-marker { display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; }
.map-marker > .map-marker-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--map-marker-color); border-radius: 50%; color: var(--map-marker-color); background: #fffffff2; font-family: var(--sans); font-size: 11px; font-weight: 750; box-shadow: 0 1px 3px #16242b26; }
.map-marker-sight { --map-marker-color: #b52f16; }
.map-marker-hub { --map-marker-color: #1f526e; }
.map-marker-hotel { --map-marker-color: #745099; }
.map-marker-food { --map-marker-color: #986013; }
.map-marker-nightlife { --map-marker-color: #315f51; }
.map-marker.is-selected > .map-marker-number { width: 32px; height: 32px; color: #fff; background: var(--map-marker-color); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--map-marker-color), 0 2px 6px #26343f40; }
.map-marker-transport { color: #173e59; overflow: visible; }
.map-marker-symbol { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; color: #fff; background: #173e59; box-shadow: 0 1px 4px #16242b40; }
.map-marker-symbol svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-marker-airport .map-marker-symbol { width: 36px; height: 36px; border-radius: 50%; }
.map-marker-airport .map-marker-symbol svg { width: 24px; height: 24px; }
.map-marker-metro .map-marker-symbol { width: 24px; height: 24px; border-radius: 4px; }
.map-marker-metro .map-marker-symbol svg { width: 16px; height: 16px; stroke-width: 2.4; }
.map-marker-label { position: absolute; left: 39px; top: 50%; transform: translateY(-50%); width: max-content; padding: 3px 6px; border: 1px solid #b5c4ce; border-radius: 4px; color: #173e59; background: #fffffff5; box-shadow: 0 1px 4px #173e5926; font: 650 11px/1.4 var(--sans); white-space: nowrap; }
.map-marker-label-left .map-marker-label { left: auto; right: 39px; }
.map-marker-metro .map-marker-label { left: 34px; font-size: 10px; font-weight: 600; }
.map-marker-major .map-marker-label { font-size: 12px; font-weight: 750; }
.map-marker-transport.is-selected .map-marker-symbol { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #173e59, 0 4px 12px #26343f60; }
.map-marker-transport.is-selected .map-marker-label { border-color: #173e59; background: #fff; }
.map-marker:focus-visible { outline: 3px solid #151a1c; outline-offset: 4px; }
.map-place-tooltip, .map-reference-tooltip { width: max-content; max-width: 240px; white-space: normal; overflow-wrap: anywhere; padding: .6rem .75rem; border: 1px solid #bdc8cb; border-radius: 0; color: var(--ink); background: #fff; font: 600 .8125rem/1.45 var(--sans); text-align: center; }
.map-place-tooltip > span { display: block; margin-top: .15rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.map-reference-tooltip { color: #7e2413; border-color: #c47563; }
.map-results-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid var(--line); background: #fff; }
.map-results-header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .85rem 1.1rem .7rem; position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.map-results-header h2 { margin: 0; font-size: 1.1rem; line-height: 1.4; }
.map-results-header p { margin: 0; padding: .1rem .55rem; border-radius: 999px; color: var(--muted); background: #f1f3f3; font-size: .75rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.map-results-scroll { scroll-padding-top: 3.5rem; position: relative; flex: 1 1 0px; height: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.map-place-card { position: relative; padding: .5rem 1rem .5rem calc(1rem - 3px); border-bottom: 1px solid var(--line); border-left: 3px solid transparent; scroll-margin: 1rem; }
.map-place-card:hover:not(.is-selected) { background: #faf8f5; }
.map-place-card.is-selected { border-left-color: var(--accent-dark); background: #fff8f2; }
.map-place-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin-bottom: .1rem; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.map-kind { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; }
.map-point-role { padding: .1rem .35rem; border: 1px solid #ccd5d4; color: #485759; background: #f7f9f8; }
.map-place-title { margin: 0; font-size: 1rem; line-height: 1.35; }
.map-place-title > button { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .35rem 0; border: 0; color: var(--ink); background: transparent; font-size: inherit; line-height: inherit; font-weight: 650; text-align: left; }
.map-place-title > button:hover { color: var(--accent-dark); }
.map-place-number { display: grid; flex: 0 0 24px; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); color: var(--muted); background: #fff; font-size: .6875rem; }
.map-select-arrow { flex: 0 0 16px; width: 16px; height: 16px; margin-left: auto; color: var(--accent-dark); }
.map-place-card.is-selected .map-select-arrow { transform: rotate(180deg); }
.map-place-details { display: grid; grid-template-rows: 1fr; }
.map-place-details-inner { min-height: 0; }
.is-map-ready .map-place-details { overflow: hidden; }
.is-map-ready .map-place-details-inner { overflow: hidden; }
.is-map-ready .map-place-card:not(.is-selected) .map-place-details { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.is-map-ready .map-place-card:not(.is-selected) .map-place-details-inner { transform: translateY(-6px); }
.is-map-animated .map-place-card { transition: background-color 280ms ease; }
.is-map-animated .map-select-arrow { transition: transform 340ms cubic-bezier(.22, 1, .36, 1); }
.is-map-animated .map-place-details { transition: grid-template-rows 340ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease, visibility 0s; }
.is-map-animated .map-place-details-inner { transition: transform 340ms cubic-bezier(.22, 1, .36, 1); }
.is-map-animated .map-place-card:not(.is-selected) .map-place-details { transition: grid-template-rows 340ms cubic-bezier(.22, 1, .36, 1), opacity 160ms ease, visibility 0s 340ms; }
.map-place-card[data-kind="sight"] { --map-kind-color: #b52f16; }
.map-place-card[data-kind="hub"] { --map-kind-color: #1f526e; }
.map-place-card[data-kind="hotel"] { --map-kind-color: #745099; }
.map-place-card[data-kind="food"] { --map-kind-color: #986013; }
.map-place-card { display: flex; flex-direction: column; }
.map-place-card > .map-place-title { order: 0; }
.map-place-card > .map-place-meta { order: 1; margin: -.35rem 0 .35rem 2.1rem; font-size: .75rem; }
.map-place-card > .map-place-details { order: 2; }
.map-place-card .map-place-title > button { padding-block: .3rem; }
.map-place-number { flex-basis: 26px; width: 26px; height: 26px; border: 1.5px solid var(--map-kind-color); border-radius: 50%; color: var(--map-kind-color); font-weight: 750; }
.map-place-card.is-selected .map-place-number { color: #fff; background: var(--map-kind-color); }
.map-place-card.is-selected .map-place-title > button { color: var(--accent-dark); }
.map-place-card.is-selected { border-left-color: var(--map-kind-color); }
.map-kind > span { display: none; }
.map-place-card:not(.is-selected) .map-point-role { display: none; }
.map-brand-label::before { content: "· "; }
.map-place-details-inner { padding: .15rem 0 .5rem 2.1rem; }
.map-navigation { width: 100%; }
.map-navigation-primary { flex: 1; }
.map-place-identifiers { color: var(--ink); font-weight: 500; }
.map-place-links { padding-top: .3rem; border-top: 1px dashed var(--line); }
.map-results-scroll { scrollbar-width: thin; scrollbar-color: #c3cbcc transparent; }
.map-place-card:focus-within:not(.is-selected) { background: #faf8f5; }
.map-place-identifiers { display: grid; gap: .2rem; color: #39474d; font-size: .875rem; line-height: 1.5; }
.map-chinese-name { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .25rem; }
.map-name-copy { flex: 0 0 auto; width: auto; min-height: 44px; padding: .35rem; justify-content: center; border: 0; color: var(--accent-dark); background: transparent; }
.map-name-copy small { font-size: .75rem; line-height: 1.4; font-weight: 650; }
.map-name-copy:hover { background: #ffeae0; }
.map-address { margin: .7rem 0 .3rem; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.map-navigation { display: flex; align-items: stretch; width: fit-content; max-width: 100%; margin-block: .6rem; border: 1px solid #173e59; border-radius: 4px; color: #fff; background: #173e59; }
.map-navigation-primary { display: flex; align-items: center; gap: .65rem; min-height: 48px; min-width: 0; padding: .55rem .75rem; color: inherit; font-size: .8125rem; line-height: 1.35; font-weight: 650; text-decoration: none; }
.map-navigation-primary > svg { flex-shrink: 0; }
.map-navigation-primary small { display: block; margin-top: .15rem; font-size: .6875rem; line-height: 1.35; font-weight: 400; }
.map-navigation-primary:hover { color: #fff; background: #245c7a; }
.map-navigation-apps { position: relative; border-left: 1px solid #ffffff55; }
.map-navigation-apps > summary { display: grid; place-items: center; min-width: 44px; height: 100%; min-height: 48px; cursor: pointer; list-style: none; }
.map-navigation-apps > summary::-webkit-details-marker { display: none; }
.map-navigation-apps > summary:hover, .map-navigation-apps[open] > summary { background: #245c7a; }
.map-navigation-apps > div { position: absolute; z-index: 4; top: calc(100% + .35rem); right: 0; display: grid; width: max-content; min-width: 10rem; max-width: min(18rem, 75vw); padding: .3rem; border: 1px solid #b9c7cd; border-radius: 4px; background: #fff; box-shadow: 0 4px 12px #26343f26; }
.map-navigation-apps a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: .5rem .65rem; color: #173e59; font-size: .8125rem; line-height: 1.4; text-decoration: none; }
.map-navigation-apps a:hover { background: #edf3f6; }
.map-navigation :focus-visible { outline: 3px solid #f5b273; outline-offset: -3px; }
.map-last-mile { margin-top: .75rem; padding: .75rem .8rem; border-radius: 6px; color: #624734; background: #fff4e9; }
.map-last-mile h4 { margin: 0 0 .4rem; font-size: .8125rem; line-height: 1.45; }
.map-last-mile p { margin: 0; font-size: .75rem; line-height: 1.65; }
.map-route-sources { display: flex; flex-wrap: wrap; gap: .2rem .65rem; margin-top: .3rem; }
.map-route-sources a { display: inline-flex; align-items: center; gap: .25rem; min-height: 44px; padding-block: .5rem; color: #624734; font-size: .6875rem; line-height: 1.45; }
.map-copy-actions { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .3rem 0 .6rem; }
.map-text-button { min-height: 44px; max-width: 100%; padding: .5rem .35rem; border: 0; color: var(--accent-dark); background: transparent; font-size: .75rem; line-height: 1.4; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.map-text-button:hover { color: #94250f; background: #ffeae0; }
.map-place-links { display: flex; flex-direction: column; align-items: start; gap: .15rem; margin: .5rem 0; }
.map-place-links a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .45rem 0; color: #384a54; font-size: .8125rem; line-height: 1.5; }
.map-place-links .map-booking-link { color: var(--accent-dark); font-weight: 650; }
.map-place-links a:hover { color: var(--accent-dark); }
.map-coordinate-source { display: inline-block; min-height: 44px; padding-block: .65rem; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.map-reference-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #e7d4c9; margin-top: 1rem; padding-top: .5rem; }
.map-reference-header h4 { margin: 0; font-size: .875rem; }
.map-distance-note { margin: .25rem 0 .6rem; color: var(--muted); font-size: .6875rem; line-height: 1.55; }
.map-reference-list { display: grid; gap: .45rem; }
.map-reference-list > button { display: grid; gap: .2rem; min-height: 44px; padding: .6rem .7rem; border: 1px solid #d2d6d2; color: var(--ink); background: #fff; font-size: .8125rem; line-height: 1.4; text-align: left; }
.map-reference-list > button:hover, .map-reference-list > button[aria-pressed="true"] { border-color: var(--accent-dark); background: #fff0e7; }
.map-reference-type { color: var(--muted); font-size: .6875rem; }
.map-reference-distance { color: var(--accent-dark); font-size: .75rem; font-weight: 650; }
.map-empty { padding: 2rem 1.1rem; }
.map-empty h3 { font-size: 1.0625rem; }
.map-empty p { color: var(--muted); font-size: .875rem; }
@media (max-width: 1100px) {
  .map-filters { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .map-workspace { grid-template-columns: minmax(0, 1fr) 320px; }
  .map-canvas { height: clamp(480px, calc(100svh - 12rem), 700px); }
}
@media (max-width: 800px) {
  .map-workspace { grid-template-columns: minmax(0, 1fr); }
  .map-results-panel { border-top: 1px solid var(--line); border-left: 0; }
  .map-canvas { height: clamp(340px, 55svh, 470px); }
  .map-results-scroll { flex: none; height: auto; max-height: min(70svh, 640px); }
  .map-view-controls { position: sticky; top: 0; z-index: 3; }
  .map-view-controls { gap: .35rem; }
}
@media (max-width: 480px) {
  .map-page-header { padding-bottom: 1.5rem; }
  .map-page-header h1 { font-size: 2rem; }
  .map-page-header > .map-planning-note { padding: .8rem .85rem; font-size: .8125rem; }
  .map-filters { grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: .9rem; }
  .map-kind-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; align-items: stretch; }
  .map-kind-options > .map-kind-option { flex-wrap: wrap; justify-content: center; align-content: start; gap: .3rem .4rem; }
  .map-kind-options > .map-kind-option > .map-kind-label { flex-basis: 100%; min-width: 0; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
  .map-kind-option { padding-inline: .45rem; }
  .map-hotel-filter { grid-column: 1 / -1; gap: .4rem; }
  .map-hotel-filter > .map-kind-option { flex: 0 0 auto; }
  .map-hotel-filter > .map-brand-field { flex: 1 1 0; width: auto; }
  .map-brand-field select { font-size: .875rem; }
  .map-view-controls button { flex: 1 1 40%; padding-inline: .45rem; font-size: .75rem; }
  .map-canvas { height: 340px; }
  .map-results-header, .map-place-card { padding-inline: .85rem; }
}
.is-compact-map .site-header, .is-compact-map .site-footer, .is-compact-map .skip-link, .is-compact-map .map-page-header { display: none; }
.is-compact-map .map-page { width: 100%; max-width: none; padding: .85rem; }
.is-compact-map .map-filters, .is-compact-map .map-view-controls, .is-compact-map .map-place-reference { display: none; }
.is-compact-map .map-workspace { margin-top: 0; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); }
.is-compact-map .map-results-header,
.is-compact-map .map-place-card:not(.is-selected),
.is-compact-map .map-results-panel:not(:has(.is-selected)) { display: none; }
.is-compact-map .map-workspace:not(:has(.is-selected)) { grid-template-columns: minmax(0, 1fr); }
.is-compact-map .map-canvas { height: calc(100svh - 1.7rem - 2px); }
@media (max-width: 800px) {
  .is-compact-map .map-workspace { grid-template-columns: minmax(0, 1fr); }
  .is-compact-map .map-canvas { height: clamp(320px, 48svh, 430px); }
  .is-compact-map .map-results-scroll { max-height: 480px; }
}
@media (max-width: 480px) {
  .is-compact-map .map-page { padding: .6rem; }
  .is-compact-map .map-workspace { margin-top: 0; }
}
@media print {
  .map-filters, .map-view-controls, .map-canvas, .map-copy-actions, .map-place-reference, .map-navigation { display: none; }
  .map-workspace { display: block; border: 0; }
  .map-results-panel { border: 0; }
  .map-results-scroll { height: auto; max-height: none; overflow: visible; }
  .is-map-ready .map-place-card .map-place-details { display: block; opacity: 1; visibility: visible; overflow: visible; }
  .is-map-ready .map-place-card .map-place-details-inner { overflow: visible; transform: none; }
  .map-place-card { break-inside: avoid; }
  .map-place-title > button { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .is-map-animated .map-place-card,
  .is-map-animated .map-select-arrow,
  .is-map-animated .map-place-details,
  .is-map-animated .map-place-details-inner,
  .is-map-animated .map-place-card:not(.is-selected) .map-place-details { transition: none; }
}
