/* Map Mode discovery: quiet geographic chrome and one coordinated detail rail. */
#mapView.map-discovery-active > .map-mount { display:none; }
.map-discovery-root { --md-paper:var(--surface,#fffaf0); --md-ink:var(--text,#342d23); --md-muted:var(--text-muted,#68726b); --md-line:var(--rule-gold,#c7b58a); color:var(--md-ink); margin:0 auto; width:100%; }
.map-discovery-root[hidden] { display:none!important; }
.map-discovery-root * { box-sizing:border-box; }
.map-discovery-root button,.map-discovery-root input,.map-discovery-root select { font:13px/1.35 var(--font-body,Arial,sans-serif); color:var(--md-ink); }
.map-discovery-root button { border:1px solid color-mix(in srgb,var(--md-line) 65%,transparent); border-radius:5px; background:var(--md-paper); min-height:36px; padding:8px 12px; cursor:pointer; }
.map-discovery-root button:hover,.map-discovery-root button[aria-pressed=true] { background:color-mix(in srgb,var(--gold) 16%,var(--md-paper)); border-color:var(--gold); }
.map-discovery-root button:disabled { opacity:.45; cursor:default; }
.map-discovery-root :is(button,a,input,select):focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
.map-discovery-root input,.map-discovery-root select { border:1px solid var(--md-line); background:var(--md-paper); border-radius:5px; min-height:40px; padding:8px 10px; max-width:100%; }
.map-discovery-root p,.map-discovery-root li { font:14px/1.65 var(--font-body,Arial,sans-serif); }
.map-discovery-root p { margin:10px 0; }
.map-discovery-root h2,.map-discovery-root h3 { font-family:var(--font-display,Georgia,serif); font-weight:400; line-height:1.2; }
.map-discovery-root h2 { font-size:26px; margin:0 0 8px; }
.map-discovery-root h3 { font-size:20px; margin:24px 0 10px; }
.map-discovery-root a { color:var(--gold-deep,var(--gold)); text-decoration:underline; text-underline-offset:3px; padding:5px 0; display:inline-block; }
.md-top { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 0 8px; }
.md-find { position:relative; flex:1 1 280px; }
.md-find input { width:100%; }
.md-search-results { position:absolute; top:calc(100% + 5px); left:0; right:0; max-height:55vh; overflow:auto; z-index:55; background:var(--md-paper); border:1px solid var(--md-line); border-radius:6px; padding:6px; }
.md-search-results button { width:100%; text-align:left; display:block; border:0; border-bottom:1px solid color-mix(in srgb,var(--md-line) 30%,transparent); }
.md-search-results strong,.md-search-results small { display:block; }
.md-search-results small { margin-top:4px; color:var(--md-muted); }
.md-stay { display:flex; align-items:center; gap:8px; font:11px var(--font-body,Arial,sans-serif); text-transform:uppercase; letter-spacing:.08em; }
.md-stay select { width:280px; text-transform:none; letter-spacing:0; }
.md-actions,.md-choice-row,.md-foot-actions,.md-neighbors { display:flex; flex-wrap:wrap; gap:6px; }
.md-context { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:7px 2px 12px; font:12px/1.5 var(--font-body,Arial,sans-serif); }
.md-breadcrumb { font-weight:600; }
.md-counts { color:var(--md-muted); }
.md-stage { position:relative; border:2px solid var(--gold); border-radius:8px; overflow:hidden; height:calc(100dvh - var(--header-h,78px) - 175px); min-height:440px; background:var(--md-paper); }
.md-canvas { position:absolute; inset:0; }
.md-canvas:focus-visible { outline:3px solid var(--gold); outline-offset:-3px; }
.md-canvas .maplibregl-ctrl-group button { width:32px; height:32px; min-height:32px; padding:0; }
.md-tools { position:absolute; top:12px; left:55px; right:12px; display:flex; gap:5px; flex-wrap:wrap; z-index:4; pointer-events:none; }
.md-tools button { min-height:32px; padding:6px 9px; font-size:11px; pointer-events:auto; background:color-mix(in srgb,var(--md-paper) 94%,transparent); }
.md-list,.md-detail,.md-settings { position:absolute; right:12px; top:60px; bottom:32px; width:340px; max-width:calc(100% - 24px); overflow:auto; background:var(--md-paper); border:1px solid var(--md-line); border-radius:7px; padding:18px; z-index:8; overscroll-behavior:contain; }
.md-settings { top:12px; bottom:12px; z-index:10; width:350px; }
.md-detail[hidden],.md-list[hidden],.md-settings[hidden],.md-search-results[hidden] { display:none!important; }
.md-panel-head { display:flex; justify-content:space-between; align-items:start; gap:12px; padding-bottom:12px; border-bottom:1px solid color-mix(in srgb,var(--md-line) 55%,transparent); margin-bottom:16px; }
.md-panel-head >button { flex:none; font-size:11px; }
.md-kicker { font:600 10px/1.5 var(--font-body,Arial,sans-serif)!important; text-transform:uppercase; letter-spacing:.12em; color:var(--md-muted); margin:0 0 6px!important; }
.md-hotel-list,.md-place-list { list-style:none; padding:0; margin:12px 0; }
.md-hotel-list li,.md-place-list li { border-bottom:1px solid color-mix(in srgb,var(--md-line) 38%,transparent); padding:8px 0; }
.md-hotel-list button,.md-place-list button { width:100%; display:flex; align-items:start; text-align:left; gap:12px; border:0; background:transparent; padding:7px 0; }
.md-place-list button { display:block; }
.md-hotel-row img { width:66px; height:66px; border-radius:4px; object-fit:cover; flex:none; }
.md-hotel-row span { flex:1; min-width:0; }
.md-hotel-row strong,.md-place-list strong { font:400 17px/1.25 var(--font-display,Georgia,serif); display:block; }
.md-hotel-row small,.md-place-list small { display:block; color:var(--md-muted); font-size:11px; line-height:1.5; margin:5px 0; }
.md-hotel-row b { font:600 13px/1.5 var(--font-body,Arial,sans-serif); }
.md-detail-photo { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:5px; }
.md-hotel-tier,.md-outline-note { font-size:11px!important; color:var(--gold-deep,var(--gold)); letter-spacing:.06em; }
.md-price-detail { border-top:1px solid var(--md-line); border-bottom:1px solid var(--md-line); padding:13px 0; margin:14px 0; }
.md-price-detail >strong { font:400 26px/1.2 var(--font-display,Georgia,serif); }
.md-price-detail p,.md-price-detail small { font-size:11px; line-height:1.5; }
.md-venue-facts details { margin:14px 0; border-top:1px solid var(--md-line); padding-top:10px; }
.md-venue-facts summary { min-height:44px; cursor:pointer; font:600 13px/1.5 var(--font-body,Arial,sans-serif); }
.md-venue-facts h5 { font:400 20px/1.3 var(--font-display,Georgia,serif); margin:20px 0 8px; }
.md-venue-facts .lx-venue-tags,.md-venue-facts .lx-topics { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0; }
.md-venue-facts :is(.lx-venue-tags,.lx-topics) span { border:1px solid var(--md-line); padding:5px 8px; border-radius:4px; font:11px/1.5 var(--font-body,Arial,sans-serif); }
.md-venue-facts .lx-observation { color:var(--md-muted); font-size:11px; }
.md-venue-facts .lx-busyness>div { display:grid; grid-template-columns:30px 1fr 60px; align-items:center; gap:8px; font-size:11px; }
.md-venue-facts .lx-busyness svg { width:100%; height:40px; overflow:visible; }.md-venue-facts .lx-busyness polyline { fill:none; stroke:var(--gold); stroke-width:2; }.md-venue-facts .lx-chart-base { stroke:var(--md-line); stroke-width:1; }
.md-venue-facts .lx-distribution>div { display:grid; grid-template-columns:35px 1fr 55px; align-items:center; gap:8px; font:11px/1.5 var(--font-body,Arial,sans-serif); margin:5px 0; }.md-venue-facts meter { width:100%; }.md-venue-facts .lx-hours dl>div { display:grid; grid-template-columns:95px 1fr; border-bottom:1px solid var(--md-line); padding:7px 0; }.md-venue-facts dd { margin:0; }
.md-introduction { font:16px/1.7 var(--font-display,Georgia,serif)!important; }
.md-area-stats { display:flex; gap:18px; padding:15px 0; border-block:1px solid var(--md-line); }
.md-area-stats span { font:11px/1.5 var(--font-body,Arial,sans-serif); }
.md-area-stats b { display:block; font:400 28px/1.3 var(--font-display,Georgia,serif); }
.md-settings fieldset { border:0; border-bottom:1px solid var(--md-line); padding:14px 0; margin:0; }
.md-settings legend { font:600 12px/1.5 var(--font-body,Arial,sans-serif); padding-top:12px; }
.md-settings p,.md-data-note { color:var(--md-muted); font-size:12px!important; }
.md-settings >label,.md-list >label { display:block; font:12px/1.5 var(--font-body,Arial,sans-serif); margin:14px 0; }
.md-settings select,.md-list select { display:block; margin-top:7px; width:100%; }
.md-layer-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.md-layer-grid button { text-align:left; font-size:12px; }
.md-layer-grid small { display:block; margin-top:4px; font-size:10px; color:var(--md-muted); }
.md-view-row { display:flex; gap:6px; margin:8px 0; }.md-view-row button:first-child { flex:1; text-align:left; }
.md-comparison article { border-bottom:1px solid var(--md-line); padding:10px 0 18px; }.md-comparison h3 { margin-top:0; }.md-comparison li { font-size:12px; }
.md-floating-plaque { width:210px; }.md-floating-plaque .atlas-pin-label-plate { display:block; cursor:pointer; }.md-floating-plaque .atlas-pin-label-name { display:block; }.md-floating-plaque.md-size-3 { width:155px; }.md-floating-plaque.md-size-5 { width:245px; }
.md-foot { display:flex; flex-wrap:wrap; gap:8px 20px; align-items:center; padding:10px 0 14px; }.md-status,.md-rate-context { font:11px/1.6 var(--font-body,Arial,sans-serif)!important; color:var(--md-muted); margin:0!important; }.md-status.md-error { color:var(--text); }.md-rate-context { flex:1; }.md-foot-actions button { font-size:10px; min-height:30px; }
.md-sr { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body.hotel-modal-open .map-discovery-root :is(.md-detail,.md-settings,.md-list,.md-tools) { visibility:hidden; pointer-events:none; }
:root[data-era="artdeco"] .md-stage { border-radius:2px; }:root[data-era="editorial"] .md-stage { border-width:1px; }
@media(max-width:699.98px), (max-width:950px) and (max-height:500px) {
  .md-top { gap:7px; padding:6px 10px; }.md-find { flex:1 1 100%; }.md-stay { flex:1; }.md-stay select { width:100%; font-size:11px; }.md-actions { width:100%; }.md-actions button { flex:1; min-height:40px; font-size:11px; }
  .md-context { padding:4px 10px 8px; font-size:10px; align-items:start; }.md-counts { text-align:right; max-width:48%; }
  .md-stage { border-radius:0; border-width:1px 0; height:calc(100dvh - var(--header-h,64px) - var(--mobile-tabbar-h,54px) - var(--md-chrome-h,160px)); min-height:240px; }
  .md-tools { left:45px; top:8px; gap:4px; }.md-tools button { min-height:38px; font-size:10px; padding:5px 7px; }
  .md-detail,.md-list { top:auto; right:0; bottom:0; width:100%; max-width:none; max-height:54%; border-radius:12px 12px 0 0; padding:16px; padding-bottom:20px; }.md-settings { inset:6px 8px; width:auto; max-width:none; }
  .map-discovery-root button { min-height:44px; }.md-foot { padding:8px 10px max(10px,env(safe-area-inset-bottom)); margin-bottom:var(--mobile-tabbar-h,54px); }.md-foot-actions button { min-height:36px; }.md-stage .maplibregl-ctrl-bottom-right,.md-stage .maplibregl-ctrl-bottom-left { z-index:4; }
  .md-detail-open .maplibregl-ctrl-bottom-right,.md-list-open .maplibregl-ctrl-bottom-right { bottom:calc(var(--md-sheet-h,54%) + 6px); }.md-detail-photo { max-height:140px; }
}
@media(prefers-reduced-motion:reduce) { .map-discovery-root * { animation:none!important; transition:none!important; } }

.md-phone-navigation { display:none; }.md-other-stays p,.md-tier-mix { font-size:11px!important; color:var(--md-muted); }.md-walks article { margin:12px 0; border-top:1px solid var(--md-line); padding:12px 0; }.md-walks article strong,.md-walks article small { display:block; }.md-walks small { color:var(--md-muted); font-size:11px; }
@media(max-width:699.98px), (max-width:950px) and (max-height:500px) { .md-tools button[data-md-action="area"],.md-tools button[data-md-action="save-view"] { display:none; }.md-phone-navigation { display:block; } }
@media(max-width:950px) and (max-height:500px) and (orientation:landscape) { .md-top { flex-wrap:nowrap; }.md-find { flex:1; }.md-stay { flex:1; }.md-actions { width:auto; }.md-detail,.md-list { top:0; bottom:0; right:0; width:42%; max-height:none; border-radius:0; }.md-detail-photo { max-height:100px; }.md-stage { height:calc(100dvh - var(--header-h,64px) - var(--mobile-tabbar-h,54px) - var(--md-chrome-h,100px)); }.md-detail-open .maplibregl-ctrl-bottom-right,.md-list-open .maplibregl-ctrl-bottom-right { bottom:0; right:43%; } }

@media(max-width:699.98px), (max-width:950px) and (max-height:500px) {
  .md-foot { display:block; padding:7px 10px; margin-bottom:var(--mobile-tabbar-h,54px); }
  .md-foot .md-status,.md-foot .md-foot-actions { display:none; }
  .md-rate-context { display:block; font-size:10px!important; }
  .md-stage { min-height:200px; }
  .md-tools { justify-content:space-between; }
  .md-tools button[data-md-action="back"] { display:none; }
  .md-canvas .maplibregl-ctrl-group button { width:44px; height:44px; min-height:44px; }
}

.md-floating-plaque.md-size-2 { width:160px; }.md-floating-plaque .atlas-pin-label-plate { max-width:100%; }
.md-floating-plaque .atlas-pin-label-name { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.md-floating-plaque .atlas-pin-label-meta { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:699.98px), (max-width:950px) and (max-height:500px) {
  .md-foot .md-status { display:block; position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .md-foot .md-status.md-error { position:static; width:auto; height:auto; clip:auto; overflow:visible; }
}

.md-expand { display:none; }
@media(max-width:699.98px), (max-width:950px) and (max-height:500px) {
  .md-expand { display:block; }
  .md-detail.md-expanded,.md-list.md-expanded { position:fixed; top:calc(var(--header-h,64px) + 8px); bottom:calc(var(--mobile-tabbar-h,54px) + 22px); max-height:none; z-index:65; border-radius:12px; right:8px; left:8px; width:auto; }
  .md-panel-head { position:sticky; top:-16px; background:var(--md-paper); padding:12px 0; z-index:2; }
  .md-panel-head>div,.md-panel-head>h2 { flex:1; min-width:0; }
  .md-detail .md-panel-head h2 { font-size:22px; }
}

@media(max-width:360px) and (orientation:portrait) {
  .md-canvas .maplibregl-ctrl-group { display:flex; }
  .md-canvas .maplibregl-ctrl-group button+button { border-top:0; border-left:1px solid #ddd; }
  .md-tools { left:108px; }
  .md-tools:has(button[data-md-action=return]:not([hidden])) button[data-md-action=share] { display:none; }
}

@media(max-width:699.98px), (max-width:950px) and (max-height:500px) {
  .md-detail .md-panel-head,.md-list .md-panel-head { display:grid; grid-template-columns:1fr 44px 44px; gap:6px; }
  .md-panel-head>button.md-expand,.md-panel-head>button[data-md-action=close],.md-list .md-panel-head>button[data-md-action=list] { width:44px; padding:0; font-size:0; }
  .md-panel-head>button.md-expand::after { content:"↗"; font:20px Arial,sans-serif; }
  .md-panel-head>button.md-expand[aria-pressed=true]::after { content:"↙"; }
  .md-panel-head>button[data-md-action=close]::after,.md-list .md-panel-head>button[data-md-action=list]::after { content:"×"; font:24px Arial,sans-serif; }
}

.md-load-sentinel { display:block; height:1px; }
.md-list button[data-md-action=more] { position:sticky; bottom:-18px; width:100%; z-index:2; }
.md-list button[data-md-action=more][hidden] { display:none; }

.md-settings-open :is(.md-detail,.md-list) { visibility:hidden; pointer-events:none; }

:root[data-theme=dark] .md-canvas .maplibregl-ctrl-icon { filter:invert(1); }
