/* CPM home map hero: [cpm_home_map]. Scoped to .cpm-hm */
.cpm-hm{--g:#1d5632;--gd:#153f25;--gold:#c9a84c;--az:#da4d70;--tint:#eef3ef;--line:#dbe5dd;--ink:#1b2a20;--muted:#55665a;
  position:relative;height:860px;overflow:hidden;background:#dfe9dd;font-family:'Source Sans 3','Source Sans Pro',Raleway,Arial,sans-serif;color:var(--ink)}
.cpm-hm *{box-sizing:border-box}
.cpm-hm button{font:inherit;cursor:pointer}
.cpm-hm button:focus-visible,.cpm-hm a:focus-visible,.cpm-hm input:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.cpm-hm-map{position:absolute;inset:0 0 64px 0;z-index:1}
.cpm-hm .leaflet-tile-pane{filter:grayscale(.55) sepia(.18) hue-rotate(55deg) saturate(.9) brightness(1.04)}
.cpm-hm .leaflet-container{font-family:inherit;background:#dfe9dd}

/* pins */
.cpm-hm-pin-wrap{background:none!important;border:0!important}
.cpm-hm-pin{position:absolute;transform:translate(-50%,-100%);white-space:nowrap;display:inline-block;background:var(--g);color:#fff;border:2px solid #fff;border-radius:999px;padding:6px 11px;font-weight:700;font-size:14px;box-shadow:0 6px 16px rgba(0,0,0,.25);animation:cpmHmDrop .6s cubic-bezier(.3,1.5,.5,1) both;transition:background .2s,transform .2s}
.cpm-hm-pin:hover{background:var(--gd)}
.cpm-hm-pin.is-on{background:var(--az);transform:translate(-50%,-100%) scale(1.18)}
@keyframes cpmHmDrop{from{opacity:0;margin-top:-40px}to{opacity:1;margin-top:0}}
.cpm-hm-story-pin{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--gd);color:#fff;border:3px solid #fff;font:700 22px Georgia,serif;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:transform .25s,background .25s}
.is-on .cpm-hm-story-pin,.leaflet-marker-icon.is-on .cpm-hm-story-pin{background:var(--gold);transform:translate(-50%,-50%) scale(1.2)}
.cpm-hm-office{background:none!important;border:0!important}
.cpm-hm-dot{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--gd);border:5px solid var(--gold)}
.cpm-hm-pulse{position:absolute;left:-6px;top:-6px;width:40px;height:40px;border-radius:50%;background:rgba(201,168,76,.55);animation:cpmHmPulse 2s ease-out infinite}
@keyframes cpmHmPulse{from{transform:scale(.6);opacity:.8}to{transform:scale(2.6);opacity:0}}
.cpm-hm-office-lbl{position:absolute;left:34px;top:2px;white-space:nowrap;background:var(--gd);color:#fff;font-size:13px;font-weight:700;padding:4px 9px;border-radius:6px}
.cpm-hm-route{stroke:var(--az);animation:cpmHmDash 1s linear infinite}
@keyframes cpmHmDash{to{stroke-dashoffset:-36}}

/* zoom */
.cpm-hm-zoom{position:absolute;right:24px;top:24px;z-index:5;display:flex;flex-direction:column;gap:8px}
.cpm-hm-zoom button{border:0;border-radius:10px;padding:10px 14px;font-weight:700;font-size:14px;background:#fff;color:var(--gd);box-shadow:0 6px 16px rgba(0,0,0,.15)}
.cpm-hm-zoom button[aria-pressed="true"]{background:var(--gd);color:#fff}

/* card */
.cpm-hm-card{position:absolute;left:24px;top:24px;bottom:88px;width:460px;max-width:calc(100% - 48px);z-index:6;background:#fff;border-radius:22px;box-shadow:0 24px 60px rgba(15,42,26,.28);padding:22px;display:flex;flex-direction:column;gap:14px;overflow-y:auto}
.cpm-hm-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:700}
.cpm-hm-saved{color:var(--az)}
.cpm-hm-phone{color:var(--g);text-decoration:none}
.cpm-hm h1{margin:0;font-family:'Playfair Display',Georgia,serif;font-size:30px;line-height:1.1;color:var(--gd)}
.cpm-hm-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;background:var(--tint);border-radius:12px;padding:4px}
.cpm-hm-tabs button{border:0;border-radius:9px;padding:11px 6px;font-weight:700;font-size:14.5px;background:transparent;color:var(--muted);transition:background .2s,color .2s}
.cpm-hm-tabs [data-mode="rent"][aria-selected="true"]{background:var(--az);color:#fff}
.cpm-hm-tabs [data-mode="own"][aria-selected="true"]{background:var(--g);color:#fff}
.cpm-hm-tabs [data-mode="story"][aria-selected="true"]{background:var(--gold);color:var(--gd)}
.cpm-hm-panel{display:flex;flex-direction:column;gap:12px;animation:cpmHmIn .35s ease}
.cpm-hm-panel[hidden]{display:none}
@keyframes cpmHmIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.cpm-hm-chips{display:flex;flex-wrap:wrap;gap:6px}
.cpm-hm-chips button{border:1.5px solid #c9d6cc;background:#fff;color:var(--ink);border-radius:999px;padding:7px 13px;font-weight:700;font-size:14px}
.cpm-hm-chips button[aria-pressed="true"]{background:var(--gd);border-color:var(--gd);color:#fff}
.cpm-hm-home{border:2px solid var(--az);border-radius:16px;overflow:hidden}
.cpm-hm-home img{display:block;width:100%;height:170px;object-fit:cover;background:var(--tint)}
.cpm-hm-home-body{padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.cpm-hm-home-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cpm-hm-rent{font-family:'Playfair Display',Georgia,serif;font-size:26px;color:var(--gd)}
.cpm-hm-rent small{font-family:inherit;font-size:14px;color:#6b7c70}
.cpm-hm-save{border:2px solid var(--az);border-radius:999px;padding:6px 12px;font-weight:700;font-size:14px;background:#fff;color:var(--az)}
.cpm-hm-save[aria-pressed="true"]{background:var(--az);color:#fff}
.cpm-hm-addr{font-weight:700;color:var(--ink);text-decoration:none}
.cpm-hm-addr:hover{text-decoration:underline}
.cpm-hm-meta{font-size:14px;color:#6b7c70}
.cpm-hm-nav{display:flex;gap:8px;margin-top:8px}
.cpm-hm-nav button{width:46px;border-radius:10px;font-size:20px;border:2px solid var(--g);background:#fff;color:var(--g)}
.cpm-hm-nav button:last-child{background:var(--g);color:#fff}
.cpm-hm-btn-rose{flex:1;text-align:center;background:var(--az);color:#fff!important;text-decoration:none;font-weight:700;padding:13px;border-radius:10px}
.cpm-hm-note{margin:0;font-size:14px;color:#6b7c70}
.cpm-hm-note a{color:var(--g);font-weight:700}
.cpm-hm-lead{margin:0;font-size:16px;color:#45584b}
.cpm-hm-panel label{display:flex;justify-content:space-between;font-weight:700;font-size:14px}
.cpm-hm-panel output{color:var(--gd)}
.cpm-hm-panel input[type=range]{width:100%;accent-color:var(--g)}
.cpm-hm-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.cpm-hm-results div{background:var(--gd);color:#fff;border-radius:14px;padding:14px}
.cpm-hm-results b{display:block;font-family:'Playfair Display',Georgia,serif;font-size:32px;color:var(--gold)}
.cpm-hm-results span{font-size:14px}
.cpm-hm-btn-green{background:var(--g);color:#fff!important;text-decoration:none;font-weight:700;padding:15px;border-radius:10px;text-align:center}
.cpm-hm-btn-line{color:var(--g)!important;text-decoration:none;font-weight:700;padding:13px;border-radius:10px;text-align:center;border:2px solid var(--g)}
.cpm-hm-story{background:#f3f7f3;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px}
.cpm-hm-tag{font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--az)}
.cpm-hm-story-title{font-family:'Playfair Display',Georgia,serif;font-size:24px;line-height:1.15;color:var(--gd)}
.cpm-hm-story p{margin:0;font-size:16px;line-height:1.55;color:#334238}
.cpm-hm-story-stat{font-family:'Playfair Display',Georgia,serif;font-size:26px;color:var(--gold)}
.cpm-hm-dots{display:flex;gap:8px;justify-content:center}
.cpm-hm-dots button{width:12px;height:12px;border-radius:50%;border:0;padding:0;background:#c9d6cc}
.cpm-hm-dots button[aria-pressed="true"]{background:var(--gold)}

/* ticker */
.cpm-hm-ticker{position:absolute;left:0;right:0;bottom:0;height:64px;z-index:7;background:var(--gd);overflow:hidden;display:flex;align-items:center}
.cpm-hm-ticker-track{display:flex;gap:56px;white-space:nowrap;padding-left:40px;animation:cpmHmTicker 36s linear infinite}
.cpm-hm-ticker span{color:#fff;font-weight:700;font-size:18px}
.cpm-hm-ticker b{font-family:'Playfair Display',Georgia,serif;color:var(--gold);font-size:22px}
@keyframes cpmHmTicker{to{transform:translateX(-50%)}}

.cpm-hm-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0}

/* phones and small tablets: map on top, card underneath */
@media (max-width:900px){
  .cpm-hm{height:auto;display:flex;flex-direction:column}
  .cpm-hm-map{position:relative;inset:auto;height:58vh;min-height:360px}
  .cpm-hm-zoom{top:12px;right:12px;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 24px)}
  .cpm-hm-zoom button{padding:8px 10px;font-size:13px}
  .cpm-hm-card{position:relative;left:auto;top:auto;bottom:auto;width:auto;max-width:none;margin:-40px 12px 12px;border-radius:18px}
  .cpm-hm-ticker{position:relative}
}
@media (prefers-reduced-motion:reduce){
  .cpm-hm-pin,.cpm-hm-panel{animation:none}
  .cpm-hm-pulse,.cpm-hm-route,.cpm-hm-ticker-track{animation:none}
}
.cpm-hm-pin-wrap:focus{outline:none}
.cpm-hm-pin-wrap:focus-visible .cpm-hm-pin,.cpm-hm-pin-wrap:focus-visible .cpm-hm-story-pin{outline:3px solid var(--gold);outline-offset:2px}

/* ===== 9-step auto-play strip (home page, under the map) ===== */
.cpm-steps-play{--g:#1d5632;--gd:#153f25;--gold:#c9a84c;font-family:'Source Sans 3','Source Sans Pro',Raleway,Arial,sans-serif;max-width:1280px;margin:0 auto;padding:70px 24px;display:flex;flex-direction:column;gap:24px}
.cpm-steps-play *{box-sizing:border-box}
.cpm-steps-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px}
.cpm-steps-head h2{margin:0;font-family:'Playfair Display',Georgia,serif;font-size:clamp(28px,3.2vw,42px);line-height:1.1;color:var(--gd);max-width:780px}
.cpm-steps-head h2 em{color:var(--gold)}
.cpm-steps-head button{border:2px solid var(--g);background:#fff;color:var(--g);border-radius:999px;padding:10px 18px;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer}
.cpm-steps-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px}
.cpm-steps-list button{position:relative;overflow:hidden;width:100%;text-align:left;border:0;border-radius:10px;padding:12px 10px 16px;min-height:78px;background:#f3f7f3;color:var(--gd);cursor:pointer;transition:background .3s,color .3s;font:inherit}
.cpm-steps-list button b{display:block;font-family:'Playfair Display',Georgia,serif;font-size:22px}
.cpm-steps-list button span{font-size:14px;font-weight:700}
.cpm-steps-list button::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:0;background:var(--gold)}
.cpm-steps-list button.is-done::after{width:100%}
.cpm-steps-list button.is-on{background:var(--gd);color:#fff}
.cpm-steps-play.is-playing .cpm-steps-list button.is-on::after{animation:cpmStepBar 3.2s linear forwards}
.cpm-steps-play:not(.is-playing) .cpm-steps-list button.is-on::after{width:100%}
@keyframes cpmStepBar{from{width:0}to{width:100%}}
.cpm-steps-panel{display:flex;flex-wrap:wrap;gap:30px;align-items:center;background:#f3f7f3;border-radius:20px;padding:30px;animation:cpmHmIn .35s ease}
.cpm-steps-panel[hidden]{display:none}
.cpm-steps-panel>b{font-family:'Playfair Display',Georgia,serif;font-size:72px;line-height:1;color:var(--gold);min-width:220px}
.cpm-steps-panel h3{margin:0 0 6px;font-family:'Playfair Display',Georgia,serif;font-size:28px;color:var(--gd)}
.cpm-steps-panel p{margin:0;font-size:18px;line-height:1.55;color:#334238}
.cpm-steps-panel div{flex:1 1 480px;min-width:0}
.cpm-steps-panel a{color:var(--g);font-weight:700}
@media (max-width:900px){.cpm-steps-list{grid-template-columns:repeat(3,minmax(0,1fr))}.cpm-steps-panel>b{font-size:54px;min-width:0}}
@media (prefers-reduced-motion:reduce){.cpm-steps-panel{animation:none}.cpm-steps-play .cpm-steps-list button.is-on::after{animation:none;width:100%}}
