.finder{max-width:1580px;margin:0 auto;padding:25px clamp(16px,3.3vw,58px) 16px}
.finder-title,.filters,.field-row,.map-foot,.list-column header,#pages,.row-actions{display:flex;align-items:center;gap:12px}
.finder-title,.map-foot,.list-column header{justify-content:space-between}.finder-title{gap:28px;margin-bottom:22px}
.finder h1{font-size:clamp(32px,4vw,56px);letter-spacing:-.06em;line-height:1.02;margin:.22em 0 0}
.finder-title a,.filters a,.row-actions a{font-size:14px;color:#ffd4ac}.placefield{width:min(330px,100%);position:relative}
.finder input,.finder select,.finder button{font:inherit}.finder .field-row{gap:6px}
.finder input,.finder select,.finder button{background:#202733;border:1px solid #444e60;border-radius:7px;color:#f3f1ee}
.finder input,.finder select{padding:8px 10px;margin:4px 0 0;min-height:39px}
.finder button{padding:8px 12px;cursor:pointer}.field-row button{align-self:stretch;margin-top:4px}.placefield label,.filters label{font-size:13px;color:#cbd0db}
#results{position:absolute;z-index:1200;width:100%;margin-top:4px;background:#202530;border:1px solid #546177;max-height:310px;overflow:auto}
#results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #374150}#results small{display:block;color:#b9c5d5}
.filters{align-items:flex-end;flex-wrap:wrap;gap:8px 18px;margin-bottom:16px}.filters select{display:block}.filters>a{margin-left:auto;align-self:center}
.explorer{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(315px,.85fr);gap:18px;align-items:start}
#finder-map{height:clamp(430px,63vh,760px);border-radius:10px;background:#c4ced2;isolation:isolate;color:#17232d}
.finder .leaflet-control-zoom a{color:#17232d}.finder .leaflet-control-attribution{font-size:10px;max-width:95%;white-space:normal}
.finder .leaflet-control-attribution a{color:#115580}.map-foot{flex-wrap:wrap;margin-top:9px;font-size:13px}.map-column>p,.finder-data{font-size:13px;color:var(--muted)}
.list-column{background:#191e28;border:1px solid #333d4c;border-radius:10px;display:flex;flex-direction:column;max-height:clamp(430px,63vh,760px);min-width:0;overflow:hidden}
.list-column header{padding:15px 16px;border-bottom:1px solid #333d4c}.list-column h2{font-size:22px;margin:0}.list-column header>span{font-size:13px;color:#cbd0db;text-align:right}
#matches{overflow:auto;scroll-behavior:auto}.finder-card{padding:12px 16px;border-left:3px solid transparent;border-bottom:1px solid #343b47}.finder-card.selected{border-left-color:#ff9d65;background:#282d35}
.finder .choose{font-size:17px;text-align:left;font-weight:650;background:transparent;border:0;padding:0;letter-spacing:-.025em}
.finder-card p{margin:4px 0;overflow-wrap:anywhere}.result-meta{font-size:13px;color:#c5c9d3}.field-note{font-size:14px;color:#f0e4d4}.row-actions{flex-wrap:wrap;gap:12px;margin-top:7px}.row-actions button{padding:3px 8px;font-size:12px}
#load-note:empty,#pages:empty{display:none}#load-note,#pages{padding:8px 16px;font-size:13px;margin:0}#pages{justify-content:space-between}
.vp-marker{border:1px solid #fff;border-radius:50%;background:#465260;box-shadow:0 0 0 1px #4e5964}.vp-marker.shared{background:#6c547e}
.vp-marker.compact:not(.chosen):not(:hover):not(:focus) span{display:none}.vp-marker span{position:absolute;display:inline-block;white-space:nowrap;background:#fffdf8;color:#29333a;border:1px solid #586571;border-radius:7px;padding:2px 5px;font:650 11px/1.3 Inter,Arial,sans-serif;box-shadow:0 1px 3px #28364155}
.vp-marker.shared span{background:#3b4560;color:white}.vp-marker.chosen span{color:#21150f;background:#ffac76;border:2px solid #4b2b1b}
.vp-pin{background:#e6763c;border:3px solid white;box-shadow:0 0 0 2px #4c2918;border-radius:50%}
.finder .bell{border:0;background:transparent}.finder-data{margin-top:16px}.empty-results{padding:12px 16px}
@media(max-width:780px){.finder-title{align-items:stretch;gap:16px;flex-direction:column}.placefield{width:100%}.explorer{grid-template-columns:1fr}.list-column{max-height:60vh}#finder-map{height:46vh;min-height:290px}.filters{gap:8px}.filters select{max-width:100%;font-size:13px}.filters>a{margin:4px 0}.finder{padding-top:16px}.map-column>p{margin-bottom:0}}
.explore-tabs,.light-filters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 14px}.explore-tabs a,.light-filters a{padding:8px 13px;color:#d7e0e7;border-radius:7px;text-decoration:none}.explore-tabs{border-bottom:1px solid #3b424d;padding-bottom:12px}.explore-tabs a[aria-current]{color:#151921;background:#ffbc8c;font-weight:700}.explore-tabs .share-cta{margin-left:auto;color:#ffd6b6}.light-filters{gap:2px}.light-filters a{font-size:14px;padding:5px 10px}.light-filters a[aria-current]{background:#303946;color:white}.finder-card .location-name{font-weight:700;font-size:18px;color:#fff;text-decoration:underline;text-decoration-color:#65717e;text-underline-offset:3px}.finder-card .locate-card{font-size:12px;padding:4px 8px;margin-top:4px}.dir-marker{border-radius:50%;background:#e98545;border:3px solid white;box-shadow:0 0 0 1.5px #553f32}.dir-marker.chosen{background:#743d93;box-shadow:0 0 0 3px #ffba7d}.finder-card .result-meta a{color:#e3c9b0}
.map-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:8px}
.map-toolbar label{display:inline-flex;align-items:center;gap:5px}
.map-toolbar :is(button,select){border:1px solid #58616e;border-radius:5px;color:#f5f5f4;background:#28323e;padding:6px 9px;font:inherit}
.map-toolbar [role=status]{font-size:.87rem;color:#d0d9e3}

.finder {width:min(calc(100% - var(--edge)*2),1360px);max-width:none;padding:16px 0}
.finder-title {margin:0 0 8px;gap:16px}.finder-title h1 {font-size:clamp(28px,3vw,44px);margin:0}
.finder .explore-tabs {padding-bottom:6px;margin-bottom:8px}
.finder-controls,.finder-controls .filters,.finder-controls .map-toolbar {display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:0}
.finder-controls {justify-content:space-between;margin:0 0 10px}.finder-controls .light-filters {margin:0}
.finder-controls .filters label,.finder-controls .map-toolbar label {display:inline-flex;align-items:center;gap:6px}
.finder .finder-controls select {margin:0}.finder .finder-controls [role=status]:empty {display:none}
.finder .vp-marker.shared,.finder .dir-marker,.finder .dir-marker.chosen {background:#ff853e;border-color:#fff3dc;box-shadow:0 0 0 1.5px #894012}
.finder .vp-marker.shared span {background:#82380d;color:#fff8ee;border-color:#ffb686}
.finder .vp-pin {background:white;box-shadow:0 0 0 2px #304453;border-color:#334b5c}
.finder .helpful-control {font-size:13px;line-height:1.5}.finder .helpful-control .field-icon {width:16px;height:16px}
@media(max-width:780px){
 .finder {padding-top:12px}.finder-title {flex-wrap:wrap}.finder-title .placefield {width:100%}
 .finder-controls .filters,.finder-controls .map-toolbar {gap:6px}
 .finder .finder-controls .filters label {flex-direction:column;align-items:flex-start;gap:1px}
 .finder .explore-tabs {gap:0}.finder .explore-tabs a {padding:5px 7px}
}

.pin-legend {display:inline-flex;align-items:center;gap:6px;color:#d2dae5;font-size:12px}
.pin-legend i {width:9px;height:9px;border-radius:50%;border:1px solid #e7edf3;background:#566370}
.pin-legend i.member {background:#ff853e;margin-left:8px}

.explore-tabs .save-cta {margin-left:auto;color:#ffdfc5}.explore-tabs .share-cta {margin-left:0}
@media(max-width:600px){.explore-tabs .save-cta {margin-left:0}.finder .explore-tabs {row-gap:3px}}

.finder .dir-marker.core {background:#eef3f6;border-color:#394752;box-shadow:0 0 0 1px #fff}

/* Two toolbars keep the map and results together on landscape screens. */
.finder .finder-title{display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-start;gap:6px 16px;margin:0 0 8px;padding-bottom:8px;border-bottom:1px solid #343d49}
.finder .finder-title h1{font-size:clamp(1.8rem,2.35vw,2.35rem);line-height:1.05}
.finder-title .explore-tabs{margin:0;padding:0;border:0;gap:2px}
.finder .finder-title .explore-tabs a{color:inherit;font-size:.9rem;padding:7px 10px}
.finder .finder-title .explore-tabs a[aria-current]{color:#171a1f}
.finder-pin-actions{display:flex;align-items:center;gap:4px 12px;flex-wrap:wrap;margin-inline-start:auto}
.finder-pin-actions a{padding:6px 0;text-underline-offset:3px}
.finder-title .placefield{width:clamp(215px,20vw,300px);min-width:0}
.finder-title .placefield label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.finder .finder-title .field-row input{width:100%;min-width:0}
.finder .finder-title .field-row :is(button,input){margin:0}
.finder .finder-controls{margin-bottom:8px}
.finder .list-column header{padding:9px 14px}
.finder .list-column h2{font-size:1.15rem}
.finder .finder-card{padding:9px 14px}
.finder .finder-card p{margin:2px 0}
.finder .finder-card .field-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.4}
.finder .row-actions{margin-top:4px;gap:4px 12px}
.finder #pages{padding:5px 12px}
@media(min-width:981px) and (orientation:landscape){
    .finder{padding-top:10px}
    .finder .map-column,.finder .list-column{box-sizing:border-box;height:var(--vp-workspace,clamp(350px,calc(100vh - 230px),850px));max-height:none;min-height:0}
    .finder .map-column{display:flex;flex-direction:column}
    .finder #finder-map{flex:1 1 auto;min-height:210px;height:auto}
    .finder #matches{flex:1 1 auto;min-height:0}
    .finder .map-foot{flex:none;margin-top:5px;gap:5px 10px}
    .finder .map-column>p{margin:3px 0 0;font-size:.78rem}
    .finder .list-column>header,.finder #pages{flex:none}
}
@media(min-width:981px) and (orientation:landscape) and (pointer:fine){
    .finder .finder-controls :is(select,button),.finder-title .field-row :is(input,button){height:36px;min-height:36px;padding-block:4px}
    .finder #at-centre,.finder #pages button,.finder #pages a{min-height:30px;padding-block:4px}
}
@media(max-width:980px),(orientation:portrait){
    .finder .finder-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
    .finder-title h1{grid-column:1;grid-row:1}
    .finder .finder-title .placefield{grid-column:2;grid-row:1;width:min(40vw,320px)}
    .finder-title .explore-tabs{grid-column:1;grid-row:2}
    .finder-pin-actions{grid-column:2;grid-row:2;justify-content:flex-end}
    .finder .explorer{grid-template-columns:minmax(0,1fr);gap:12px}
    .finder #finder-map{height:clamp(280px,39svh,480px);min-height:0}
    .finder .list-column{height:auto;max-height:none}
    .finder #matches{overflow:visible}
}
@media(max-width:600px){
    .finder .finder-title{grid-template-columns:minmax(0,1fr);gap:5px}
    .finder-title h1,.finder .finder-title .placefield,.finder-title .explore-tabs,.finder-pin-actions{grid-column:1;grid-row:auto}
    .finder .finder-title .placefield{grid-row:2;width:100%}
    .finder-pin-actions{margin:0;justify-content:flex-start}
    .finder .finder-controls .filters{max-width:100%;gap:6px}
    .finder .finder-controls .filters label{min-width:0}
}
@media(pointer:coarse){
    .finder-title .explore-tabs a,.finder-pin-actions a,.finder :is(.field-row,.filters,.map-toolbar,.map-foot) :is(button,select,input){box-sizing:border-box;min-height:44px}
    .finder-title .explore-tabs a,.finder-pin-actions a{display:inline-flex;align-items:center}
}

.finder .selected-pin {
    flex:none; margin:0; padding:10px 14px 12px; border-bottom:1px solid #664630;
    box-shadow:inset 3px 0 #ff995f; background:#29221f; color:#fff8ef
}
.finder .selected-pin.directory-pin {background:#202831; box-shadow:inset 3px 0 #91a7b9; border-color:#3c4b57}
.selected-pin.directory-pin .pin-kind {color:#bfd1df}
.finder .selected-pin[hidden],.finder-pin-label [hidden],.selected-pin [hidden] {display:none}
.selected-pin .pin-kind,.map-pin-label .pin-kind {display:block; color:#ffbc91; font-size:11px; line-height:1.3; font-weight:650}
.finder .selected-pin h3 {margin:2px 0; font-size:17px; line-height:1.25; overflow-wrap:anywhere}
.finder .selected-pin p {margin:3px 0 0; color:#e0d7ce; font-size:13px; line-height:1.4}
.selected-pin .pin-actions {display:flex; flex-wrap:wrap; align-items:center; gap:4px 14px; margin-top:6px}
.finder .pin-actions a {display:inline-flex; align-items:center; min-height:30px; color:#fff2e5; font-size:13px; text-underline-offset:3px}
.finder .pin-actions .pin-primary {padding:0 10px; background:#ffa369; color:#20160f; font-weight:650; border-radius:5px; text-decoration:none}
.finder .pin-actions a[hidden]{display:none}
.finder .finder-pin-label .leaflet-popup-content-wrapper,.finder .finder-pin-label .leaflet-popup-tip {background:#222730; color:#fff}
.finder .finder-pin-label .leaflet-popup-content {margin:8px 24px 8px 12px}
.finder .finder-pin-label .pin-label-close {
    box-sizing:border-box; position:absolute; top:0; right:0; width:24px; height:24px; min-height:0; margin:0;
    padding:0; border:0; border-radius:4px; background:transparent; color:#e2e5e9;
    text-align:center; font:600 17px/24px Arial,sans-serif; text-decoration:none
}
.finder .finder-pin-label .pin-label-close:is(:hover,:focus-visible) {background:#404956; color:white}
.selected-pin-heading {display:flex; align-items:center; justify-content:space-between; gap:8px}
.finder #restore-pin-label {padding:3px 6px; min-height:24px; background:transparent; border:0; color:#ffcbab; font-size:12px; text-decoration:underline; text-underline-offset:3px}
.finder .map-pin-label .pin-label-close:focus-visible,.finder #restore-pin-label:focus-visible,.finder .vp-pin:focus-visible {outline:2px solid #ffab70; outline-offset:2px}
.map-pin-label strong {display:block; margin:1px 0; font-size:13px; line-height:1.35; overflow-wrap:anywhere}
.finder .map-pin-label a {color:#ffd0ae; font-size:12px; text-underline-offset:2px}
@media(pointer:coarse){.finder .pin-actions a{min-height:42px}}
@media(pointer:coarse){
    .finder .finder-pin-label .pin-label-close {width:32px; height:32px; line-height:32px}
    .finder .finder-pin-label .leaflet-popup-content {margin-right:32px}
    .finder #restore-pin-label {min-height:32px}
    .finder .vp-pin.leaflet-marker-draggable::after {content:''; position:absolute; inset:-8px; border-radius:50%}
}
