/* BaansBuy v2 theme (Nov 2026) - loaded after style.css */
:root{--ground:#F6F4EF;--ph:#DDD8CE;--border:#E2DED5;--navy:#13294B;--serif:'Noto Serif Thai',Georgia,serif}
body{background:var(--ground)}
h2.t,.d-title{font-family:var(--serif);font-weight:600}
/* header */
.hdr{background:#F6F4EF;color:var(--navy);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:30}
.hdr-row{padding:12px 20px;gap:10px 24px}
.brand,.brand:hover{color:var(--navy)}
.brand-name{font-family:var(--serif);font-weight:700;letter-spacing:0;font-size:22px}
.brand-name span{color:#B88A00}
.nav{flex:1 1 auto;gap:4px 22px}
.nav a{color:var(--navy)}.nav a:hover{color:#2B4A7A}
.nav a.nav-sell{border:1px solid var(--navy);border-radius:999px;padding:5px 14px;align-self:center;font-weight:600}
.btn-help{background:var(--navy);color:#fff;text-decoration:none;font-weight:600;font-size:15px;padding:11px 18px;border-radius:8px;white-space:nowrap}
.btn-help:hover{color:#fff;background:#1F3D6B}
.btn-tel{color:var(--navy);border-color:var(--navy)}.btn-tel:hover{background:var(--navy);color:#fff}
.mnav{display:none!important}.menu-btn{display:none!important}
@media (max-width:760px){
.hdr-row{padding:10px 16px 0}
.hdr-row>.btn-help{margin-left:auto;padding:10px 14px}
.nav{display:flex!important;order:5;flex:1 1 100%;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:24px;padding-bottom:4px;scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.nav a{padding:8px 0 10px}
.nav a.nav-sell{padding:4px 12px;margin:4px 0}
}
/* hero */
.h2-hero{color:#fff;background:linear-gradient(90deg,rgba(10,22,40,.84) 0%,rgba(10,22,40,.55) 50%,rgba(10,22,40,.08) 100%),url(/static/hero.webp) center 60%/cover #13294B}
.h2-hero-in{padding:clamp(48px,9vw,120px) 20px 48px;display:flex;flex-direction:column;gap:32px;min-height:420px;justify-content:flex-end}
.h2-copy{display:flex;flex-direction:column;gap:14px;max-width:660px}
.h2-kicker{font-size:15px;letter-spacing:2px;color:#F2C230;font-weight:600}
.h2-hero h1{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(30px,8.2vw,56px);line-height:1.4;display:flex;flex-direction:column}
.h2-hero h1 .nw{white-space:nowrap}.h2-hero h1 em{font-style:normal;color:#F2C230}
.h2-hero p{margin:0;font-size:18px;line-height:1.7;color:#E4E8EE;max-width:640px}
.h2-search{margin:0;max-width:1000px;padding:10px;gap:8px;align-items:stretch;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.h2-search label{flex:1 1 150px;background:#F4F2ED;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:600;color:#6A6F78;gap:2px}
.h2-search select{border:0;background:transparent;padding:4px 0;font-size:16px}
.h2-search button{flex:1 1 120px;min-height:56px;background:#F2C230;color:var(--navy);font-size:17px}
@media (max-width:760px){
.h2-hero{background-position:65% 60%}
.h2-hero p{font-size:16px}
.h2-search{display:grid;grid-template-columns:1fr 1fr;padding:10px}
.h2-search label:first-of-type{grid-column:1/-1}
.h2-search button{grid-column:1/-1}
}
/* trust strip */
.h2-trust{border-bottom:1px solid var(--border)}
.h2-trust-in{padding:24px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.h2-trust-in div{display:flex;gap:12px;align-items:center;color:var(--navy)}
.h2-trust-in span{display:flex;flex-direction:column;line-height:1.4}
.h2-trust-in small{color:#6A6F78;font-size:14px}
/* sections */
.h2-sec{padding-top:56px}
.h2-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:22px}
.h2-sub{margin:6px 0 0;color:#6A6F78;font-size:15px}
.h2-tabs{margin:0}
.h2-tabs button{background:transparent;border-color:#CFC9BD}
.h2-tabs button[aria-pressed="true"]{background:var(--navy);border-color:var(--navy)}
.h2-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.h2-more{display:flex;justify-content:center;margin-top:32px}
.h2-more a{min-height:48px;display:inline-flex;align-items:center;padding:0 28px;border:1px solid var(--navy);border-radius:8px;text-decoration:none;font-weight:600}
.h2-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-top:22px}
.h2-area{position:relative;display:block;height:240px;border-radius:10px;overflow:hidden;text-decoration:none;color:#fff;background:#13294B}
.h2-area img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.h2-area::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 40%,rgba(0,0,0,.72) 100%)}
.h2-area-t{position:absolute;left:18px;bottom:16px;z-index:1;display:flex;flex-direction:column}
.h2-area-t b{font-family:var(--serif);font-weight:600;font-size:22px}
.h2-area-t small{font-size:14px;color:#E4E8EE}
.h2-area:hover{color:#fff}
/* help */
.h2-help{background:var(--navy);color:#fff;margin-top:64px}
.h2-help-in{max-width:1200px;margin:0 auto;display:flex;flex-wrap:wrap}
.h2-help-img{flex:1 1 420px;min-height:300px;background:url(/static/help.webp) center/cover #1A345C}
.h2-help-f{flex:1 1 460px;padding:48px 32px;display:flex;flex-direction:column;gap:14px}
.h2-help h2{margin:0;font-family:var(--serif);font-weight:600;font-size:clamp(26px,4vw,34px);line-height:1.35}
#helpForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px;position:relative}
#helpForm label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#C9D3E2}
#helpForm input,#helpForm select{height:46px;padding:0 12px;border:1px solid #3A5580;border-radius:8px;font:inherit;font-size:16px;background:#1A345C;color:#fff}
#helpForm .full{grid-column:1/-1}
#helpForm .hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#helpForm button{height:52px;border:0;border-radius:8px;background:#F2C230;color:var(--navy);font:inherit;font-size:17px;font-weight:700;cursor:pointer}
#helpForm button[disabled]{opacity:.6}
.form-msg{margin:0;font-size:14px;min-height:1em}.form-msg.ok{color:#9BE3B4}.form-msg.err{color:#FFB4A8}.form-msg a{color:#F2C230}
@media (max-width:760px){.h2-help-img{min-height:200px}.h2-help-f{padding:32px 20px}#helpForm{grid-template-columns:1fr}}
/* faq */
.h2-faq{max-width:860px;margin:0 auto;padding-top:56px}
.h2-faq .h2-sub{margin-bottom:18px}
/* card v2 */
.card.c2{border:0;border-radius:12px;box-shadow:0 1px 2px rgba(20,30,50,.06),0 6px 18px rgba(20,30,50,.07)}
.c2-img{position:relative;display:block;aspect-ratio:3/2;background:var(--ph);overflow:hidden}
.c2-img img{width:100%;height:100%;object-fit:cover}
.c2 .tag{border-radius:999px;padding:3px 10px}
.c2-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.c2 .c2-t{margin:0;font-family:var(--serif);font-weight:600;font-size:17px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c2 .c2-t a{color:var(--navy);text-decoration:none}
.c2 .c2-t a::after{content:none}
.c2-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;color:#6A6F78}
.c2-sp{color:#3D4553}
.c2-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin-top:2px}
.c2-price b{font-size:21px;color:#1B2433}.c2-price b.disc{color:#C62828}
.c2-price s{font-size:13px;color:#6A6F78}
.c2-note{font-size:12px;font-weight:600;color:#8A5A00;background:#FBEFC8;padding:2px 8px;border-radius:999px}
.c2-act{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:auto;padding-top:6px}
.c2-act a{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:8px;text-decoration:none;font-weight:600;font-size:15px}
.c2-line{background:var(--line-green);color:#fff}.c2-line:hover{color:#fff;background:#04722F}
.c2-view{border:1px solid var(--navy);color:var(--navy)}

.c2-meta{display:block;line-height:1.6}
.c2-meta svg{display:inline-block;vertical-align:-2px;margin-right:3px}

/* v2: loan calculator + detail panels in warm theme (beats features.css, which loads later) */
html body .calc{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 1px 2px rgba(20,30,50,.05)}
html body .calc h2{font-family:var(--serif);font-weight:600;font-size:24px;color:var(--navy)}
html body .calc .sub{color:#6A6F78}
html body .calc label{color:#5B5F66}
html body .calc input,html body .calc select{background:#FBFAF7;border:1px solid #D8D2C6;border-radius:10px}
html body .calc input:focus,html body .calc select:focus{outline:2px solid #F2C230}
html body .calc-out{background:var(--navy);border-radius:14px;padding:20px 22px}
html body .calc-out small{color:#C9D3E2}
html body .calc-out .big b{color:#F2C230;font-size:32px}
html body .calc-costs{border:1px solid var(--border);border-radius:12px}
html body .calc-costs div{border-top:1px solid #EEEAE2}
html body .calc-costs div:first-child{background:#F4F2ED;color:var(--navy)}
html body .calc-costs .tot{background:#FBF6E3}
html body .calc .note a{color:var(--navy)}
html body .tbl th{background:#F4F2ED}
html body .tbl th,html body .tbl td{border-top-color:#EEEAE2}
html body .empty{border-color:#D8D2C6}
.panel,.aside,.spec,.box,.faq details,.area-card,.cats a,.cat-card,.rev{border-color:var(--border)}
.panel h2,.aside h2{font-family:var(--serif);font-weight:600}
.badge.soft{background:#EFEBE2;color:var(--navy)}
.specs{border-top-color:#EEEAE2}

/* special price (KKP style) */
.c2-price b.disc,.p.disc{color:#E0245E}
.sp-badge{display:inline-block;vertical-align:middle;background:#E0245E;color:#fff;font-size:12px;font-weight:700;line-height:1;padding:5px 9px;border-radius:6px;margin-left:8px;letter-spacing:.02em}
.p .sp-badge{font-size:14px;padding:6px 11px;position:relative;top:-4px}
.c2-price s{flex-basis:100%}

/* KKP-style detail page */
.share-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:2px 0 18px}
.share-row .sh{width:40px;height:40px;border-radius:10px;background:var(--navy,#0F2A4A);color:#fff;display:inline-flex;align-items:center;justify-content:center;border:0;cursor:pointer;text-decoration:none;font:inherit}
.share-row .sh b{font-size:11px;letter-spacing:.02em}
.share-row .sh:hover{opacity:.88;color:#fff}
.share-row .map-btn{height:40px;display:inline-flex;align-items:center;padding:0 16px;border:1px solid #CBD3DD;border-radius:999px;background:#fff;color:var(--navy,#0F2A4A);font-weight:600;font-size:15px;text-decoration:none}
.share-row .map-btn:hover{border-color:var(--navy,#0F2A4A)}
.sh-msg{font-size:13px;color:#05873B;font-weight:600}
.panel>h2,.d-main>section>h2.t{border-left:4px solid #F5B700;padding-left:12px;line-height:1.3}
.cat-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:15px;color:#5B6675;margin:-2px 0 14px!important}
.cat-row .badge{font-size:13px;padding:4px 10px;border-radius:6px;text-decoration:none}
.cat-row span b{color:#0F2A4A}
.map-embed{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;border:1px solid #E3E8EF;margin:4px 0 14px;background:#EEF1F5}
.map-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.disclaimer{max-width:900px;margin:36px 0 8px;padding:14px 16px;border-radius:10px;background:#F0F4F9;font-size:13px;line-height:1.7;color:#5B6675}
@media (max-width:760px){.map-embed{aspect-ratio:4/3}.share-row{gap:8px}}
/* KKP-style mobile bar */
body .mbar{padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:12px;background:#fff;border-top:1px solid #E7E7EF;box-shadow:0 -2px 12px rgba(27,44,65,.06)}
body .mbar a{flex:1;flex-direction:row;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:6px;font-size:15px;font-weight:600;line-height:1}
body .mbar .t{background:#fff;color:#1B2C41;border:1px solid #D5D8E0}
body .mbar .l{background:#06C755;color:#fff;border:1px solid #06C755}
body .mbar svg{flex-shrink:0}
/* mobile: hide per-card buttons, sticky bar handles contact */
@media (max-width:760px){.c2-act{display:none}}
/* sticky contact bar only on property pages */
@media (max-width:760px){body:not(:has(.share-row)) .mbar{display:none}body:not(:has(.share-row)){padding-bottom:0}}
