.maps-page { background: #f5f9f8; }
.maps-page:not(.home) .masthead { align-items: flex-start; padding: .65rem 1.25rem; min-height: 70px; background: #fff; border-bottom: 1px solid var(--line); }
.maps-page:not(.home) .brand-crop { width: 170px; height: 40px; }
.maps-page:not(.home) .brand-crop img { height: 75px; transform: translateY(-9px); }
.maps-page main { width: 100%; margin: 0; }
.maps-toolbar { padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.maps-title { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .65rem; }
.maps-title h1 { font: 650 1.4rem/1.3 system-ui, sans-serif; margin: 0; color: var(--night); }
.maps-title p { margin: 0; color: var(--muted); font-size: .9rem; }
.maps-search { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(150px, 1fr) auto; gap: .7rem; max-width: 1000px; align-items: end; }
.maps-search label { display: grid; gap: .25rem; font-size: .8rem; font-weight: 650; }
.maps-search input:not([type=hidden]) { width: 100%; min-width: 0; border: 1px solid #759e9b; border-radius: 10px; background: #fafdfc; padding: .75rem; color: var(--ink); font: inherit; font-size: 1rem; min-height: 46px; }
.maps-page button { border: 1px solid var(--night); border-radius: 10px; background: var(--night); color: white; font: inherit; font-size: .85rem; font-weight: 650; padding: .7rem 1rem; min-height: 44px; cursor: pointer; }
.maps-page button:disabled { opacity: .6; cursor: default; }
.maps-layout { display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); align-items: start; }
.maps-results { padding: 1rem; min-width: 0; max-height: 76dvh; overflow: auto; scrollbar-gutter: stable; }
.maps-count { margin: .2rem 0 1rem; font-size: .85rem; color: var(--muted); }
.maps-welcome { padding: 2rem 1rem; text-align: center; }
.maps-welcome > span { font-size: 3rem; color: var(--aurora); }
.maps-welcome h2 { font: 600 1.3rem/1.5 system-ui, sans-serif; }
.maps-welcome p,.maps-empty { color: var(--muted); line-height: 1.6; }
.place-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.place-card { padding: 1rem; background: white; border: 1px solid var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.place-card.is-selected { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.place-heading { display: flex; gap: .65rem; align-items: start; }
.place-number { background: var(--night); color: white; border-radius: 50%; min-width: 28px; height: 28px; text-align: center; font-size: .8rem; line-height: 28px; }
.place-card h2 { font: 650 1.06rem/1.4 system-ui, sans-serif; margin: 0; }
.place-card p { font-size: .85rem; margin: .5rem 0; }
.place-card .place-kind,.place-card .place-source { color: var(--muted); font-size: .75rem; }
.place-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.place-actions a,.maps-actions a { color: var(--night); font-size: .8rem; padding: .6rem .5rem; min-height: 44px; display: inline-flex; align-items: center; }
.place-source a,.maps-disclosure a { color: var(--night); }
.maps-canvas-region { position: sticky; top: 0; min-width: 0; border-left: 1px solid var(--line); background: #e9f1ed; }
.maps-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .6rem; background: #f8fbfa; }
.places-map { height: min(62dvh, 760px); min-height: 300px; background: #dbe7e3; z-index: 0; }
.maps-help,.maps-disclosure,#maps-status { padding: .35rem .8rem; font-size: .75rem; color: var(--muted); margin: 0; }
.maps-disclosure { padding-bottom: .75rem; }
.place-pin { background: var(--night); color: white; border: 2px solid white; border-radius: 50%; text-align: center; font: 700 12px/26px system-ui,sans-serif; box-shadow: 0 2px 6px #12302c66; }
.maps-page .leaflet-popup-content a { color: var(--night); }
.maps-view-switch { display: none; }
.maps-information summary { padding: .75rem .8rem; min-height: 44px; cursor: pointer; color: var(--night); font-size: .8rem; }
@media(max-width: 700px) {
 .maps-page:not(.home) .masthead { padding-top: 3.2rem; align-items: center; }
 .maps-page:not(.home) .brand-crop { width: 125px; height: 29px; }
 .maps-page:not(.home) .brand-crop img { height: 55px; transform: translateY(-7px); }
 .maps-toolbar { padding: .5rem .75rem .75rem; }
 .maps-title { display: block; margin-bottom: .35rem; }
 .maps-title h1 { font-size: 1.15rem; }
 .maps-title p { display: none; }
 .maps-search { grid-template-columns: minmax(0, 1fr) auto; }
 .maps-search label:first-of-type { grid-column: 1 / -1; }
 .maps-layout { display: flex; flex-direction: column; }
 .maps-canvas-region { position: static; width: 100%; order: -1; border-left: 0; }
 .places-map { height: 42dvh; min-height: 260px; }
 .maps-results { width: 100%; max-height: none; overflow: visible; }
 .maps-enhanced .maps-view-switch:not([hidden]) { display: flex; position: sticky; top: 0; z-index: 30; gap: .3rem; padding: .4rem .75rem; background: #fff; border-bottom: 1px solid var(--line); }
 .maps-view-switch button { flex: 1; background: #eff5f3; color: var(--night); border-color: transparent; }
 .maps-view-switch button[aria-pressed=true] { background: var(--night); color: white; }
 .maps-enhanced[data-maps-view=map] .maps-results { display: none; }
 .maps-enhanced[data-maps-view=list] .maps-canvas-region { display: none; }
 .maps-enhanced .places-map { height: calc(100dvh - 340px); min-height: 280px; }
 .maps-actions { padding: .4rem .75rem; }
 .maps-actions > button { flex: 1; }
 .maps-actions > a { display: none; }
 .maps-page .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; }
 .place-actions { gap: .5rem; }
 .place-actions a { padding: .65rem .75rem; background: #eff5f3; border-radius: 10px; }
}
