/* Estate expansion styles - builds on css/style.css (Sona template). Accent #dfa974 */
.site-wordmark{font-family:"Lora",serif;font-weight:700;font-size:22px;color:#19191a;display:inline-block;line-height:1.2}
.footer-section .site-wordmark{color:#fff}
.menu-item .logo{padding:22px 0}
.menu-item .nav-menu .mainmenu li a{margin-right:30px}
.mainmenu li.active>a:after{opacity:1}
.page-h1{font-size:44px;color:#19191a;margin-bottom:12px}
.crumbs span{font-size:18px;color:#707079}
.crumbs a{margin-right:14px}
.breadcrumb-section{padding-top:50px;padding-bottom:50px}

/* hero */
.estate-hero{background-size:cover;background-position:center;position:relative;padding:150px 0 130px}
.estate-hero:before{content:"";position:absolute;inset:0;background:rgba(15,15,20,.55)}
.estate-hero .container{position:relative;z-index:2}
.hero-text-wrap{max-width:760px}
.hero-text-wrap h1{color:#fff;font-size:56px;line-height:1.15;margin-bottom:18px}
.hero-text-wrap p{color:#fff;font-size:18px;line-height:1.6;margin-bottom:34px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px}
.hero-cta{background:#dfa974;color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:1px;font-size:13px;padding:15px 24px;border-radius:2px;transition:.2s}
.hero-cta i{margin-right:8px}
.hero-cta:hover{background:#fff;color:#19191a;text-decoration:none}

/* cards */
.estate-card{background:#fff;border:1px solid #ebebeb;margin-bottom:30px;display:flex;flex-direction:column;height:calc(100% - 30px);transition:box-shadow .25s}
.estate-card:hover{box-shadow:0 8px 28px rgba(0,0,0,.1)}
.ec-img{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;background:#eee}
.ec-img-lg{aspect-ratio:16/10}
.ec-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.estate-card:hover .ec-img img{transform:scale(1.04)}
.ec-body{padding:20px 22px 22px;display:flex;flex-direction:column;flex:1}
.ec-type{font-size:12px;text-transform:uppercase;letter-spacing:1.5px;color:#707079}
.ec-body h3{font-size:22px;margin:6px 0 8px;line-height:1.25}
.ec-body h3 a{color:#19191a}
.ec-price{font-family:"Lora",serif;font-size:24px;font-weight:700;color:#dfa974;margin-bottom:10px}
.ec-price small{font-family:"Cabin",sans-serif;font-size:13px;color:#707079;font-weight:400}
.ec-dev{color:#707079;margin-bottom:8px}
.ec-specs{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-wrap:wrap;gap:6px 18px;color:#444}
.ec-specs i{color:#dfa974;margin-right:4px}
.ec-desc{color:#707079;font-size:15px;line-height:1.5;margin-bottom:14px}
.ec-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:6px}
.ec-actions .primary-btn{color:#19191a}
.status{position:absolute;top:12px;left:12px;color:#fff;font-size:12px;font-weight:700;padding:4px 10px;border-radius:2px;text-transform:uppercase;letter-spacing:1px}
.ds-meta .status{position:static;display:inline-block;margin-left:6px}
.status-ok{background:#2e9e5b}.status-warn{background:#d9902f}.status-off{background:#8a8a92}.status-proj{background:#19191a}
.own{position:absolute;top:12px;right:12px;background:#fff;color:#19191a;font-size:12px;font-weight:700;padding:4px 10px;border-radius:2px}

/* whatsapp */
.wa-btn{display:inline-block;background:#25d366;color:#fff;font-weight:700;font-size:13px;padding:9px 16px;border-radius:2px;white-space:nowrap;transition:.2s}
.wa-btn:hover{background:#1ebe5b;color:#fff;text-decoration:none}
.wa-btn i{margin-right:6px;font-size:16px;vertical-align:-1px}
.wa-block{display:block;text-align:center;padding:14px 16px;font-size:15px}
.wa-float{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px) + var(--wa-lift,0px));right:calc(18px + env(safe-area-inset-right,0px));z-index:99;width:56px;height:56px;border-radius:50%;background:#25d366;color:#fff;font-size:30px;line-height:56px;text-align:center;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.wa-float:hover{color:#fff;background:#1ebe5b;text-decoration:none}

/* filters + listing */
.filters{background:#f8f6f3;padding:22px 24px 8px;margin-bottom:24px;border-radius:2px}
.filters label{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#707079;margin-bottom:4px}
.filters .form-control{border-radius:0;height:42px}
.btn-reset{background:none;border:1px solid #ccc;height:42px;padding:0 20px;margin-bottom:1rem;cursor:pointer;width:100%}
.result-count{color:#707079;margin-bottom:18px}
.no-results{text-align:center;padding:40px 0;color:#707079}
[hidden]{display:none!important}

/* detail */
.estate-gallery .g-main{display:block;aspect-ratio:16/10;overflow:hidden;background:#eee}
.estate-gallery .g-main img{width:100%;height:100%;object-fit:cover}
.g-thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto;padding-bottom:4px}
.g-thumb{flex:0 0 110px;aspect-ratio:3/2;opacity:.65;border:2px solid transparent;overflow:hidden}
.g-thumb.active,.g-thumb:hover{opacity:1;border-color:#dfa974}
.g-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sec-h{margin:34px 0 14px}
h2.sec-h{font-size:28px}
.desc p{color:#707079;line-height:1.8}
.check-list{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 18px}
.check-list i{color:#dfa974;margin-right:6px}
.nearby-list{list-style:none;padding:0}
.nearby-list li{display:flex;justify-content:space-between;border-bottom:1px solid #ebebeb;padding:8px 0}
.map-wrap iframe,.video-wrap iframe{width:100%;height:340px;border:0}
.video-wrap{position:relative}
.video-wrap iframe{aspect-ratio:16/9;height:auto}
.map-link{font-size:13px;margin-top:6px}
.detail-side{border:1px solid #ebebeb;padding:26px;position:sticky;top:20px}
.ds-price{font-family:"Lora",serif;font-size:32px;font-weight:700;color:#dfa974;line-height:1.2}
.ds-price small{font-family:"Cabin",sans-serif;font-size:14px;color:#707079;font-weight:400}
.ds-meta{margin:8px 0 18px;color:#707079}
.spec-table{width:100%;margin-bottom:20px}
.spec-table td{padding:7px 0;border-bottom:1px solid #f0f0f0;vertical-align:top}
.spec-table td.r-o{color:#707079;width:42%}
.unit-table th{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:#707079}
.plans img{width:100%;border:1px solid #ebebeb}
.related{background:#f8f6f3}
.related .estate-card{background:#fff}

/* home */
.home-section .section-title{margin-bottom:34px}
.loc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.loc-chip{display:block;border:1px solid #ebebeb;padding:18px 20px;color:#19191a;transition:.2s}
.loc-chip:hover{border-color:#dfa974;text-decoration:none;color:#19191a}
.loc-chip span{display:block;color:#707079;font-size:13px;margin-top:3px}
.about-teaser{background:#f8f6f3;margin-top:40px}
.contact-list{list-style:none;padding:0;font-size:18px;line-height:2.2}
.contact-list i{color:#dfa974;width:24px}
.text-left.section-title{text-align:left}

@media (max-width:991px){
 .hero-text-wrap h1{font-size:38px}
 .estate-hero{padding:90px 0 80px}
 .page-h1{font-size:32px}
 .detail-side{position:static;margin-top:30px}
 .menu-item .logo{padding:14px 0}
}
@media (max-width:575px){.ec-actions{flex-wrap:wrap}.hero-cta{flex:1 1 100%;text-align:center}}

/* neutralise template's tinted text colours on new components */
.spec-table td,.check-list li,.nearby-list li,.nearby-list li span,.ec-specs li,.ec-type,.ec-dev,.unit-table td,.contact-list li,.breadcrumb-text span,.crumbs span{color:#444}
.spec-table td.r-o,.ec-type,.ec-dev,.crumbs span{color:#707079}
.breadcrumb-text>span{display:block;margin-bottom:8px}

/* ---- fixes from review ---- */
/* template makes .primary-btn text white (invisible on light backgrounds) */
.primary-btn{color:#19191a}
.primary-btn:hover{color:#946025;text-decoration:none}
/* logo wordmark must not change colour on hover (template a:hover) */
.site-wordmark,.site-wordmark:hover,.site-wordmark:focus{color:#19191a;text-decoration:none}
.footer-section .site-wordmark,.footer-section .site-wordmark:hover{color:#fff}
/* phone / email links keep the surrounding look */
.top-nav .tn-left li a,.footer-section .ft-contact li a,.contact-list a,.about-teaser a:not(.wa-btn):not(.primary-btn),.top-widget a{color:inherit}
.top-nav .tn-left li a:hover,.footer-section .ft-contact li a:hover,.contact-list a:hover,.top-widget a:hover{color:#946025;text-decoration:none}
.footer-section .ft-contact li a:hover{color:#dfa974}
/* contrast (PageSpeed/Lighthouse accessibility): darker accent for text on white, darker green for white-on-green */
.ec-price,.section-title span,.ec-specs i,.ds-price,.check-list i,.contact-list i{color:#946025}
.hero-cta{background:#946025}
.hero-cta:hover{background:#fff;color:#19191a}
.wa-btn,.wa-float{background:#14803f}
.wa-btn:hover,.wa-float:hover{background:#0f6a34}
.top-nav .tn-right .bk-btn{background:#946025}
.status-ok{background:#1f7a45}.status-warn{background:#8a5a12}
.ec-desc,.ec-type,.ec-dev,.result-count,.no-results,.desc p,.spec-table td.r-o,.filters label{color:#5f5f68}
/* hero image replaces the JS background (faster LCP) */
.estate-hero{overflow:hidden;background:#19191a}
.estate-hero .hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.estate-hero picture{position:absolute;inset:0;display:block}
.estate-hero:before{z-index:1}
/* mobile header: wordmark left, hamburger vertically centred right */
button.canvas-open,button.canvas-close{background:none;padding:0;font-family:inherit}
@media (max-width:991px){
  .site-wordmark{font-size:20px}
  .menu-item .logo{padding:14px 0}
  .canvas-open{right:16px;top:12px}
  .canvas-open i{line-height:inherit}
  .header-section.header-normal .menu-item{min-height:56px}
}
/* filter row: Reset button aligned with inputs */
.filters .form-row{align-items:flex-end}
.filters .form-group{margin-bottom:1rem}
.filters .btn-reset{margin:0;height:42px}
.filters .form-control{height:42px;box-sizing:border-box}
/* size: keep layout stable while images load */
.ec-img img,.g-main img,.g-thumb img{background:#eee}

/* footer heading is a <p> now (heading order) - same look as the template h6 */
.footer-section .footer-text .ft-contact .ft-title{font-size:14px;color:#dfa974;text-transform:uppercase;font-weight:700;letter-spacing:3px;font-family:"Cabin",sans-serif;margin-bottom:20px}
/* contrast + non-colour link cue */
.footer-section .copyright-option .co-text,.footer-section .ft-about p,.footer-section .ft-contact li{color:#b4b4bd}
.footer-section .copyright-option .co-text a,.footer-section .ft-contact li a,.contact-list a,.about-text p a{text-decoration:underline;text-underline-offset:3px}
.footer-section .copyright-option .co-text a{color:#fff}
.crumbs a{color:#19191a;text-decoration:underline;text-underline-offset:3px}
.breadcrumb-text .crumbs span,.breadcrumb-text .bt-option span{color:#5f5f68}
.footer-section .copyright-option .co-text p,.footer-section .copyright-option .co-text{color:#b4b4bd}

/* catalogue / project detail additions */
.wa-sm{padding:5px 10px;font-size:12px}
.ds-note{font-size:13px;color:#5f5f68;line-height:1.5;margin:10px 0 14px}
.ds-note a{text-decoration:underline}
.price-disclaimer{font-size:13px;color:#5f5f68;margin-top:18px;text-align:center}
.src-list{padding-left:18px;font-size:14px}
.src-list a{text-decoration:underline;color:#444;word-break:break-word}
.pay-list{grid-template-columns:1fr}
.unit-table td{vertical-align:middle}
.mainmenu li .dropdown{min-width:190px}

.ec-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#efece7;color:#5f5f68;font-size:14px}
.ec-ph i{font-size:28px;color:#946025}
.g-none{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#efece7;color:#5f5f68;text-align:center;padding:20px}
.g-none .ec-ph{position:static;background:none}

.img-credit{font-size:12px;color:#5f5f68;margin:8px 0 0}

/* pagination */
.pager{margin-top:10px}
.pagination .page-link{color:#19191a;border-radius:0;min-width:42px;text-align:center}
.pagination .page-item.active .page-link{background:#946025;border-color:#946025;color:#fff}
.pagination .page-item.disabled .page-link{color:#8a8a92}
.pagination .page-link:hover{color:#946025}

.type-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.type-tabs a{border:1px solid #d9d4cc;padding:8px 16px;color:#19191a;font-weight:600;font-size:14px}
.type-tabs a:hover{border-color:#946025;color:#946025;text-decoration:none}
.type-tabs a.active{background:#946025;border-color:#946025;color:#fff}

/* keep intrinsic aspect ratio now that <img> carries width/height attributes */
img{height:auto}

/* project FAQ */
.faq-list details{border:1px solid #e6e6e6;border-radius:4px;margin-bottom:8px;background:#fff}
.faq-list summary{cursor:pointer;padding:12px 16px;font-weight:600;color:#19191a}
.faq-list details[open] summary{border-bottom:1px solid #eee}
.faq-list p{margin:0;padding:12px 16px;color:#444}

.ec-actions .primary-btn{white-space:normal;line-height:1.35;text-align:center}

/* USD equivalent (secondary, filled by js/fx.js; THB stays the primary price) */
.usd{display:block;min-height:1.4em;font-family:"Cabin",sans-serif;font-size:14px;font-weight:400;color:#5f5f68;line-height:1.4;margin-top:2px}
.ds-price .usd{font-size:15px;margin-top:4px}
.unit-table .usd{display:block;min-height:0;font-size:12px;margin:0;white-space:nowrap}
.unit-table .usd:empty,.usd-note-text:empty{display:none}
.ec-price .usd{font-size:14px;color:#5f5f68;margin-top:2px}
.ds-price .usd{color:#5f5f68}

/* ---- language switcher (EN / RU): compact segmented control, plain links so it works without JS ---- */
.lang-switch{display:inline-flex;align-items:center;gap:2px;padding:2px;margin:0 20px 0 0;vertical-align:middle;border:1px solid transparent;border-radius:3px;line-height:1}
.lang-switch a{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;font-size:12px;font-weight:700;letter-spacing:1px;border-radius:2px;text-decoration:none;white-space:nowrap}
.lang-switch a:hover,.lang-switch a:focus-visible{text-decoration:none}
.lang-switch img{display:block;width:18px;height:12px;border-radius:1px;flex:none}
.lang-switch-m{display:flex;margin:0 0 18px;width:max-content}
.lang-switch-bar{display:none}
@media (max-width:991px){
  .lang-switch-bar{display:inline-flex;position:absolute;right:56px;top:11px;z-index:98;margin:0}
  .lang-switch-bar{right:52px;padding:1px}
  .lang-switch-bar a{padding:4px 6px;gap:4px;font-size:11px;letter-spacing:.5px}
  .lang-switch-m{display:none}
}
@media (max-width:360px){.lang-switch-bar a span{display:none}.lang-switch-bar a{padding:5px 7px}}
/* section headings under the page H1 are H2 for a correct outline; keep the original (smaller) look */
h2.sec-h.sec-sub{font-size:24px}

/* ---- rentals: booking by request ---- */
.status-req{background:#19191a}
.ec-rent-specs{gap:6px 14px}
.ec-rent-specs li{white-space:nowrap}
.ec-req{margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.3px}
.ec-req i{margin-right:5px}
.ec-actions{flex-wrap:wrap;gap:8px 10px}
.rent-request i{margin-right:6px}
.rent-request-block{display:block;text-align:center;margin:0 0 12px}
.rent-notice{margin:0 0 18px;font-size:15px}
.rent-notice i{margin-right:6px}
.rent-notice-side{font-size:13px;margin-bottom:12px}
.rent-chips{margin-bottom:12px;font-size:16px}
.rent-lead{margin:0 0 14px}
.rent-projlink{margin:0 0 14px}

/* booking-by-request dialog (native <dialog>; mobile first, full height on phones) */
.rental-dialog{padding:0;border:1px solid #d8d8d8;border-radius:4px;width:min(720px,calc(100vw - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);color:#222;background:#fff;overflow:hidden}
.rental-dialog[open]{display:flex;flex-direction:column}
.rental-dialog::backdrop{background:rgba(0,0,0,.65)}
.rental-dialog form{display:flex;flex-direction:column;min-height:0;flex:1}
.rd-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #e5e5e5}
.rd-head h2{font-size:22px;margin:0}
.rd-x{background:none;border:0;font-size:30px;line-height:1;cursor:pointer;padding:0 6px;color:inherit}
.rd-body{padding:16px 18px;overflow-y:auto;flex:1;-webkit-overflow-scrolling:touch}
.rd-foot{display:flex;flex-wrap:wrap;gap:10px;padding:12px 18px;border-top:1px solid #e5e5e5}
.rd-foot .wa-btn,.rd-foot .primary-btn{flex:1 1 220px;text-align:center;border:0;cursor:pointer;font-family:inherit}
.rd-foot button:disabled{opacity:.55;cursor:not-allowed}
.rd-lead{margin:0 0 14px}
.rd-set{border:0;padding:0;margin:0 0 16px;min-width:0}
.rd-set legend{font-size:14px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin:0 0 8px;padding:0;width:auto}
.rd-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rd-row3{grid-template-columns:1.4fr 1fr 1.2fr}
.rd-f{margin-bottom:8px;min-width:0}
.rd-f label{display:block;font-size:13px;margin-bottom:4px}
.rd-body .form-control{width:100%;height:44px;font-size:16px} /* 16px: no zoom on iOS focus */
.rd-body textarea.form-control{height:auto}
.rd-hint{font-size:13px;margin:4px 0 0}
.rd-warn{font-size:13px;margin:6px 0 0;font-weight:700}
.rd-note{font-size:13px;margin:6px 0 0}
.rd-error{border:1px solid #c0392b;background:rgba(192,57,43,.08);padding:10px 14px;margin:0 0 14px;font-size:14px}
.rd-error ul{margin:6px 0 0 18px;padding:0}
.rd-body .is-invalid{border-color:#c0392b}
.rd-done{border:1px solid #2e9e5b;background:rgba(46,158,91,.1);padding:12px 14px;margin:12px 0 0}
.rd-done p{margin:6px 0 10px}
.rd-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
html.rd-open{overflow:hidden}
@media (max-width:575px){
  .rental-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:none;border:0;border-radius:0}
  .rd-row,.rd-row3{grid-template-columns:1fr}
  .rd-row3 .rd-f:nth-child(n+2){display:inline-block}
}
@media (min-width:576px) and (max-width:767px){.rd-row3{grid-template-columns:1fr 1fr}}

/* preferred locations: checkbox group (several areas can be chosen) */
.rd-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 12px;margin:2px 0 8px}
.rd-chk{display:flex;align-items:center;gap:8px;margin:0;padding:8px 10px;border:1px solid #d8d8d8;border-radius:3px;cursor:pointer;font-size:15px;line-height:1.2}
.rd-chk input{width:18px;height:18px;margin:0;flex:none;accent-color:#946025}
.rd-chk:has(input:checked){border-color:#946025;background:rgba(148,96,37,.1)}
.rd-hint-top{margin:0 0 8px}
#rd-locset.is-invalid{outline:1px solid #c0392b;outline-offset:4px}
.nearby-grouped .nl-group{display:block;font-weight:700;letter-spacing:.5px;text-transform:uppercase;font-size:13px;padding-top:12px;border-bottom:0}
.nearby-grouped .nl-group:first-child{padding-top:0}
.comp-table{width:100%;border-collapse:collapse;font-size:14px;margin:12px 0}.comp-table th,.comp-table td{border:1px solid var(--line-strong,#3a3a3a);padding:8px 10px;vertical-align:top;text-align:left}.comp-table thead th{background:var(--ink-3,#181a20);color:var(--accent,#c9a96a);border-bottom:2px solid var(--accent,#c9a96a)}.comp-table thead th a{color:var(--accent,#c9a96a)}.comp-table tbody th{background:var(--ink-2,#121419);color:var(--text,#ece7dc);font-weight:600;white-space:nowrap}.comp-table tbody td{background:transparent}.comp-table tbody tr:hover td,.comp-table tbody tr:hover th{background:var(--ink-2,#121419)}
.step-list{padding-left:1.2rem}.step-list li{margin-bottom:.6rem}
