/* Homepage school districts map block (staging). Custom SVG map, neon TIGER outlines. */
.ldm{position:relative;max-width:1240px;margin:0 auto}
/* aspect-ratio 1271/1000 must stay in sync with STAGE_ASPECT / EXT in lake-district-map.js so lon/lat scales stay equal. */
.ldm-stage{position:relative;overflow:hidden;width:100%;aspect-ratio:1271/1000;border-radius:18px;background:var(--bg-f1ebdf);border:1px solid var(--line,#dcd6cc);box-shadow:0 30px 60px -36px rgba(14,36,56,.5);touch-action:pan-y}
@media (max-width:899px){.ldm{max-width:560px}.ldm-stage{border-radius:12px}}
@media (max-width:699px){.ldm{margin-left:calc(var(--gutter,20px) * -1 + 6px);margin-right:calc(var(--gutter,20px) * -1 + 6px)}}
.ldm-canvas{position:absolute;left:0;top:0;transform-origin:0 0}
.ldm-base{position:absolute;inset:0;width:100%;height:100%;display:block;border-radius:inherit;font-family:var(--sans,system-ui,sans-serif)}
.ldm-outlines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1}
.ldm-outline-case{fill:none;stroke:#fff;stroke-width:5;stroke-linejoin:round;stroke-linecap:round;opacity:.9;pointer-events:none}
/* Colored stroke is clipped to each district's interior, so only the inner half
   shows. Widths are ~2x the old 2.6 / 3.4 so the visible weight stays the same. */
.ldm-outline{fill:none;stroke-width:5.2;stroke-linejoin:round;stroke-linecap:round;pointer-events:none}
.ldm-outline.is-active{stroke-width:6.8}
.ldm-outline-hit{fill:none;stroke:transparent;stroke-width:10;stroke-linejoin:round;stroke-linecap:round;cursor:pointer}
.ldm-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.ldm-leader-case{stroke:#fff;stroke-width:4;stroke-opacity:.9;stroke-linecap:round}
.ldm-leader{stroke:#081826;stroke-width:2;stroke-opacity:1;stroke-linecap:round;transition:stroke .2s,stroke-width .2s}
.ldm-leader.is-active{stroke:#c8a96a;stroke-width:2.6;stroke-opacity:1}
.ldm-pins{position:absolute;inset:0;pointer-events:none;z-index:3}
.ldm-pin{position:absolute;width:11px;height:11px;margin:-5.5px 0 0 -5.5px;border-radius:50%;background:#c8a96a;border:2px solid var(--navy-ink);box-shadow:0 0 0 2px #fff,0 2px 4px rgba(0,0,0,.35);box-sizing:border-box;transition:transform .2s}
.ldm-pin.is-active{transform:scale(1.35)}
.ldm-thumbs{position:absolute;inset:0;z-index:4}
.ldm:not(.ldm-ready) .ldm-thumbs,.ldm:not(.ldm-ready) .ldm-pins,.ldm:not(.ldm-ready) .ldm-outlines{visibility:hidden}
.ldm-thumb[hidden],.ldm-pin[hidden]{display:none}
.ldm-thumb{position:absolute;left:0;top:0;display:flex;flex-direction:row;align-items:center;min-width:0;max-width:none;padding:3px 13px 3px 3px;margin:0;border:0;border-radius:999px;background:var(--surface);color:var(--navy-ink);cursor:pointer;font:inherit;box-shadow:0 0 0 1px rgba(14,36,56,.16),0 6px 14px -6px rgba(14,36,56,.5);transition:transform .22s var(--ease,ease),box-shadow .22s;-webkit-tap-highlight-color:transparent}
.ldm-dot{display:block;width:14px;height:14px;flex:none;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(14,36,56,.25);box-sizing:border-box}
.ldm-nm{display:block;padding:0 0 0 7px;font-family:var(--sans,system-ui,sans-serif);font-size:13px;font-weight:700;line-height:1.08;letter-spacing:.01em;white-space:normal;width:min-content;text-align:left;color:var(--navy-ink)}
.ldm-thumb:hover,.ldm-thumb:focus-visible,.ldm-thumb.is-active{transform:scale(1.06);box-shadow:0 0 0 2px #c8a96a,0 14px 26px -10px rgba(14,36,56,.6);z-index:5;outline:none}
.ldm--m .ldm-thumb{padding:2px 8px 2px 2px}
.ldm--m .ldm-thumb::after{content:"";position:absolute;inset:-3px}
.ldm--m .ldm-dot{width:12px;height:12px}
.ldm--m .ldm-nm{padding:0 0 0 4px;font-size:9.6px;line-height:1.05}
.ldm-attr{position:absolute;right:10px;bottom:3px;margin:0;z-index:2;font-size:9px;line-height:1.4;color:var(--ink-soft);letter-spacing:.02em}
.ldm-attr a{color:inherit}
.ldm-pop{position:absolute;z-index:30;box-sizing:border-box;padding:8px;background:var(--surface);border-radius:14px;box-shadow:0 0 0 1px rgba(14,36,56,.12),0 30px 60px -20px rgba(14,36,56,.6);animation:ldmPopIn .24s cubic-bezier(.2,.8,.2,1) both}
.ldm-pop.is-closing{animation:ldmPopOut .16s ease-in both;pointer-events:none}
@keyframes ldmPopIn{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:none}}
@keyframes ldmPopOut{to{opacity:0;transform:scale(.7)}}
.ldm-pop-col{gap:8px}
.ldm-pop-col .tile--community{aspect-ratio:4/3;padding:18px 20px;border-radius:8px;background-color:#0e2438;background-size:cover;background-repeat:no-repeat}
.ldm-pop-col .tile-slices{border-radius:8px;overflow:hidden;background-color:#0e2438;background-size:cover;background-repeat:no-repeat}
.ldm-pop .ldm-pop-col .tile-label{font-size:1.75rem;color:#fff}
.ldm-pop .ldm-pop-col .tile-slices b.jl,.ldm-pop .ldm-pop-col .tile-slices b.jl.jlw{font-size:.82rem}
.ldm-modal{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:center;justify-content:center;padding:28px 18px;background:rgba(14,36,56,.62);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:ldmFade .2s ease both}
.ldm-modal.is-closing{animation:ldmFadeOut .18s ease both}
.ldm-modal-card{position:relative;width:min(400px,100%);box-sizing:border-box;padding:8px;background:var(--surface);border-radius:16px;box-shadow:0 30px 70px -20px rgba(0,0,0,.6);animation:ldmPopIn .26s cubic-bezier(.2,.8,.2,1) both}
.ldm-modal .ldm-pop-col .tile--community{aspect-ratio:4/3;padding:18px 20px;background-color:#0e2438;background-size:cover;background-repeat:no-repeat}
.ldm-modal .ldm-pop-col .tile-slices{background-color:#0e2438;background-size:cover;background-repeat:no-repeat}
.ldm-modal .ldm-pop-col .tile-label{font-size:1.7rem;color:#fff}
.ldm-close{position:absolute;top:-16px;right:-12px;z-index:3;width:44px;height:44px;padding:0;border-radius:50%;border:2px solid #fff;background:#0e2438;color:#fff;font-size:26px;line-height:1;cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.4)}
.ldm-close:focus-visible{outline:2px solid #c8a96a;outline-offset:2px}
@keyframes ldmFade{from{opacity:0}to{opacity:1}}
@keyframes ldmFadeOut{to{opacity:0}}
html.ldm-modal-open #tawkchat-container,html.ldm-modal-open iframe[title*="chat" i]{visibility:hidden!important}
.ldm-wrap{margin:0}
.section--school-districts{padding-top:clamp(12px,2vw,28px)}
.ldm-stage.is-panning,.ldm-stage.is-panning *{cursor:grabbing!important;user-select:none}
.ldm-stage.is-zoomed{cursor:grab;touch-action:none}
.ldm-stage.ldm-hide-base-labels .ldm-shield,.ldm-stage.ldm-hide-base-labels .ldm-landmark{display:none}

.ldm-zoom{position:absolute;top:10px;right:10px;z-index:6;display:flex;flex-direction:column;border:1.5px solid var(--navy-ink);border-radius:10px;overflow:hidden;background:var(--surface);box-shadow:0 6px 16px -8px rgba(14,36,56,.55)}
.ldm-zoom button{width:36px;height:36px;padding:0;border:0;border-bottom:1px solid var(--line,#dcd6cc);background:var(--surface);color:var(--navy-ink);font-size:22px;line-height:1;font-weight:600;cursor:pointer}
.ldm-zoom button:last-child{border-bottom:0}
.ldm-zoom button:hover,.ldm-zoom button:focus-visible{background:var(--gold,#c8a96a);outline:none}
.ldm-zoom button:disabled{opacity:.38;cursor:default;background:var(--surface)}
@media (max-width:560px){.ldm-zoom button{width:34px;height:34px}}
@media (prefers-reduced-motion:reduce){.ldm-pop,.ldm-modal,.ldm-modal-card{animation:none}.ldm-thumb{transition:none}}
