.project-view-tabs{display:flex;gap:.25rem;align-self:flex-start;padding:.3rem;background:var(--uartf-mist);border:1px solid var(--uartf-line);border-radius:999px;margin-block:0 1.25rem;width:max-content;max-width:100%;}
.project-view-tabs [role=tab]{appearance:none;border:0;border-radius:999px;background:transparent;color:var(--uartf-ink);padding:.7rem 1.15rem;font:600 .92rem/1.2 'Golos Text',sans-serif;min-height:44px;cursor:pointer;}
.project-view-tabs [aria-selected=true]{background:var(--uartf-blue);color:#fff;box-shadow:0 2px 5px #0001;}
#directory-panel{width:100%;}
.project-map-panel{width:calc(100vw - 3rem);max-width:1800px;align-self:flex-start;position:relative;left:50%;transform:translateX(-50%);color:var(--uartf-ink);}
.project-map-stage{height:min(78vh,820px);min-height:620px;position:relative;border:1px solid var(--uartf-line);border-radius:1.5rem;overflow:hidden;background:#e6edf0;box-shadow:0 16px 40px #10254213;isolation:isolate;}
.project-map-canvas{width:100%;height:100%;min-height:400px;z-index:0;}
.project-map-sidebar{position:absolute;z-index:500;left:1rem;top:1rem;bottom:1rem;width:340px;padding:1.1rem;background:#fff;border:1px solid #dfe5ed;border-radius:1rem;box-shadow:0 4px 24px #10254220;display:flex;flex-direction:column;gap:.65rem;overflow:auto;overscroll-behavior:contain;}
.project-map-sidebar .project-filters{display:grid;grid-template-columns:1fr;background:none;border:0;padding:0;gap:.75rem;margin:0;}
.project-map-sidebar .filter-label{font-size:.72rem;line-height:1.4;}
.project-map-sidebar input,.project-map-sidebar select{min-height:42px;padding:.5rem .7rem;font-size:.86rem;max-width:100%;width:100%;border-radius:1.5rem;}
.map-reset-slot{display:flex;justify-content:flex-end;}
.map-feedback{font-size:.78rem;line-height:1.45;margin:0;color:var(--uartf-muted);}
.map-fit{align-self:flex-start;font-size:.78rem;padding:0;border:0;background:none;color:var(--uartf-blue);text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:32px;}
.map-results{padding:0;margin:0;list-style:none;display:flex;flex-direction:column;gap:.5rem;}
.map-result{background:var(--uartf-mist);border-radius:.6rem;padding:.75rem;}
.map-result-button{display:flex;align-items:baseline;gap:.5rem;text-align:left;padding:0;border:0;background:none;width:100%;color:var(--uartf-ink);font:600 .84rem/1.4 'Golos Text',sans-serif;cursor:pointer;}
.map-result-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.map-status-dot,.map-legend-dot{display:inline-block;flex:none;width:10px;height:10px;border:1px solid #0f172a;border-radius:50%;}
.map-result-meta{font-size:.72rem;line-height:1.45;color:var(--uartf-muted);margin:.35rem 0 0;}
.map-legend{position:absolute;z-index:450;right:1rem;bottom:2rem;display:flex;flex-wrap:wrap;gap:.5rem 1rem;max-width:calc(100% - 390px);border-radius:.65rem;background:#fffffff5;padding:.75rem 1rem;box-shadow:0 2px 12px #0001;font-size:.72rem;line-height:1.4;}
.map-legend>span{display:flex;align-items:center;gap:.35rem;}
.map-key-open{background:#15803d}.map-key-partners{background:#9dff00}.map-key-active{background:#008ee6}.map-key-completed{background:#111827}
.project-map-pin{background:none;border:0;}
.project-map-pin>span{display:block;width:24px;height:24px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);border:2px solid white;outline:1px solid #111827;box-shadow:0 2px 5px #0006;}
.project-map-pin>span:after{content:'';display:block;width:6px;height:6px;border-radius:50%;background:#ffffffd9;margin:7px;}
.map-cluster{background:#0f6b78;color:#fff;border:2px solid #fff;box-shadow:0 2px 6px #0004;border-radius:12px;display:flex;justify-content:center;align-items:center;font:700 .85rem/1 'Golos Text',sans-serif;}
.map-popup-card{width:100%;margin:0;}
.map-popup-image{display:block;width:100%;height:125px;object-fit:cover;border-radius:.5rem .5rem 0 0;}
.map-popup-body{padding:.75rem;}
.map-popup-title{font:700 1rem/1.3 'Golos Text',sans-serif;margin:.3rem 0 .6rem;}
.map-popup-status,.map-popup-club,.map-popup-location,.map-location-precision{font:400 .75rem/1.4 'Golos Text',sans-serif!important;margin:.25rem 0!important;}
.map-popup-status{font-weight:700!important;}
.map-location-precision{color:var(--uartf-muted);font-size:.68rem!important;}
.map-popup-link{display:inline-block;font:600 .8rem/1.3 'Golos Text',sans-serif;margin-top:.6rem;color:var(--uartf-blue)!important;}
.project-map-panel .leaflet-popup-content{margin:0;width:260px!important;}
.project-map-panel .leaflet-popup-content-wrapper{padding:0;border-radius:.6rem;overflow:hidden;}
.map-hint,.map-geocode{font-size:.75rem;line-height:1.5;color:var(--uartf-muted);margin:.75rem 0;}
.map-unmapped{padding:.7rem 1rem;border:1px solid var(--uartf-line);border-radius:.5rem;font-size:.85rem;}
.map-unmapped summary{cursor:pointer;font-weight:600;}
.map-unmapped ul{padding-left:1.2rem;display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;max-height:250px;overflow:auto;}
.map-unmapped-item span{display:block;font-size:.75rem;}
@media(max-width:900px){.project-map-panel{width:calc(100vw - 2rem);}.project-map-stage{height:auto;min-height:0;display:flex;flex-direction:column;overflow:visible;border-radius:1rem;}.project-map-sidebar{position:relative;order:-1;left:auto;top:auto;bottom:auto;width:100%;border:0;border-radius:1rem 1rem 0 0;box-shadow:none;overflow:visible;padding:1rem;gap:.5rem;}.project-map-sidebar .project-filters{grid-template-columns:1fr 1fr;gap:.65rem;}.project-map-sidebar input,.project-map-sidebar select{font-size:.82rem;}.project-map-canvas{height:540px;min-height:0;border-radius:0 0 1rem 1rem;}.map-results{display:none;}.map-legend{bottom:2rem;right:.6rem;left:.6rem;max-width:none;width:fit-content;gap:.35rem .7rem;font-size:.68rem;padding:.6rem;}.map-unmapped ul{grid-template-columns:1fr;}}
@media(max-width:500px){.project-view-tabs [role=tab]{font-size:.82rem;padding:.65rem .85rem;}.project-map-panel{width:calc(100vw - 1.25rem);}.project-map-sidebar{padding:.8rem;}.project-map-sidebar .project-filters{gap:.5rem;}.project-map-sidebar .filter-label{font-size:.68rem;}.project-map-sidebar input,.project-map-sidebar select{font-size:.75rem;padding:.5rem;}.project-map-canvas{height:460px;}.map-legend{font-size:.65rem;gap:.35rem .5rem;}.map-hint{padding-inline:.35rem;}}
.map-cluster>span{position:absolute;inset:0;display:grid;place-items:center;line-height:1;font-size:.85rem;color:#fff;}
.map-loading-overlay{position:absolute;inset:0;z-index:800;background:rgb(245 248 252 / 90%);backdrop-filter:blur(2px);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:1.5rem;text-align:center;color:var(--uartf-blue);font-size:.95rem;font-weight:600;border-radius:inherit;}
.map-loading-spinner{width:44px;height:44px;border:4px solid var(--uartf-line);border-top-color:var(--uartf-blue);border-radius:50%;animation:map-loading-spin .85s linear infinite;}
@keyframes map-loading-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.map-loading-spinner{animation:none;border-color:var(--uartf-blue);border-style:dotted;}}
.ukraine-layer-controls{background:#fffffff5;padding:.65rem .8rem;border:1px solid #d3dce6;border-radius:.6rem;box-shadow:0 2px 10px #0002;color:#152438;font:500 .78rem/1.4 'Golos Text',sans-serif;}
.ukraine-focus-label{display:flex;align-items:center;gap:.45rem;cursor:pointer;white-space:nowrap;}
.ukraine-focus-label input{accent-color:#0870bb;width:16px;height:16px;margin:0;}
@media(max-width:500px){.ukraine-layer-controls{font-size:.72rem;padding:.55rem;}}
.project-map-canvas .leaflet-pane>svg{max-width:none!important;max-height:none!important;max-inline-size:none!important;max-block-size:none!important;}
.project-map-canvas .maplibregl-canvas{max-width:none!important;max-height:none!important;max-inline-size:none!important;max-block-size:none!important;}

/* Keep required map credits inline despite the site's general link layout. */
.project-map-canvas .leaflet-control-attribution{width:auto!important;max-width:100%;padding:2px 6px;font-size:10px;line-height:1.35;background:#ffffffdf;box-shadow:none;border-radius:0;text-align:right;}
.project-map-canvas .leaflet-control-attribution a,.project-map-canvas .leaflet-control-attribution span{display:inline!important;width:auto!important;padding:0!important;margin:0!important;font-size:inherit;line-height:inherit;}
.project-map-canvas .leaflet-control-attribution svg{display:inline!important;width:12px!important;height:8px!important;vertical-align:baseline;}

.map-fullscreen-button{display:grid!important;place-items:center;width:34px;height:34px;padding:5px!important;border:0;background:#fff;color:#14293b;font-size:25px;line-height:1;cursor:pointer;}
.map-fullscreen-button svg{width:24px!important;height:24px!important;fill:none;stroke:currentColor;stroke-width:2;}
.map-fullscreen-button:hover{background:#eef4f6;}
.map-fullscreen-button:focus-visible{outline:3px solid #008ee6;outline-offset:2px;}
.project-map-stage:fullscreen,.project-map-stage.map-fullscreen-fallback{width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;border:0;border-radius:0!important;}
.project-map-stage.map-fullscreen-fallback{position:fixed!important;inset:0;z-index:2147483647;}
body.map-presentation-open{overflow:hidden;}
@media(max-width:900px){.project-map-stage:fullscreen,.project-map-stage.map-fullscreen-fallback{display:block!important;}.project-map-stage:fullscreen .project-map-canvas,.project-map-stage.map-fullscreen-fallback .project-map-canvas{height:100%!important;border-radius:0;}.project-map-stage:fullscreen .project-map-sidebar,.project-map-stage.map-fullscreen-fallback .project-map-sidebar{display:none;}}

body.map-presentation-open .project-map-panel{transform:none!important;position:static!important;}

#map-unmapped[hidden],#map-unmapped:not(:has(#map-unmapped-list>li)){display:none!important;}

.territory-toggle{display:grid!important;place-items:center;width:34px;height:34px;min-height:0;padding:5px!important;border:0;background:#fff;color:#164955;cursor:pointer;}
.territory-toggle svg{display:block;width:24px!important;height:24px!important;max-width:none!important;max-height:none!important;}
.territory-toggle[aria-pressed=true]{background:#ccebea;color:#095c63;}.territory-toggle:focus-visible{outline:3px solid #008ee6;outline-offset:1px;}
.territory-info{position:absolute;z-index:550;right:1rem;bottom:5.5rem;width:max-content;max-width:calc(100% - 390px);padding:.5rem .65rem;background:#fffffff2;border:1px solid #dce3e8;border-radius:.6rem;font-size:11px;line-height:1.35;color:#334155;box-shadow:0 2px 8px #10254212;}
.territory-info[hidden]{display:none!important;}.territory-info p{margin:0 0 .3rem;font:inherit;}.territory-info a{display:inline!important;font:inherit!important;text-decoration:underline;}.territory-legend{display:flex;flex-wrap:wrap;gap:.25rem .7rem;}.territory-legend span{display:inline-flex;align-items:center;gap:.3rem;}.territory-legend i{display:inline-block;width:8px;height:8px;border:1px solid #64748b;}
.territory-details{margin-top:.2rem;max-width:430px;}.territory-details summary{display:list-item!important;width:max-content;cursor:pointer;text-decoration:underline;color:#164955;font:inherit;}.territory-details[open]{max-height:24vh;overflow:auto;}.territory-details[open] summary{margin-bottom:.4rem;}
@media(max-width:900px){.territory-info{right:.6rem;max-width:calc(100% - 1.2rem);font-size:10px;padding:.4rem .5rem;}.territory-details{max-width:300px;}}
