
:root{--eco-accent:#cddc39;--eco-accent-strong:#dce86a;--eco-bg:#f6f8fb;--eco-card:#fff;--eco-text:#17202a;--eco-muted:#68737d;--eco-line:#e3e7eb;--eco-shadow:0 14px 45px rgba(20,30,40,.09)}
html[data-theme="dark"]{color-scheme:dark;--eco-bg:#090d0f;--eco-card:#11171a;--eco-text:#f5f7f8;--eco-muted:#aab4ba;--eco-line:#263136;--eco-shadow:0 18px 50px rgba(0,0,0,.38)}
html[data-theme="dark"] body{background:var(--eco-bg)!important;color:var(--eco-text)!important}html[data-theme="dark"] a{color:#e8ef9a}html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0d1316!important;color:#f5f7f8!important;border-color:#344047!important}html[data-theme="dark"] button{color:var(--eco-text)}
html[data-theme="dark"] .card,html[data-theme="dark"] .stat,html[data-theme="dark"] .empty,html[data-theme="dark"] .floor-card,html[data-theme="dark"] .media,html[data-theme="dark"] .property-card,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .panel,html[data-theme="dark"] .spec,html[data-theme="dark"] .sticky{background:var(--eco-card)!important;color:var(--eco-text)!important;border-color:var(--eco-line)!important;box-shadow:var(--eco-shadow)}
html[data-theme="dark"] .muted,html[data-theme="dark"] .hint,.muted{color:var(--eco-muted)}html[data-theme="dark"] .links a,html[data-theme="dark"] .btn-light,html[data-theme="dark"] .outline,html[data-theme="dark"] .tab{background:#151d20!important;color:#eef2f4!important;border-color:var(--eco-line)!important}html[data-theme="dark"] .skeleton{background:linear-gradient(90deg,#151c20 25%,#20292d 37%,#151c20 63%)!important}
.eco-dark-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;min-width:44px;padding:0 13px;border:1px solid rgba(205,220,57,.45);border-radius:999px;background:rgba(255,255,255,.78);color:#1a2024;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.08);font-weight:800;backdrop-filter:blur(12px)}.eco-dark-toggle i{color:#657500}.eco-dark-toggle:hover{transform:translateY(-1px);border-color:var(--eco-accent);box-shadow:0 8px 22px rgba(205,220,57,.18)}html[data-theme="dark"] .eco-dark-toggle{background:#151d20;color:#fff;border-color:rgba(205,220,57,.55)}
.eco-float-toggle{position:fixed;right:18px;top:18px;z-index:100000}.eco-accent{color:#657500}.eco-primary{background:var(--eco-accent)!important;color:#12160a!important;border-color:var(--eco-accent)!important}.eco-progress{height:8px;border-radius:999px;background:#e7ebee;overflow:hidden}.eco-progress>i{display:block;height:100%;width:0;background:linear-gradient(90deg,#cddc39,#f4ff7b);transition:width .2s}.eco-section{border:1px solid var(--eco-line);border-radius:18px;padding:20px;background:var(--eco-card);box-shadow:var(--eco-shadow)}
.property-image .cover-video{width:100%;height:100%;object-fit:cover;display:block}.cover-video{background:#050707}

/* EcoPlace privacy-first dark UI */
html{background:var(--eco-bg)}
body{transition:background-color .25s ease,color .25s ease}
html[data-theme="dark"]{
 --eco-bg:#080b0d;--eco-card:#101518;--eco-card-2:#151c20;--eco-text:#f4f7f8;--eco-muted:#9ca9af;
 --eco-line:#263239;--eco-soft:#0c1114;--eco-shadow:0 18px 55px rgba(0,0,0,.38);
}
html[data-theme="dark"] .site-header{background:rgba(8,11,13,.84)!important;border-color:#202a2f!important}
html[data-theme="dark"] .nav-links a{color:#dce3e6!important}
html[data-theme="dark"] .nav-links a:hover{color:#cddc39!important}
html[data-theme="dark"] .nav-search{background:#10171a!important;border-color:#2b373d!important;box-shadow:0 8px 28px #0004}
html[data-theme="dark"] .nav-search input{color:#f5f7f8!important}
html[data-theme="dark"] .nav-search button{background:#cddc39!important;color:#11150a!important}
html[data-theme="dark"] .card,html[data-theme="dark"] .listing-card,html[data-theme="dark"] .property-card,
html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .empty,
html[data-theme="dark"] .modal-content,html[data-theme="dark"] .sticky,html[data-theme="dark"] .section,
html[data-theme="dark"] .highlight,html[data-theme="dark"] .spec{background:var(--eco-card)!important;border-color:var(--eco-line)!important;color:var(--eco-text)!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] strong{color:#f7fafb}
html[data-theme="dark"] .muted,html[data-theme="dark"] .hint,html[data-theme="dark"] small{color:#9ca9af!important}
html[data-theme="dark"] .btn:not(.primary),html[data-theme="dark"] .outline,html[data-theme="dark"] .tab,
html[data-theme="dark"] .links a{background:#151d21!important;color:#eef3f5!important;border-color:#2b373d!important}
html[data-theme="dark"] .btn.primary,.eco-primary{background:#cddc39!important;color:#101407!important;border-color:#cddc39!important}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{
 background:#0c1215!important;color:#f6f8f9!important;border:1px solid #303c42!important;
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#718087!important}
html[data-theme="dark"] .skeleton{background:linear-gradient(90deg,#11191d 25%,#1d282d 37%,#11191d 63%)!important}
html[data-theme="dark"] .eco-consent{background:transparent!important}
html[data-theme="dark"] .eco-consent-card{background:#11181b;border-color:#334047;color:#f5f7f8;box-shadow:0 30px 90px #0009}
html[data-theme="dark"] .eco-consent-card p{color:#aab6bc}
.eco-dark-toggle{height:40px;min-width:40px;padding:0 12px;border-radius:13px;border:1px solid rgba(205,220,57,.45);background:rgba(255,255,255,.9);color:#20261f;box-shadow:none}
.eco-dark-toggle i{color:#758300}.eco-toggle-label{font-size:12px}.eco-dark-toggle:hover{background:#cddc39;color:#11150a;transform:none}
.eco-float-toggle{position:fixed;right:18px;top:18px;z-index:100000}
.eco-consent{position:fixed;z-index:200000;inset:auto 18px 18px;display:flex;justify-content:center;pointer-events:none;background:transparent!important}
.eco-consent-card{pointer-events:auto;max-width:1120px;width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:18px 20px;border:1px solid #dce3e7;border-radius:22px;background:#fff;box-shadow:0 24px 80px rgba(16,24,40,.22);backdrop-filter:blur(18px)}
.eco-consent-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:#cddc39;color:#11150a;font-size:19px}
.eco-consent-copy strong{font-size:15px}.eco-consent-copy p{margin:4px 0;color:#5d6870;font-size:13px;line-height:1.5}
.eco-consent-links{display:flex;gap:13px;flex-wrap:wrap;margin-top:7px}.eco-consent-links a{font-size:12px;color:#657400;font-weight:800;text-decoration:underline}
.eco-consent-actions{display:flex;gap:8px;flex-wrap:wrap}.eco-consent-actions button{border-radius:12px;padding:11px 14px;font-weight:850;border:1px solid #d8dfe3;background:#f6f8f9;color:#253039}.eco-consent-accept{background:#cddc39!important;color:#11150a!important;border-color:#cddc39!important}
.eco-privacy-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:rgba(205,220,57,.13);color:#738000;font-size:12px;font-weight:800}
@media(max-width:760px){.eco-consent{inset:auto 10px 10px}.eco-consent-card{grid-template-columns:auto 1fr;padding:15px}.eco-consent-actions{grid-column:1/-1}.eco-consent-actions button{flex:1}.eco-toggle-label{display:none}.eco-dark-toggle{padding:0;width:40px}}

.legal-page{min-height:100vh;padding:30px 16px;background:var(--eco-bg);color:var(--eco-text)}
.legal-shell{max-width:980px;margin:auto;background:var(--eco-card);border:1px solid var(--eco-line);border-radius:28px;padding:clamp(22px,5vw,52px);box-shadow:var(--eco-shadow)}
.legal-top{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:35px}.legal-top a{font-weight:850;color:inherit}
.legal-shell h1{font-size:clamp(32px,6vw,52px);line-height:1.05;margin:0 0 8px}.legal-lead{color:var(--eco-muted)}
.legal-shell section{margin-top:30px}.legal-shell h2{font-size:21px;margin-bottom:8px}.legal-shell p,.legal-shell li{color:var(--eco-muted);line-height:1.75}.legal-shell ul{padding-left:22px}
.legal-shell a{color:#718000;font-weight:750}.legal-actions{display:flex;gap:10px;flex-wrap:wrap}
#privacyForm{display:grid;gap:13px;max-width:720px}.legal-shell label{font-weight:800;display:grid;gap:7px}.legal-shell input,.legal-shell select,.legal-shell textarea{width:100%;padding:12px 13px;border-radius:12px;border:1px solid var(--eco-line);background:var(--eco-bg);color:var(--eco-text);outline:none}

.perf-card{overflow:hidden}.perf-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.perf-head small{display:block;color:var(--eco-muted);font-size:11px;margin-top:3px}.perf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.perf-kpi{padding:11px;border:1px solid var(--eco-line);border-radius:13px;background:var(--eco-bg)}.perf-kpi b{display:block;font-size:20px}.perf-kpi small{color:var(--eco-muted)}.perf-chart{height:90px;margin:10px 0;color:#cddc39;background:linear-gradient(180deg,rgba(205,220,57,.12),transparent);border-radius:12px;overflow:hidden}.perf-spark{width:100%;height:100%}.perf-heat{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--eco-muted)}.perf-heat i{height:7px;border-radius:99px;display:block;flex:1;background:linear-gradient(90deg,#64748b,#cddc39,#ffb000,#ff5a36)}.perf-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.perf-tags span{padding:5px 8px;border:1px solid var(--eco-line);border-radius:999px;font-size:11px;color:var(--eco-muted)}.perf-empty{height:100%;display:grid;place-items:center;color:var(--eco-muted);font-size:12px}@media(max-width:650px){.perf-grid{grid-template-columns:repeat(2,1fr)}.perf-head{display:block}.perf-head .eco-privacy-badge{margin-top:8px}}


/* EcoPlace platform polish layer — intentionally additive and responsive. */
:root{--eco-radius:18px;--eco-focus:0 0 0 3px rgba(205,220,57,.22)}
*,*::before,*::after{box-sizing:border-box}
button,a,input,select,textarea{transition:box-shadow .18s ease,border-color .18s ease,background-color .18s ease,color .18s ease,transform .18s ease}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:var(--eco-focus)}
img,video{max-width:100%}
body{min-height:100vh;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.card,.panel,.section,.sticky,.empty,.modal-content,.property-card,.listing-card{border-radius:var(--eco-radius);overflow:hidden}
.card:hover,.property-card:hover,.listing-card:hover{transform:translateY(-2px);box-shadow:0 20px 55px rgba(20,30,40,.12)}
.btn,.actions button,.actions a{min-height:42px;border-radius:12px}
input,select,textarea{min-height:42px}
@media(max-width:720px){.wrap{padding-left:14px!important;padding-right:14px!important}.actions{flex-wrap:wrap}.actions>*{flex:1 1 145px}.card:hover,.property-card:hover,.listing-card:hover{transform:none}.eco-consent-card{border-radius:18px!important}.eco-consent-copy p{font-size:12px}.eco-consent-links{gap:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* EcoPlace media/interaction resilience */
.property-card .property-image{background:#101619;overflow:hidden}.property-card .card-photo{display:block;width:100%;height:100%;object-fit:cover}.property-card .hover-gallery-photo[hidden]{display:none}.my-listings .hero video,.card .hero video{display:block;width:100%;height:100%;object-fit:cover}.eco-consent{transition:opacity .18s ease,transform .18s ease}.eco-consent-card{position:relative}
@media(prefers-reduced-motion:reduce){.eco-consent{transition:none!important}}

/* Consistent dark-mode overrides for pages with legacy inline styles. */
html[data-theme="dark"] .wrap,
html[data-theme="dark"] main.wrap,
html[data-theme="dark"] .shell{background:var(--eco-bg)!important;color:var(--eco-text)!important}
html[data-theme="dark"] .card,
html[data-theme="dark"] .plan,
html[data-theme="dark"] .conv,
html[data-theme="dark"] .empty{background:var(--eco-card)!important;color:var(--eco-text)!important;border-color:var(--eco-line)!important}
html[data-theme="dark"] .card p,html[data-theme="dark"] .card small,html[data-theme="dark"] .plan p,
html[data-theme="dark"] .conv small{color:var(--eco-muted)!important}
html[data-theme="dark"] .btn,html[data-theme="dark"] .switch button,html[data-theme="dark"] .audnav a{background:var(--eco-card)!important;color:var(--eco-text)!important;border-color:var(--eco-line)!important}
html[data-theme="dark"] .switch .active,html[data-theme="dark"] .plan.prime .cta,html[data-theme="dark"] .primary{background:var(--eco-accent)!important;color:#101407!important;border-color:var(--eco-accent)!important}
html[data-theme="dark"] .card .hero,html[data-theme="dark"] .cover,html[data-theme="dark"] .img{background:#0a0f11!important}
