* { box-sizing: border-box; }
:root { color: #182924; background: #f8f6ee; font: 16px/1.5 system-ui, sans-serif; --pine: #21483d; --line: #d7d9cb; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem max(5vw, 1rem); background: #fff; border-bottom: 1px solid var(--line); }
header img { display: block; width: min(10rem, 42vw); height: auto; }
main { width: min(92%, 84rem); margin: 2rem auto 3rem; }
.intro { margin-bottom: 1.35rem; }
.back-to-regions { display: inline-block; margin-bottom: 1rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 99rem; background: white; color: var(--pine); font-weight: 650; text-decoration: none; }
.back-to-regions:hover { text-decoration: underline; }
.intro h1 { margin: 0; font: normal clamp(2.8rem, 7vw, 5rem)/1 Georgia, serif; letter-spacing: -.05em; }
.intro p { margin-bottom: 0; }
.explorer { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 1fr); gap: 1.15rem; align-items: start; }
.map-panel { position: sticky; top: 1rem; min-width: 0; }
.category-toggles { display: flex; flex-wrap: wrap; gap: .45rem; padding: .55rem; background: #f8f6ee; }
.category-toggles button { font-size: .83rem; padding: .35rem .65rem; }
.category-toggles button[aria-pressed="true"] { background: var(--pine); color: white; }
.category-toggles button[data-category]::before { content: ""; display: inline-block; width: .63em; height: .63em; margin-inline-end: .28em; border: 1px solid currentColor; border-radius: 50%; background: var(--category-color); }
.service-controls { padding: .15rem .5rem .4rem; }
.service-controls summary { color: var(--pine); font-size: .85rem; font-weight: 700; cursor: pointer; }
.service-controls .category-toggles { padding-inline: 0; }
.service-controls small { display: block; font-size: .72rem; }
.embed-count { display: none; }
.map-embed .embed-count { display: block; font-size: .8rem; margin: 0 .5rem .35rem; }
#map { min-height: 24rem; height: min(70vh, 49rem); border: 1px solid var(--line); border-radius: .85rem; background: #e1ece8; }
#map.map-unavailable { display: grid; place-items: center; padding: 2rem; text-align: center; }
.sidebar { min-width: 0; }
.filters, .place { border: 1px solid var(--line); border-radius: .75rem; background: white; padding: .9rem; }
.filter-row, .list-tools { display: flex; gap: .6rem; align-items: end; }
.filter-row > * { flex: 1; min-width: 0; }
.filters label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; }
.filter-row, .list-tools { margin-top: .7rem; }
.list-tools { align-items: center; justify-content: space-between; }
input, select, button { font: inherit; }
input, select { min-width: 0; width: 100%; padding: .45rem; border: 1px solid #788780; border-radius: .35rem; background: #fff; color: inherit; }
button { padding: .42rem .85rem; border: 1px solid var(--pine); border-radius: 99rem; background: white; color: var(--pine); font-weight: 650; cursor: pointer; }
button:hover { background: #f1f5ef; }
:focus-visible { outline: 3px solid #ad5628; outline-offset: 3px; }
#count, #notice { font-size: .88rem; margin: 0; }
#notice:not(:empty) { margin-top: .65rem; }
#places { display: grid; gap: .65rem; list-style: none; padding: 0; margin: .7rem 0 0; }
.place { border-inline-start: .25rem solid var(--place-color, var(--pine)); }
.place h3, .place p { margin: .25rem 0; }
.place h3 { font: normal 1.55rem/1.15 Georgia, serif; }
.place button { margin-top: .5rem; }
.place-meta { color: var(--pine); font-size: .85rem; font-weight: 650; }
.place img { display: block; width: 100%; aspect-ratio: 2.5; object-fit: cover; border-radius: .45rem; margin-bottom: .6rem; }
.place a { display: block; width: fit-content; color: var(--pine); margin-top: .45rem; text-underline-offset: .2em; }
.place p:last-of-type { margin-block: .4rem .1rem; }
.map-pin { display: grid !important; place-items: center; background: var(--place-color); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px #18292488; border-radius: 50%; }
.map-pin.mapped-active { box-shadow: 0 0 0 3px var(--pine); }
.map-pin--guide::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: white; }
.leaflet-tile-pane { filter: saturate(.62) sepia(.13); }
.map-interaction { align-self: flex-start; margin: 0 .55rem .45rem; font-size: .85rem; }
.map-interaction[aria-pressed="true"] { background: var(--pine); color: white; }
.map-article-links { display: grid; gap: .3rem; margin-top: .65rem; }
.map-article-links a { text-decoration: underline; text-underline-offset: .15em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.map-embed header, .map-embed .intro, .map-embed .sidebar { display: none; }
.map-embed main { width: 100%; margin: 0; }
.map-embed .explorer { display: block; }
.map-embed .map-panel { position: static; height: 100dvh; display: flex; flex-direction: column; }
.map-embed #map { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; }
.map-embed #map.map-scroll-friendly { touch-action: pan-y; }
@media (max-width: 760px) {
 .explorer { grid-template-columns: minmax(0, 1fr); }
 .map-panel { position: static; }
 #map { min-height: 18rem; height: 45svh; }
 main { margin-top: 1.25rem; }
}
