.wf-surroundings { --area-display: var(--wf-display); --area-body: var(--wf-body); --area-ink: var(--wf-project-text, #1f2621); --area-accent: #ad5917; --area-pin: 30px; --area-home: 42px; container-name: wf-area; container-type: inline-size; max-width: var(--wf-map-width); margin: 0 auto; padding: var(--wf-section-y) var(--wf-section-x); display: flex; flex-direction: column; gap: 28px; font: 400 16px/normal var(--area-body); color: var(--area-ink); }
.wf-surroundings .wf-area-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 0; }
.wf-surroundings .wf-area-heading h2 { font: 400 var(--wf-title-size)/1.05 var(--area-display); letter-spacing: normal; }
.wf-surroundings .wf-area-heading p { font: 400 17px/1.6 var(--area-body); color: var(--wf-project-text, #4c554b); }
.wf-surroundings [data-area-count] { font: 400 15px/normal var(--area-body); color: var(--wf-project-text, #4c554b); }
.wf-surroundings .wf-area-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.wf-surroundings .wf-area-category-buttons{display:contents}
.wf-surroundings .wf-area-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 0; padding: 9px 15px; border: 1px solid var(--area-color,var(--area-ink)); border-radius: 999px; background: #fff; color: var(--area-ink); font: 400 14px/normal var(--wf-control); letter-spacing: normal; box-shadow: none; }
.wf-surroundings .wf-area-filters button[aria-pressed="true"]{background:var(--area-color,var(--area-ink));color:#fff}
.wf-surroundings .wf-area-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--area-color); flex: 0 0 auto; }
.wf-surroundings .wf-area-filters button[aria-pressed="true"] .wf-area-dot{background:#fff}
.wf-surroundings .wf-area-dot-all{visibility:hidden}
.wf-surroundings .wf-area-tabs { display: inline-flex; border: 1px solid var(--area-ink); border-radius: 999px; overflow: hidden; margin-right: 10px; }
.wf-surroundings .wf-area-tabs button { border: 0; border-radius: 0; font: 400 14px/normal var(--area-display); text-transform: uppercase; letter-spacing: .08em; padding: 9px 16px; }
.wf-surroundings .wf-area-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.wf-surroundings .wf-area-map-wrap { position: relative; flex: 999 1 660px; min-width: 0; aspect-ratio: 4800/3450; overflow: hidden; background: #efeadf; border: 1px solid #ddd5c8; isolation: isolate; }
.wf-surroundings .wf-area-map{position:absolute;inset:0;width:100%;height:100%;z-index:0;font-family:var(--area-body);background:#efeadf}
.wf-surroundings[data-map-mode="osm"][data-map-style="osm"] .leaflet-tile-pane{filter:saturate(.5) contrast(.94) brightness(1.04)}
.wf-surroundings .wf-area-load{position:absolute;inset:0;display:grid;place-items:center;padding:28px;background:#f4f1ec;z-index:9;text-align:center}
.wf-surroundings .wf-area-load>div{max-width:420px}
.wf-surroundings .wf-area-load strong{font:400 28px/1.2 var(--area-display)}
.wf-surroundings .wf-area-load p{margin:20px 0;font:400 15px/1.5 var(--area-body);color:#4c554b}
.wf-surroundings .wf-area-load .wf-button{padding:12px 20px;border:0;background:var(--area-accent);color:#fff;font:400 17px/1.2 var(--area-display);text-transform:uppercase;letter-spacing:.08em}
.wf-surroundings .wf-area-list-wrap { position: relative; flex: 1 1 300px; min-width: 0; min-height: 420px; }
.wf-surroundings .wf-area-list{position:absolute;inset:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4c4c4 #f5f4f0;background:#fff;border:1px solid #ddd5c8}
.wf-surroundings .wf-area-place { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #eee7dc; border-radius: 0; background: #fff; color: var(--area-ink); text-align: left; box-shadow: none; font-family: var(--area-body); }
.wf-surroundings .wf-area-place:hover,.wf-surroundings .wf-area-place.wf-area-hover{background:#f9f7f3}
.wf-surroundings .wf-area-place[aria-pressed="true"]{background:#f4ede3}
.wf-surroundings .wf-area-place-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.wf-surroundings .wf-area-place strong { font: 500 15px/normal var(--area-body); overflow-wrap: anywhere; }
.wf-surroundings .wf-area-place small { font: 400 13px/normal var(--area-body); color: var(--wf-project-text, #6b6f68); }
.wf-surroundings .wf-area-minutes { font: 400 18px/normal var(--area-display); white-space: nowrap; }
.wf-surroundings .wf-area-icon { display: grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--area-color); color: #fff; }
.wf-surroundings .wf-area-icon svg { width: 15px; height: 15px; }
.wf-surroundings .wf-area-side-note,.wf-surroundings .wf-area-empty { padding: 14px 16px; font: 400 13px/1.5 var(--area-body); color: var(--wf-project-text, #4c554b); background: #f9f7f3; }
.wf-surroundings .wf-area-marker{display:grid;place-items:center;width:var(--area-pin)!important;height:var(--area-pin)!important;margin-left:calc(var(--area-pin)/-2)!important;margin-top:calc(var(--area-pin)/-2)!important;background:transparent;color:#fff;border:0;outline-offset:4px}
.wf-surroundings .wf-area-marker>span { display: grid; place-items: center; width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 4px 12px #0004; transition: transform .16s,box-shadow .16s; }
.wf-surroundings .wf-area-marker svg { width: 16px; height: 16px; color: #fff; }
.wf-surroundings .wf-area-marker-hover>span{box-shadow:0 0 0 3px #ad59174f,0 4px 12px #0004}
.wf-surroundings .wf-area-marker-selected>span{transform:scale(1.3);box-shadow:0 0 0 4px #ad591759,0 4px 12px #0004}
.wf-surroundings .wf-area-home{--area-pin:var(--area-home)}
.wf-surroundings .wf-area-home>span { background: var(--area-accent); border-width: 3px; box-shadow: 0 6px 18px #0004; }
.wf-surroundings .wf-area-origin-label { border: 0; border-radius: 0; padding: 6px 12px; box-shadow: none; background: #1f2621; color: #f4f1ec; font: 400 15px/normal var(--area-display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; margin-top: 30px; }
.wf-surroundings .wf-area-origin-label::before{display:none}
.wf-surroundings .wf-area-edge { position: relative; pointer-events: auto; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #1f2621eb; color: #f4f1ec; }

.wf-surroundings .wf-area-edge>span:not(.wf-area-edge-copy) { font: 400 24px/1 var(--area-body); }
.wf-surroundings .wf-area-edge-copy{display:flex;flex-direction:column;align-items:start;gap:0;min-width:0}
.wf-surroundings .wf-area-edge button { padding: 0; border: 0; background: transparent; color: inherit; font: 400 17px/1.1 var(--area-display); white-space: normal; overflow-wrap: anywhere; text-align: left; }
.wf-surroundings .wf-area-edge button+button { font: 400 11px/1.1 var(--area-body); color: #cfc6bb; }
.wf-surroundings .wf-area-zoom { position: absolute; left: 16px; bottom: 16px; z-index: 650; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #fffefafa; color: #1f2621; border: 1px solid #ddd; border-radius: 999px; box-shadow: 0 8px 24px #0002; font: 400 15px/normal var(--area-display); letter-spacing: .08em; text-transform: uppercase; }
.wf-surroundings .wf-area-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wf-surroundings .wf-area-card,.wf-surroundings .wf-area-route-info,.wf-surroundings .wf-area-hint { position: absolute; left: 16px; bottom: 72px; z-index: 600; background: #fffefaf5; color: var(--wf-project-text, #3a4239); max-width: calc(100% - 32px); }
.wf-surroundings .wf-area-card { width: max-content; max-width: min(340px,calc(100% - 32px)); padding: 14px 16px; box-shadow: 0 12px 30px #0003; border-top: 3px solid var(--area-accent); }
.wf-surroundings .wf-area-card-category { font: 400 12px/normal var(--area-body); letter-spacing: .14em; text-transform: uppercase; color: #6b5f52!important; }
.wf-surroundings .wf-area-card h3 { font: 400 24px/1.1 var(--area-display); margin-top: 4px; }
.wf-surroundings .wf-area-card-address { font: 400 14px/1.5 var(--area-body); margin-top: 4px; color: #4c554b!important; }
.wf-surroundings .wf-area-card-times { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font: 400 14px/1.5 var(--area-body); }
.wf-surroundings .wf-area-card-mode { font: 400 12px/1.5 var(--area-body); color: #6b6f68!important; margin-top: 6px; }
.wf-surroundings .wf-area-card button { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--wf-forest); text-decoration: underline; font: 400 13px/normal var(--area-body); }
.wf-surroundings .wf-area-hint,.wf-surroundings .wf-area-route-info { padding: 12px 16px; font: 400 14px/normal var(--area-body); }
.wf-surroundings .wf-area-route-info:not(.wf-area-sr-status){bottom:auto;top:54px;pointer-events:none;font-size:13px}
.wf-surroundings .wf-area-travel-badge { border: 0; border-radius: 0; padding: 0; box-shadow: 0 8px 24px #0004; background: #1f2621; color: #fff; margin-bottom: 10px; }
.wf-surroundings .wf-area-travel-badge::before{display:none}
.wf-surroundings .wf-area-travel-buttons { display: flex; align-items: center; padding: 10px 12px; }
.wf-surroundings .wf-area-travel-buttons button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #fff; padding: 0 10px; font: 500 20px/normal var(--area-display); white-space: nowrap; opacity: 1; }
.wf-surroundings .wf-area-travel-buttons button+button{border-left:1px solid #ffffff55}
.wf-surroundings .wf-area-travel-buttons button:disabled{cursor:default}
.wf-surroundings .wf-area-travel-buttons svg { width: 18px; height: 18px; }
.wf-surroundings .wf-area-highlights { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(200px,100%),1fr)); gap: 1px; background: #ddd5c8; color: #f4f1ec; margin: 0; }
.wf-surroundings .wf-area-highlights .wf-area-highlight { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 24px; border: 0; border-radius: 0; box-shadow: none; background: var(--wf-box-background, var(--wf-forest)); color: var(--wf-box-color, #f4f1ec); text-align: left; }
.wf-surroundings .wf-area-highlights strong { font: 300 44px/normal var(--area-display); text-transform: none; letter-spacing: normal; color: inherit; overflow-wrap: anywhere; }
.wf-surroundings .wf-area-highlights span { font: 400 13px/normal var(--area-body); letter-spacing: .12em; text-transform: uppercase; color: var(--wf-box-caption, #d9cfc3); overflow-wrap: anywhere; }
.wf-surroundings .wf-area-note { margin: 0; font: 400 12px/normal var(--area-body); color: var(--wf-project-text, #6b6f68); }
.wf-surroundings .leaflet-control-attribution{font:400 9px/1.2 var(--area-body);background:#f4f1ecc9;color:#6b5f52}
.wf-surroundings .wf-area-sr-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.wf-surroundings .wf-area-marker>span{transition:none}}
.wf-area-profile-buttons { display:flex;flex-wrap:wrap;gap:6px;margin:10px 0; }
.wf-area-profile-buttons button { border:1px solid #ddd;background:#fff;padding:7px 10px;cursor:pointer;font:inherit;font-size:13px; }
.wf-area-profile-buttons button[aria-pressed="true"] { background:#ebf1f7;border-color:#3d7fc0; }

/* Open details below a narrow map; the canvas retains its saved geographic ratio. */
@container wf-area (max-width: 900px) {
 .wf-surroundings .wf-area-map-wrap { aspect-ratio: auto; overflow: visible; }
 .wf-surroundings .wf-area-map { position: relative; height: auto; aspect-ratio: 4800/3450; }
 .wf-surroundings .wf-area-card { position: relative; left: auto; bottom: auto; max-width: none; width: auto; margin: 0; box-shadow: none; }
}
.wf-surroundings .wf-area-profile-buttons button { padding:7px 10px;border:1px solid #d8d3ca;text-decoration:none;background:#fff;margin-top:0; }
.wf-surroundings .wf-area-profile-buttons button[aria-pressed="true"] { background:#ebf1f7;border-color:#3d7fc0; }

.wf-surroundings [data-area-distance] { white-space:pre-line; }
.wf-surroundings .maplibregl-map { font-family:var(--area-body); }
.wf-area-vector-layer { position:absolute;left:0;top:0;pointer-events:none;overflow:hidden; }

.wf-surroundings .wf-area-heading-copy { display: flex; flex-direction: column; gap: 10px; max-width: 760px; min-width: 0; }
.wf-surroundings .wf-area-eyebrow { font: 400 44px/1 var(--wf-script); color: #ad5917; }
.wf-surroundings .wf-area-home svg { width: 22px; height: 22px; }
.wf-surroundings .wf-area-edge-left { padding-left: 8px; }

/* Each compass direction owns its own panel and arrow, even on the same map edge. */
.wf-surroundings .wf-area-edge-rail { position: absolute; z-index: 600; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, calc(50% - 8px)); pointer-events: none; }
.wf-surroundings .wf-area-edge-rail-left { top: 0; left: 0; align-items: flex-start; }
.wf-surroundings .wf-area-edge-rail-right { bottom: 0; right: 0; align-items: flex-end; }

/* Map furniture follows the same anchors as the published near view. */
.wf-surroundings .wf-area-origin-label,
.wf-surroundings .wf-area-origin-label span { width: max-content; white-space: nowrap; text-wrap: nowrap; }
.wf-surroundings .wf-area-origin-label { opacity: 1 !important; }
.wf-surroundings .wf-area-hint { display: flex; align-items: center; gap: 10px; background: rgb(249 250 246 / 90%); }
.wf-surroundings .wf-area-hint svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--area-accent); stroke-width: 2; }
.wf-surroundings .wf-area-zoom-plus { display: none; }
.wf-surroundings[data-area-scope="region"] .wf-area-zoom-plus { display: block; }
.wf-surroundings .wf-area-edge-rail { width: max-content; }
.wf-surroundings .wf-area-edge-right { padding-right: 8px; }
.wf-surroundings .wf-area-edge-right .wf-area-edge-copy { align-items: flex-end; }
.wf-surroundings .wf-area-edge > span:not(.wf-area-edge-copy) { font-size: 18px; }
@container wf-area (min-width: 760px) {
    .wf-surroundings .wf-area-edge-rail-left:has([data-area-direction="west"]):has([data-area-direction="northwest"]) {
        height: 35%; justify-content: space-between;
    }
    .wf-surroundings .wf-area-edge-rail-left [data-area-direction="northwest"] { order: -1; }
    .wf-surroundings .wf-area-edge-rail-right { bottom: 16%; transform: translateY(50%); gap: 1px; }
}
@container wf-area (min-width: 760px) {
    .wf-area-edge-rail-right:has([data-area-direction="southeast"]):has([data-area-direction="east"]) {
        gap: 0; align-items: stretch; background: rgb(31 38 33 / 92%);
    }
    .wf-area-edge-rail-right:has([data-area-direction="southeast"]):has([data-area-direction="east"]) .wf-area-edge {
        justify-content: flex-end; background: transparent;
    }
    .wf-area-edge-rail-right:has([data-area-direction="east"]) [data-area-direction="southeast"] { order: -1; padding-bottom: 0; }
    .wf-area-edge-rail-right:has([data-area-direction="southeast"]) [data-area-direction="east"] { padding-top: 0; }
    .wf-area-edge-rail-right:has([data-area-direction="southeast"]) [data-area-direction="east"] button {
        font: 400 11px/1.1 var(--area-body); color: #cfc6bb;
    }
}
