/* Compact 806:249 ratio banner; CSS namespaced to avoid Newspaper collisions. */
.xpcm-cover{box-sizing:border-box;width:100%;max-width:100%;margin:0 0 18px;border-radius:14px;overflow:hidden}
.xpcm-available{aspect-ratio:806/249;min-height:0;max-height:249px;background:linear-gradient(120deg,#082452,#0b448b 55%,#1869b4);color:#fff!important;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px 20px}
.xpcm-inner{width:100%;max-width:850px;display:flex;flex-direction:column;align-items:center;gap:4px}
.xpcm-kicker{color:#ffde00;font-size:clamp(10px,1.2vw,13px);letter-spacing:.4px;font-weight:700}
.xpcm-available h2{font-size:clamp(19px,3vw,31px)!important;line-height:1.15!important;color:#fff!important;margin:0!important;font-weight:900}
.xpcm-price{font-size:clamp(18px,2.5vw,27px)!important;font-weight:900;color:#ffde00!important;margin:0!important;line-height:1.25!important}
.xpcm-price span{font-size:.65em;color:#fff;font-weight:600}
.xpcm-available p:not(.xpcm-price){font-size:clamp(10px,1.2vw,13px)!important;color:#fff!important;margin:0!important;line-height:1.4}
.xpcm-contact{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:3px;background:#d71920;border-radius:9px;padding:5px 12px}
.xpcm-contact-label{color:#fff;font-size:12px;font-weight:800}
.xpcm-phone-img{display:block!important;width:190px!important;height:auto!important;max-width:60vw!important;object-fit:contain!important;user-select:none;-webkit-user-drag:none;pointer-events:none}
.xpcm-rented img{width:100%;height:auto;max-height:249px;object-fit:cover;display:block}
@media(max-width:600px){.xpcm-available{aspect-ratio:auto;min-height:158px;max-height:190px;padding:9px 10px}.xpcm-inner{gap:3px}.xpcm-available p:not(.xpcm-price){display:none}.xpcm-contact{padding:4px 9px}.xpcm-phone-img{width:154px!important}.xpcm-contact-label{font-size:10px}.xpcm-rented img{max-height:147px}}

/* 1.3.1 - banner first; compact commune/province line below */
.xpcm-location-strip{box-sizing:border-box;width:100%;padding:13px max(20px,calc((100vw - 1110px)/2));background:#f6f9fe;color:#1a355c;font-size:17px;line-height:1.5}
.xpcm-location-strip strong{font-size:23px;font-weight:800;color:#102f60}.xpcm-location-strip a{color:#345e96;text-decoration:none}.xpcm-separator{padding:0 11px;color:#9eafc4}
.xpcm-hero-ready{box-sizing:border-box!important;min-height:0!important;height:auto!important;padding:15px 20px!important;display:block!important}
.xpcm-hero-ready .xpcm-hero-old{display:none!important}
.xpcm-hero-ready .xpcm-hero-slot{box-sizing:border-box;width:min(1110px,100%);margin:0 auto;display:block}
.xpcm-hero-ready .xpcm-cover{margin:0!important;max-height:249px}
.xpcm-hero-ready .xpcm-available{background:transparent!important;box-shadow:none;border:0}
.xpcm-hero-ready .xpcm-rented img{max-height:249px}
@media(max-width:600px){.xpcm-location-strip{padding:10px 15px;font-size:14px}.xpcm-location-strip strong{font-size:19px}.xpcm-hero-ready{padding:10px!important}.xpcm-hero-ready .xpcm-cover{max-height:190px}}
/* 1.3.2: Keep the blue cover within the same centered page width as the content. */
.xpcm-hero-ready{
  background:#f6f9fe!important;
  background-image:none!important;
  border:0!important;
  padding:16px max(16px,calc((100% - 1110px)/2))!important;
}
.xpcm-hero-ready .xpcm-hero-slot{
  width:100%!important;
  max-width:1110px!important;
  margin-inline:auto!important;
}
.xpcm-hero-ready .xpcm-cover{
  width:100%!important;
  max-width:1110px!important;
  margin:0 auto!important;
  border-radius:14px!important;
}
.xpcm-hero-ready .xpcm-available{
  background:linear-gradient(120deg,#082452,#0b448b 55%,#1869b4)!important;
}
.xpcm-location-strip{padding-inline:max(16px,calc((100% - 1110px)/2))!important;}
@media(max-width:600px){
 .xpcm-hero-ready{padding:10px 12px!important;}
 .xpcm-location-strip{padding:10px 12px!important;}
}
.xpcm-cover .xpcm-contact{display:inline-block;padding:9px 15px;border-radius:7px;background:#e43643;color:white;text-decoration:none;font-weight:800}
.tax-tinh-thanh .xpcm-cover{margin-bottom:14px}

.xpcm-position-2{margin:0 0 10px!important;max-height:180px!important;min-height:110px!important;aspect-ratio:auto!important;background:linear-gradient(115deg,#142d4e,#115f64)!important}.xpcm-position-2 .xpcm-inner{gap:2px}.xpcm-position-2 h2{font-size:20px!important}.xpcm-position-2 .xpcm-price{font-size:19px!important}.xpcm-position-2.xpcm-rented img{width:100%;max-height:180px;object-fit:cover}.xpcm-pending{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;background:linear-gradient(120deg,#143452,#0f6769);color:#fff;padding:28px}.xpcm-pending strong{font-size:20px}.xpcm-pending small{opacity:.8}

/* Local ad placeholders stay identifiable while matching the polished directory. */
.xpcm-available{position:relative;background:radial-gradient(circle at 89% 20%,#287bb5 0,transparent 39%),radial-gradient(circle at 9% 78%,#074e73 0,transparent 36%),linear-gradient(120deg,#082a51,#095776);box-shadow:0 13px 32px #1649631c;border:1px solid #ffffff23}
.xpcm-available::before{content:"";position:absolute;right:-48px;top:-120px;width:320px;height:320px;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 38px #ffffff08,0 0 0 78px #ffffff05;pointer-events:none}.xpcm-inner{position:relative;z-index:1}.xpcm-contact{box-shadow:0 7px 16px #061c3838}

/* Banner 1 follows the sticky header; scroll state keeps it compact. */
body.single-xa-phuong .xpcm-hero-ready{position:relative!important;top:auto!important;z-index:2!important;border-bottom:0!important;box-shadow:none!important}
body.tax-tinh-thanh .xp6-province-main .xpcm-position-1{position:sticky;top:calc(var(--xpcm-sticky-top,78px) + 5px);z-index:18;border:2px solid #b8cfde;box-shadow:0 6px 16px #0a294025}
@media(max-width:620px){
 body.single-xa-phuong .xp-header,body.tax-tinh-thanh .xp-header{position:relative!important;top:auto!important}
 body.single-xa-phuong .xpcm-hero-ready{top:0!important}
 body.tax-tinh-thanh .xp6-province-main .xpcm-position-1{top:0!important}
 body.admin-bar.single-xa-phuong .xpcm-hero-ready,body.admin-bar.tax-tinh-thanh .xp6-province-main .xpcm-position-1{top:46px!important}
}

/* These two units belong to the whole site; they never select a locality. */
.xpcm-site-rails{display:none}
@media(min-width:1560px){
 .xpcm-site-rails{display:block}
 .xpcm-site-rail{position:fixed;z-index:19;top:calc(var(--xpcm-sticky-top,96px) + 10px);width:min(300px,calc((100vw - 1200px)/2 - 20px));min-height:380px;max-height:calc(100vh - 130px);overflow:hidden;border:1px solid #d4e2eb;border-radius:14px;background:#fff;box-shadow:0 10px 30px #17334d12}
 .xpcm-site-rail-left{left:10px}.xpcm-site-rail-right{right:10px}
 .xpcm-site-rail img{display:block;width:100%;height:auto;max-height:calc(100vh - 134px);object-fit:contain}
 .xpcm-site-vacant,.xpcm-site-pending{min-height:380px;padding:20px 13px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;background:linear-gradient(145deg,#f4fafb,#e8f1f8);color:#17344e}
 .xpcm-site-vacant span{font-size:10px;letter-spacing:.12em;color:#0d696d;font-weight:800}
 .xpcm-site-vacant strong{font-size:17px;line-height:1.35}.xpcm-site-vacant small,.xpcm-site-pending span{color:#607487;font-size:12px}
 .xpcm-site-vacant a{display:block;background:#0d7073;color:#fff;padding:8px 12px;border-radius:8px;font-size:12px;font-weight:700;text-decoration:none}
}

/* Keep commune/province name visible while scrolling; cover is 2/3 height. */

@media(max-width:620px){body.single-xa-phuong .xpcm-location-strip{top:0}}
body.admin-bar.single-xa-phuong .xpcm-location-strip{top:calc(var(--xpcm-sticky-top,78px))}

.xpcm-size{display:inline-block;margin-top:6px;padding:3px 8px;border-radius:999px;background:#0d3a6a;color:#fff;font-size:12px;font-weight:700;letter-spacing:.02em}
.xpcm-hero-ready .xpcm-size,.xpcm-rented + .xpcm-size,.xpcm-hero-slot .xpcm-size{display:block;width:fit-content;margin:8px auto 0;background:#163e6a;color:#fff}
.xpcm-available .xpcm-size{background:#ffffff24;border:1px solid #ffffff55}

body.single-xa-phuong .xpcm-location-strip{position:sticky;top:var(--xpcm-sticky-top,78px);z-index:19;background:#f6f9fe;border-bottom:1px solid #d4e0ee;box-shadow:0 6px 14px #0a294018}
@media(max-width:620px){body.single-xa-phuong .xpcm-location-strip{top:0}}

@media(max-width:620px){
 body.single-xa-phuong .xpcm-hero-ready{position:sticky!important;top:0!important;z-index:18!important;background:#f6f9fe!important;box-shadow:0 6px 14px #0a294018!important}
 body.admin-bar.single-xa-phuong .xpcm-hero-ready{top:46px!important}
 body.single-xa-phuong .xpcm-location-strip{position:static;top:auto;box-shadow:none;border-bottom:0}
}
