/*
Theme Name:        Mojiganga Living
Theme URI:         https://mojigangaliving.com
Author:            X-Ray Marketing Agency
Author URI:        https://xraymarketingagency.com
Description:       Design-led real estate theme for Mojiganga Living (San Miguel de Allende). Built from the approved static preview — minimalist, editorial, gallery-first listings, with a restrained one-time entrance animation. Pairs with the Mojiganga Living Core plugin.
Requires at least:  6.0
Requires PHP:       7.4
Version:            0.2.0
Requires Plugins:   mojiganga-living-core
License:            GPL v2 or later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:        mojiganga-living
Tags:               real-estate, minimal, editorial, block-workflow
*/

/* =====================================================================
   Brand tokens — from Manual de Marca v03. Customizer color controls
   (see functions.php) override --ink/--grey/--rosa/--link/--btn-* at
   runtime by writing inline CSS custom properties on :root, so every
   rule below should keep reading from the variables, never a literal
   hex value.
   ===================================================================== */
:root{
  --ink:#111111; --grey:#737171; --white:#ffffff;
  --rosa:#d35e8f;
  --line: rgba(17,17,17,0.12);
  --surface-2:#F6F4F1;
  --ph-a: #d9d5cd; --ph-b:#bdb7ab;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
[id]{scroll-margin-top:90px;} /* keeps in-page anchors (e.g. #ml-contact-form) clear of the sticky header. */
body{margin:0; background:var(--white); color:var(--ink); font-family:'League Spartan', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing:antialiased; font-weight:400;}
.wrap{max-width:1180px; margin:0 auto; padding:0 28px;}
p{line-height:1.65; margin:0; font-weight:400;}
a{color:inherit; text-decoration:none;}
h1,h2,h3{margin:0; text-wrap:balance;}
img{max-width:100%; height:auto;}
.skip-link{position:absolute; left:-9999px; top:0; background:var(--ink); color:#fff; padding:12px 18px; z-index:200;}
.skip-link:focus{left:12px; top:12px;}

/* ---------- placeholder / photo blocks ---------- */
.ph{position:relative; overflow:hidden; background:linear-gradient(135deg, var(--ph-a), var(--ph-b)); display:flex; align-items:flex-end;}
.ph img{width:100%; height:100%; object-fit:cover; display:block;}
.ph-caption{position:absolute; left:14px; bottom:12px; z-index:2; color:#fff; font-size:11px; letter-spacing:.03em; background:rgba(17,17,17,.55); padding:5px 10px; border-radius:3px; max-width:80%;}

/* ---------- hero intro animation (Home only, once per session) ---------- */
/* Concept: "discovered sideways" / "light falling aslant into a doorway"
   from the brand manual — the wordmark reveals with a diagonal sweep,
   like a shaft of light crossing the zaguán. Deliberately the ONLY
   animated moment on the site. */
.hero-content .hw{font-size:clamp(40px,7vw,88px); line-height:.98; color:#fff; display:flex; flex-wrap:wrap; gap:0 20px;}
.hero-content .hw .rv{--end-op:1; display:inline-block; opacity:0; transform:translateY(5px); clip-path:polygon(0 0,0 0,-16% 100%,0 100%);}
.hero-content .hw .rv-ink{font-weight:900;}
.hero-content .hw .rv-grey{--end-op:.8; font-weight:700;}
.intro-play .rv{animation:mlReveal .8s cubic-bezier(.16,.8,.32,1) forwards; animation-delay:var(--rdelay,0s);}
@keyframes mlReveal{
  0%{opacity:0; transform:translateY(5px); clip-path:polygon(0 0,0 0,-16% 100%,0 100%);}
  50%{opacity:var(--end-op);}
  100%{opacity:var(--end-op); transform:translateY(0); clip-path:polygon(0 0,116% 0,100% 100%,0 100%);}
}
.reveal-fade{opacity:0; transform:translateY(9px);}
.intro-play .reveal-fade{animation:mlFade .6s ease-out forwards; animation-delay:var(--rd,0s);}
@keyframes mlFade{to{opacity:1; transform:translateY(0);}}
.accent-line{display:inline-block; width:32px; height:2px; background:var(--rosa); margin-left:12px; vertical-align:middle; transform:scaleX(0); transform-origin:left;}
.intro-play .accent-line{animation:mlLine .4s cubic-bezier(.4,0,.2,1) forwards; animation-delay:1.2s;}
@keyframes mlLine{to{transform:scaleX(1);}}
.intro-static .rv{animation:none!important; opacity:var(--end-op)!important; clip-path:none!important; transform:none!important;}
.intro-static .reveal-fade{animation:none!important; opacity:1!important; transform:none!important;}
.intro-static .accent-line{animation:none!important; transform:scaleX(1)!important;}
@media (prefers-reduced-motion: reduce){
  .intro-play .rv, .intro-play .reveal-fade, .intro-play .accent-line{animation:none!important; opacity:var(--end-op,1)!important; transform:none!important; clip-path:none!important;}
}

/* ---------- header ---------- */
header.site{position:sticky; top:0; z-index:40; background:var(--white); border-bottom:1px solid var(--line);}
.admin-bar header.site{top:32px;}
@media (max-width:782px){.admin-bar header.site{top:46px;}}
.nav{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:20px 0;}
.nav-left,.nav-right{display:flex; align-items:center; gap:24px; font-size:12.5px; font-weight:600; letter-spacing:.03em; text-transform:uppercase;}
.nav-left a, .nav-right a{padding-bottom:3px; border-bottom:1px solid transparent;}
.nav-left a:hover, .nav-right a:hover, .nav-left a:focus-visible, .nav-right a:focus-visible{color:var(--rosa); border-color:var(--rosa);}
.nav-right{justify-content:flex-end;}
.nav-right .lang{color:var(--grey); background:none; border:none; font:inherit; text-transform:inherit; letter-spacing:inherit; cursor:pointer; padding:0 0 3px;}
.wordmark{font-size:20px; letter-spacing:-.01em; display:flex; gap:6px; justify-self:center;}
.wordmark b{font-weight:900; color:var(--ink);}
.wordmark span{font-weight:700; color:var(--grey);}
@media(max-width:760px){ .nav-left{display:none;} .nav-right a{display:none;} .nav{grid-template-columns:1fr auto;} .wordmark{justify-self:flex-start;} }

/* ---------- hero ---------- */
.hero{position:relative; height:88vh; min-height:560px; max-height:820px;}
.hero .ph{position:absolute; inset:0;}
.hero-scrim{position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,.06) 42%, rgba(0,0,0,0) 60%);}
.hero-eyebrow{position:absolute; top:32px; left:0; right:0; z-index:2; text-align:center;}
.hero-eyebrow span{color:#fff; font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; font-weight:600;}
.hero-content{position:absolute; left:0; right:0; bottom:0; z-index:2; padding:0 28px 40px;}
.hero-row{display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-top:22px;}
.hero-row p{color:rgba(255,255,255,.86); font-size:15px; max-width:360px;}
.btn{display:inline-flex; align-items:center; gap:8px; background:var(--rosa); color:#fff; font-size:13px; font-weight:700; letter-spacing:.01em; padding:14px 26px; border-radius:2px; white-space:nowrap; border:none; cursor:pointer;}
.btn.ink{background:var(--ink);}
.btn.outline{background:transparent; border:1px solid rgba(255,255,255,.6); color:#fff;}

/* ---------- positioning quote ---------- */
.quote-block{padding:74px 0 58px; text-align:center;}
.quote-block p{font-weight:300; font-style:italic; font-size:clamp(20px,2.6vw,28px); max-width:680px; margin:0 auto; line-height:1.5; color:var(--ink);}

/* ---------- section shell ---------- */
section{padding:10px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:6px; padding:56px 0 30px;}
.section-head .eyebrow{font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--rosa); display:block; margin-bottom:10px;}
.section-head h2{font-size:clamp(24px,3.2vw,32px); font-weight:900;}
.see-all{font-size:12.5px; font-weight:600; border-bottom:1px solid var(--ink); padding-bottom:2px;}
.see-all:hover{color:var(--rosa); border-color:var(--rosa);}

/* ---------- editorial listing rows (no cards) ---------- */
.listing{padding:54px 0; border-top:1px solid var(--line);}
.listing:last-of-type{border-bottom:1px solid var(--line);}
.listing .ph{aspect-ratio:16/9; border-radius:0;}
.listing.duo .imgs{display:grid; grid-template-columns:1.4fr 1fr; gap:2px; aspect-ratio:16/9;}
.listing.duo .imgs .ph{aspect-ratio:auto; height:100%;}
.listing-info{display:flex; justify-content:space-between; align-items:baseline; gap:20px; flex-wrap:wrap; margin-top:24px;}
.listing-info h3{font-size:clamp(22px,2.6vw,30px); font-weight:900;}
.listing-info .loc{font-size:13px; color:var(--grey); margin-top:6px; text-transform:uppercase; letter-spacing:.05em;}
.listing-info .right{text-align:right;}
.listing-info .price{font-weight:700; font-size:16px;}
.listing-info .specs{font-size:12.5px; color:var(--grey); margin-top:4px;}
.listing-info .go{margin-top:10px; font-size:12.5px; font-weight:600; color:var(--rosa); display:inline-block; border-bottom:1px solid var(--rosa);}
@media(max-width:640px){ .listing.duo .imgs{grid-template-columns:1fr;} .listing-info{flex-direction:column; align-items:flex-start;} .listing-info .right{text-align:left;} }

/* ---------- Jael / seller section ---------- */
.jael{background:var(--surface-2); padding:76px 0; margin:6px 0;}
.jael .grid{display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center;}
.jael .ph{aspect-ratio:4/5;}
.jael .eyebrow{font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--rosa); display:block; margin-bottom:16px;}
.jael h2{font-size:clamp(26px,3.4vw,38px); font-weight:900; line-height:1.15;}
.jael .problems{margin-top:28px; display:flex; flex-direction:column; gap:18px;}
.jael .problems div{padding-top:16px; border-top:1px solid var(--line);}
.jael .problems p.q{font-weight:600; font-size:15.5px;}
.jael .problems p.a{color:var(--grey); font-size:14px; margin-top:6px;}
.jael .cta-row{display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; align-items:center;}
.jael .cta-row a.wa{font-size:13px; font-weight:600; color:var(--ink); border-bottom:1px solid var(--ink);}
@media(max-width:760px){ .jael .grid{grid-template-columns:1fr;} }

/* ---------- colonias (kept for when there's enough inventory to justify it — see front-page.php) ---------- */
.colonias{border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:52px 0; text-align:center;}
.colonias .eyebrow{display:block; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--grey); margin-bottom:22px;}
.colonias-list{font-size:clamp(20px,3.6vw,32px); line-height:1.9; font-weight:700;}
.colonias-list a{margin:0 14px; white-space:nowrap; opacity:.85;}
.colonias-list a:hover{opacity:1; color:var(--rosa);}

/* ---------- artist teaser (home) ---------- */
.artist-teaser{padding:70px 0; text-align:center;}
.artist-teaser .eyebrow{font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--rosa); display:block; margin-bottom:14px;}
.artist-teaser h2{font-size:clamp(24px,3.2vw,32px); font-weight:900; max-width:640px; margin:0 auto;}
.artist-teaser p.sub{color:var(--grey); font-size:15px; margin-top:16px; max-width:520px; margin-left:auto; margin-right:auto;}

/* ---------- footer ---------- */
footer{padding:56px 0 40px; border-top:1px solid var(--line);}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px;}
.foot-grid .wordmark{justify-self:flex-start; margin-bottom:14px;}
.foot-grid p{font-size:13px; color:var(--grey); max-width:260px;}
.foot-col h4{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--grey); margin-bottom:14px; font-weight:700;}
.foot-col a{display:block; font-size:13.5px; margin-bottom:10px;}
.foot-col a:hover{color:var(--rosa);}
.foot-bottom{margin-top:44px; padding-top:20px; border-top:1px solid var(--line); display:flex; justify-content:space-between; font-size:12px; color:var(--grey); flex-wrap:wrap; gap:10px;}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr 1fr;}}

/* ---------- breadcrumbs ---------- */
.ml-breadcrumbs{padding:14px 0 0;}
.ml-breadcrumbs ol{list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; font-size:12px; color:var(--grey);}
.ml-breadcrumbs li:not(:last-child)::after{content:"/"; margin-left:6px; color:var(--line);}
.ml-breadcrumbs a:hover{color:var(--rosa);}

/* ================= PROPERTY / LISTING PAGE ================= */
.property-page{overflow:hidden;}
.property-hero{position:relative; min-height:640px; height:min(78vh,860px); padding:0; background:var(--ink);}
.property-hero-media{position:absolute; inset:0; display:block;}
.property-hero-media img{width:100%; height:100%; object-fit:cover;}
.property-hero-scrim{position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.26) 0%,rgba(0,0,0,.04) 38%,rgba(0,0,0,.66) 100%);}
.property-hero-top{position:absolute; left:0; right:0; top:0; z-index:2; padding-top:30px; display:flex; justify-content:space-between; gap:20px; color:#fff; font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase;}
.property-back{border-bottom:1px solid rgba(255,255,255,.45); padding-bottom:3px;}
.property-back:hover{color:#fff; border-color:#fff;}
.property-brokerage-name{opacity:.9; text-align:right;}
.property-hero-content{position:absolute; left:0; right:0; bottom:0; z-index:2; padding-bottom:42px; color:#fff;}
.property-badges{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px;}
.property-badges span{border:1px solid rgba(255,255,255,.48); background:rgba(17,17,17,.16); backdrop-filter:blur(8px); padding:6px 10px 5px; font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;}
.property-hero h1{max-width:920px; color:#fff; font-size:clamp(42px,6.6vw,86px); line-height:.96; font-weight:900; letter-spacing:-.035em;}
.property-hero-meta{margin-top:24px; padding-top:18px; border-top:1px solid rgba(255,255,255,.35); display:flex; align-items:flex-end; justify-content:space-between; gap:20px;}
.property-hero-meta p{font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:rgba(255,255,255,.86);}
.property-hero-meta strong{font-size:clamp(20px,2.4vw,28px); font-weight:700; white-space:nowrap;}
.property-breadcrumbs{padding-top:4px;}

.property-overview{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.72fr); gap:clamp(54px,7vw,110px); align-items:start; padding-top:88px; padding-bottom:90px;}
.property-kicker{display:block; color:var(--rosa); font-size:11px; line-height:1; letter-spacing:.16em; text-transform:uppercase; font-weight:700; margin-bottom:18px;}
.property-description{max-width:760px;}
.property-description > *:first-child{margin-top:0;}
.property-description p{font-size:clamp(17px,1.45vw,20px); line-height:1.78; color:#262626; margin:0 0 24px;}
.property-description h2,.property-description h3{margin:42px 0 16px; font-size:clamp(24px,3vw,34px); line-height:1.15;}
.property-description ul,.property-description ol{font-size:17px; line-height:1.75; padding-left:22px;}
.property-description a{border-bottom:1px solid var(--rosa);}
.property-features{margin-top:56px; padding-top:34px; border-top:1px solid var(--line);}
.property-features h2{font-size:20px; font-weight:800; margin-bottom:20px;}
.property-feature-list{display:flex; flex-wrap:wrap; gap:9px;}
.property-feature-list span{border:1px solid var(--line); padding:9px 12px 7px; font-size:12px; font-weight:600; background:#fff;}

.property-facts{position:sticky; top:100px; border-top:2px solid var(--ink); padding-top:24px;}
.admin-bar .property-facts{top:132px;}
.property-price{font-size:clamp(26px,2.8vw,34px); font-weight:900; margin-bottom:24px; letter-spacing:-.02em;}
.property-stat-grid{display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line); border-left:1px solid var(--line);}
.property-stat-grid>div{min-height:100px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:18px 14px; display:flex; flex-direction:column; justify-content:space-between;}
.property-stat-grid strong{font-size:20px; font-weight:800; line-height:1.1;}
.property-stat-grid span{font-size:10px; color:var(--grey); text-transform:uppercase; letter-spacing:.09em; margin-top:10px;}
.property-fact-list{margin:24px 0 0;}
.property-fact-list div{display:grid; grid-template-columns:1fr 1fr; gap:18px; border-bottom:1px solid var(--line); padding:12px 0;}
.property-fact-list dt{font-size:11px; color:var(--grey); letter-spacing:.07em; text-transform:uppercase;}
.property-fact-list dd{margin:0; font-size:13px; font-weight:600; text-align:right;}
.property-brokerage-card{margin-top:25px; padding:20px 0 0; border-top:1px solid var(--line);}
.property-brokerage-card>span{display:block; font-size:10px; color:var(--grey); letter-spacing:.1em; text-transform:uppercase; margin-bottom:10px;}
.property-brokerage-card img{display:block; max-width:150px; max-height:48px; width:auto; height:auto; object-fit:contain; object-position:left center;}
.property-brokerage-card strong{font-size:17px;}
.property-primary-cta{width:100%; justify-content:center; margin-top:28px;}

.property-section-head{padding-top:0; padding-bottom:30px;}
.property-section-head h2{font-size:clamp(30px,4vw,46px); font-weight:900; letter-spacing:-.025em;}
.property-gallery{padding:88px 28px 28px; background:#f3f1ed;}
.property-gallery>.wrap{padding-left:0; padding-right:0; max-width:1320px;}
.property-gallery-grid{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;}
.property-gallery-item{position:relative; margin:0; overflow:hidden; background:var(--ph-a); aspect-ratio:4/3;}
.property-gallery-item.is-wide{grid-column:1/-1; aspect-ratio:16/8.5;}
.property-gallery-item img{width:100%; height:100%; display:block; object-fit:cover; transition:transform .5s cubic-bezier(.2,.7,.2,1);}
.property-gallery-item:hover img{transform:scale(1.015);}
.property-gallery-item figcaption{position:absolute; left:12px; bottom:10px; max-width:calc(100% - 24px); background:rgba(17,17,17,.68); color:#fff; padding:5px 8px 4px; font-size:10px; line-height:1.3;}

.property-media-section{padding:92px 28px 0; text-align:left;}
.property-media-section>.wrap{max-width:1180px; padding-left:0; padding-right:0;}
.property-media-frame,.property-tour-frame{max-width:1320px; margin:0 auto; background:var(--ink); overflow:hidden;}
.property-media-frame .wp-block-embed,.property-media-frame .wp-has-aspect-ratio,.property-media-frame>div{margin:0;}
.property-media-frame iframe{display:block; width:100%; min-height:min(72vw,740px); border:0;}
.property-tour-frame{position:relative; aspect-ratio:16/9;}
.property-tour-frame iframe{position:absolute; inset:0; width:100%; height:100%; border:0;}

.artisan-break{background:var(--ink); color:#fff; padding:0; margin:96px 0 0;}
.artisan-break .grid{max-width:1320px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr;}
.artisan-break .ph{aspect-ratio:4/4.6;}
.artisan-break .text{padding:clamp(48px,7vw,96px); display:flex; flex-direction:column; justify-content:center;}
.artisan-break .eyebrow{font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; color:var(--rosa); margin-bottom:16px; display:block;}
.artisan-break h3{font-size:clamp(30px,4vw,48px); font-weight:900; color:#fff;}
.artisan-break .role{font-size:12px; color:rgba(255,255,255,.58); margin-top:8px; text-transform:uppercase; letter-spacing:.07em;}
.artisan-break p.q{font-weight:300; font-style:italic; font-size:18px; margin-top:28px; color:rgba(255,255,255,.9); line-height:1.65;}
.artisan-break a.link{margin-top:28px; align-self:flex-start; font-size:12px; font-weight:600; color:var(--rosa); border-bottom:1px solid var(--rosa);}

.planos{max-width:1180px; margin:0 auto; padding:96px 28px; text-align:left;}
.planos .eyebrow{color:var(--rosa); font-size:11px; letter-spacing:.16em; text-transform:uppercase; font-weight:700;}
.planos h2{margin-top:14px; font-size:clamp(30px,4vw,46px); font-weight:900;}
.planos .floorplan-grid{margin-top:34px; display:grid; grid-template-columns:1fr 1fr; gap:22px;}
.planos .floorplan-grid.is-single{grid-template-columns:1fr;}
.planos .plan-item .ph{aspect-ratio:16/10; background:#f5f3ef;}
.planos .plan-item img{object-fit:contain; padding:18px;}
.planos .plan-item figcaption{font-size:11px; color:var(--grey); text-align:center; padding-top:10px;}
.planos .pdf-link{display:inline-block; margin-top:22px; font-size:12px; font-weight:600; color:var(--rosa); border-bottom:1px solid var(--rosa);}

.property-contact{background:var(--surface-2); padding:96px 0; margin-top:10px;}
.property-contact-grid{display:grid; grid-template-columns:minmax(0,.88fr) minmax(360px,1.12fr); gap:clamp(54px,8vw,110px); align-items:start;}
.property-agent-card{padding-top:4px;}
.property-agent-head{display:flex; align-items:center; gap:20px;}
.property-agent-photo{width:104px; height:104px; border-radius:50%; object-fit:cover; flex:none;}
.property-agent-head h2{font-size:clamp(28px,3.5vw,42px); font-weight:900; line-height:1;}
.property-agent-title{font-size:12px; color:var(--grey); margin-top:8px; text-transform:uppercase; letter-spacing:.08em;}
.property-agent-brokerage{margin-top:28px; padding-top:20px; border-top:1px solid var(--line);}
.property-agent-brokerage span{display:block; font-size:10px; color:var(--grey); text-transform:uppercase; letter-spacing:.1em; margin-bottom:9px;}
.property-agent-brokerage img{display:block; width:auto; max-width:170px; max-height:52px; object-fit:contain; object-position:left;}
.property-agent-brokerage strong{font-size:17px;}
.property-agent-copy{font-size:16px; line-height:1.7; color:#313131; margin-top:28px; max-width:500px;}
.property-contact-actions{display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:26px;}
.property-text-link{font-size:13px; font-weight:600; border-bottom:1px solid var(--ink);}
.property-disclaimer{font-size:11px; color:var(--grey); line-height:1.5; margin-top:30px;}
.property-form-card{background:#fff; padding:clamp(28px,4vw,48px); border:1px solid rgba(17,17,17,.08);}
.property-form-card h3{font-size:clamp(26px,3vw,34px); font-weight:900;}
.property-form-card>p{font-size:14px; color:var(--grey); margin-top:10px; max-width:480px;}
.property-form-card .contact-form-embed{margin-top:26px;}
.property-form-card .ml-contact-form{max-width:none;}

.ml-contact-notice{padding:14px 18px; margin-bottom:18px; font-size:14px; border:1px solid var(--line);}
.ml-contact-notice.is-success{border-color:var(--rosa); color:var(--ink);}
.ml-contact-notice.is-error{border-color:#b32d2e; color:#b32d2e;}
.ml-contact-re{font-size:13px; font-weight:600; color:var(--rosa); margin-bottom:6px;}

.property-related{padding:88px 0 44px;}
.property-related .property-section-head{padding-bottom:4px;}
.related .items{display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:28px;}
.related .ph{aspect-ratio:16/10;}
.related h4{font-size:20px; font-weight:800; margin-top:14px;}
.related .loc{font-size:12px; color:var(--grey); margin-top:5px;}

@media(max-width:900px){
  .property-hero{min-height:600px; height:72vh;}
  .property-overview{grid-template-columns:1fr; gap:52px; padding-top:64px; padding-bottom:70px;}
  .property-facts{position:relative; top:auto; max-width:none;}
  .admin-bar .property-facts{top:auto;}
  .property-contact-grid{grid-template-columns:1fr;}
}
@media(max-width:700px){
  .property-hero{min-height:560px; height:70vh;}
  .property-hero-top{padding-top:22px;}
  .property-brokerage-name{display:none;}
  .property-hero-content{padding-bottom:28px;}
  .property-hero h1{font-size:clamp(38px,13vw,62px);}
  .property-hero-meta{align-items:flex-start; flex-direction:column; gap:10px;}
  .property-hero-meta strong{font-size:22px;}
  .property-overview{padding-top:52px; padding-bottom:58px;}
  .property-gallery{padding:64px 16px 16px;}
  .property-gallery-grid{grid-template-columns:1fr; gap:8px;}
  .property-gallery-item,.property-gallery-item.is-wide{grid-column:auto; aspect-ratio:4/3;}
  .property-gallery-item:nth-child(3n+1){aspect-ratio:4/5;}
  .property-media-section{padding:68px 16px 0;}
  .artisan-break{margin-top:72px;}
  .artisan-break .grid{grid-template-columns:1fr;}
  .artisan-break .ph{aspect-ratio:4/3;}
  .artisan-break .text{padding:44px 28px 52px;}
  .planos{padding:72px 28px;}
  .planos .floorplan-grid{grid-template-columns:1fr;}
  .property-contact{padding:72px 0;}
  .property-agent-head{align-items:flex-start;}
  .property-agent-photo{width:82px; height:82px;}
  .property-form-card{padding:28px 22px;}
  .related .items{grid-template-columns:1fr;}
}
@media(max-width:460px){
  .wrap{padding-left:20px; padding-right:20px;}
  .property-stat-grid>div{min-height:92px;}
  .property-fact-list div{grid-template-columns:.8fr 1.2fr;}
}

/* ================= ARTICLE / STORY PAGE ================= */
.article-hero{position:relative; height:66vh; min-height:420px;}
.article-hero .ph{position:absolute; inset:0;}
.article-hero-scrim{position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.64) 0%, rgba(0,0,0,0) 55%);}
.article-hero-content{position:absolute; left:0; right:0; bottom:0; z-index:2; padding:0 28px 34px;}
.article-hero-content .eyebrow{color:var(--rosa); font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; display:block; margin-bottom:14px;}
.article-hero-content h1{color:#fff; font-size:clamp(30px,4.6vw,50px); font-weight:900; line-height:1.1; max-width:820px;}
.article-meta{color:rgba(255,255,255,.75); font-size:12.5px; margin-top:16px;}

.article-body{max-width:660px; margin:0 auto; padding:58px 28px 0;}
.article-body .deck{font-size:clamp(18px,2vw,21px); font-weight:500; line-height:1.6; color:var(--ink);}
.article-body p{font-size:16.5px; line-height:1.85; color:var(--ink); margin-top:26px;}
.article-body .pullquote{font-weight:300; font-style:italic; font-size:clamp(22px,2.6vw,27px); line-height:1.5; text-align:center; padding:46px 10px; color:var(--ink);}
.article-body .pullquote .rule{display:block; width:34px; height:2px; background:var(--rosa); margin:0 auto 22px;}
.article-figure{max-width:880px; margin:46px auto; padding:0 28px;}
.article-figure .ph{aspect-ratio:16/9;}
.article-figure figcaption{font-size:11.5px; color:var(--grey); text-align:center; padding-top:12px;}

.article-cta{max-width:660px; margin:60px auto 0; padding:0 28px;}
.article-cta a{display:flex; gap:20px; align-items:center; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0;}
.article-cta .ph{width:120px; height:90px; flex:none;}
.article-cta .meta{font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--rosa); font-weight:700; margin-bottom:6px;}
.article-cta h4{font-size:18px; font-weight:900;}
.article-cta .sub{font-size:13px; color:var(--grey); margin-top:4px;}
@media(max-width:560px){.article-cta a{flex-direction:column; align-items:flex-start;} .article-cta .ph{width:100%; height:160px;}}

.article-related{max-width:660px; margin:56px auto 0; padding:0 28px 20px;}
.article-related h4{font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--grey); font-weight:700; margin-bottom:8px;}
.article-related a{display:block; font-size:15.5px; font-weight:600; padding:14px 0; border-top:1px solid var(--line);}
.article-related a:last-child{border-bottom:1px solid var(--line);}
.article-related a:hover{color:var(--rosa);}

/* ================= CATALOG (archive) ================= */
.catalog-head{padding:64px 0 20px; text-align:center;}
.catalog-head h1{font-size:clamp(28px,4vw,42px); font-weight:900;}
.catalog-head p{color:var(--grey); margin-top:12px; max-width:520px; margin-left:auto; margin-right:auto;}
.catalog-empty{padding:60px 28px; text-align:center; color:var(--grey);}

/* ================= CONTACT FORM ================= */
.ml-contact-form{max-width:520px; margin:0 auto;}
.ml-contact-form p{margin-top:18px;}
.ml-contact-form label{display:block; font-size:12.5px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--grey); margin-bottom:6px;}
/* Underline fields, not boxed inputs — quiet and editorial rather than
   a bureaucratic form, and it keeps the Send button the only filled
   shape on the page down here. */
.ml-contact-form input, .ml-contact-form textarea{width:100%; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:10px 2px; font-family:inherit; font-size:15px; background:transparent; color:var(--ink); transition:border-color .15s ease;}
.ml-contact-form input:focus, .ml-contact-form textarea:focus{outline:none; border-color:var(--ink);}
.ml-contact-form textarea{resize:vertical;}
.ml-contact-form button{margin-top:24px; width:100%; justify-content:center;}
.ml-hp-field{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden;}

/* ================= 404 / SEARCH ================= */
.error-404{padding:110px 28px; text-align:center;}
.error-404 h1{font-size:clamp(30px,5vw,48px); font-weight:900;}
.error-404 p{color:var(--grey); margin-top:16px;}
.search-form{display:flex; gap:8px; max-width:420px; margin:26px auto 0;}
.search-form input[type=search]{flex:1; border:1px solid var(--line); padding:12px 14px; font-family:inherit;}

/* ================= Search block (block editor) ================= */
.ml-search-block .ml-search-row{display:flex; gap:10px; flex-wrap:wrap; align-items:center;}
.ml-search-block select, .ml-search-block input{border:1px solid var(--line); padding:12px 14px; font-family:inherit; font-size:14px; background:#fff;}

/* ================= 0.2 MULTIBRAND POLISH ================= */
.wordmark-slot{justify-self:center; display:flex; align-items:center;}
.wordmark-slot .custom-logo-link{display:flex; align-items:center; line-height:0;}
.wordmark-slot .custom-logo{display:block; width:auto; max-width:190px; max-height:42px; object-fit:contain;}
.listing-media{position:relative;}
.listing.duo .listing-media.imgs{display:grid; grid-template-columns:1.35fr 1fr; gap:4px; aspect-ratio:16/9;}
.listing.duo .listing-media.imgs .ph{height:100%; aspect-ratio:auto;}
.listing-badges{position:absolute; left:14px; top:14px; z-index:2; display:flex; flex-wrap:wrap; gap:6px;}
.listing-badges span{background:rgba(17,17,17,.72); color:#fff; padding:6px 8px 5px; font-size:9px; line-height:1; letter-spacing:.09em; text-transform:uppercase; font-weight:700; backdrop-filter:blur(5px);}
.listing-context{display:flex; flex-wrap:wrap; gap:0; margin-top:7px; font-size:11px; color:var(--grey); text-transform:uppercase; letter-spacing:.07em;}
.listing-context span+span::before{content:"·"; margin:0 8px;}
@media(max-width:760px){
  .wordmark-slot{justify-self:flex-start;}
  .wordmark-slot .custom-logo{max-width:150px; max-height:36px;}
}
@media(max-width:640px){
  .listing.duo .listing-media.imgs{grid-template-columns:1fr; aspect-ratio:auto;}
  .listing.duo .listing-media.imgs .ph{aspect-ratio:16/10;}
  .listing.duo .listing-media.imgs .ph:nth-child(2){display:none;}
}
.catalog-breadcrumbs{padding-top:4px;}
.catalog-head-v2{padding:78px 0 50px; text-align:left;}
.catalog-head-v2 h1{max-width:900px; font-size:clamp(38px,5.6vw,68px); line-height:1; letter-spacing:-.035em;}
.catalog-head-v2 p{max-width:650px; margin:20px 0 0; font-size:16px; line-height:1.65;}
.catalog-filter-shell{padding:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#faf9f7;}
.catalog-filters{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) auto; gap:12px; align-items:end; padding-top:22px; padding-bottom:22px;}
.catalog-filters label{display:block; min-width:0;}
.catalog-filters label>span{display:block; margin-bottom:7px; color:var(--grey); font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;}
.catalog-filters select{width:100%; min-width:0; border:1px solid var(--line); background:#fff; color:var(--ink); padding:11px 30px 10px 11px; font:inherit; font-size:12px;}
.catalog-filter-actions{display:flex; align-items:center; gap:12px;}
.catalog-filter-actions .btn{padding:12px 18px;}
.catalog-filter-actions>a{font-size:11px; font-weight:600; border-bottom:1px solid var(--ink);}
.catalog-results{padding-top:16px;}
.catalog-pagination{padding:36px 0 68px;}
.catalog-pagination .nav-links{display:flex; gap:8px; justify-content:center; align-items:center;}
.catalog-pagination .page-numbers{min-width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); font-size:12px;}
.catalog-pagination .current{background:var(--ink); color:#fff; border-color:var(--ink);}
@media(max-width:1050px){.catalog-filters{grid-template-columns:repeat(3,1fr);}.catalog-filter-actions{grid-column:auto;}}
@media(max-width:700px){.catalog-head-v2{padding:54px 0 36px;}.catalog-filters{grid-template-columns:1fr 1fr;}.catalog-filter-actions{grid-column:1/-1; justify-content:space-between;}.catalog-filter-actions .btn{flex:1; justify-content:center;}}

/* Shared navigation/list markup normalization. */
.nav-left>ul,.nav-right>ul{display:flex; align-items:center; gap:24px; list-style:none; margin:0; padding:0;}
.foot-col ul{list-style:none; margin:0; padding:0;}

/* Neighborhood hero kept separate from the new property-detail hero. */
.tax-ml_neighborhood .listing-hero{position:relative; height:56vh; min-height:360px; padding:0; background:var(--ink);}
.tax-ml_neighborhood .listing-hero>.ph{position:absolute; inset:0; display:block;}
.tax-ml_neighborhood .listing-hero>.ph img{width:100%; height:100%; object-fit:cover;}
.tax-ml_neighborhood .listing-hero-scrim{position:absolute; inset:0; background:linear-gradient(to top,rgba(0,0,0,.62),rgba(0,0,0,.05) 58%);}
.tax-ml_neighborhood .listing-hero-top{position:absolute; left:0; right:0; top:0; z-index:2; padding-top:28px; color:#fff; font-size:11px; letter-spacing:.13em; text-transform:uppercase; font-weight:700;}
.tax-ml_neighborhood .listing-hero-bottom{position:absolute; left:0; right:0; bottom:0; z-index:2; padding-bottom:34px;}
.tax-ml_neighborhood .listing-hero-bottom h1{color:#fff; font-size:clamp(40px,6vw,72px); line-height:1; font-weight:900; letter-spacing:-.03em;}
@media(max-width:760px){.nav-right>ul{display:none;}}
