@import url('/assets/map-print.css');
.map-layout{display:grid;grid-template-columns:136px minmax(0,1fr) 280px;gap:16px;align-items:start}.map-sidebar{min-width:0}.map-sidebar .preference-fields{display:grid;grid-template-columns:1fr;margin-bottom:16px}.map-sidebar .months-group{padding:16px}.map-sidebar .control-label{margin-bottom:8px}.map-sidebar .segments{flex-direction:column}.map-sidebar .segments button{width:100%}.map-frame{position:relative;min-width:0;height:760px;min-height:500px;border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;background:var(--map-water)}#map{width:100%;height:100%}#map-status{position:absolute;bottom:80px;left:16px;max-width:calc(100% - 32px);background:var(--surface);padding:12px 16px;border-radius:var(--radius-control);font:400 14px/24px var(--font-body);pointer-events:none}.reset{position:absolute;right:56px;top:16px;z-index:2}.map-frame>.overlay-group,.map-type-box{position:absolute;left:16px;top:16px;width:118px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-control);box-shadow:var(--shadow-overlay);z-index:2}.map-frame .overlay-group .control-label{display:none}.map-frame .segments{flex-direction:column}.map-type-box{top:200px}.map-type-box button{width:100%}.map-options{display:flex;flex-direction:column;gap:12px;padding:16px;margin-bottom:16px}.place-panel{margin-bottom:24px}.place-panel h2{font-size:var(--size-h2);line-height:var(--leading-h2)}.place-panel p{font-size:14px;line-height:24px}.map-legend{position:absolute;bottom:40px;left:16px;width:calc(100% - 32px);max-width:440px;margin:0;padding:12px 16px;border-radius:var(--radius-control);font:400 14px/24px var(--font-body)}.map-legend:not([open]){width:auto;min-width:120px}.map-legend>summary{font:500 14px/20px var(--font-body)}.map-legend .key-content{margin-top:12px}.map-legend p{margin:8px 0 0;color:var(--muted)}.map-legend #legend-note:empty{display:none}.ramp{height:12px;border-radius:var(--radius-control);margin:8px 0 4px}.ticks{display:flex;justify-content:space-between;gap:4px;font:500 12px/20px var(--font-figure)}.band-key{display:flex;gap:8px;margin-top:12px}.band-key span{display:flex;flex:1;align-items:center;gap:4px;font:500 13px/20px var(--font-figure)}.band-key i{display:block;width:100%;height:20px;border:1px solid var(--strong);border-radius:4px}.town-marker{position:absolute;background:var(--surface);color:var(--ink);padding:4px 8px 4px 20px;white-space:nowrap;font:400 14px/20px var(--font-body);box-shadow:var(--shadow-sticky)}.town-marker.major-city{font-weight:500}.town-marker::before{position:absolute;content:'';width:6px;height:6px;left:8px;top:14px;border-radius:50%;background:var(--pt-blue)}.town-marker.selected{background:var(--green);color:var(--on-primary);border-color:var(--green)}.town-marker.selected::before{background:var(--on-primary)}.print-actions{margin:24px 0}#shading-help p,#terrain-help-box p{max-width:72ch}.maplibregl-ctrl-group{background:var(--surface);border:1px solid var(--strong);border-radius:8px;box-shadow:var(--shadow-overlay)}.maplibregl-ctrl-group button{width:36px;height:36px;min-height:36px;border-radius:0}.maplibregl-ctrl-group button:hover{background:var(--line)}.maplibregl-ctrl-attrib{font-size:11px}.maplibregl-popup-content{color:var(--pt-charcoal)}
@media(min-width:1024px) and (max-width:1279px){.map-layout{grid-template-columns:128px minmax(0,1fr) 240px}}
@media(max-width:1023px){.map-layout{grid-template-columns:minmax(0,1fr)}.map-sidebar{display:none}.map-frame{height:70svh;min-height:500px}.map-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mobile-bar select{width:100%}}
@media(max-width:639px){.map-layout>aside{display:block}.map-legend{max-width:calc(100% - 32px)}.ticks{font-size:11px}.map-frame{height:70svh}}

.map-frame>.overlay-group{width:150px}.map-type-box{top:220px}.map-frame .overlay-group .segments button{white-space:normal;font-size:12px;padding:4px 6px}.region-match-label{min-height:28px;padding:3px 7px;font:600 12px/20px var(--font-figure);border:2px solid var(--white);box-shadow:var(--shadow-sticky)}.region-match-label[hidden]{display:none}.match-scale{display:flex;gap:8px;margin-top:12px}.match-scale>span{flex:1;text-align:center;font:500 12px/20px var(--font-figure)}.match-scale i{display:block;height:20px;border:1px solid var(--line-strong);border-radius:4px}.annual-months{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}.annual-months button{display:flex;flex-direction:column;gap:0;padding:4px;font-size:12px}.annual-months span{font:500 12px/20px var(--font-figure)}

.maplibregl-marker.town-marker,.maplibregl-marker.region-match-label{position:absolute;left:0;top:0;margin:0}
.preference-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);margin:0 0 20px}.matched-count{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:64px;padding:4px 12px;border-radius:14px;background:var(--green);color:var(--on-primary);font:600 36px/44px var(--font-figure);font-variant-numeric:tabular-nums}.preference-status span{font:500 15px/24px var(--font-body)}.preference-status #preference-limits{flex-basis:100%;margin-left:76px;color:var(--muted);font:400 12px/18px var(--font-body)}.comparison-grid .tablewrap{max-height:70svh}.match-grid{min-width:1080px}.match-grid th,.match-grid td{text-align:center;padding:6px}.match-grid th:first-child{position:sticky;left:0;text-align:left;min-width:190px;z-index:3}.match-grid thead th{top:0}.match-grid td{padding:4px;border:1px solid var(--surface)}.match-grid td a{display:flex;min-height:36px;align-items:center;justify-content:center;color:inherit;text-decoration:none;font:600 13px/20px var(--font-figure);border-radius:4px}.match-grid td a:hover,.match-grid td a:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}.match-grid-key{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.match-grid-key span{display:inline-flex;align-items:center;min-height:32px;padding:4px 10px;border-radius:6px;font:500 12px/18px var(--font-body)}.preference-met{border:4px solid var(--green);padding:4px 8px}.event-details{margin:16px 0;padding:12px}.event-details summary{font-size:14px;line-height:20px}.event-details ul{padding-left:20px}.event-details li{margin:8px 0;font-size:14px;line-height:22px}
@media(max-width:639px){.preference-status{gap:10px}.matched-count{min-width:56px;min-height:56px;font-size:30px}.preference-status #preference-limits{margin-left:66px}.match-grid{min-width:1020px}}
.matched-count.zero{background:var(--assessment-bad);color:var(--negative-ink)}
/* Map title, month strip, and key controls */
.holiday-page-title{display:flex;align-items:end;justify-content:space-between;gap:24px;flex-wrap:wrap}.holiday-page-title .kicker{flex-basis:100%}.map-title-region{display:flex;align-items:center;gap:8px;min-width:240px}.map-title-region label{font:500 14px/20px var(--font-body)}.map-title-region select{min-width:180px}.months-group{display:flex;width:calc(100% - 296px);margin:0 0 16px auto;padding:8px 12px}.months-group .segments{align-items:center;width:100%;gap:4px}.months-group .segments button{min-width:36px;padding-inline:4px}.all-months{display:inline-flex;align-items:center;gap:4px;padding:0 12px;white-space:nowrap;font:500 14px/20px var(--font-body)}.all-months input{width:18px;height:18px;min-height:0}.map-layout{grid-template-columns:264px minmax(0,1fr);}.map-sidebar .preference-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.map-frame{grid-column:2;grid-row:1 / span 2}.map-layout>aside{grid-column:1;grid-row:2}.map-type-legend{position:absolute;left:16px;bottom:24px;z-index:3;display:flex;flex-direction:column;gap:8px;align-items:flex-start}.map-type-box{position:static;width:auto;padding:0;border:0;background:transparent;box-shadow:none}.map-legend{position:static;width:auto;max-width:min(440px,calc(100vw - 64px));}.reset{top:58px;right:12px;z-index:5;width:36px;height:36px;padding:4px}.mobile-preference-summary{font:400 12px/18px var(--font-body)}.mobile-preference-summary .score{min-width:22px;min-height:22px;padding:0 4px;font-size:12px}
@media(max-width:1023px){.months-group{width:100%;margin:0 0 12px;padding:6px}.map-layout{grid-template-columns:1fr}.map-frame{grid-column:1;grid-row:auto}.map-layout>aside{grid-column:1;grid-row:auto}.map-sidebar{display:none}.months-group .segments button{min-width:24px;font-size:14px;padding-inline:2px}.map-title-region{min-width:0;width:100%}.map-title-region select{flex:1}.map-type-legend{bottom:12px}}
@media(min-width:1024px){#map-preference-summary{display:none}}

.maplibregl-ctrl .reset{position:static;display:block;width:36px;height:36px;margin:0}.map-frame>.overlay-group{width:max-content;max-width:88px}.map-frame>.overlay-group .segments button{width:100%;padding:4px 8px}.map-options:has(#comparison-wrap[hidden]){display:none}.match-grid td.active-map-cell{box-shadow:inset 0 0 0 4px var(--ink)}.match-grid td.active-map-cell a{outline:0}
.holiday-page-title:has(.map-title-region){align-items:flex-end}.holiday-page-title:has(.map-title-region) .page-title{margin-bottom:0}.map-title-region{align-self:flex-end;margin-bottom:0}

.map-corner-tools{position:absolute;bottom:30px;left:12px;display:flex;flex-direction:column;gap:8px;z-index:4}.map-corner-tools button{width:36px;height:36px;padding:6px;background:var(--surface);box-shadow:var(--shadow-overlay)}.map-tool-popup{position:fixed;inset:auto;margin:0;width:300px;max-width:calc(100vw - 32px);padding:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-overlay);font:400 14px/20px var(--font-body)}#map-info-popup #legend-note{margin-top:16px}#map-info-popup #legend-note:empty{display:none}.map-settings-style{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.map-settings-style button{width:100%;padding-inline:8px}.place-names-toggle{display:block;width:100%;margin-top:16px;text-align:center}
.place-panel .metric-box{display:block;width:max-content;max-width:100%;margin:0 auto 4px}
.place-panel .rainfall-readout{text-align:center}
