/* Shared V2 map controls preserve FOREST's working-surface vocabulary. */
/* Keep Leaflet's internal control/pane layers beneath the page navigation. */
.search-map-section,.leaflet-container{isolation:isolate}
.lmf-map-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 8px;color:var(--forest,#285c43);font-size:14px}
.lmf-map-tools a,.lmf-map-tools button,.lmf-map-tools summary{box-sizing:border-box;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid var(--line,#d8e0d6);border-radius:8px;background:#fff;color:var(--forest,#285c43);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.lmf-map-tools a:hover,.lmf-map-tools button:hover,.lmf-map-tools summary:hover{background:var(--paper,#edf1eb)}
.lmf-map-tools :is(a,button,summary,select,input):focus-visible{outline:3px solid #c88520;outline-offset:2px}
.lmf-map-tools details{position:relative;min-width:0}
.lmf-map-tools details>summary{list-style:none}
.lmf-map-tools details>summary::-webkit-details-marker{display:none}
.lmf-map-tools details[open]>summary{background:#e3eee4}
.lmf-map-layer-body{position:absolute;z-index:1001;top:calc(100% + 4px);left:0;width:min(310px,calc(100vw - 40px));max-height:min(440px,70vh);overflow:auto;display:grid;gap:8px;padding:14px;background:#fff;border:1px solid var(--line,#d8e0d6);border-radius:10px;box-shadow:0 10px 28px rgba(31,54,42,.16);color:var(--ink,#20362c)}
.lmf-map-background{display:grid;gap:6px;font-size:13px;font-weight:600}
.lmf-map-background select{width:100%;min-height:44px;margin:0;font:inherit;color:var(--ink,#20362c)}
.lmf-map-checkbox{display:flex;align-items:center;gap:8px;min-height:44px;line-height:1.4;font-size:14px;cursor:pointer}
.lmf-map-checkbox input{width:18px;height:18px;flex:none;accent-color:#285c43}
.lmf-map-checkbox:has(input:disabled){color:var(--muted,#536257);cursor:default}
.lmf-map-layer-note{font-size:12px;color:var(--muted,#536257)}
.lmf-map-layer-body>p.lmf-map-layer-note{margin:0;line-height:1.45}
.lmf-map-frames{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lmf-map-frames button{width:100%;font-size:13px;line-height:1.35;white-space:normal}
.lmf-map-frames button:last-child:nth-child(odd){grid-column:1/-1}
.lmf-map-status,.lmf-map-handoff-note{margin:6px 0 0;color:var(--muted,#536257);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.lmf-map-handoff-note{margin:2px 0 8px}
.lmf-map-stand-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0;padding:2px 8px;background:#fff1d6;color:var(--ink,#20362c);font-size:13px;line-height:1.4}
.lmf-map-stand-selection[hidden]{display:none}
.lmf-map-stand-selection>span{min-width:0;overflow-wrap:anywhere}
.lmf-map-stand-selection>button{flex:none;min-height:44px;padding:8px;color:var(--forest,#285c43);background:transparent;border:0;border-radius:4px;font:inherit;cursor:pointer}
.lmf-map-stand-selection>button:hover{background:#f3e3bc}
.lmf-map-stand-selection>button:focus-visible{outline:3px solid #c88520;outline-offset:1px}
.lmf-map-stand-label{padding:3px 6px;font-size:12px;line-height:1.35;color:#20362c;background:#fff;border:0;pointer-events:none}
/* Forest Data numbers stay legible on both map backgrounds; geometry owns input. */
.lmf-map-number-overlay{position:absolute;inset:0;z-index:450;overflow:hidden;pointer-events:none}
.lmf-map-number-overlay[hidden],.lmf-map-number-overlay [hidden]{display:none}
.lmf-map-number-lines{position:absolute;inset:0;overflow:visible;pointer-events:none}
.lmf-map-number-connector{stroke:#20362c;stroke-width:1;stroke-opacity:.7;pointer-events:none}
.lmf-map-number{position:absolute;box-sizing:border-box;padding:2px 4px;border-radius:3px;background:rgba(255,255,255,.96);color:#20362c;box-shadow:0 1px 3px rgba(31,54,42,.14);font-family:inherit;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;line-height:16px;white-space:nowrap;pointer-events:none;user-select:none}
.lmf-map-wheel-hint{position:absolute;z-index:900;left:10px;bottom:10px;max-width:min(290px,calc(100% - 70px));padding:5px 8px;border-radius:5px;background:rgba(255,255,255,.94);color:#20362c;box-shadow:0 2px 9px rgba(31,54,42,.17);font-size:11px;line-height:1.35;pointer-events:none;opacity:0}
.leaflet-container:hover>.lmf-map-wheel-hint,.leaflet-container:focus-within>.lmf-map-wheel-hint,.leaflet-container.lmf-map-wheel-active>.lmf-map-wheel-hint{opacity:1}
.prospect-evidence-map .lmf-map-tools{margin-bottom:0}
.prospect-evidence-map .lmf-map-status{order:3}
@media(max-width:520px){.lmf-map-tools{gap:6px}.lmf-map-tools a,.lmf-map-tools button,.lmf-map-tools summary{padding:8px 10px}.lmf-map-layer-body{left:0}}
/* One layout choice changes the existing catalogue map without remounting it. */
.search-map-section{overflow:visible}
.search-map-section .map-area{position:relative;overflow:hidden;border-radius:0 0 11px 11px}
.map-layout-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 10px;background:#fff;border-radius:11px 11px 0 0}
.map-layout-row>.lmf-map-tools{margin:0 auto 0 0;padding:0;background:transparent}
.map-layout-row>.map-layout-control{margin:0}
.map-layout-control{display:flex;align-items:center;gap:8px;color:var(--muted,#536257);font-size:13px;font-weight:500}
.map-layout-control select{min-height:44px;max-width:min(190px,46vw);margin:0;font-size:14px;color:var(--ink,#20362c)}
#map-fullscreen-exit{min-height:44px;padding:8px 12px}
#land-container.map-layout-top #search-map-section .map-area,#land-container.map-layout-bottom #search-map-section .map-area{height:clamp(280px,42dvh,620px)}
#land-container.map-layout-top #search-results,#land-container.map-layout-bottom #search-results{max-height:clamp(280px,42dvh,620px);overflow:auto;min-height:0}
#land-container.map-layout-bottom #search-map-section{margin-top:12px}
#search-map-section.is-map-fullscreen,#search-map-section:fullscreen{display:flex;flex-direction:column;width:100%;height:100dvh;min-height:0;margin:0;border:0;border-radius:0;background:#fff;overflow:auto}
#search-map-section.is-map-fullscreen .map-area,#search-map-section:fullscreen .map-area{flex:1;min-height:180px;height:auto!important;border-radius:0}
#search-map-section.is-map-overlay{position:fixed;inset:0;z-index:9999;box-shadow:0 0 0 100vmax rgba(0,0,0,.55)}
#search-map-section.is-map-fullscreen .lmf-map-tools{padding:4px 10px;margin:0;background:#fff}
#search-map-section.is-map-fullscreen .lmf-map-status,#search-map-section.is-map-fullscreen .lmf-map-handoff-note{padding:0 10px}
@media(max-width:520px){.map-layout-row{justify-content:space-between;flex-wrap:wrap}.map-layout-control{flex:1;min-width:0}.map-layout-control select{flex:1;max-width:100%}#land-container.map-layout-top #search-map-section .map-area,#land-container.map-layout-bottom #search-map-section .map-area{height:clamp(280px,38dvh,480px)}#land-container.map-layout-top #search-results,#land-container.map-layout-bottom #search-results{max-height:clamp(280px,38dvh,480px)}}

/* Approved compact map controls: 30px targets exceed the 24px minimum. */
.leaflet-container .leaflet-control-zoom{border:0;background:transparent;box-shadow:0 2px 8px rgba(31,54,42,.14)}
.leaflet-container .leaflet-control-zoom>a{width:30px;height:30px;line-height:30px;font-size:20px;background:rgba(255,255,255,.84);color:var(--forest,#285c43);border-color:var(--line,#d8e0d6)}
.leaflet-container .leaflet-control-zoom>a:hover{background:rgba(255,255,255,.96)}
.leaflet-container .leaflet-control-zoom>a:focus-visible{outline:2px solid var(--forest,#285c43);outline-offset:2px}
.leaflet-container .leaflet-control-zoom>a.leaflet-disabled{color:var(--muted,#536257);background:rgba(255,255,255,.72)}

