/* ============================================================
   CENTRAL PARK RESIDENCES — INTERACTIVE MAP
   map.css
   ------------------------------------------------------------
   Leaflet map stage, custom pins, overlay landmark list, and the
   designed popup card. Pin + Leaflet-popup base rules are ported
   from the source (index.html inline styles); the popup card is
   built to match the design system.

   Loaded on demand by the CP Interactive Map widget only.
   Depends on: variables.css, core.css, leaflet.css
   ============================================================ */

.cp-interactive-map{--map-h:clamp(440px,58vh,580px);}

/* ---- Filter tabs reuse core .loc-tabs / .loc-tab (pills) ---- */
.cp-interactive-map .loc-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}

/* ---- Stage + map canvas ---- */
.cp-map-stage{position:relative;margin-top:clamp(28px,3.4vw,42px);}
.cp-map-box{height:var(--map-h);border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);z-index:1;}

/* ---- Leaflet container + custom pins ---- */
.leaflet-container{font-family:var(--sans);background:var(--bg-soft-2);}
.cppin{width:14px;height:14px;border-radius:50%;border:2px solid #151513;box-shadow:0 2px 6px rgba(0,0,0,.35);cursor:pointer;display:flex;align-items:center;justify-content:center;}
.cppin-home{width:22px;height:22px;background:#151513;border:3px solid var(--lime);}
.cppin-icon{width:30px;height:30px;border:2px solid #151513;color:#151513;}
.cppin-icon svg{width:15px;height:15px;display:block;}

/* ---- Leaflet popup shell (design-system rounding + shadow) ---- */
.leaflet-popup-content-wrap{border-radius:16px;box-shadow:0 16px 42px -16px rgba(0,0,0,.45);padding:0;overflow:hidden;}
.leaflet-popup-content{margin:0;width:232px !important;line-height:1.5;}
.leaflet-popup-close-button{z-index:2;color:#fff !important;top:6px !important;right:8px !important;}

/* ---- Designed popup card ---- */
.cp-map-popup-img{aspect-ratio:16/9;overflow:hidden;background:var(--bg-soft);}
.cp-map-popup-img img{width:100%;height:100%;object-fit:cover;display:block;}
.cp-map-popup-body{padding:14px 15px 16px;}
.cp-map-popup-cat{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--ink);background:var(--bg-soft);padding:4px 10px;border-radius:var(--r-pill);margin-bottom:9px;}
.cp-map-popup-cat::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--c,var(--lime-deep));}
.cp-map-popup-title{display:block;font-size:15px;font-weight:600;letter-spacing:-.01em;color:var(--ink);}
.cp-map-popup-addr{color:var(--muted);font-size:12.5px;margin-top:4px;}
.cp-map-popup-dist{color:#2e7d18;font-size:12px;font-weight:600;margin-top:6px;}
.cp-map-popup-desc{color:var(--muted);font-size:12.5px;line-height:1.5;margin-top:9px;}
.cp-map-popup-btn{display:inline-flex;align-items:center;gap:6px;margin-top:13px;background:var(--lime);color:var(--ink);font-weight:600;font-size:12.5px;padding:9px 15px;border-radius:var(--r-pill);transition:background .3s var(--ease);}
.cp-map-popup-btn:hover{background:var(--lime-deep);}

/* ---- Overlay landmark list ---- */
.cp-map-overlay{position:absolute;left:20px;top:20px;z-index:500;width:min(316px,82%);background:rgba(255,255,255,.97);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:var(--r-md);padding:22px;box-shadow:0 24px 54px -28px rgba(0,0,0,.34);max-height:calc(var(--map-h) - 40px);overflow:auto;}
.cp-map-overlay .lo-eyebrow{color:var(--muted);font-size:12px;font-weight:600;margin-bottom:8px;display:flex;align-items:center;gap:8px;}
.cp-map-overlay .lo-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--lime-deep);}
.cp-map-overlay h3{font-size:20px;font-weight:600;letter-spacing:-.02em;margin-bottom:12px;}
.cp-map-list{display:flex;flex-direction:column;}
.cp-map-item{display:flex;align-items:center;gap:11px;padding:11px 0;border-top:1px solid var(--line);font-size:14px;cursor:pointer;transition:color .25s var(--ease);}
.cp-map-item:first-child{border-top:none;}
.cp-map-item.is-hidden{display:none;}
.cp-map-item:hover b{color:var(--ink);}
.cp-map-item .ld{width:9px;height:9px;border-radius:50%;flex:0 0 auto;}
.cp-map-item b{font-weight:600;}
.cp-map-item .lt{margin-left:auto;color:var(--muted);font-size:12.5px;white-space:nowrap;}
@media(max-width:640px){.cp-map-overlay{position:static;width:auto;margin-bottom:14px;max-height:none;}}
