:root{--night:#111c21;--slate:#213138;--lime:#d4ff75;--atlas-line:#33474e;--paper:#f4f6ef}
body{background:var(--night);color:#e8eee6}
.header,body.area-theme .header{background:#10191d;color:#fff;border:0;border-bottom:2px solid var(--area-color,var(--lime))}
.header .nav{min-height:58px}.header .nav :is(a,strong),body.area-theme .header .nav :is(a,strong){color:#eff6eb}
.header .brand img{border:1px solid #65847d;border-radius:50%}
.header .nav nav a{border:1px solid #617168;border-radius:100px;padding:7px 15px}
#explore .back-nav:empty{display:none}.back-nav a{background:#22343a;color:#eff7ec;border-color:#53656a}
#explore{margin-top:14px}.wrap.section,.header .wrap{width:calc(100% - clamp(16px,4vw,80px))}
#explore .section-head,body.area-theme #explore .section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,34%);align-items:end;position:relative;isolation:isolate;min-height:clamp(175px,17vw,255px);box-sizing:border-box;border-radius:24px 24px 5px 5px;padding:clamp(21px,3.5vw,52px);margin:0;background:#192b2d;color:white}
#explore .section-head::before{display:block;content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;opacity:1;background:linear-gradient(95deg,#101f24 4%,#12282dea 33%,#162d2f42 77%),url('/media/coast.webp') center 53%/cover}
body.area-theme #explore .section-head::before{background:linear-gradient(100deg,#122228 18%,#13292ed9 55%,transparent),linear-gradient(20deg,transparent 45%,color-mix(in srgb,var(--area-color) 72%,transparent)),url('/media/representative.webp') right 54%/cover}
#explore .section-head h1,body.area-theme #explore .section-head h1{color:#fff;font:500 clamp(2.3rem,4.9vw,5.4rem)/.98 Georgia,'Times New Roman',serif;letter-spacing:-.055em;max-width:17ch;margin:6px 0 10px}
#explore .section-head p,body.area-theme #explore .section-head p{color:#e4ece8;font-size:1rem}
#explore .hero-kicker,body.area-theme #explore .hero-kicker{color:var(--area-color,var(--lime));font-size:.77rem;letter-spacing:.13em}
#explore .search{background:#fff;border:0;box-shadow:0 4px 24px #0003;min-height:48px;color:#12272a}
#explore .browse-bar{background:#202e33;border:0;color:white;padding:12px 16px;border-radius:5px 5px 18px 18px;gap:10px;margin:3px 0 12px;justify-content:space-between}
#explore .browse-mode{background:#142025;border:1px solid #45585a;border-radius:24px;padding:3px}
#explore .browse-mode button{color:#f2f6ed;background:transparent;border-color:transparent;border-radius:20px}
#explore .browse-mode button[aria-pressed=true]{background:var(--area-color,var(--lime));color:#162021}
#explore .criteria>label,#explore .feature-picker summary{background:#edf3eb;color:#192d30;border:0}
#explore .destinations,#explore .lifestyle-bar{background:transparent;color:#dce9dc;border:0;padding:3px 0;box-shadow:none}
#explore .destinations a,#explore .lifestyle-bar button{background:#23343b;color:#eaf4e9;border:1px solid #465961;border-radius:100px}
#explore .lifestyle-bar button[aria-pressed=true]{background:var(--lime);color:#182922}
#explore .lifestyle-bar :is(p,strong,label){color:#dfebdf}
#explore .map{border:1px solid #52656b;border-radius:20px;background:#192a30;box-shadow:none}
#explore .map .map-canvas{border-radius:19px;background-color:#142b34;background-image:radial-gradient(circle,#91c1c52b 1px,transparent 1.2px),radial-gradient(ellipse at center,#28454a,transparent 75%);background-size:17px 17px,cover}
#map .base-land{fill:#344744;stroke:#52615a}
#map .water-label{fill:#b8dedd;stroke:#19333a}
#map .areas{filter:none}
#map .area{stroke:#263f43;stroke-width:1.15}
#map a,#explore-title{-webkit-tap-highlight-color:transparent}
#map a:focus,#explore-title:focus{outline:none}
#map a:is(:hover,:focus-visible,:active,.highlight) .area{stroke:#fffbd5;stroke-width:3;filter:brightness(1.12)}
#map a:focus-visible .area{stroke:#142b32;stroke-width:4}
#map a:focus-visible rect{stroke:#0b303d;stroke-width:3}
#explore .map-tools{background:#15282eea;border-radius:24px;overflow:hidden}
#explore .north{color:#eaf6e3}
#explore .map-tip{display:none}
.map-expand{position:absolute;bottom:14px;left:14px;z-index:3;border:1px solid #718781;background:#14272dec;color:#ecf7e6;border-radius:24px;padding:8px 14px;cursor:pointer;font:600 .87rem system-ui}
.map-canvas.atlas-expanded{position:fixed!important;inset:0;z-index:1000!important;border-radius:0!important}
body:has(.atlas-expanded){overflow:hidden}
#explore:has(.atlas-expanded) .map{isolation:auto;position:static}
#explore .atlas-expanded #map{height:100dvh}
#explore .panel,.area-travel{background:#f4f6ef;color:#20332c;border:0;border-radius:20px;box-shadow:none}
#explore .panel h2,.area-travel h2,.map-agencies h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.035em}
#explore .places a{background:#fff;border:1px solid #dce5d8;transition:background .15s,border-color .15s}
#explore .places a:is(:hover,.highlight){background:#e8f2db;border-color:#91ac81}
#explore .listing-card,#explore .agency-tile{background:white;color:#23392f;border-radius:18px;overflow:hidden}
.listing-grid .listing-art img{transition:transform .35s}.listing-grid .listing-card:hover .listing-art img{transform:scale(1.035)}
.map-source,.foot,.foot a,.map-source a{color:#b9c9c2}.foot{border-color:#44565a}
.area-travel .travel-content a{background:#e3ece1;border-radius:13px}
@media(max-width:690px){
 #explore .section-head,body.area-theme #explore .section-head{grid-template-columns:1fr;gap:14px;padding:20px 16px;min-height:0;border-radius:0}
 #explore .section-head h1,body.area-theme #explore .section-head h1{font-size:2.65rem}
 #explore .browse-bar{border-radius:0;padding:9px;justify-content:flex-start}
 #explore .map,#explore .map .map-canvas{border-radius:0}
 #explore .destinations,#explore .lifestyle-bar{margin-inline:10px}
 .map-expand{bottom:8px;left:8px}
 .atlas-expanded .property-peek:not([hidden]){position:absolute;bottom:0;left:0;right:0;top:auto;max-height:52dvh}
}
@media(prefers-reduced-motion:reduce){.listing-grid .listing-card:hover .listing-art img{transform:none}}
#explore .map-tip:not([hidden]){display:block;background:#13252cee;color:#f1f8e9;border:1px solid #739185;border-radius:100px;pointer-events:none}
.feature-choices,.agency-overlay,.property-peek{color:#20332c}
body:has(.atlas-expanded) #explore .atlas-expanded #map{height:100dvh;min-height:0}
body.area-theme #explore .hero-copy{border-inline-start:4px solid var(--area-color);padding-inline-start:15px}

/* Rainforest palette, with quiet offshore motion and stable, high-contrast labels. */
body{background:#102b1c}
.header,body.area-theme .header{background:#0b2619}
#explore .section-head::before{background:linear-gradient(90deg,#0c321c 5%,#133b21e8 37%,#1e472c22 80%),url('/media/coast.webp') center 54%/cover}
body.area-theme #explore .section-head::before{background:linear-gradient(95deg,#0d301e 12%,#163e24d9 53%,transparent),url('/media/representative.webp') right 51%/cover}
#explore .browse-bar{background:#234830}
#explore .browse-mode,#explore .destinations a,#explore .lifestyle-bar button{background:#183a26;border-color:#628365;color:#f0f7e9}
#explore .browse-mode button[aria-pressed=true],#explore .lifestyle-bar button[aria-pressed=true]{background:#d2ec91;color:#15311d}
#explore .map .map-canvas{background:#2e5138}
#map .base-land{fill:#91aa78;stroke:#849f70}
#map .water-label{fill:white;stroke:#397769}
#explore .map-tools,.map-expand{background:#153b29}
#map .area-label{fill:#173523;stroke:#eff8d9}
#explore .section-head p,.feature-picker summary,.criteria label,.property-map-status,.listing-meta,.listing-action{font-size:1rem}
.wave-detail,.filter-feedback{color:#eef8ce;background:#21462c;padding:10px 16px;border-radius:12px;margin:8px 0;font-size:1rem}
.wave-detail a{color:#dbf8ac}.wave-detail summary{cursor:pointer;font-weight:650}
.ocean-swell{opacity:.27;animation:swell-travel var(--wave-duration,10s) linear infinite}
@keyframes swell-travel{to{transform:translateY(36px)}}
@keyframes forest-glow{50%{filter:brightness(1.16)}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 #map a:hover .area,.listing-card:hover .listing-art,.agency-tile:hover .agency-art,.browse-mode button:hover,.places a:hover,.destinations a:hover,.map-tools button:hover{animation:forest-glow .75s ease-in-out 1}
}
@media(prefers-reduced-motion:reduce){.ocean-swell{animation:none}}
#map .no-inventory .area{opacity:.28}
.has-filter small,.has-filter .count{display:none}
.match-total{font-weight:700;color:#254d2f}.filter-feedback[hidden],.match-total[hidden]{display:none}
#map.inventory-filtered .climate-map-cue{display:none}
body.area-theme .header{border-bottom-color:var(--area-color)}
#explore .browse-mode button,.feature-picker summary,.map-tools button,.wave-detail summary{min-height:44px}
.province-agency-link{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;margin-top:10px;background:#e6f4e2;border:1px solid #b7d1b5;color:#1e5535;border-radius:999px;font-weight:750;font-size:.86rem}.province-agency-link:hover{background:#d5ebcf}
@media(max-width:560px){.header .nav nav{gap:5px}.header .nav nav a{padding:6px 8px;font-size:.74rem}}

/* National landing: let the map lead, then offer alternative ways to browse. */
body[data-place="cr"]{background:#f5f6ef;color:#193e34}
body[data-place="cr"] #explore{display:flex;flex-direction:column;gap:14px;width:min(100%,1440px);margin:0 auto;padding:0 clamp(0px,2vw,32px) 32px}
body[data-place="cr"] #explore .explorer{display:contents}
body[data-place="cr"] #explore .back-nav{display:none}
body[data-place="cr"] #explore .map{order:-3;position:relative;width:100%;margin:0;padding:0;border:0;border-radius:0 0 28px 28px;box-shadow:none;overflow:hidden;background:#cce9dc}
.map-touch-hint {
 position:absolute;
 z-index:2;
 top:16px;
 left:50%;
 transform:translateX(-50%);
 box-sizing:border-box;
 width:max-content;
 max-width:calc(100% - 24px);
 margin:0;
 padding:8px 16px;
 border:2px solid #633400;
 border-radius:12px;
 background:#ffca45;
 color:#2e1a00;
 box-shadow:0 4px 16px #3e23004d;
 text-align:center;
 font:400 .875rem/1.35 system-ui,sans-serif;
 pointer-events:none;
}
.map-touch-hint strong,.map-touch-hint span{display:block}
.map-touch-hint strong{font-size:1rem}
.insights-entry{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin:0 auto 24px;padding:clamp(18px,3vw,32px);border:1px solid #4e6875;border-radius:18px;background:#192841;color:#f5f9ff}
.insights-entry h2,.insights-entry p{margin:0}.insights-entry p{margin-top:6px;max-width:58ch}
.insights-entry a{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border-radius:9px;background:#ffca45;color:#2e1a00;font-weight:700}
@media(prefers-reduced-motion:no-preference){
 .map-touch-hint{animation:map-touch-pulse 2.8s ease-out 5}
}
@keyframes map-touch-pulse{
 0%,64%,100%{box-shadow:0 4px 16px #3e23004d,0 0 0 0 #fff1ae00}
 18%{box-shadow:0 4px 16px #3e23004d,0 0 0 5px #fff1aef0}
 48%{box-shadow:0 4px 16px #3e23004d,0 0 0 12px #fff1ae00}
}
body[data-place="cr"] #explore .map .map-canvas{border:0;border-radius:0;background:#cbe5d8;box-shadow:none}
body[data-place="cr"] #explore .map-canvas:before,body[data-place="cr"] #explore .map-canvas:after{display:none}
body[data-place="cr"] #explore #map{display:block;width:100%;height:clamp(520px,81svh,940px);max-height:none;min-height:0}
body[data-place="cr"] #map .base-land{fill:#c9d6ad;stroke:#b5c59c}
body[data-place="cr"] #map .ocean-swell{opacity:.055}
body[data-place="cr"] #explore .section-head{order:-2;margin:0;background:#fff;color:#20483a;min-height:0;padding:clamp(18px,3vw,38px);border-radius:18px;box-shadow:none}
body[data-place="cr"] #explore .section-head::before,body[data-place="cr"] .hero-kicker,body[data-place="cr"] .section-head .photo-credit{display:none}
body[data-place="cr"] #explore .section-head :is(h1,p){color:#244f41;text-shadow:none}
body[data-place="cr"] #explore .section-head h1{font:500 clamp(28px,4vw,54px)/1.05 Georgia,serif}
body[data-place="cr"] #explore .panel{order:3}
body[data-place="cr"] .map-source,body[data-place="cr"] .foot,body[data-place="cr"] .foot a{color:#31594b}
@media(max-width:690px){body[data-place="cr"] #explore{padding-inline:0}body[data-place="cr"] #explore #map{height:76svh;min-height:390px}.map-touch-hint{top:52px}body[data-place="cr"] #explore .map{border-radius:0 0 18px 18px}}
body[data-place="cr"]:has(.atlas-expanded) #explore .map{position:static;overflow:visible}
body[data-place="cr"] #explore .atlas-expanded #map{height:100dvh}

/* Put navigation after the map experience on the national landing page. */
body[data-place="cr"]{display:flex;flex-direction:column}
body[data-place="cr"]>main{order:0}
body[data-place="cr"]>.header{order:1;position:static}
body[data-place="cr"]>.foot{order:2}
body[data-place="cr"] #map .ocean-swell{opacity:.16}
@media(prefers-reduced-motion:no-preference){
 body[data-place="cr"] #map .areas>a .area{animation:province-breathe 6s ease-in-out infinite}
 body[data-place="cr"] #map .areas>a:nth-child(2n) .area{animation-delay:-2s}
 body[data-place="cr"] #map .areas>a:nth-child(3n) .area{animation-delay:-4s}
 body[data-place="cr"] #map .areas>a:is(:hover,:focus-visible) .area{animation-play-state:paused}
 @keyframes province-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
 body[data-place="cr"] #map #swell-caribbean .ocean-swell{animation-direction:reverse}
}

/* Marine atlas: deep water, mineral land and high-contrast instrument controls. */
body,body[data-place="cr"]{background:#101828;color:#eef3fc}
.header,body.area-theme .header{background:#141e32;border-color:#ad365c}
body[data-place="cr"] #explore .map .map-canvas,#explore .map .map-canvas{background:radial-gradient(ellipse at 23% 12%,#f1ebc9,transparent 51%),repeating-radial-gradient(ellipse at 16% -30%,transparent 0 18px,#69845920 19px 20px,transparent 21px 32px),linear-gradient(128deg,#c7d8ad,#a8c5a3 68%,#dbe2bf)}
#map .base-land,body[data-place="cr"] #map .base-land{fill:#c6d5ab;stroke:#899e7a}
#map .water-label{fill:#fff;stroke:#184a82}
#map [data-region="1"] .area{fill:#d57791}#map [data-region="2"] .area{fill:#7fbadc}#map [data-region="3"] .area{fill:#b79dda}#map [data-region="4"] .area{fill:#71c1a6}#map [data-region="5"] .area{fill:#f4bb65}#map [data-region="6"] .area{fill:#f38c78}#map [data-region="7"] .area{fill:#96cd79}
#map .areas .area{stroke:#243957;stroke-width:1.15;vector-effect:non-scaling-stroke}
#map a:is(:hover,:focus-visible) .area{stroke:white;stroke-width:2.5}
#explore .map-tools,.map-expand{background:#142541;border-color:#7396b6}
body[data-place="cr"] #explore .section-head{background:linear-gradient(118deg,#192841 0%,#253250 65%,#572740);border:1px solid #435470}
body[data-place="cr"] #explore .section-head :is(h1,p){color:#f1f5fc}
#explore .section-head h1,body.area-theme #explore .section-head h1,body[data-place="cr"] #explore .section-head h1,#explore .panel h2{font-family:Inter,system-ui,sans-serif;font-weight:650;letter-spacing:-.04em}
#explore .browse-bar,.wave-detail,.filter-feedback{background:#202c43;color:#f2f5ff}
#explore .browse-mode,#explore .destinations a,#explore .lifestyle-bar button{background:#17243a;border-color:#4d6580;color:#eef4ff}
#explore .browse-mode button[aria-pressed=true],#explore .lifestyle-bar button[aria-pressed=true]{background:#903052;color:white}
#explore .places a:is(:hover,.highlight){background:#edf4ff;border-color:#699cc8}
body[data-place="cr"] :is(.foot,.foot a,.map-source,.map-source a){color:#cbd9ef}
.province-preview:not([hidden]){position:absolute;bottom:14px;right:14px;z-index:6;width:min(340px,calc(100% - 28px));box-sizing:border-box;background:#14223af5;color:#fff;border:1px solid #87b6dc;border-radius:16px;padding:14px 18px;box-shadow:0 8px 30px #10182845}
.province-preview strong,.province-preview b{display:block;padding-right:22px}.province-preview strong{font-size:1.35rem}.province-preview b{color:#bedefd;font-size:.92rem}.province-preview p{font-size:.92rem;line-height:1.4;margin:6px 0 10px}.province-preview a{color:white;font-weight:700;text-decoration:underline}.province-preview small{display:block;margin-top:3px}.province-preview button{position:absolute;right:6px;top:5px;width:34px;height:34px;border:0;background:transparent;color:white;font-size:23px;cursor:pointer}
#map .province-selected .area{stroke:#fff;stroke-width:3;filter:brightness(1.12)}
@media(max-width:690px){.province-preview:not([hidden]){bottom:4px;padding:10px 14px}.province-preview p{max-height:3.9em;overflow:auto}}
#explore .destinations details{width:100%;border:1px solid #445976;border-radius:12px;background:#19273c;padding:0 15px;color:white}
#explore .destinations summary{cursor:pointer;font-weight:650;padding:12px 0}
#explore .destinations details[open] a{display:inline-flex;margin:0 6px 10px 0}

/* Compact province summary in the open Pacific southwest of the mainland. */
.province-preview:not([hidden]){right:auto;bottom:22%;left:5%;width:min(190px,37%);padding:9px 11px;border-radius:12px;background:#102944ed;box-shadow:0 3px 12px #12345133}
.province-preview strong{font-size:1rem;line-height:1.2;padding-right:19px}
.province-preview b{font-size:.83rem;line-height:1.25;font-weight:500;margin:4px 0;padding:0}
.province-preview a{display:inline-block;font-size:.84rem;padding:3px 0}
.province-preview button{width:26px;height:26px;top:2px;right:2px;font-size:18px}
@media(max-width:690px){.province-preview:not([hidden]){left:3%;bottom:22%;width:38%;padding:8px 9px}}
.coastal-offer{display:none}
body[data-place="cr"] #explore .coastal-offer{order:-3;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#d91624;color:white;padding:12px clamp(14px,3vw,40px);border-radius:10px;font-weight:750;text-decoration:none}
.coastal-offer span{text-decoration:underline;white-space:nowrap}
body[data-place="cr"] #explore .map-tip{display:none}
#map,#map *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media(prefers-reduced-motion:no-preference){
 .coastal-offer span{animation:offer-cue 5.5s ease-in-out infinite}
 @keyframes offer-cue{0%,75%,100%{transform:translateX(0)}85%{transform:translateX(-5px)}}
}

.area-picker{position:relative;max-width:100%}
.area-picker summary{cursor:pointer;padding:8px 12px;border:1px solid currentColor;border-radius:20px;font-weight:600}
.area-picker[open]{z-index:12}
.area-fields{position:absolute;top:calc(100% + 5px);left:0;width:min(245px,76vw);display:grid;gap:10px;padding:14px;background:white;color:#193b32;border-radius:12px;box-shadow:0 6px 24px #102d2940}
#explore .area-fields label{display:grid;gap:4px;color:#193b32}
#explore .area-fields select{width:100%;color:#193b32;background:#fff;border:1px solid #8da69b;border-radius:6px;padding:6px}
@media(max-width:700px){.area-picker[open]{width:100%}.area-fields{position:static;width:auto;margin-top:5px}}

footer.foot{flex-wrap:wrap}
footer.foot .wave-detail{box-sizing:border-box;width:100%;margin:12px 0 0;padding:8px 0 0;border-top:1px solid #89a28a66;border-radius:0;background:transparent;color:inherit}
footer.foot .wave-detail summary{display:list-item;align-content:center;font-size:.95rem}
footer.foot .wave-detail a{color:inherit;text-decoration:underline}
