:root{
  --ink:#12363A;          /* deep cypress-teal */
  --ink-2:#1C4A4F;
  --sea:#17868C;          /* Ionian turquoise, interaction + map water */
  --sea-deep:#0E5A60;
  --brass:#A6824C;        /* fine metallic accent */
  --stone:#EEEAE0;        /* warm limestone page base */
  --stone-2:#E6E0D2;
  --paper:#FBF9F3;        /* cards */
  --line:#D8D1C0;
  --text:#1A2E30;
  --muted:#5E6C68;
  --shadow:0 1px 2px rgba(18,54,58,.05),0 12px 40px -18px rgba(18,54,58,.28);
  --r:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--stone);color:var(--text);
  font-family:'Manrope',system-ui,sans-serif;font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
h1,h2,h3,.serif{font-family:'Fraunces',Georgia,serif;font-weight:400;font-optical-sizing:auto;line-height:1.06;letter-spacing:-.01em}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.wrap{max-width:1240px;margin:0 auto;padding:0 28px}
.eyebrow{font-size:12px;letter-spacing:.24em;text-transform:uppercase;font-weight:600;color:var(--brass)}
.tnum{font-variant-numeric:tabular-nums;letter-spacing:.01em}
button{font-family:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--sea);outline-offset:3px;border-radius:4px}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.55em;padding:.85em 1.5em;border-radius:100px;font-weight:600;font-size:14px;border:1px solid transparent;transition:.25s;white-space:nowrap}
.btn-primary{background:var(--ink);color:#F4EFE3}
.btn-primary:hover{background:var(--sea-deep)}
.btn-ghost{background:transparent;border-color:var(--ink);color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#F4EFE3}
.btn-wa{background:#1FA855;color:#fff}
.btn-wa:hover{background:#178a44}
.btn-sm{padding:.6em 1em;font-size:13px}

/* header */
header{position:sticky;top:0;z-index:60;background:rgba(238,234,224,.82);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:74px}
.brand{display:flex;align-items:baseline;gap:.5em}
.brand b{font-family:'Fraunces',serif;font-weight:500;font-size:22px;letter-spacing:.01em;color:var(--ink)}
.brand span{font-size:10px;letter-spacing:.28em;text-transform:uppercase;color:var(--brass);font-weight:600}
.nav-links{display:flex;gap:30px;font-size:14px;font-weight:500}
.nav-links a{color:var(--ink-2);position:relative;padding:4px 0}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:1.5px;background:var(--sea);transition:.25s}
.nav-links a:hover::after{width:100%}
.nav-cta{display:flex;gap:10px;align-items:center}
.icn{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.7}
.menu-btn{display:none;background:none;border:none;color:var(--ink)}

/* hero */
.hero{position:relative;min-height:88vh;display:flex;align-items:flex-end;color:#F6F1E6;overflow:hidden}
.hero-img{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1.04)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,40,44,.35) 0%,rgba(12,40,44,.15) 40%,rgba(11,34,38,.82) 100%)}
.hero .wrap{position:relative;z-index:2;padding-bottom:64px;width:100%}
.hero h1{font-size:clamp(42px,6.4vw,90px);font-weight:300;max-width:14ch;margin:.2em 0 .3em}
.hero h1 em{font-style:italic;color:#EBD9B4}
.hero p{max-width:46ch;font-size:18px;color:#E7E0D2;margin:0 0 28px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.hero .btn-ghost{border-color:rgba(246,241,230,.6);color:#F6F1E6}
.hero .btn-ghost:hover{background:#F6F1E6;color:var(--ink)}
.scroll-note{position:absolute;right:28px;bottom:28px;z-index:2;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:rgba(246,241,230,.7);writing-mode:vertical-rl}

/* strip stats */
.trust{background:var(--ink);color:#DCE7E3}
.trust .wrap{display:flex;flex-wrap:wrap;gap:40px;justify-content:space-between;padding:26px 28px}
.trust div{display:flex;flex-direction:column}
.trust b{font-family:'Fraunces',serif;font-size:26px;color:#F1E8D4;font-weight:400}
.trust small{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#8FB0AC}

/* section */
section{padding:88px 0}
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:40px;flex-wrap:wrap}
.sec-head h2{font-size:clamp(30px,4vw,46px);max-width:18ch}
.sec-head p{max-width:42ch;color:var(--muted);margin:0}

/* DISCOVER split */
.discover{background:var(--stone-2)}
.disc-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:0;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:var(--paper);box-shadow:var(--shadow)}
.map-col{position:relative;background:linear-gradient(170deg,#Dfeceb,#cfe4e3);border-right:1px solid var(--line);min-height:640px}
.map-toolbar{position:absolute;top:16px;left:16px;right:16px;z-index:5;display:flex;gap:8px;flex-wrap:wrap}
.chip{background:rgba(251,249,243,.92);border:1px solid var(--line);border-radius:100px;padding:7px 13px;font-size:12.5px;font-weight:600;color:var(--ink-2);display:inline-flex;align-items:center;gap:6px;transition:.2s}
.chip[aria-pressed="true"]{background:var(--ink);color:#F1E8D4;border-color:var(--ink)}
.chip:hover{border-color:var(--sea)}
svg.chart{width:100%;height:100%;display:block;position:absolute;inset:0}
.pin{cursor:pointer;transition:transform .2s}
.pin .dot{transition:.2s}
.pin:hover,.pin.active{transform:scale(1.18)}
.pin.active .dot,.pin:hover .dot{fill:var(--brass)}
.pin .lab{font-family:'Manrope';font-size:10px;font-weight:700;fill:var(--ink);opacity:0;transition:.2s;paint-order:stroke;stroke:rgba(251,249,243,.9);stroke-width:3px}
.pin:hover .lab,.pin.active .lab{opacity:1}
.map-legend{position:absolute;left:16px;bottom:16px;z-index:5;background:rgba(251,249,243,.9);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:11px;color:var(--muted);max-width:200px}
.map-count{position:absolute;right:16px;bottom:16px;z-index:5;background:var(--ink);color:#F1E8D4;border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600}

/* list col */
.list-col{display:flex;flex-direction:column;min-height:640px}
.list-filters{display:flex;gap:8px;padding:16px;border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center}
.select{appearance:none;background:var(--stone);border:1px solid var(--line);border-radius:100px;padding:8px 32px 8px 14px;font-family:inherit;font-size:13px;font-weight:600;color:var(--ink-2);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%2312363A' fill='none' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer}
.toggle{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:var(--muted);cursor:pointer;margin-left:auto}
.toggle input{accent-color:var(--sea);width:15px;height:15px}
.list-scroll{overflow-y:auto;flex:1;max-height:560px}
.row{display:grid;grid-template-columns:96px 1fr auto;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line);cursor:pointer;transition:.18s;align-items:center}
.row:hover,.row.active{background:var(--stone)}
.row.active{box-shadow:inset 3px 0 0 var(--sea)}
.row .thumb{width:96px;height:70px;border-radius:8px;background:var(--stone-2) center/cover;overflow:hidden}
.row h4{font-family:'Manrope';font-size:14px;font-weight:700;margin:0 0 3px;color:var(--ink);line-height:1.25}
.row .meta{font-size:12px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.row .tag{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--sea-deep)}
.row .price{font-family:'Manrope';font-weight:700;font-size:14px;color:var(--ink);text-align:right;white-space:nowrap}
.row .price small{display:block;font-size:10px;color:var(--muted);font-weight:600;letter-spacing:.06em}
.sold-badge{font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#B24A3C;border:1px solid #E4B7AF;border-radius:100px;padding:2px 7px}
.empty{padding:60px 20px;text-align:center;color:var(--muted)}

/* collection grid */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{background:var(--paper);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:.28s;border:1px solid rgba(216,209,192,.7)}
.card:hover{transform:translateY(-4px)}
.card .ph{aspect-ratio:4/3;background:var(--stone-2) center/cover;position:relative}
.card .cat{position:absolute;top:12px;left:12px;background:rgba(251,249,243,.92);border-radius:100px;padding:5px 12px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}
.card .feat-badge{position:absolute;top:12px;right:12px;background:var(--brass);color:#fff;border-radius:100px;padding:5px 12px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.card .body{padding:18px 20px 22px}
.card h3{font-size:22px;margin:0 0 6px;color:var(--ink);line-height:1.12}
.card .loc{font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--brass);font-weight:600;margin-bottom:12px}
.card .feats{display:flex;gap:14px;font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:4px}
.card .feats span{display:inline-flex;align-items:center;gap:5px}
.card .price{font-family:'Manrope';font-weight:700;font-size:19px;color:var(--ink);margin-top:14px}
.card .price small{font-size:12px;color:var(--muted);font-weight:600}
.load-more{text-align:center;margin-top:40px}

/* editorial band */
.editorial{background:var(--ink);color:#E9E1CF}
.ed-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;align-items:center}
.editorial h2{font-size:clamp(30px,4vw,50px);color:#F3EAD6;font-weight:300;max-width:15ch}
.editorial h2 em{font-style:italic;color:var(--brass)}
.editorial p{color:#BFCFCB;max-width:52ch;margin:20px 0}
.ed-img{aspect-ratio:4/5;border-radius:var(--r);background:var(--stone-2) center/cover;box-shadow:var(--shadow)}
.ed-points{display:flex;flex-direction:column;gap:18px;margin-top:26px}
.ed-points div{padding-left:18px;border-left:2px solid var(--brass)}
.ed-points b{color:#F3EAD6;font-weight:600;font-size:15px}
.ed-points p{margin:2px 0 0;font-size:14px}

/* golden visa */
.gv{background:linear-gradient(150deg,#173E42,#0E5A60);color:#EAF2EF;border-radius:var(--r);padding:56px 48px;display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;box-shadow:var(--shadow)}
.gv h2{color:#F3EAD6;font-weight:300;font-size:clamp(28px,3.5vw,42px);max-width:16ch}
.gv p{color:#C6DAD6;max-width:48ch}
.gv .amt{font-family:'Fraunces',serif;font-size:64px;color:#EBD9B4;font-weight:300;line-height:1}
.gv .amt small{display:block;font-family:'Manrope';font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#8FB0AC;margin-top:8px}

/* enquire */
.enquire{background:var(--stone-2)}
.enq-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:56px}
.enq-info h2{font-size:clamp(30px,4vw,46px);color:var(--ink);max-width:14ch}
.enq-line{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.enq-line .icn{width:20px;height:20px;stroke:var(--sea-deep);flex-shrink:0}
.enq-line b{color:var(--ink);font-weight:600;display:block;font-size:15px}
.enq-line small{color:var(--muted);font-size:13px}
form.enq{background:var(--paper);border-radius:var(--r);padding:32px;box-shadow:var(--shadow);border:1px solid var(--line)}
.field{margin-bottom:16px}
.field label{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--muted);margin-bottom:6px}
.field input,.field textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font-family:inherit;font-size:15px;background:var(--stone);color:var(--text)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--sea);background:#fff}
.form-ok{background:#E4F0E8;border:1px solid #A9CBB6;color:#1F5E3C;padding:14px 16px;border-radius:10px;font-size:14px;font-weight:600;display:none}

/* footer */
footer{background:var(--ink);color:#AFC4C0;padding:64px 0 32px;font-size:14px}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;margin-bottom:40px}
footer .brand b{color:#F1E8D4}
footer p{max-width:38ch;color:#94ABA7;margin:14px 0}
footer h5{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#EBD9B4;margin:0 0 14px;font-weight:600}
footer a:hover{color:#F1E8D4}
.foot-links{display:flex;flex-direction:column;gap:9px}
.foot-bottom{border-top:1px solid #234B4F;padding-top:22px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:12px;color:#7C9591}

/* detail overlay */
.overlay{position:fixed;inset:0;z-index:100;background:rgba(12,34,38,.55);backdrop-filter:blur(4px);display:none;align-items:flex-start;justify-content:center;padding:40px 20px;overflow-y:auto}
.overlay.open{display:flex}
.sheet{background:var(--stone);width:100%;max-width:920px;border-radius:18px;overflow:hidden;box-shadow:0 30px 80px -20px rgba(0,0,0,.5);animation:rise .35s ease}
@keyframes rise{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.sheet-img{aspect-ratio:16/9;background:var(--stone-2) center/cover;position:relative}
.sheet-close{position:absolute;top:16px;right:16px;background:rgba(251,249,243,.92);border:none;border-radius:100px;width:40px;height:40px;font-size:20px;color:var(--ink);display:flex;align-items:center;justify-content:center}
.sheet-cat{position:absolute;top:16px;left:16px;background:rgba(18,54,58,.85);color:#F1E8D4;border-radius:100px;padding:7px 14px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sheet-body{padding:32px 36px 36px}
.sheet-body .loc{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--brass);font-weight:600}
.sheet-body h2{font-size:34px;color:var(--ink);margin:8px 0 4px;font-weight:400}
.sheet-price{font-family:'Manrope';font-weight:700;font-size:26px;color:var(--ink);margin:14px 0}
/* Spec table: stacks on mobile, exactly 3 per row from 601px up so each
   label/value pair keeps room. Borders are drawn per cell (top + left) with
   the first row/column edges suppressed, so partial last rows stay clean. */
.spec{display:grid;grid-template-columns:1fr;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:20px 0;background:var(--paper)}
.spec div{padding:14px 16px;border-top:1px solid var(--line)}
.spec div:first-child{border-top:none}
.spec small{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.spec b{display:block;font-size:18px;color:var(--ink);font-weight:600;margin-top:3px;font-family:'Fraunces',serif}
/* filler cells complete the last row so the grid lines never stop short;
   they carry no content and collapse away on the mobile single-column stack */
.spec .spec-fill{display:none}
@media(min-width:601px){
  .spec{grid-template-columns:repeat(3,1fr)}
  .spec div{border-left:1px solid var(--line)}
  .spec div:nth-child(3n+1){border-left:none}
  .spec div:nth-child(-n+3){border-top:none}
  .spec .spec-fill{display:block}
}
.sheet-desc{color:var(--muted);line-height:1.7;font-size:15px;max-height:170px;overflow-y:auto}
.sheet-cta{display:flex;gap:12px;margin-top:26px;flex-wrap:wrap}

@media(max-width:900px){
  .nav-links,.scroll-note{display:none}
  .menu-btn{display:block}
  .disc-grid,.ed-grid,.gv,.enq-grid,.foot-grid{grid-template-columns:1fr}
  .map-col{min-height:420px}
  .grid{grid-template-columns:1fr 1fr}
  .gv{padding:36px 28px}
  .list-scroll{max-height:420px}
}
@media(max-width:560px){
  .grid{grid-template-columns:1fr}
  section{padding:60px 0}
  .trust .wrap{gap:22px}
  .sheet-body{padding:24px 22px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto}}

/* ---- property detail page ---- */
.pdp{padding-top:40px}
.pdp-hero{aspect-ratio:16/8;background:var(--stone-2) center/cover;border-radius:var(--r);position:relative;box-shadow:var(--shadow);margin-bottom:32px}
.pdp-cat{position:absolute;top:18px;left:18px;background:rgba(18,54,58,.85);color:#F1E8D4;border-radius:100px;padding:8px 16px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pdp-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:48px;align-items:start}
.pdp-body .loc{font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--brass);font-weight:600}
.pdp-body h1{font-size:clamp(30px,4vw,46px);color:var(--ink);margin:10px 0;font-weight:400}
.pdp-price{font-family:Manrope;font-weight:700;font-size:28px;color:var(--ink);margin:8px 0 24px}
.pdp-desc{color:var(--muted);line-height:1.8;font-size:16px}
.pdp-desc p{margin:0 0 16px}
.pdp-aside{position:sticky;top:98px;background:var(--paper);border:1px solid var(--line);border-radius:var(--r);padding:26px;box-shadow:var(--shadow)}
.pdp-aside h3{font-size:20px;color:var(--ink);margin:0 0 6px}
.pdp-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:28px 0}
.pdp-gallery img{aspect-ratio:4/3;object-fit:cover;border-radius:10px;width:100%}
.back-link{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--sea-deep);margin-bottom:20px}
@media(max-width:900px){.pdp-grid{grid-template-columns:1fr}.pdp-aside{position:static}}

/* ---- real map (Leaflet + CARTO) ---- */
#map{position:absolute;inset:0;height:100%;width:100%;z-index:1;background:#dfeceb}
.map-col{padding:0}
.map-toolbar{z-index:500}
.map-count{z-index:500}
.leaflet-container{font-family:'Manrope',system-ui,sans-serif}
.leaflet-control-zoom{border:none!important;box-shadow:var(--shadow);border-radius:10px;overflow:hidden;margin:16px!important}
.leaflet-control-zoom a{background:var(--paper);color:var(--ink);border:none;width:34px;height:34px;line-height:34px;font-size:18px}
.leaflet-control-zoom a:hover{background:var(--stone);color:var(--sea-deep)}
.leaflet-bar a{border-bottom:1px solid var(--line)}
.leaflet-tooltip.map-tip{background:var(--ink);color:#F1E8D4;border:none;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:600;box-shadow:var(--shadow);line-height:1.35}
.leaflet-tooltip.map-tip b{color:#fff;font-weight:700}
.leaflet-tooltip-top.map-tip::before{border-top-color:var(--ink)}
.leaflet-control-attribution{background:rgba(251,249,243,.82)!important;color:var(--muted)!important;font-size:10px!important}
.leaflet-control-attribution a{color:var(--sea-deep)!important}


/* ---- utility strip above the nav ---- */
.topbar{
  background:var(--ink);color:#8FB0AC;
  font-size:11.5px;line-height:1;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  height:38px;
}
.tb-stats{display:flex;align-items:center;gap:0;flex-wrap:nowrap;min-width:0}
.tb-stats span{
  display:inline-flex;align-items:baseline;gap:5px;
  padding:0 16px;white-space:nowrap;
  border-left:1px solid rgba(255,255,255,.10);
}
.tb-stats span:first-child{padding-left:0;border-left:none}
.tb-stats b{color:#EBD9B4;font-weight:600;letter-spacing:.01em}
.tb-contact{display:flex;align-items:center;gap:12px;white-space:nowrap}
.tb-contact a{color:#A8C0BC;transition:color .2s}
.tb-contact a:hover{color:#EBD9B4}
.tb-sep{width:1px;height:11px;background:rgba(255,255,255,.16)}

@media(max-width:1100px){
  .tb-contact a:first-child{display:none}
  .tb-sep{display:none}
}
@media(max-width:860px){
  .tb-stats .tb-hide-sm{display:none}
}
@media(max-width:640px){
  .topbar-inner{height:34px;gap:12px}
  .topbar{font-size:10.5px}
  .tb-stats span{padding:0 10px}
  .tb-stats span:nth-child(3){display:none}
}
@media(max-width:420px){
  .tb-contact{display:none}
  .tb-stats{width:100%;justify-content:space-between}
}

/* ---- golden visa: illustration behind the panel ---- */
/* The artwork sits under a heavy teal wash so the existing type keeps its
   contrast; the image reads as texture rather than competing with the message. */
.gv{position:relative;overflow:hidden;isolation:isolate}
.gv::before{
  content:"";position:absolute;inset:0;z-index:-2;
  background-image:url('images/visa.jpg');
  background-size:cover;background-position:center 62%;
}
.gv::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(150deg,rgba(23,62,66,.90),rgba(14,90,96,.86));
}
.gv > *{position:relative}
@media(max-width:900px){
  .gv::before{background-image:url('images/visa-sm.jpg')}
}

/* ---- recently sold cards ---- */
/* Sold stock is social proof for would-be sellers, so it gets real cards rather
   than a list, but stays visually quieter than what is actually available. */
.grid-sold{grid-template-columns:repeat(auto-fill,minmax(224px,1fr));gap:18px}
/* fixed height + inherited aspect-ratio:4/3 would cap the width at 200px and
   leave a gap; aspect-ratio:auto lets the image fill the full card width */
.card-sold .ph{height:150px;aspect-ratio:auto;width:100%;position:relative;overflow:hidden}
.card-sold .ph::after{
  content:"";position:absolute;inset:0;
  background:rgba(18,54,58,.14);
}
.card-sold .body{padding:14px 16px 16px}
.card-sold h3{font-size:15px;line-height:1.32;margin:2px 0 0}
.card-sold .loc{font-size:10.5px}
.card-sold:hover .ph::after{background:rgba(18,54,58,.04)}
.sold-ribbon{
  position:absolute;top:13px;right:-38px;z-index:2;
  transform:rotate(45deg);
  background:#B24A3C;color:#fff;
  padding:5px 46px;
  font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;
  box-shadow:0 2px 10px rgba(18,54,58,.3);
  pointer-events:none;
}
@media(max-width:640px){
  .grid-sold{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
  .card-sold .ph{height:120px}
  .card-sold h3{font-size:13.5px}
  .sold-ribbon{padding:4px 42px;font-size:9px;top:11px;right:-40px}
}

/* ---- breathing room above the footer ---- */
.pdp{padding-bottom:88px}
@media(max-width:640px){
  .pdp{padding-bottom:56px}
}

/* ---- features & amenities chips ---- */
.feat-block{margin:30px 0 6px}
.feat-list{
  list-style:none;margin:12px 0 0;padding:0;
  display:flex;flex-wrap:wrap;gap:8px;
}
.feat-list li{
  font-size:13px;font-weight:600;color:var(--ink-2);
  background:var(--stone);border:1px solid var(--line);
  border-radius:100px;padding:7px 14px;
}

/* ---- photo gallery + lightbox ---- */
.pdp-shots{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;
  margin:14px 0 4px;
}
.pdp-shots .shot{
  aspect-ratio:4/3;border:none;padding:0;cursor:pointer;
  border-radius:10px;background:var(--stone-2) center/cover no-repeat;
  box-shadow:var(--shadow);transition:opacity .18s,transform .18s;
}
.pdp-shots .shot:hover{opacity:.92;transform:translateY(-2px)}
@media(max-width:640px){.pdp-shots{grid-template-columns:repeat(3,1fr);gap:6px}}
.lbox{position:fixed;inset:0;z-index:2000;background:rgba(9,26,28,.95);
  display:flex;align-items:center;justify-content:center}
.lbox[hidden]{display:none}
.lbox-img{max-width:92vw;max-height:86vh;object-fit:contain;border-radius:4px;
  box-shadow:0 12px 48px rgba(0,0,0,.55)}
.lbox-close{position:absolute;top:14px;right:20px;font-size:34px;line-height:1;
  color:#fff;background:none;border:none;cursor:pointer;opacity:.85}
.lbox-close:hover{opacity:1}
.lbox-nav{position:absolute;top:50%;transform:translateY(-50%);
  font-size:46px;line-height:1;color:#fff;background:none;border:none;
  cursor:pointer;padding:12px 20px;opacity:.7}
.lbox-nav:hover{opacity:1}
.lbox-prev{left:6px}.lbox-next{right:6px}
.lbox-count{position:absolute;bottom:18px;left:0;right:0;text-align:center;
  color:rgba(255,255,255,.8);font-size:12.5px;letter-spacing:.06em}
@media(max-width:640px){.lbox-nav{font-size:34px;padding:10px 12px}}

/* ---- distance list icons ---- */
.dist-icn{
  width:19px;height:19px;flex:none;
  stroke:var(--brass);stroke-width:1.5;fill:none;
  stroke-linecap:round;stroke-linejoin:round;
  transform:translateY(3px);
}
.dist-list li{gap:12px}

/* ---- sold sash on the property hero ---- */
.pdp-hero{overflow:hidden}
.sold-ribbon-lg{
  top:26px;right:-58px;
  padding:9px 72px;
  font-size:13px;letter-spacing:.2em;
  box-shadow:0 3px 16px rgba(18,54,58,.38);
}
.pdp-hero.is-sold::after{
  content:"";position:absolute;inset:0;
  background:rgba(18,54,58,.16);pointer-events:none;
}
@media(max-width:640px){
  .sold-ribbon-lg{top:18px;right:-52px;padding:7px 60px;font-size:11px}
}

/* ---- property page: location + distances ---- */
.loc-block{margin-top:44px;padding-top:32px;border-top:1px solid var(--line)}
.loc-h{font-size:26px;color:var(--ink);margin:8px 0 18px;font-weight:400}
.pdp-map{
  height:360px;border-radius:12px;overflow:hidden;
  border:1px solid var(--line);background:#dfeceb;
  box-shadow:var(--shadow);
  /* own stacking context so Leaflet's panes/controls (z-index 400-1000)
     stay contained below the sticky header (z-index 60) when scrolling */
  position:relative;z-index:0;
}
.dist-head{
  display:flex;justify-content:space-between;align-items:baseline;gap:12px;
  flex-wrap:wrap;margin:26px 0 6px;
}
.dist-head b{font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);font-weight:700}
.dist-head span{font-size:12px;color:var(--muted)}
.dist-list{list-style:none;margin:0;padding:0}
.dist-list li{
  display:flex;align-items:baseline;gap:10px;
  padding:11px 0;border-bottom:1px solid var(--line);
}
.dist-list li:last-child{border-bottom:none}
.dn{color:var(--ink);font-weight:600;font-size:15px;white-space:nowrap}
.dn em{
  display:block;font-style:normal;font-size:11.5px;font-weight:500;
  color:var(--muted);letter-spacing:.04em;margin-top:1px;
}
.dl{flex:1;border-bottom:1px dotted var(--line);transform:translateY(-3px);min-width:20px}
.dk{
  font-weight:700;font-size:15px;color:var(--ink);white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.units{margin-top:8px}
/* unit rows carry a longer label than distances, so let both ends wrap */
.unit-list .dk{white-space:normal;text-align:right;font-weight:600}
.unit-list .dn{white-space:normal}
@media(max-width:640px){
  .pdp-map{height:280px}
  .loc-h{font-size:22px}
  .dn{white-space:normal}
}

/* ---- discovery: full-width map with the listings floating over it ---- */
/* Keeping the list adjacent to the map preserves the hover pairing between a
   row and its pin, which is the point of this section. */
.disc-grid{
  display:block;position:relative;
  /* own stacking context so the map markers, toolbar and list panel
     (z-index up to ~1000 from Leaflet) stay below the sticky header */
  z-index:0;isolation:isolate;
  height:clamp(600px,82vh,860px);
}
.map-col{
  position:absolute;inset:0;min-height:0;border-right:none;
}
.list-col{
  position:absolute;top:16px;right:16px;bottom:16px;width:380px;
  min-height:0;z-index:600;
  background:var(--paper);border:1px solid var(--line);border-radius:12px;
  box-shadow:0 12px 40px -14px rgba(18,54,58,.45);
  overflow:hidden;display:flex;flex-direction:column;
}
.list-scroll{max-height:none;height:auto;flex:1}
.list-filters{padding:12px 14px}
.list-count{font-size:12px;color:var(--muted);font-weight:600;margin-left:auto;white-space:nowrap}
.list-count b{color:var(--ink);font-weight:700}
.list-filters .toggle{margin-left:12px}
/* keep the category chips clear of the floating panel */
.map-toolbar{right:412px}

@media(max-width:1024px){
  .list-col{width:330px}
  .map-toolbar{right:362px}
}
@media(max-width:900px){
  /* stack on smaller screens: a floating panel would cover the map */
  .disc-grid{height:auto}
  .map-col{position:relative;inset:auto;height:400px}
  .list-col{
    position:relative;top:auto;right:auto;bottom:auto;width:auto;
    border:none;border-top:1px solid var(--line);border-radius:0;box-shadow:none;
    z-index:1;
  }
  .list-scroll{flex:none;max-height:440px;overflow-y:auto}
  .map-toolbar{right:16px}
}

/* ---- hero image ---- */
/* This shot is bright (white villas, lit water), so the scrim is strengthened
   through the lower third where the headline sits, while the top stays open. */
.hero::after{
  background:
    /* diagonal wash running up from the bottom-left, following the text block,
       so the top-right of the photograph stays open */
    linear-gradient(32deg,
      rgba(9,30,34,.94) 0%,
      rgba(9,30,34,.89) 26%,
      rgba(9,30,34,.68) 47%,
      rgba(9,30,34,.28) 68%,
      rgba(9,30,34,0) 84%),
    /* light vertical grounding */
    linear-gradient(180deg,
      rgba(12,40,44,.26) 0%,
      rgba(12,40,44,.04) 34%,
      rgba(11,34,38,.20) 70%,
      rgba(11,34,38,.52) 100%)!important;
}
/* Weight 300 is elegant but too fine to hold against a busy photograph;
   400 keeps the character and gives the strokes some presence. */
.hero h1{
  font-weight:400;
  text-shadow:0 2px 30px rgba(8,26,29,.5), 0 1px 3px rgba(8,26,29,.3);
}
.hero .wrap p{text-shadow:0 1px 14px rgba(8,26,29,.45)}
.hero .eyebrow{text-shadow:0 1px 10px rgba(8,26,29,.5)}
.hero-img{
  background-image:url('images/hero.jpg');
  background-position:center 42%;
}
@media(max-width:900px){
  .hero-img{background-image:url('images/hero-sm.jpg')}
}

/* ---- call button: full number where there is room ---- */
.btn-call .call-short{display:none}
.btn-call .call-full{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:1180px){
  .btn-call .call-full{display:none}
  .btn-call .call-short{display:inline}
}

/* ---- map controls clear of the filter chips ---- */
.leaflet-bottom.leaflet-left .leaflet-control-zoom{margin:0 0 16px 16px!important}

/* ---- logo ---- */
.brand{display:flex;align-items:center;gap:11px;min-width:0}
.brand-logo{
  height:34px;width:auto;display:block;
  /* intrinsic 1200x368 given for layout stability */
}
.brand-tag{
  font-size:10px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--brass);font-weight:600;white-space:nowrap;
  padding-left:11px;border-left:1px solid var(--line);
}
.brand-logo-foot{height:30px;margin-bottom:4px;opacity:.95}
@media(max-width:640px){
  .brand-logo{height:27px}
  .brand-tag{display:none}
}
@media(max-width:400px){
  .brand-logo{height:24px}
}

/* ---- mobile fits ---- */
/* Grid children default to min-width:auto, which lets wide content (the listing
   rows, the filter selects) force the column wider than the viewport. */
.map-col,.list-col{min-width:0}
.disc-grid{max-width:100%}
.row{min-width:0}
.row h4,.row .tag{overflow-wrap:anywhere}

@media(max-width:640px){
  .nav{height:62px}
  .nav-cta{gap:7px}
  .nav-cta .btn-sm{padding:.55em .95em;font-size:12px}
  .nav-cta .icn{width:14px;height:14px}
}
@media(max-width:400px){
  .nav-cta .btn-sm{padding:.5em .8em;font-size:11.5px}
}

/* ---- map hover card ---- */
.leaflet-tooltip.prop-tip{
  background:transparent;border:none;box-shadow:none;padding:0;
  white-space:normal;width:250px;
}
.leaflet-tooltip.prop-tip::before{display:none}
.ptip{
  background:var(--paper);border:1px solid var(--line);border-radius:12px;
  overflow:hidden;box-shadow:0 10px 34px -10px rgba(18,54,58,.45);
  font-family:'Manrope',system-ui,sans-serif;
}
.ptip-img{
  height:132px;background-size:cover;background-position:center;
  position:relative;border-bottom:1px solid var(--line);
}
.ptip-sold{
  position:absolute;top:10px;left:10px;background:rgba(178,74,60,.95);color:#fff;
  font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;
  padding:3px 9px;border-radius:100px;
}
.ptip-body{padding:12px 14px 13px}
.ptip-loc{
  font-size:10px;letter-spacing:.13em;text-transform:uppercase;
  font-weight:700;color:var(--brass);margin-bottom:5px;
}
.ptip-title{
  font-size:13.5px;font-weight:700;color:var(--ink);line-height:1.3;
  margin-bottom:9px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ptip-row{
  display:flex;justify-content:space-between;align-items:baseline;gap:8px;
  border-top:1px solid var(--line);padding-top:9px;
}
.ptip-price{font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap}
.ptip-meta{font-size:11px;color:var(--muted);text-align:right}
.ptip-cta{
  font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--sea);margin-top:9px;
}
@media(max-width:700px){
  .leaflet-tooltip.prop-tip{width:210px}
  .ptip-img{height:108px}
}
