/* ============================================================
   Hanuman PropWorks — listings.css v3.8.1
   Frontend: [propworks_listings] [propworks_unit] [propworks_all_map]
   Modern property listing design
============================================================ */

/* ---- Base ---- */
.hpw-ls-wrap, .hpw-ud-wrap, .hpw-allmap-wrap, .hpw-tp-wrap {
    /* v4.29.0: ฟอนต์อีโมจิท้าย stack — ดูเหตุผลใน admin.css */
    font-family: var(--hpw-font);
}
.hpw-ls-section-title {
    font-size:     26px;
    font-weight:   800;
    color:         var(--hpw-brand-deep);
    margin:        0 0 20px;
    padding-bottom:12px;
    border-bottom: 3px solid var(--hpw-brand-ink);
    display:       inline-block;
}
.hpw-ud-breadcrumb .hpw-admin-edit-link,
.hpw-admin-edit-link {
    margin-left: auto; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 13px; border-radius: 999px;
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #431407 !important; font-size: 12px; font-weight: 900;
    text-decoration: none !important; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(245,158,11,.30);
    transition: filter .16s, transform .16s;
}
.hpw-admin-edit-link::before { content: "✏️"; font-size: 12px; }
.hpw-admin-edit-link:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* ---- TYPE TABS ---- */
.hpw-ls-tab-shell {
    margin:0 0 16px;
    padding:14px;
    border:1px solid rgba(var(--hpw-brand-deep-rgb),.12);
    border-radius:18px;
    background:
        radial-gradient(circle at 92% 12%,rgba(251,191,36,.12),transparent 26%),
        linear-gradient(135deg,#ffffff 0%,#f3faf7 100%);
    box-shadow:0 14px 34px rgba(var(--hpw-brand-deep-rgb),.08);
}
.hpw-ls-tab-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:0 0 10px;
}
.hpw-ls-tab-head span {
    color:#0f8d67;
    font-size:11px;
    font-weight:950;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.hpw-ls-tab-head strong {
    padding:5px 10px;
    border-radius:999px;
    background:#0f6b4a;
    color:#fff;
    font-size:12px;
    font-weight:950;
    box-shadow:0 10px 20px rgba(15,107,74,.16);
}
.hpw-ls-tabs {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:0;
    padding:5px;
    border:1px solid rgba(var(--hpw-brand-deep-rgb),.10);
    border-radius:999px;
    background:rgba(255,255,255,.78);
}
.hpw-ls-tab {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:38px;
    padding:8px 15px;
    font-size:13px;
    font-weight:900;
    color:#3d5149;
    text-decoration:none !important;
    border-radius:999px;
    border:1px solid transparent;
    transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease;
    background:transparent;
}
.hpw-ls-tab:hover  { background:#ecfdf5; color:#0f6b4a; transform:translateY(-1px); }
.hpw-ls-tab.active {
    background:linear-gradient(135deg,#0f6b4a,#10875f);
    color:#fff;
    border-color:rgba(255,255,255,.5);
    box-shadow:0 10px 22px rgba(15,107,74,.20);
}
.hpw-ls-tab-icon { line-height:1; filter:saturate(1.05); }
.hpw-ls-tab-icon img.emoji {
    width:1.05em !important;
    height:1.05em !important;
    max-width:1.05em !important;
    max-height:1.05em !important;
    vertical-align:-.16em;
    object-fit:contain;
}
.hpw-ls-tab-count {
    background:var(--hpw-brand-ink);
    color:#fff;
    font-size:10px;
    font-weight:800;
    padding:1px 6px;
    border-radius:99px;
    min-width:18px;
    text-align:center;
}
.hpw-ls-tab.active .hpw-ls-tab-count { background:var(--hpw-brand-deep); }

/* ---- FILTER BAR ---- */
.hpw-ls-filters {
    background:#fff;
    border:1px solid rgba(var(--hpw-brand-deep-rgb),.12);
    border-radius:18px;
    padding:14px;
    margin-bottom:22px;
    box-shadow:0 10px 28px rgba(var(--hpw-brand-deep-rgb),.06);
}
.hpw-ls-filter-form {
    display:     flex;
    flex-wrap:   wrap;
    gap:         8px;
    align-items: center;
    width:       100%;
}
.hpw-ls-select {
    padding:       8px 34px 8px 12px;
    border:        1.5px solid #d1d5db;
    border-radius: 7px;
    font-family:   inherit;
    font-size:     13px;
    background:    #fff;
    color:         #111;
    cursor:        pointer;
    appearance:    none;
    -webkit-appearance: none;
    background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:   no-repeat;
    background-position: right 10px center;
    background-size:     12px 7px;
    min-width:     140px;
}
.hpw-ls-select:focus { outline:none; border-color:var(--hpw-brand-ink); }
.hpw-ls-search-wrap { flex:1; min-width:180px; }
.hpw-ls-search {
    width:      100%;
    padding:    8px 14px;
    border:     1.5px solid #d1d5db;
    border-radius:7px;
    font-family:inherit;
    font-size:  13px;
    color:      #111;
    background: #fff;
    outline:    none;
    box-sizing: border-box;
    transition: border-color .2s;
}
.hpw-ls-search:focus { border-color:var(--hpw-brand-ink); }
.hpw-ls-view-btns   { display:flex; gap:4px; }
.hpw-ls-view-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           34px;
    height:          34px;
    border:          1.5px solid #d1d5db;
    border-radius:   7px;
    font-size:       16px;
    color:           #6b7280;
    text-decoration: none;
    background:      #fff;
    transition:      all .2s;
}
.hpw-ls-view-btn.active, .hpw-ls-view-btn:hover { border-color:var(--hpw-brand-ink); background:#f0faf5; color:var(--hpw-brand-ink); }
.hpw-ls-count { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:6px 11px; border-radius:999px; background:#f0faf5; color:#0f6b4a; border:1px solid #d1ead9; font-size:12px; font-weight:900; white-space:nowrap; margin-left:auto; }
.hpw-ls-reset { font-size:12px; color:#dc2626; text-decoration:none; padding:5px 10px; border:1px solid #fca5a5; border-radius:6px; white-space:nowrap; }
.hpw-ls-reset:hover { background:#fef2f2; }

/* ---- EMPTY ---- */
.hpw-ls-empty { text-align:center; padding:56px 20px; color:#9ca3af; }
.hpw-ls-empty-icon { font-size:48px; margin-bottom:14px; }

/* ══════════════════════════════════════════════════════════════
   v4.52.0 — หน้าเต็มรายหมวด: ข้อความนำ · ทางออกจากหน้าว่าง · ปุ่มดูทั้งหมด
   ══════════════════════════════════════════════════════════════ */

/* ข้อความนำของหมวด — ขึ้นเฉพาะบนหน้าเต็มของหมวดนั้น */
.hpw-ls-kind-intro {
    margin: 0 0 18px; padding: 0;
    color: #475569; font-size: 15px; line-height: 1.75; max-width: 62ch;
}

/* ★ ทางออกจากหน้าว่าง — ชิปพาคนมาถึงนี่ได้ ต้องพาออกไปได้ด้วย */
.hpw-ls-empty-alt {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px; margin-top: 18px; color: #64748b; font-size: 13px;
}
.hpw-ls-empty-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 999px;
    border: 1.5px solid #e2e8f0; background: #fff;
    color: var(--hpw-brand-deep); font-size: 13px; font-weight: 700; text-decoration: none;
    transition: border-color .15s, background .15s, transform .15s;
}
.hpw-ls-empty-chip:hover {
    border-color: #0e7c5a; background: #f0fdf7; transform: translateY(-1px);
}

/* ★ ปุ่ม "ดูทั้งหมด" ของบล็อกที่เป็นตัวอย่าง — เป็นทางไปหน้าเต็มของหมวดที่ดูอยู่
   ปุ่มหลักของบล็อกตัวอย่างคือสิ่งที่คนมาทำ จึงเต็มความกว้างและเด่นกว่าชิป
   (บทเรียน v4.41.0: ฟีเจอร์ที่ต้องกดสองครั้งเพื่อทำสิ่งที่คนมาทำ คือฟีเจอร์ที่ออกแบบผิด) */
.hpw-ls-seeall { margin: 22px 0 4px; text-align: center; }
.hpw-ls-seeall-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 999px;
    background: var(--hpw-brand-deep); color: #fff;
    font-size: 15px; font-weight: 800; text-decoration: none;
    box-shadow: 0 6px 18px rgba(var(--hpw-brand-deep-rgb),.22);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.hpw-ls-seeall-btn:hover {
    background: #0e7c5a; color: #fff; transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(var(--hpw-brand-deep-rgb),.28);
}
.hpw-ls-seeall-btn strong { font-weight: 800; opacity: .82; }
@media (max-width: 480px) {
    /* จอแคบ: ปุ่มเต็มความกว้างจะกดง่ายกว่าปุ่มกลม ๆ กลางจอ */
    .hpw-ls-seeall-btn { width: 100%; justify-content: center; }
}

/* ---- GRID ---- */
/* Grid — เมื่อ item ไม่เต็ม row ให้ center อัตโนมัติ */
.hpw-ls-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
/* กำหนด card width ตามจำนวน column */
.hpw-ls-cols-1 .hpw-ls-card  { width: 100%; }
.hpw-ls-cols-2 .hpw-ls-card  { width: calc((100% - 20px)  / 2); }
.hpw-ls-cols-3 .hpw-ls-card  { width: calc((100% - 40px)  / 3); }
.hpw-ls-cols-4 .hpw-ls-card  { width: calc((100% - 60px)  / 4); }

/* ---- CARD ---- */
.hpw-ls-card {
    background:    #fff;
    border:        1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow:      hidden;
    transition:    box-shadow .22s, transform .22s;
    display:       flex;
    flex-direction:column;
    box-shadow:    0 2px 8px rgba(0,0,0,.06);
    position:      relative;
}
.hpw-ls-card:hover       { box-shadow:0 10px 28px rgba(0,0,0,.12); transform:translateY(-3px); }
.hpw-ls-card-promo       { border-color:#7c3aed; }
.hpw-ls-card-featured    { border-color:#d97706; }
.hpw-ls-card-promo:hover { box-shadow:0 10px 28px rgba(124,58,237,.2); }
.hpw-ls-card-featured:hover { box-shadow:0 10px 28px rgba(217,119,6,.2); }
.hpw-ls-card.status-occupied    { opacity:.88; }
.hpw-ls-card.status-maintenance { opacity:.78; }

/* Card image */
/* v4.0.2: กรอบรูปของการ์ดต้องมี "สัดส่วนคงที่" ไม่ใช่ความสูงคงที่อย่างเดียว
   ------------------------------------------------------------------
   ของเดิมกำหนดแค่ height:200px ซึ่งธีมของเว็บทับได้ง่าย (ธีมส่วนใหญ่ตั้ง
   img{height:auto} ไว้กว้าง ๆ) พอโดนทับ กรอบจะยืดตามภาพจริง แล้วพื้นหลัง
   สีเทาของกรอบโผล่เป็นแถบว่างด้านบนการ์ด — เห็นชัดที่สุดตอนภาพยังโหลด
   ไม่เสร็จ (loading=lazy) เพราะยังไม่มีอะไรมาเติมพื้นที่นั้น

   aspect-ratio ทำให้กรอบสูงตามความกว้างของการ์ดเสมอ ทุกใบเท่ากันพอดี
   และ position:absolute ที่ตัวภาพกันไม่ให้ CSS ของธีมยืดกรอบได้อีก */
.hpw-ls-card-img-wrap {
    position:      relative;
    display:       block;
    overflow:      hidden;
    aspect-ratio:  4 / 3;
    height:        auto;
    min-height:    0;
    /* โหลดยังไม่เสร็จก็ยังดูตั้งใจ ไม่ใช่ช่องเทาที่เหมือนหน้าพัง */
    background:    linear-gradient(135deg,var(--hpw-brand-deep) 0%,var(--hpw-brand-ink) 100%);
}
.hpw-ls-card-img {
    position:absolute; inset:0;
    width:100%; height:100%;
    object-fit:cover; object-position:center;
    transition:transform .35s;
}
.hpw-ls-card-img-wrap > .hpw-ls-card-img-placeholder { position:absolute; inset:0; }
/* เบราว์เซอร์เก่าที่ไม่รู้จัก aspect-ratio ให้กลับไปใช้ความสูงคงที่แบบเดิม */
@supports not (aspect-ratio: 4 / 3) {
    .hpw-ls-card-img-wrap { height:200px; }
}
.hpw-ls-card:hover .hpw-ls-card-img { transform:scale(1.06); }
.hpw-ls-card-img-placeholder {
    width:100%; height:100%; display:flex; align-items:center;
    justify-content:center; font-size:54px; color:#cbd5e1; background:#f8fafc;
}
.hpw-ls-card-img-placeholder-branded {
    position:relative;
    flex-direction:column;
    gap:8px;
    overflow:hidden;
    background:linear-gradient(135deg,var(--hpw-brand-dark) 0%,var(--hpw-brand-deep) 52%,var(--hpw-brand-ink) 100%);
    color:#fff;
    isolation:isolate;
}
.hpw-ls-card-img-placeholder-branded::before {
    content:"";
    position:absolute;
    inset:12px;
    border:1px dashed rgba(255,255,255,.24);
    border-radius:16px;
    z-index:0;
}
.hpw-ls-card-img-placeholder-branded::after {
    content:"";
    position:absolute;
    width:130px;
    height:130px;
    right:-44px;
    bottom:-48px;
    border-radius:999px;
    background:rgba(251,191,36,.16);
    z-index:0;
}
.hpw-ls-card-img-placeholder-branded img {
    position:relative;
    z-index:1;
    width:58%;
    max-height:80px;
    object-fit:contain;
    opacity:.2;
    filter:brightness(1.2) drop-shadow(0 10px 20px rgba(0,0,0,.2));
}
.hpw-ls-card-img-placeholder-branded span {
    position:relative;
    z-index:2;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.2);
    color:#fff;
    font-size:13px;
    font-weight:950;
    letter-spacing:.02em;
}

/* Badge stack */
.hpw-ls-badge-stack { position:absolute; top:10px; left:10px; display:flex; flex-direction:column; gap:4px; z-index:2; max-width:calc(100% - 80px); }

/* Badges */
.hpw-ls-badge {
    display:     inline-flex;
    align-items: center;
    gap:         4px;
    font-size:   11px;
    font-weight: 800;
    padding:     4px 10px;
    border-radius:99px;
    border:      1px solid transparent;
    letter-spacing:.2px;
}
/* ★ v4.28.0: ถอดกฎ .hpw-ls-badge--<สถานะ> ที่เขียนสีไว้เองทั้งชุด
   สีของทุกสถานะมาจาก hpw_status_inline_css('web') ซึ่งวนจากทะเบียนอยู่แล้ว
   ตั้งแต่ v4.25.1 · ที่เหลือไว้ตรงนี้เป็นซากที่ (1) ทับกฎจากทะเบียนได้เมื่อไหร่
   ก็ตามที่ selector ยาวกว่า (2) ไม่มีวันมีสถานะใหม่ (3) เพี้ยนจากทะเบียนอยู่แล้ว
   — "มีผู้เช่า" เขียนไว้เป็นแดง ทั้งที่ทะเบียนเป็นน้ำเงินมาตั้งแต่ v4.25.0
   และสองบรรทัดล่าง (--external / --future) ตายไปแล้วตั้งแต่ชื่อคลาสเปลี่ยน
   ไปประกอบจากคีย์จริง (external_occupied / future_project)
   ★ ป้ายข้างล่างที่ไม่ใช่สถานะ (โปรโมชัน/แนะนำ/ใหม่/ใกล้หมดสัญญา) ยังอยู่ */
.hpw-ls-badge--lease-end   { position:absolute; bottom:8px; right:8px; z-index:3; background:#f59e0b; color:#fff; border:none; font-size:10px; padding:3px 7px; border-radius:6px; font-weight:700; }
.hpw-ls-badge--promo       { background:#7c3aed; color:#fff; border-color:transparent; box-shadow:0 2px 6px rgba(124,58,237,.35); }
.hpw-ls-badge--featured    { background:#d97706; color:#fff; border-color:transparent; box-shadow:0 2px 6px rgba(217,119,6,.35); }
.hpw-ls-badge--new         { background:#2563eb; color:#fff; border-color:transparent; }
.hpw-ls-badge-status       { position:absolute; top:10px; right:10px; z-index:3; }

/* Unit code badge */
.hpw-ls-code-badge {
    position:    absolute;
    bottom:      8px;
    left:        8px;
    background:  rgba(0,0,0,.72);
    color:       #fff;
    font-size:   11px;
    font-weight: 800;
    padding:     3px 9px;
    border-radius:5px;
    letter-spacing:.5px;
    backdrop-filter:blur(4px);
}

/* Video button */
.hpw-ls-video-btn {
    position:        absolute;
    bottom:          8px;
    right:           8px;
    width:           36px;
    height:          36px;
    background:      rgba(220,38,38,.85);
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           #fff;
    font-size:       14px;
    cursor:          pointer;
    transition:      background .2s, transform .2s;
    z-index:         3;
    border:          2px solid rgba(255,255,255,.6);
}
.hpw-ls-video-btn:hover { background:rgba(220,38,38,1); transform:scale(1.1); }

/* Card body */
.hpw-ls-card-body {
    padding:        14px 16px;
    flex:           1;
    display:        flex;
    flex-direction: column;
    gap:            6px;
}
.hpw-ls-card-prop  { font-size:11px; color:#6b7280; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.hpw-ls-card-title { font-size:17px; font-weight:800; color:#111; text-decoration:none; display:block; line-height:1.2; }
.hpw-ls-card-title:hover { color:var(--hpw-brand-ink); }
.hpw-ls-type-badge { font-size:11px; font-weight:700; padding:3px 10px; border-radius:99px; background:#f0faf5; color:var(--hpw-brand-ink); border:1px solid #d1ead9; }
.hpw-ls-card-specs { display:flex; flex-wrap:wrap; gap:5px; }
.hpw-ls-card-specs span { font-size:11.5px; background:#f9fafb; border:1px solid #e5e7eb; border-radius:5px; padding:2px 8px; color:#4b5563; }
.hpw-ls-tags       { display:flex; flex-wrap:wrap; gap:4px; }
.hpw-ls-tag        { font-size:11px; background:#eef2ff; color:#4338ca; border:1px solid #c7d2fe; border-radius:4px; padding:2px 7px; font-weight:600; }
.hpw-ls-tag-link{display:inline-flex;align-items:center;gap:4px;text-decoration:none!important;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease,border-color .16s ease}.hpw-ls-tag-link::after{content:"→";font-size:10px;opacity:.55;transform:translateX(-1px);transition:transform .16s ease,opacity .16s ease}.hpw-ls-tag-link:hover,.hpw-ls-tag-link:focus-visible{background:#e0f2fe;color:#075985;border-color:#7dd3fc;box-shadow:0 8px 18px rgba(14,116,144,.12);transform:translateY(-1px);outline:none}.hpw-ls-tag-link:hover::after,.hpw-ls-tag-link:focus-visible::after{opacity:1;transform:translateX(1px)}.hpw-ls-active-tag-filter{margin-top:10px;display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:999px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:12px;font-weight:800}.hpw-ls-active-tag-filter strong{padding:3px 9px;border-radius:999px;background:#fff;color:#14532d;box-shadow:0 3px 10px rgba(20,83,45,.08)}.hpw-ls-active-tag-filter a{color:#0f766e;text-decoration:none;font-weight:900}.hpw-ls-active-tag-filter a:hover{text-decoration:underline}
.hpw-ls-card-price-wrap { display:flex; align-items:baseline; gap:8px; margin-top:2px; }
.hpw-ls-card-price { font-size:22px; font-weight:800; color:var(--hpw-brand-ink); }
.hpw-ls-card-price-unit { font-size:13px; font-weight:400; color:#6b7280; }
.hpw-ls-price-orig { font-size:13px; color:#9ca3af; text-decoration:line-through; }
.hpw-ls-card-addr  { font-size:11px; color:#9ca3af; }
.hpw-ls-card-btn {
    margin-top:    auto;
    display:       inline-flex;
    align-items:   center;
    justify-content:center;
    padding:       10px 16px;
    background:    var(--hpw-brand-ink);
    color:         #fff;
    text-decoration:none;
    border-radius: 8px;
    font-size:     13px;
    font-weight:   800;
    transition:    background .2s;
    border:        none;
}
.hpw-ls-card-btn:hover { background:var(--hpw-brand-deep); }

/* ---- MAP VIEW ---- */
.hpw-ls-map-view   { height:550px; min-height:550px; border-radius:12px; border:1.5px solid #e5e7eb; overflow:hidden; }

/* ---- TABLE VIEW ---- */
.hpw-ls-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border:1.5px solid #e5e7eb; border-radius:10px; }
.hpw-ls-table      { width:100%; border-collapse:collapse; font-size:13px; min-width:640px; }
.hpw-ls-table th   { background:#f8fafc; color:#374151; font-size:11px; font-weight:800; padding:10px 12px; border-bottom:2px solid #e5e7eb; white-space:nowrap; text-align:left; }
.hpw-ls-table td   { padding:10px 12px; border-bottom:1px solid #f3f4f6; vertical-align:middle; color:#374151; }
.hpw-ls-table tr:last-child td { border-bottom:none; }
.hpw-ls-table tr:hover td { background:#f0faf5; }
.hpw-ls-table-btn  { font-size:12px; color:var(--hpw-brand-ink); font-weight:700; text-decoration:none; padding:5px 12px; border:1.5px solid #d1ead9; border-radius:6px; white-space:nowrap; }
.hpw-ls-table-btn:hover { background:#f0faf5; }

/* ---- YOUTUBE MODAL ---- */
.hpw-yt-modal {
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,.82);
    z-index:    99999;
    display:    flex;
    align-items:center;
    justify-content:center;
    padding:    20px;
    backdrop-filter:blur(6px);
}
.hpw-yt-modal-inner { position:relative; width:100%; max-width:760px; }
.hpw-yt-close {
    position:   absolute;
    top:        -40px;
    right:      0;
    background: rgba(255,255,255,.15);
    border:     1.5px solid rgba(255,255,255,.3);
    color:      #fff;
    border-radius:50%;
    width:      32px;
    height:     32px;
    font-size:  16px;
    cursor:     pointer;
    display:    flex;
    align-items:center;
    justify-content:center;
}
.hpw-yt-close:hover { background:rgba(255,255,255,.3); }

/* ============================================================
   UNIT DETAIL PAGE [propworks_unit]
============================================================ */
/* ============================================================
   UNIT DETAIL PAGE — v3.9.17 Full Redesign
   Industrial Luxury: dark green #0f4c35 / gold #c9a84c
============================================================ */

/* ── Wrap & Layout ─────────────────────────────────────── */
.hpw-ud-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 60px;
    font-family: var(--hpw-font);
}

/* Breadcrumb — superseded by v3.9.267 block below */

/* Main 2-col grid */
.hpw-ud-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: start;
    margin-top: 24px;
}

/* ── LEFT COLUMN ────────────────────────────────────────── */
/* Hero image */
.hpw-ud-cover-wrap {
    border-radius: 16px; overflow: hidden;
    margin-bottom: 12px; position: relative;
    box-shadow: 0 8px 32px rgba(var(--hpw-brand-deep-rgb),.15);
    background: #f0f0f0;
}
.hpw-ud-cover {
    width: 100%; height: 380px;
    object-fit: contain; display: block;
    background: #0a2e1f;
    transition: transform .4s ease;
}
.hpw-ud-cover-wrap:hover .hpw-ud-cover { transform: scale(1.02); }

/* Video button overlay */
.hpw-ud-video-btn {
    position: absolute; bottom: 14px; right: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    background: rgba(220,38,38,.92); backdrop-filter: blur(4px);
    color: #fff; border: none; border-radius: 50px;
    font-size: 13px; font-weight: 800; cursor: pointer;
    transition: all .2s; box-shadow: 0 4px 16px rgba(220,38,38,.35);
}
.hpw-ud-video-btn:hover { background: #dc2626; transform: scale(1.05); }

/* Gallery strip */
.hpw-ud-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.hpw-ud-gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.hpw-ud-gallery-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s;
}
.hpw-ud-gallery-item:hover img { transform: scale(1.08); }
.hpw-ud-gallery-item:hover { box-shadow: 0 0 0 2px #c9a84c; }

/* Floor plan button */
.hpw-ud-floorplan-btn {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 18px; margin-bottom: 16px;
    background: linear-gradient(135deg, #f0fdf8 0%, #fff 100%);
    border: 2px solid #10b981; border-radius: 16px;
    color: #064e3b; text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(16,185,129,.14);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    cursor: pointer;
}
.hpw-ud-floorplan-btn:hover {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf8 100%);
    box-shadow: 0 8px 28px rgba(16,185,129,.22);
    transform: translateY(-2px);
    color: #022c22;
}
.hpw-ud-floorplan-btn__icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.hpw-ud-floorplan-btn__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hpw-ud-floorplan-btn__text strong { display: block; font-size: 15px; font-weight: 950; letter-spacing: -.02em; color: #064e3b; }
.hpw-ud-floorplan-btn__text small { display: block; font-size: 11px; font-weight: 800; color: #059669; letter-spacing: .06em; text-transform: uppercase; }
.hpw-ud-floorplan-btn__arrow { font-size: 18px; font-weight: 900; color: #10b981; flex-shrink: 0; transition: transform .18s ease; }
.hpw-ud-floorplan-btn:hover .hpw-ud-floorplan-btn__arrow { transform: translateX(4px); }

/* Map */
.hpw-ud-map-section { margin-top: 8px; }
.hpw-ud-map-title {
    font-size: 13px; font-weight: 800; color: #374151;
    margin-bottom: 8px; letter-spacing: .3px;
}
.hpw-ud-map {
    height: 260px; border-radius: 14px;
    border: 1.5px solid #e5e7eb; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.hpw-ud-gmaps-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px; padding: 8px 16px;
    background: #f0faf5; border: 1px solid #d1ead9;
    border-radius: 8px; color: var(--hpw-brand-deep);
    font-size: 13px; font-weight: 700; text-decoration: none;
    transition: all .2s;
}
.hpw-ud-gmaps-btn:hover { background: var(--hpw-brand-deep); color: #fff; }

/* ── RIGHT COLUMN ───────────────────────────────────────── */
.hpw-ud-right {
    display: flex; flex-direction: column; gap: 0;
    position: sticky; top: 24px;
}

/* Badges */
.hpw-ud-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hpw-ud-status { font-size: 12px; font-weight: 800; letter-spacing: .3px; }

/* Code tag */
.hpw-ud-code {
    display: inline-block;
    font-size: 11px; color: #6b7280; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    border-radius: 5px; padding: 3px 9px;
    margin-bottom: 4px;
}

/* Title */
.hpw-ud-title {
    font-size: 32px; font-weight: 800; color: #0a2e1f;
    margin: 0 0 6px; line-height: 1.15;
    letter-spacing: -.5px;
}

/* Property & address */
.hpw-ud-prop-name {
    font-size: 14px; color: var(--hpw-brand-deep); font-weight: 700;
    margin-bottom: 2px; display: flex; align-items: center; gap: 5px;
}
.hpw-ud-addr {
    font-size: 13px; color: #6b7280; margin-bottom: 16px;
    line-height: 1.5;
}

/* Price block — the hero of the right column */
.hpw-ud-price-block {
    background: linear-gradient(135deg, var(--hpw-brand-deep) 0%, var(--hpw-brand-ink) 100%);
    border-radius: 16px; padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(var(--hpw-brand-deep-rgb),.25);
}
.hpw-ud-price {
    font-size: 38px; font-weight: 800;
    color: #fff; line-height: 1;
    letter-spacing: -1px;
}
.hpw-ud-price-unit {
    font-size: 16px; font-weight: 400; color: rgba(255,255,255,.75);
    margin-left: 4px;
}
.hpw-ud-price-orig {
    font-size: 13px; color: rgba(255,255,255,.6);
    margin-top: 6px;
}

/* Specs grid */
.hpw-ud-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; margin-bottom: 20px;
}
.hpw-ud-spec-item {
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 12px; padding: 14px 12px;
    text-align: center;
    transition: all .2s;
}
.hpw-ud-spec-item:hover { border-color: #d1ead9; background: #f0faf5; }
.hpw-ud-spec-icon { font-size: 20px; margin-bottom: 4px; }
.hpw-ud-spec-label {
    font-size: 11px; color: #9ca3af; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 3px;
}
.hpw-ud-spec-val {
    font-size: 14px; font-weight: 800; color: #111;
}

/* Tags */
.hpw-ud-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

/* Section divider style */
.hpw-ud-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 18px; margin-bottom: 18px;
}
.hpw-ud-section-title {
    font-size: 13px; font-weight: 800; color: #374151;
    text-transform: uppercase; letter-spacing: .8px;
    margin: 0 0 12px;
}

/* Description text */
.hpw-ud-desc {
    font-size: 14px; color: #4b5563;
    line-height: 1.8; max-height: 160px;
    overflow: hidden; position: relative;
    transition: max-height .4s ease;
}
.hpw-ud-desc.expanded { max-height: 2000px; }
.hpw-ud-desc-toggle {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--hpw-brand-deep); font-size: 13px; font-weight: 700;
    border: none; background: none; cursor: pointer;
    margin-top: 6px; padding: 0; transition: opacity .2s;
}
.hpw-ud-desc-toggle:hover { opacity: .7; }

/* Amenities */
.hpw-ud-amenities {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; list-style: none; padding: 0; margin: 0;
}
.hpw-ud-amenity-item {
    font-size: 13px; color: #374151;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 0;
}

/* CTA sticky bar */
.hpw-ud-cta {
    display: flex; gap: 10px; flex-wrap: wrap;
    padding-top: 4px;
}
.hpw-ud-cta-btn {
    flex: 1; min-width: 130px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 12px;
    font-size: 15px; font-weight: 800; text-decoration: none;
    transition: all .2s; border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.hpw-ud-cta-phone {
    background: linear-gradient(135deg, #c9a84c 0%, #b8943e 100%);
    color: #0a2e1f;
}
.hpw-ud-cta-phone:hover {
    background: linear-gradient(135deg, #b8943e 0%, #9e7e33 100%);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35);
}
.hpw-ud-cta-line { background: #06c755; color: #fff; }
.hpw-ud-cta-line:hover { background: #05a546; transform: translateY(-2px); }

/* Unavailable notice */
.hpw-ud-unavailable {
    padding: 14px 18px; border-radius: 12px;
    background: #f8f9fa; border: 1.5px dashed #d1d5db;
    color: #6b7280; font-size: 14px; font-weight: 700;
    text-align: center;
}

/* Mobile sticky CTA bar */
.hpw-ud-sticky-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #fff; border-top: 1px solid #e5e7eb;
    padding: 10px 12px; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    /* v3.46.0: ราคา (หด) | ปุ่มจอง (ยืด) | Maps | โทร */
    grid-template-columns: auto minmax(0,1fr) auto auto;
    align-items: center; gap: 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.hpw-ud-sticky-price {
    font-size: 18px; font-weight: 800; color: var(--hpw-brand-deep); min-width: 0;
    white-space: nowrap;
}
.hpw-ud-sticky-price small { font-size: 12px; color: #9ca3af; font-weight: 400; }
.hpw-ud-sticky-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 18px; background: #c9a84c; color: #0a2e1f;
    border-radius: 12px; font-size: 14.5px; font-weight: 800;
    text-decoration: none; white-space: nowrap;
}

/* No-unit fallback */
.hpw-ud-no-unit {
    text-align: center; padding: 60px 24px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    max-width: 480px; margin: 40px auto;
}
.hpw-ud-no-unit-logo    { height: 52px; margin: 0 auto 16px; display: block; }
.hpw-ud-no-unit-icon    { font-size: 52px; margin-bottom: 12px; }
.hpw-ud-no-unit-title   { font-size: 22px; font-weight: 800; color: var(--hpw-brand-deep); margin: 0 0 10px; }
.hpw-ud-no-unit-sub     { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0 0 22px; }
.hpw-ud-no-unit-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px; background: var(--hpw-brand-deep); color: #fff;
    border-radius: 10px; text-decoration: none;
    font-size: 15px; font-weight: 800; transition: background .2s;
}
.hpw-ud-no-unit-btn:hover { background: #0a3326; }
.hpw-ud-no-unit-contact   { margin-top: 18px; font-size: 13px; color: #6b7280; }
.hpw-ud-no-unit-contact a { color: var(--hpw-brand-deep); font-weight: 700; text-decoration: none; }

/* Right column sub-elements layout */
.hpw-ud-right           { display: flex; flex-direction: column; gap: 0; }
.hpw-ud-badges          { display: flex; flex-wrap: wrap; gap: 6px; }
.hpw-ud-price-block     { } /* overridden above */

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .hpw-ud-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hpw-ud-right { position: static; }
    .hpw-ud-cover,
    .hpw-ud-cover-placeholder { height: 260px; min-height:260px; }
    .hpw-ud-title { font-size: 26px; }
    .hpw-ud-specs-grid { grid-template-columns: repeat(3, 1fr); }
    .hpw-ud-sticky-bar { display: grid; }
    .hpw-ud-cta { padding-bottom: 70px; }
}
@media (max-width: 500px) {
    .hpw-ud-specs-grid { grid-template-columns: 1fr 1fr; }
    .hpw-ud-gallery    { grid-template-columns: repeat(3, 1fr); }
    .hpw-ud-amenities  { grid-template-columns: 1fr; }
    .hpw-ud-title      { font-size: 22px; }
    .hpw-ud-price      { font-size: 30px; }
    .hpw-ud-cover,
    .hpw-ud-cover-placeholder { height: 220px; min-height:220px; }
}

.hpw-yt-modal {
    position:   fixed;
    inset:      0;
    background: rgba(0,0,0,.82);
    z-index:    99999;
    display:    flex;
    align-items:center;
    justify-content:center;
    padding:    20px;
    backdrop-filter:blur(6px);
}
.hpw-yt-modal-inner { position:relative; width:100%; max-width:760px; }
.hpw-yt-close {
    position:   absolute;
    top:        -40px;
    right:      0;
    background: rgba(255,255,255,.15);
    border:     1.5px solid rgba(255,255,255,.3);
    color:      #fff;
    border-radius:50%;
    width:      32px;
    height:     32px;
    font-size:  16px;
    cursor:     pointer;
    display:    flex;
    align-items:center;
    justify-content:center;
}
.hpw-yt-close:hover { background:rgba(255,255,255,.3); }

/* ============================================================
   UNIT DETAIL PAGE [propworks_unit]
============================================================ */
.hpw-ud-wrap { max-width:1100px; margin:0 auto; }

/* ── Breadcrumb bar redesign v3.9.267 ── */
.hpw-ud-breadcrumb {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 18px; padding: 0;
    background: transparent; border-bottom: none;
    flex-wrap: nowrap; overflow: hidden;
}
/* Back button */
.hpw-ud-back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: #f0fdf8; border: 1.5px solid #6ee7b7;
    color: #065f46; font-size: 13px; font-weight: 800;
    text-decoration: none; white-space: nowrap; flex-shrink: 0;
    transition: background .16s, border-color .16s, color .16s;
}
.hpw-ud-back::before { content: "←"; font-size: 14px; }
.hpw-ud-back:hover { background: #064e3b; color: #fff; border-color: #064e3b; }

/* Separator chevron */
.hpw-ud-breadcrumb::after {
    content: "›"; color: #cbd5e1; font-size: 16px;
    flex-shrink: 0; padding: 0 6px; line-height: 1;
}

/* Project link */
.hpw-ud-prop-breadcrumb-link {
    flex: 1; min-width: 0;
    padding: 8px 12px; border-radius: 10px;
    color: #475569; font-size: 12.5px; font-weight: 700; line-height: 1.35;
    text-decoration: none; background: transparent;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: color .16s, background .16s;
    display: block;
}
.hpw-ud-prop-breadcrumb-link:hover { color: #064e3b; background: #f0fdf8; }

@media (max-width: 480px) {
    .hpw-ud-breadcrumb { gap: 0; }
    .hpw-ud-back { padding: 7px 12px; font-size: 12px; }
    .hpw-ud-prop-breadcrumb-link { font-size: 11.5px; padding: 7px 8px; }
}
.hpw-ud-layout { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
.hpw-ud-cover-wrap { border-radius:12px; overflow:hidden; margin-bottom:10px; position:relative; }
/* Cover zoom hint */
.hpw-ud-cover-zoom-hint {
    position:absolute; left:14px; bottom:14px; z-index:4;
    display:inline-flex; align-items:center; gap:5px;
    padding:7px 13px; border-radius:999px;
    background:rgba(7,53,31,.82); backdrop-filter:blur(6px);
    color:#fff; font-size:12px; font-weight:900; letter-spacing:.01em;
    box-shadow:0 8px 22px rgba(7,53,31,.22);
    opacity:0; transform:translateY(5px); pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
}
.hpw-ud-cover-wrap:hover .hpw-ud-cover-zoom-hint,
.hpw-ud-cover-wrap:focus-within .hpw-ud-cover-zoom-hint { opacity:1; transform:translateY(0); }
/* Thumbnail zoom badge */
.hpw-ud-gallery-item__zoom {
    position:absolute; inset:0;
    display:flex; align-items:center; justify-content:center;
    opacity:0; border-radius:inherit;
    background:linear-gradient(180deg, rgba(6,47,34,.06), rgba(6,47,34,.30));
    transition:opacity .2s ease;
    pointer-events:none;
}
.hpw-ud-gallery-item__zoom svg {
    width:34px; height:34px; padding:7px; box-sizing:border-box;
    color:#0b3d2e; border-radius:999px;
    background:rgba(255,255,255,.82);
    box-shadow:0 4px 12px rgba(6,47,34,.28), inset 0 0 0 1px rgba(255,255,255,.6);
    -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
    transform:scale(.72); transition:transform .2s ease;
}
.hpw-ud-gallery-item { position:relative; }
.hpw-ud-gallery-item:hover .hpw-ud-gallery-item__zoom { opacity:1; }
.hpw-ud-gallery-item:hover .hpw-ud-gallery-item__zoom svg { transform:scale(1); }
.hpw-ud-cover { width:100%; height:300px; object-fit:cover; display:block; }
.hpw-ud-cover-placeholder {
    min-height:300px;
    display:flex;
    align-items:center;
    justify-content:center;
    isolation:isolate;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,.22), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(251,191,36,.18), transparent 30%),
        linear-gradient(135deg,var(--hpw-brand-dark) 0%,var(--hpw-brand-deep) 48%,var(--hpw-brand-ink) 100%);
    border:1px solid rgba(255,255,255,.2);
}
.hpw-ud-cover-placeholder::before {
    content:"";
    position:absolute;
    inset:18px;
    border:1px dashed rgba(255,255,255,.24);
    border-radius:18px;
    pointer-events:none;
    z-index:0;
}
.hpw-ud-cover-placeholder::after {
    content:"";
    position:absolute;
    width:220px;
    height:220px;
    right:-70px;
    bottom:-72px;
    border-radius:999px;
    background:rgba(251,191,36,.16);
    z-index:0;
}
.hpw-ud-cover-placeholder-logo {
    position:absolute;
    z-index:1;
    width:min(48%,260px);
    max-height:170px;
    object-fit:contain;
    opacity:.16;
    filter:grayscale(.1) brightness(1.18) drop-shadow(0 18px 28px rgba(0,0,0,.28));
}
.hpw-ud-cover-placeholder-copy {
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:min(82%,360px);
    padding:26px 22px;
    border-radius:24px;
    background:rgba(255,255,255,.1);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:0 22px 50px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.16);
    text-align:center;
    color:#fff;
    backdrop-filter:blur(8px);
}
.hpw-ud-cover-placeholder-kicker {
    color:#fbbf24;
    font-size:11px;
    font-weight:950;
    letter-spacing:.18em;
}
.hpw-ud-cover-placeholder-copy strong {
    font-size:clamp(30px,5vw,46px);
    line-height:1;
    color:#fff;
    text-shadow:0 3px 18px rgba(0,0,0,.24);
}
.hpw-ud-cover-placeholder-copy small {
    color:rgba(255,255,255,.78);
    font-size:13px;
    font-weight:800;
    line-height:1.55;
}
.hpw-ud-cover-featured{
    position:absolute;
    top:14px;
    left:14px;
    z-index:5;
    display:inline-flex;
    align-items:center;
    gap:6px;
    max-width:calc(100% - 120px);
    padding:8px 12px;
    border-radius:999px;
    background:linear-gradient(135deg,#d97706,#f59e0b);
    color:#fff;
    font-size:12px;
    font-weight:900;
    line-height:1.15;
    box-shadow:0 10px 22px rgba(120,53,15,.28);
    text-shadow:0 1px 1px rgba(0,0,0,.18);
}
.hpw-ud-cover-vacant-ribbon{
    position:absolute;
    top:0;
    right:0;
    z-index:6;
    width:118px;
    height:118px;
    overflow:hidden;
    pointer-events:none;
}
.hpw-ud-cover-vacant-ribbon::before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    border-top:118px solid rgba(16,185,129,.94);
    border-left:118px solid transparent;
    filter:drop-shadow(-8px 8px 16px rgba(6,95,70,.22));
}
.hpw-ud-cover-vacant-ribbon span{
    position:absolute;
    top:24px;
    right:-8px;
    width:112px;
    transform:rotate(45deg);
    transform-origin:center;
    color:#fff;
    font-size:15px;
    font-weight:1000;
    letter-spacing:.04em;
    text-align:center;
    text-shadow:0 2px 4px rgba(0,0,0,.25);
}
/* ริบบิ้น "จองก่อนสร้าง" — ใช้แถบสี่เหลี่ยมหมุน 45° ไม่ใช่สามเหลี่ยม+ข้อความแบบ
   ริบบิ้น "ว่าง" เพราะคำนี้ยาวกว่าสามเท่า พอวางบนสามเหลี่ยมตัวอักษรจะล้นออกนอกพื้นสี
   แถบสี่เหลี่ยมกว้างเท่ากันตลอดแนว จึงรับคำยาวได้โดยไม่ต้องย่อฟอนต์จนอ่านไม่ออก */
.hpw-ud-cover-presale-ribbon{
    position:absolute; top:0; right:0; z-index:6;
    width:132px; height:132px; overflow:hidden; pointer-events:none;
}
.hpw-ud-cover-presale-ribbon span{
    position:absolute; top:26px; right:-40px; width:180px;
    padding:6px 0;
    transform:rotate(45deg); transform-origin:center;
    background:linear-gradient(90deg,#5b21b6,#7c3aed);
    box-shadow:0 6px 16px rgba(76,29,149,.32);
    color:#fff; font-size:12.5px; font-weight:1000; letter-spacing:.01em;
    text-align:center; white-space:nowrap;
    text-shadow:0 1px 3px rgba(0,0,0,.3);
}

/* ============================================================
   v3.96.0 — จองก่อนสร้าง (พรีเซล)
   ------------------------------------------------------------
   ใช้สีม่วงทั้งชุด แยกจากเขียว (ว่าง/พร้อมเข้า) และส้ม (โปรโมชัน) โดยตั้งใจ
   เพราะพรีเซลไม่ใช่ "ของที่พร้อมใช้ลดราคา" แต่เป็นของที่ยังไม่มีตัวตน
   ผู้ใช้ต้องแยกออกด้วยสายตาก่อนอ่านตัวอักษร
============================================================ */
.hpw-ls-presale-strip{
    position:absolute; left:0; right:0; bottom:0; z-index:4;
    padding:7px 10px;
    background:linear-gradient(90deg,rgba(76,29,149,.96),rgba(124,58,237,.94));
    color:#fff; font-size:11.5px; font-weight:900; letter-spacing:.01em;
    text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.hpw-ud-price-block.is-presale{
    background:linear-gradient(135deg,#faf5ff 0%,#f3e8ff 100%);
    border-color:#ddd6fe;
}
.hpw-ud-price-presale-tag{
    display:inline-flex; align-items:center; gap:5px;
    margin-bottom:4px; padding:3px 10px; border-radius:999px;
    background:#7c3aed; color:#fff; font-size:11.5px; font-weight:900;
}
.hpw-ud-price-presale-note{
    margin-top:5px; font-size:12px; font-weight:700; color:#6d28d9; line-height:1.6;
}

.hpw-presale{
    margin:14px 0; padding:16px 18px 14px;
    background:linear-gradient(135deg,#faf5ff 0%,#f5f3ff 100%);
    border:1.5px solid #ddd6fe; border-radius:16px;
    box-shadow:0 12px 30px rgba(124,58,237,.09);
}
.hpw-presale-head strong{
    display:block; margin:8px 0 4px;
    font-size:18px; font-weight:900; color:#5b21b6; line-height:1.35;
}
.hpw-presale-head p{ margin:0; font-size:13px; color:#6b5b95; line-height:1.75; }
.hpw-presale-head p b{ color:#5b21b6; }
.hpw-presale-tag{
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 11px; border-radius:999px;
    background:#7c3aed; color:#fff; font-size:11.5px; font-weight:900;
}

/* ราคาที่ถูกล็อก — ก้อนเด่นสุดของการ์ด เพราะเป็นเหตุผลเดียวที่คนยอมจองล่วงหน้า */
.hpw-presale-lock{
    display:flex; align-items:center; gap:12px;
    margin:14px 0; padding:12px 14px;
    background:#fff; border:1.5px solid #ddd6fe; border-radius:13px;
}
.hpw-presale-lock-ic{ font-size:24px; line-height:1; flex:0 0 auto; }
.hpw-presale-lock-body{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.hpw-presale-lock-body small{ font-size:11.5px; font-weight:700; color:#8b7bb8; }
.hpw-presale-lock-body strong{ font-size:24px; font-weight:900; color:#5b21b6; line-height:1.2; }
.hpw-presale-lock-body strong i{ font-size:13px; font-weight:800; font-style:normal; color:#8b7bb8; margin-left:2px; }
.hpw-presale-lock-body em{ font-size:12px; font-style:normal; font-weight:700; color:#6d28d9; margin-top:2px; }
.hpw-presale-lock-body em b{ font-weight:900; }

/* ตารางชำระเงิน — ก้อนที่ลูกค้าต้องอ่านก่อนตัดสินใจ เพราะเป็นเงินจริงสองจังหวะ */
.hpw-presale-pay{
    margin:0 0 12px; background:#fff;
    border:1.5px solid #ddd6fe; border-radius:13px; overflow:hidden;
}
.hpw-presale-pay-head{
    display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
    padding:9px 14px; background:#f5f3ff; border-bottom:1px solid #ede9fe;
}
.hpw-presale-pay-head span{ font-size:11.5px; font-weight:800; color:#8b7bb8; letter-spacing:.02em; }
.hpw-presale-pay-head strong{ font-size:13px; font-weight:900; color:#5b21b6; }
.hpw-presale-pay-rows{ display:flex; flex-direction:column; }
.hpw-presale-pay-row{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:11px 14px;
}
.hpw-presale-pay-row + .hpw-presale-pay-row{ border-top:1px dashed #ede9fe; }
/* จังหวะแรก (วันจอง) เน้นกว่า เพราะเป็นเงินที่ต้องเตรียม "วันนี้" */
.hpw-presale-pay-row.is-now{ background:linear-gradient(90deg,#faf5ff,#fff); }
.hpw-presale-pay-row.is-now::before{
    content:""; position:absolute; left:0; width:3px; height:100%; background:#7c3aed;
}
.hpw-presale-pay-row{ position:relative; }
.hpw-presale-pay-when{ display:flex; flex-direction:column; gap:1px; min-width:0; }
.hpw-presale-pay-when b{ font-size:13px; font-weight:900; color:#4c1d95; }
.hpw-presale-pay-when small{ font-size:11.5px; font-weight:600; color:#8b7bb8; line-height:1.5; }
.hpw-presale-pay-row > strong{
    flex:0 0 auto; font-size:17px; font-weight:900; color:#5b21b6;
    font-variant-numeric:tabular-nums;
}

.hpw-presale-step-pay{
    display:block; margin-top:3px; font-size:11.5px; font-weight:900; color:#7c3aed;
    font-variant-numeric:tabular-nums;
}

/* ลำดับเวลา — ตอบคำถาม "จ่ายเมื่อไหร่" ด้วยภาพ เร็วกว่าย่อหน้าอธิบาย */
.hpw-presale-steps{
    display:grid; grid-template-columns:repeat(4,1fr); gap:8px;
    margin:0 0 12px; padding:0; list-style:none; counter-reset:none;
}
.hpw-presale-steps li{
    position:relative; display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:11px 7px 9px; text-align:center;
    background:#fff; border:1px solid #ede9fe; border-radius:12px;
}
/* เส้นเชื่อมระหว่างขั้น — สื่อว่าเป็นลำดับ ไม่ใช่ตัวเลือกสี่อย่าง */
.hpw-presale-steps li:not(:last-child)::after{
    content:""; position:absolute; top:50%; right:-8px; width:8px; height:2px;
    background:#ddd6fe;
}
.hpw-presale-step-n{
    position:absolute; top:-7px; left:50%; transform:translateX(-50%);
    min-width:18px; height:18px; padding:0 5px; border-radius:999px;
    background:#7c3aed; color:#fff; font-size:10.5px; font-weight:900;
    display:flex; align-items:center; justify-content:center;
}
.hpw-presale-step-ic{ font-size:20px; line-height:1.2; margin-top:4px; }
.hpw-presale-step-txt strong{ display:block; font-size:12px; font-weight:900; color:#4c1d95; line-height:1.4; }
.hpw-presale-step-txt small{ display:block; font-size:10.5px; font-weight:600; color:#8b7bb8; line-height:1.5; margin-top:1px; }

.hpw-presale-perks{ margin:0 0 10px; padding:0; list-style:none; display:grid; gap:6px; }
.hpw-presale-perks li{
    position:relative; padding-left:24px;
    font-size:13px; font-weight:700; color:#4c1d95; line-height:1.7;
}
.hpw-presale-perks li::before{
    content:"✓"; position:absolute; left:0; top:0;
    width:17px; height:17px; margin-top:3px; border-radius:50%;
    background:#7c3aed; color:#fff; font-size:10px; font-weight:900;
    display:flex; align-items:center; justify-content:center;
}
.hpw-presale-fine{
    margin:0; padding-top:10px; border-top:1px dashed #ddd6fe;
    font-size:11.5px; font-weight:600; color:#8b7bb8; line-height:1.7;
}

.hpw-ud-action-panel.is-presale{
    background:linear-gradient(135deg,#4c1d95 0%,#7c3aed 100%);
    border-color:transparent;
}
.hpw-ud-fee-card.is-presale{ border-color:#ddd6fe; }
.hpw-ud-fee-presale-note{
    margin:-2px 0 12px; padding:9px 12px; border-radius:11px;
    background:#f5f3ff; border:1px solid #ddd6fe;
    font-size:12.5px; font-weight:700; color:#5b21b6; line-height:1.7;
}
.hpw-ud-fee-presale-note b{ font-weight:900; }

@media (max-width:640px){
    .hpw-presale{ padding:14px; }
    .hpw-presale-steps{ grid-template-columns:repeat(2,1fr); gap:10px 8px; }
    .hpw-presale-steps li:not(:last-child)::after{ display:none; }
    .hpw-presale-lock-body strong{ font-size:21px; }
}

.hpw-ud-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin-bottom:14px; }
.hpw-ud-gallery-item img { width:100%; height:80px; object-fit:cover; border-radius:7px; transition:transform .2s; cursor:pointer; }
.hpw-ud-gallery-item img:hover { transform:scale(1.05); }
.hpw-ud-map-section { margin-top:14px; }
.hpw-ud-map-title  { font-size:13px; font-weight:800; color:#374151; margin-bottom:8px; }
.hpw-ud-map        { height:550px; min-height:550px; border-radius:10px; border:1.5px solid #e5e7eb; overflow:hidden; }
.hpw-ud-gmaps-btn  { display:inline-flex; align-items:center; gap:6px; margin-top:8px; padding:7px 14px; background:#f0faf5; border:1px solid #d1ead9; border-radius:8px; color:var(--hpw-brand-ink); font-size:13px; font-weight:700; text-decoration:none; }
.hpw-ud-status     { margin-bottom:6px; display:inline-block; }
.hpw-ud-title      { font-size:28px; font-weight:800; color:#111; margin:4px 0 4px; line-height:1.2; }
.hpw-ud-prop-name  { font-size:14px; color:var(--hpw-brand-ink); font-weight:700; margin-bottom:2px; }
.hpw-ud-prop-name-link { display:inline-flex; align-items:flex-start; gap:8px; max-width:100%; line-height:1.55; text-decoration:none; border-radius:10px; padding:3px 5px 3px 0; transition:background .18s ease, color .18s ease, transform .18s ease; }
.hpw-ud-prop-label { flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; padding:3px 9px; border-radius:999px; background:linear-gradient(135deg,#d97706 0%,#f59e0b 100%); color:#fff; font-size:11px; font-weight:900; box-shadow:0 8px 18px rgba(217,119,6,.18); }
.hpw-ud-prop-title { color:var(--hpw-brand-ink); font-weight:800; text-decoration:underline; text-decoration-style:dashed; text-decoration-thickness:1px; text-underline-offset:4px; }
.hpw-ud-prop-name-link:hover,
.hpw-ud-prop-name-link:focus-visible { background:#f0faf5; transform:translateY(-1px); outline:none; }
.hpw-ud-prop-name-link:hover .hpw-ud-prop-title,
.hpw-ud-prop-name-link:focus-visible .hpw-ud-prop-title { color:var(--hpw-brand-deep); text-decoration-style:solid; }
@media (prefers-reduced-motion: reduce) {
    .hpw-ud-prop-name-link { transition:none; }
    .hpw-ud-prop-name-link:hover,
    .hpw-ud-prop-name-link:focus-visible { transform:none; }
}
.hpw-ud-code       { font-size:12px; color:#6b7280; font-weight:700; letter-spacing:.5px; background:#f9fafb; border:1px solid #e5e7eb; border-radius:5px; padding:2px 8px; display:inline-block; margin-bottom:6px; }
.hpw-ud-addr       { font-size:13px; color:#6b7280; margin-bottom:10px; }
.hpw-ud-price      { font-size:32px; font-weight:800; color:var(--hpw-brand-ink); margin:10px 0; }
.hpw-ud-price-unit { font-size:16px; font-weight:400; color:#6b7280; }
.hpw-ud-price-orig { font-size:14px; color:#9ca3af; text-decoration:line-through; margin-left:8px; }
.hpw-ud-specs-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:14px 0; }
.hpw-ud-spec-item  { background:#f8fafc; border:1px solid #e5e7eb; border-radius:9px; padding:11px 10px; text-align:center; }
.hpw-ud-spec-icon  { font-size:18px; margin-bottom:3px; }
.hpw-ud-spec-label { font-size:10px; color:#6b7280; font-weight:700; text-transform:uppercase; letter-spacing:.4px; }
.hpw-ud-spec-val   { font-size:13px; font-weight:800; color:#111; margin-top:2px; }
.hpw-ud-section       { margin-top:18px; }
.hpw-ud-section-title { font-size:13px; font-weight:800; color:#374151; border-bottom:1.5px solid #e5e7eb; padding-bottom:6px; margin-bottom:10px; }
.hpw-ud-desc          { font-size:14px; color:#4b5563; line-height:1.75; }
.hpw-ud-amenities     { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.hpw-ud-amenity-item  { font-size:13px; background:#f0faf5; border:1px solid #d1ead9; border-radius:7px; padding:5px 12px; color:var(--hpw-brand-ink); font-weight:700; }
.hpw-ud-tags          { display:flex; flex-wrap:wrap; gap:6px; }
.hpw-ud-tag           { font-size:12px; background:#eef2ff; color:#4338ca; border:1px solid #c7d2fe; border-radius:5px; padding:4px 10px; font-weight:700; }
.hpw-ud-cta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:22px; align-items:stretch; }
.hpw-ud-cta-btn,
.hpw-ud-cta-btn:visited,
.hpw-ud-cta-btn:hover,
.hpw-ud-cta-btn:focus,
.hpw-ud-cta-btn:active { text-decoration:none !important; }
.hpw-ud-cta-btn { position:relative; isolation:isolate; min-width:0; display:flex; align-items:center; justify-content:center; gap:12px; min-height:66px; padding:13px 18px; border:1px solid rgba(255,255,255,.22); border-radius:18px; overflow:hidden; font-size:14px; font-weight:900; line-height:1.18; text-align:left; letter-spacing:.01em; color:#fff; cursor:pointer; box-shadow:0 18px 40px rgba(var(--hpw-brand-deep-rgb),.18), inset 0 1px 0 rgba(255,255,255,.2); transition:transform .22s ease, box-shadow .22s ease, filter .22s ease, border-color .22s ease; }
.hpw-ud-cta-btn::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(115deg,rgba(255,255,255,.2) 0%,rgba(255,255,255,.08) 36%,rgba(255,255,255,0) 37%); opacity:.9; pointer-events:none; }
.hpw-ud-cta-btn::after { content:""; position:absolute; inset:auto 16px 10px 54px; height:1px; z-index:-1; background:linear-gradient(90deg,rgba(255,255,255,.45),rgba(255,255,255,0)); opacity:.45; }
.hpw-ud-cta-btn span:not(.hpw-ud-cta-icon) { display:flex; flex-direction:column; gap:3px; min-width:0; }
.hpw-ud-cta-btn strong,
.hpw-ud-cta-btn small { text-decoration:none !important; }
.hpw-ud-cta-btn strong { display:block; color:inherit; font-size:15px; line-height:1.05; white-space:nowrap; text-shadow:0 1px 1px rgba(0,0,0,.14); }
.hpw-ud-cta-btn small { display:block; color:rgba(255,255,255,.9); font-size:11px; font-weight:800; line-height:1.2; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hpw-ud-cta-icon { width:38px; height:38px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 38px; border-radius:999px; background:rgba(255,255,255,.18); box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px rgba(0,0,0,.12); font-size:18px; }
.hpw-ud-cta .hpw-ud-cta-phone { background:radial-gradient(circle at 18% 0%,#1fb875 0%,#127b56 34%,#07543a 100%); color:#fff; }
.hpw-ud-cta .hpw-ud-cta-phone:hover { background:radial-gradient(circle at 18% 0%,#2bd486 0%,#14865e 34%,#07543a 100%); color:#fff; filter:none; transform:translateY(-3px); border-color:rgba(255,255,255,.36); box-shadow:0 22px 48px rgba(var(--hpw-brand-deep-rgb),.28), inset 0 1px 0 rgba(255,255,255,.26); }
.hpw-ud-cta .hpw-ud-cta-line { background:radial-gradient(circle at 18% 0%,#28f084 0%,#06c755 42%,#009944 100%); color:#fff; }
.hpw-ud-cta .hpw-ud-cta-line:hover { background:radial-gradient(circle at 18% 0%,#45ff99 0%,#08cf5a 42%,#009944 100%); color:#fff; filter:none; transform:translateY(-3px); border-color:rgba(255,255,255,.36); box-shadow:0 22px 48px rgba(6,199,85,.3), inset 0 1px 0 rgba(255,255,255,.26); }
.hpw-ud-cta-btn:focus-visible { outline:3px solid rgba(201,168,76,.35); outline-offset:3px; }
.hpw-ud-cta .hpw-ud-cta-line.is-disabled { cursor:not-allowed; filter:grayscale(.18); opacity:.72; background:linear-gradient(135deg,#64748b 0%,#475569 100%); }
.hpw-ud-cta .hpw-ud-cta-line.is-disabled:hover { transform:none; box-shadow:0 18px 40px rgba(var(--hpw-brand-deep-rgb),.14); background:linear-gradient(135deg,#64748b 0%,#475569 100%); }
.hpw-ud-cta-btn:only-child { grid-column:1 / -1; }
@media (prefers-reduced-motion: reduce) {
    .hpw-ud-cta-btn { transition:none; }
    .hpw-ud-cta-phone:hover,
    .hpw-ud-cta-line:hover { transform:none; }
}
.hpw-ud-unavailable   { padding:13px 18px; background:#f1f5f9; border:1px solid #e5e7eb; border-radius:10px; color:#6b7280; font-size:14px; font-weight:700; margin-top:14px; }
.hpw-ud-unavailable-date { margin-top:6px; font-size:13px; font-weight:700; color:#c2410c; }
.hpw-ud-video-wrap    { border-radius:10px; overflow:hidden; margin-bottom:12px; }
.hpw-ud-video-wrap iframe { width:100%; border:none; display:block; }

/* ============================================================
   ALL MAP [propworks_all_map]
============================================================ */
.hpw-allmap-wrap      { }
.hpw-allmap           { width:100%; border-radius:12px; border:1.5px solid #e5e7eb; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.hpw-allmap-legend    { display:flex; gap:16px; flex-wrap:wrap; padding:10px 14px; background:#f8fafc; border:1.5px solid #e5e7eb; border-top:none; border-radius:0 0 10px 10px; font-size:13px; font-weight:700; }
/* v4.28.0: ถอดกฎ .hpw-legend-<สถานะ> ทิ้งทั้งชุด — เป็นสีของสถานะที่เขียนไว้เอง
   คนละชุดกับทะเบียน (มีผู้เช่า = แดง ทั้งที่ทะเบียนเป็นน้ำเงิน) และไม่มี "จอง"
   ตอนนี้สีมาจาก --st ที่ PHP ใส่ให้จากทะเบียน กฎเดียวใช้ได้ทุกสถานะที่มีและที่จะมี */
.hpw-legend-item      { display:inline-flex; align-items:center; gap:6px; color:#334155; }
.hpw-legend-item i    { font-style:normal; }
.hpw-legend-dot       { width:10px; height:10px; border-radius:50%; background:var(--st,#6b7a8d); box-shadow:0 0 0 2px rgba(255,255,255,.9), 0 1px 3px rgba(0,0,0,.25); flex:none; }
.hpw-legend-item.is-promo { color:#6d28d9; }

/* ============================================================
   TENANT PORTAL [propworks_tenant_portal]
============================================================ */
.hpw-tp-login-card { max-width:440px; margin:48px auto; text-align:center; background:#fff; border:1.5px solid #e5e7eb; border-radius:16px; padding:36px 28px; box-shadow:0 4px 24px rgba(0,0,0,.08); }
.hpw-tp-logo       { height:52px; margin:0 auto 16px; display:block; }
.hpw-tp-login-title{ font-size:22px; font-weight:800; color:var(--hpw-brand-deep); margin:0 0 6px; }
.hpw-tp-login-sub  { font-size:14px; color:#6b7280; margin:0 0 20px; line-height:1.5; }
.hpw-tp-input { width:100%; padding:12px 16px; border:2px solid #e5e7eb; border-radius:10px; font-size:14px; font-family:inherit; outline:none; box-sizing:border-box; transition:border-color .2s; margin-bottom:10px; background:#fff; color:#111; }
.hpw-tp-input:focus { border-color:var(--hpw-brand-ink); }
.hpw-tp-textarea { width:100%; padding:11px 14px; border:2px solid #e5e7eb; border-radius:10px; font-size:13px; font-family:inherit; outline:none; box-sizing:border-box; resize:vertical; margin-bottom:10px; transition:border-color .2s; background:#fff; color:#111; }
.hpw-tp-textarea:focus { border-color:var(--hpw-brand-ink); }
.hpw-tp-btn { display:block; width:100%; padding:13px; background:linear-gradient(135deg,var(--hpw-brand-deep),#1D9E75); color:#fff; border:none; border-radius:10px; font-size:15px; font-weight:800; cursor:pointer; font-family:inherit; transition:opacity .2s; text-decoration:none; text-align:center; }
.hpw-tp-btn:hover { opacity:.9; }
.hpw-tp-error { color:#dc2626; font-size:13px; margin-top:8px; }
.hpw-tp-error-big { font-size:16px; color:#dc2626; margin-bottom:16px; }
.hpw-tp-contact { font-size:12px; color:#9ca3af; margin-top:16px; }
.hpw-tp-contact a { color:var(--hpw-brand-ink); text-decoration:none; }
.hpw-tp-dash { padding:0; }
.hpw-tp-header { display:flex; align-items:center; justify-content:space-between; padding:14px 20px; background:linear-gradient(135deg,var(--hpw-brand-deep),var(--hpw-brand-ink)); border-radius:12px 12px 0 0; }
.hpw-tp-header-left { display:flex; align-items:center; gap:12px; }
.hpw-tp-header-logo { height:36px; width:auto; }
.hpw-tp-header-title{ font-size:16px; font-weight:800; color:#fff; }
.hpw-tp-header-sub  { font-size:11px; color:rgba(255,255,255,.7); margin-top:2px; }
.hpw-tp-logout { font-size:12px; color:rgba(255,255,255,.8); text-decoration:none; border:1px solid rgba(255,255,255,.3); padding:5px 12px; border-radius:6px; transition:all .2s; white-space:nowrap; cursor:pointer; background:none; }
.hpw-tp-logout:hover { background:rgba(255,255,255,.15); color:#fff; }
.hpw-tp-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:0; background:#f0faf5; border:1.5px solid #d1ead9; border-top:none; border-radius:0; overflow:hidden; }
.hpw-tp-kpi { padding:16px 12px; text-align:center; border-right:1px solid #d1ead9; background:#fff; }
.hpw-tp-kpi:last-child { border-right:none; }
.hpw-tp-kpi-icon  { font-size:22px; margin-bottom:4px; }
.hpw-tp-kpi-val   { font-size:20px; font-weight:800; color:var(--hpw-brand-deep); }
.hpw-tp-kpi-label { font-size:10px; color:#6b7280; margin-top:2px; font-weight:700; }
.hpw-tp-kpi-warn .hpw-tp-kpi-val { color:#d97706; }
.hpw-tp-kpi-good .hpw-tp-kpi-val { color:#16a34a; }
.hpw-tp-card { background:#fff; border:1.5px solid #e5e7eb; border-top:none; padding:18px 20px; }
.hpw-tp-card:last-child { border-radius:0 0 12px 12px; }
.hpw-tp-card-title { font-size:14px; font-weight:800; color:var(--hpw-brand-deep); border-bottom:2px solid #f0faf5; padding-bottom:10px; margin-bottom:14px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hpw-tp-pp-badge { font-size:11px; font-weight:700; background:#f0faf5; color:var(--hpw-brand-ink); border:1px solid #d1ead9; border-radius:99px; padding:3px 10px; margin-left:auto; }
.hpw-tp-info-grid { display:flex; gap:16px; flex-wrap:wrap; }
.hpw-tp-info-cover img { width:120px; height:90px; object-fit:cover; border-radius:8px; border:1px solid #e5e7eb; }
.hpw-tp-info-rows { flex:1; min-width:200px; }
.hpw-tp-info-row { display:flex; justify-content:space-between; gap:8px; padding:5px 0; border-bottom:1px solid #f3f4f6; font-size:13px; }
.hpw-tp-info-row:last-child { border-bottom:none; }
.hpw-tp-info-row span { color:#6b7280; flex-shrink:0; }
.hpw-tp-info-row strong { color:#111; text-align:right; }
.hpw-tp-warn-text { color:#d97706; }
.hpw-tp-progress-wrap { margin-top:14px; }
.hpw-tp-progress-label { display:flex; justify-content:space-between; font-size:12px; color:#6b7280; margin-bottom:6px; }
.hpw-tp-progress-bar  { height:8px; background:#f0faf5; border-radius:99px; overflow:hidden; }
.hpw-tp-progress-fill { height:100%; background:linear-gradient(90deg,var(--hpw-brand-ink),#1D9E75); border-radius:99px; transition:width .4s; }
.hpw-tp-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.hpw-tp-table { width:100%; border-collapse:collapse; font-size:13px; min-width:480px; }
.hpw-tp-table th { background:#f8fafc; color:#374151; font-size:11px; font-weight:800; padding:8px 10px; text-align:left; border-bottom:2px solid #e5e7eb; white-space:nowrap; }
.hpw-tp-table td { padding:8px 10px; border-bottom:1px solid #f3f4f6; color:#374151; vertical-align:middle; }
.hpw-tp-table tr:last-child td { border-bottom:none; }
.hpw-tp-table tr:hover td { background:#f8fafc; }
.hpw-tp-slip-link { color:var(--hpw-brand-ink); font-weight:700; font-size:12px; text-decoration:none; }
.hpw-tp-slip-link:hover { text-decoration:underline; }
.hpw-tp-pay-summary { font-size:13px; color:#6b7280; margin-top:10px; text-align:right; }
.hpw-tp-pay-summary strong { color:var(--hpw-brand-deep); font-size:15px; }
.hpw-tp-repair-form { display:flex; flex-direction:column; gap:8px; max-width:600px; }
.hpw-tp-success { background:#f0faf5; border:1px solid #d1ead9; color:var(--hpw-brand-deep); border-radius:8px; padding:10px 14px; font-size:13px; font-weight:700; }
.hpw-tp-empty { color:#9ca3af; font-size:13px; }
.hpw-tp-contact-card { background:#f0faf5; }
.hpw-tp-contact-grid { display:flex; gap:10px; flex-wrap:wrap; }
.hpw-tp-contact-btn { display:inline-flex; align-items:center; gap:6px; padding:10px 18px; background:var(--hpw-brand-ink); color:#fff; border-radius:8px; text-decoration:none; font-size:14px; font-weight:700; transition:background .2s; }
.hpw-tp-contact-btn:hover { background:var(--hpw-brand-deep); }
.hpw-tp-line-btn { background:#06c755; }
.hpw-tp-line-btn:hover { background:#05a546; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width:768px) {
    .hpw-ls-cols-3 .hpw-ls-card,
    .hpw-ls-cols-4 .hpw-ls-card  { width: calc((100% - 20px) / 2); }
    .hpw-ud-layout     { grid-template-columns:1fr; }
    .hpw-ud-specs-grid { grid-template-columns:repeat(2,1fr); }
    .hpw-ud-gallery    { grid-template-columns:repeat(4,1fr); }
    .hpw-ud-title      { font-size:22px; }
    .hpw-tp-kpi-grid   { grid-template-columns:1fr 1fr; }
    .hpw-tp-kpi        { border-bottom:1px solid #d1ead9; }
}
@media (max-width:600px) {
    .hpw-tp-kpi-grid   { grid-template-columns:1fr 1fr; }
    .hpw-ls-tab-shell  { padding:12px; border-radius:20px; }
    .hpw-ls-tab-head   { align-items:flex-start; flex-direction:column; gap:7px; }
    .hpw-ls-tabs       { display:grid; grid-template-columns:1fr 1fr; gap:6px; border-radius:18px; }
    .hpw-ls-tab        { font-size:12px; padding:7px 8px; min-height:38px; }
}
@media (max-width:480px) {
    .hpw-ls-cols-2 .hpw-ls-card,
    .hpw-ls-cols-3 .hpw-ls-card,
    .hpw-ls-cols-4 .hpw-ls-card  { width: 100%; }
    .hpw-ud-specs-grid { grid-template-columns:1fr 1fr; }
    .hpw-ls-card-img-wrap { height:180px; }
    .hpw-tp-kpi-grid   { grid-template-columns:1fr 1fr; }
}

/* ============================================================
   Unit Detail — No ID (Landing placeholder)
============================================================ */
.hpw-ud-no-unit {
    max-width:   500px;
    margin:      64px auto;
    text-align:  center;
    padding:     40px 28px;
    background:  #fff;
    border:      1.5px solid #e5e7eb;
    border-radius: 16px;
    box-shadow:  0 4px 24px rgba(0,0,0,.07);
}
.hpw-ud-no-unit-logo    { height:52px; margin:0 auto 16px; display:block; }
.hpw-ud-no-unit-icon    { font-size:52px; margin-bottom:12px; }
.hpw-ud-no-unit-title   { font-size:22px; font-weight:800; color:var(--hpw-brand-deep); margin:0 0 10px; }
.hpw-ud-no-unit-sub     { font-size:14px; color:#6b7280; line-height:1.7; margin:0 0 22px; }
.hpw-ud-no-unit-btn {
    display:      inline-flex;
    align-items:  center;
    gap:          8px;
    padding:      13px 28px;
    background:   var(--hpw-brand-ink);
    color:        #fff;
    border-radius:10px;
    font-size:    15px;
    font-weight:  800;
    text-decoration:none;
    transition:   background .2s;
}
.hpw-ud-no-unit-btn:hover { background:var(--hpw-brand-deep); }
.hpw-ud-no-unit-contact   { margin-top:18px; font-size:13px; color:#6b7280; }
.hpw-ud-no-unit-contact a { color:var(--hpw-brand-ink); font-weight:700; text-decoration:none; }

/* Unit Detail — existing improvements */
.hpw-ud-right           { display:flex; flex-direction:column; gap:12px; }
.hpw-ud-badges          { display:flex; flex-wrap:wrap; gap:6px; }
.hpw-ud-price-block     { background:#f0faf5; border:1.5px solid #d1ead9; border-radius:10px; padding:14px 18px; }
.hpw-ud-price-orig      { font-size:13px; color:#9ca3af; margin-top:4px; }
.hpw-ud-floorplan-btn   { /* see "Floor plan button" block above */ }
.hpw-ud-video-btn       { position:absolute; bottom:12px; right:12px; display:inline-flex; align-items:center; gap:6px; padding:8px 16px; background:rgba(220,38,38,.9); color:#fff; border:none; border-radius:8px; font-size:13px; font-weight:800; cursor:pointer; transition:background .2s; }
.hpw-ud-video-btn:hover { background:rgba(220,38,38,1); }

/* Unit detail — related/recent recommendations */
.hpw-ud-reco-section{margin-top:28px;padding:24px;border-radius:24px;background:#fff;border:1px solid rgba(18,113,78,.12);box-shadow:0 16px 40px rgba(15,55,42,.08)}
.hpw-ud-reco-head{text-align:center;margin-bottom:18px}.hpw-ud-reco-head h2{margin:0;color:#0d5f43;font-size:24px;font-weight:900}.hpw-ud-reco-head p{margin:6px auto 0;color:#64748b;max-width:720px;line-height:1.6}
.hpw-ud-reco-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hpw-ud-reco-card{display:block;overflow:hidden;border-radius:18px;background:linear-gradient(180deg,#fff,#f4fbf7);border:1px solid #d8eee4;text-decoration:none;color:#122236;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.hpw-ud-reco-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(13,95,67,.14);border-color:#8bd8b5}.hpw-ud-reco-thumb{height:150px;background:#ecfdf5;display:grid;place-items:center}.hpw-ud-reco-thumb img{width:100%;height:100%;object-fit:cover}.hpw-ud-reco-thumb span{font-size:34px}.hpw-ud-reco-body{padding:14px}.hpw-ud-reco-body small{display:block;color:#0d7a56;font-weight:800;margin-bottom:4px}.hpw-ud-reco-body strong{display:block;line-height:1.35;font-size:15px;color:#102033}.hpw-ud-reco-meta{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.hpw-ud-reco-meta span{font-size:11px;font-weight:800;color:#0d7a56;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:999px;padding:3px 8px}.hpw-ud-reco-body b{color:#0d7a56;font-size:15px}
@media(max-width:900px){.hpw-ud-reco-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.hpw-ud-reco-grid{grid-template-columns:1fr}.hpw-ud-reco-section{padding:18px}}

/* v3.9.58 — clearer related/recent card layout, no text-over-image */
.hpw-ud-reco-section{padding:30px;background:linear-gradient(180deg,#ffffff 0%,#f6fbf8 100%);border:1px solid #d7ebe2;box-shadow:0 20px 55px rgba(12,55,39,.10)}
.hpw-ud-reco-head{text-align:left;display:flex;align-items:flex-end;justify-content:space-between;gap:18px;border-bottom:1px solid #e4f1eb;padding-bottom:16px;margin-bottom:22px}.hpw-ud-reco-head h2{font-size:28px;line-height:1.2;color:#07583b}.hpw-ud-reco-head p{margin:0;color:#5b6f66;font-size:14px;text-align:right;max-width:420px}
.hpw-ud-reco-grid{align-items:stretch}.hpw-ud-reco-card{display:flex!important;flex-direction:column!important;min-height:100%;background:#fff!important;border:1px solid #cfe7dc!important;border-radius:22px!important;overflow:hidden!important;text-decoration:none!important;color:#172336!important;box-shadow:0 10px 24px rgba(12,55,39,.07)!important}.hpw-ud-reco-card:hover{text-decoration:none!important;box-shadow:0 18px 36px rgba(12,95,65,.16)!important}
.hpw-ud-reco-thumb{height:176px!important;min-height:176px!important;max-height:176px!important;overflow:hidden!important;background:#eaf8f2!important;border-bottom:1px solid #d7ebe2!important;display:block!important;position:relative!important}.hpw-ud-reco-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:0!important;margin:0!important;filter:none!important}.hpw-ud-reco-thumb.is-empty{display:grid!important;place-items:center!important}.hpw-ud-reco-thumb.is-branded-placeholder{position:relative!important;isolation:isolate!important;background:radial-gradient(circle at 18% 18%,rgba(255,255,255,.2),transparent 30%),radial-gradient(circle at 86% 84%,rgba(251,191,36,.18),transparent 36%),linear-gradient(135deg,var(--hpw-brand-dark) 0%,var(--hpw-brand-deep) 50%,var(--hpw-brand-ink) 100%)!important}.hpw-ud-reco-thumb.is-branded-placeholder::before{content:"";position:absolute;inset:14px;border:1px dashed rgba(255,255,255,.25);border-radius:14px;z-index:1}.hpw-ud-reco-placeholder{position:relative;z-index:2;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;text-align:center}.hpw-ud-reco-placeholder-logo{position:absolute;z-index:0;width:74%;height:58%;object-fit:contain;opacity:.18;filter:brightness(1.18) drop-shadow(0 14px 26px rgba(0,0,0,.28))}.hpw-ud-reco-placeholder strong{position:relative;z-index:2;display:inline-flex;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:13px;font-weight:950;letter-spacing:.02em;box-shadow:0 10px 24px rgba(0,0,0,.16)}.hpw-ud-reco-badges{position:absolute;z-index:5;left:10px;right:10px;top:10px;display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap;pointer-events:none}.hpw-ud-reco-badges:empty{display:none}.hpw-ud-reco-badge{display:inline-flex!important;align-items:center;justify-content:center;width:auto!important;height:24px!important;max-width:calc(100% - 4px);min-width:0!important;min-height:24px!important;padding:5px 9px!important;border-radius:999px;border:1px solid rgba(255,255,255,.58);box-shadow:0 8px 18px rgba(0,0,0,.16);font-size:10px!important;line-height:1!important;font-weight:950!important;letter-spacing:.01em;backdrop-filter:blur(8px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hpw-ud-reco-badge img.emoji{display:inline-block!important;width:12px!important;height:12px!important;min-width:12px!important;max-width:12px!important;min-height:12px!important;max-height:12px!important;margin:0 4px 0 0!important;vertical-align:-.12em!important;object-fit:contain!important}.hpw-ud-reco-badge.is-featured{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#422006;border-color:rgba(255,255,255,.72)}.hpw-ud-reco-badge.is-promo{background:linear-gradient(135deg,#ef4444,#be123c);color:#fff}.hpw-ud-reco-badge.is-status{font-size:11px!important;min-height:28px!important;height:28px!important;padding:6px 11px!important}.hpw-ud-reco-badge.is-vacant{background:rgba(16,163,101,.94);color:#fff}.hpw-ud-reco-badge.is-status::before{content:"";width:6px;height:6px;margin-right:5px;border-radius:999px;background:rgba(255,255,255,.88);box-shadow:0 0 0 3px rgba(255,255,255,.2)}
.hpw-ud-reco-status-strip{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:2px 0 0!important;padding:10px 12px!important;border-radius:15px!important;background:#ecfdf5!important;border:1px solid #bbf7d0!important}.hpw-ud-reco-status-strip span{color:#047857!important;font-size:12px!important;font-weight:950!important}.hpw-ud-reco-status-strip strong{display:block!important;color:#064e3b!important;font-size:13px!important;line-height:1.1!important;font-weight:950!important;-webkit-line-clamp:1!important}
.hpw-ud-reco-body{display:flex!important;flex-direction:column!important;gap:9px!important;flex:1!important;padding:18px!important;background:#fff!important;color:#172336!important;position:relative!important;z-index:2!important}.hpw-ud-reco-body small{font-size:12px!important;line-height:1.45!important;color:#0b7a54!important;font-weight:900!important;letter-spacing:.1px!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-decoration:none!important}.hpw-ud-reco-body strong{font-size:17px!important;line-height:1.35!important;color:#102033!important;font-weight:900!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;text-decoration:none!important}.hpw-ud-reco-meta{margin:2px 0 0!important}.hpw-ud-reco-body b{margin-top:auto!important;padding-top:8px!important;border-top:1px solid #eef5f1!important;color:#06734f!important;font-size:18px!important;font-weight:900!important;text-decoration:none!important}
.hpw-ud-reco-specs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:2px 0 4px!important}.hpw-ud-reco-specs span{display:grid!important;grid-template-columns:22px 1fr!important;grid-template-areas:"icon label" "icon value"!important;align-items:center!important;gap:0 7px!important;padding:9px 10px!important;border-radius:14px!important;background:#f7fbf9!important;border:1px solid #e0eee7!important;min-width:0!important}.hpw-ud-reco-specs i{grid-area:icon!important;font-style:normal!important;font-size:16px!important;line-height:1!important}.hpw-ud-reco-specs em{grid-area:label!important;font-style:normal!important;font-size:10.5px!important;line-height:1.1!important;color:#71827a!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.hpw-ud-reco-specs b{grid-area:value!important;margin:2px 0 0!important;padding:0!important;border:0!important;color:#123325!important;font-size:12px!important;line-height:1.2!important;font-weight:900!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.hpw-ud-reco-price{display:block!important;margin-top:auto!important;padding-top:10px!important;border-top:1px solid #eef5f1!important;color:#06734f!important;font-size:18px!important;font-weight:900!important;text-decoration:none!important}
@media(max-width:900px){.hpw-ud-reco-head{display:block;text-align:left}.hpw-ud-reco-head p{text-align:left;margin-top:8px}.hpw-ud-reco-thumb{height:190px!important;min-height:190px!important;max-height:190px!important}}@media(max-width:560px){.hpw-ud-reco-specs{grid-template-columns:1fr 1fr!important}.hpw-ud-reco-specs span{padding:10px!important}.hpw-ud-reco-specs b{font-size:12.5px!important}}

/* v3.9.225 — Standardize all PropWorks frontend map heights */
.hpw-ls-map-view,
.hpw-ud-map,
.hpw-ud-map-full,
.hpw-allmap,
.hpw-allmap .leaflet-container,
.hpw-ls-wrap .leaflet-container,
.hpw-ud-wrap .leaflet-container,
.hpw-allmap-wrap .leaflet-container {
    height: 550px !important;
    min-height: 550px !important;
}

/* v3.9.61 — Unit detail full-width title/map/description */
.hpw-ud-top-title{margin:10px 0 22px;padding:0 0 16px;border-bottom:1px solid #e6eee9}.hpw-ud-top-title h1{margin:0;color:#0b1d16;font-size:clamp(28px,3.2vw,44px);line-height:1.18;font-weight:950;letter-spacing:-.6px}.hpw-ud-right .hpw-ud-title{display:none!important}.hpw-ud-left>.hpw-ud-map-section{display:none!important}.hpw-ud-right .hpw-ud-section:has(#hpw-ud-desc-text){display:none!important}
.hpw-ud-full-section{margin-top:30px;padding:28px;border-radius:24px;background:#fff;border:1px solid #d8ebe3;box-shadow:0 18px 42px rgba(12,55,39,.08)}.hpw-ud-full-title{margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #e4f1eb;color:#0b6042;font-size:24px;line-height:1.25;font-weight:900}.hpw-ud-map-full{height:550px!important;min-height:550px!important;border-radius:18px!important;border:1px solid #cfe3da!important;box-shadow:0 10px 28px rgba(12,55,39,.10)!important}.hpw-ud-desc-full{max-height:none!important;overflow:visible!important;font-size:16px!important;line-height:1.9!important;color:#374151!important}.hpw-ud-desc-full p{margin:0 0 1em}.hpw-ud-desc-full p:last-child{margin-bottom:0}
@media(max-width:768px){.hpw-ud-top-title{margin-top:6px}.hpw-ud-top-title h1{font-size:28px}.hpw-ud-full-section{padding:22px;margin-top:24px}.hpw-ud-map-full{height:550px!important;min-height:550px!important}.hpw-ud-desc-full{font-size:15.5px!important;line-height:1.85!important}}

/* v3.9.173 — Promotion date + original price polish */
.hpw-ud-price-block{
    position:relative!important;
    overflow:hidden!important;
    background:linear-gradient(135deg,#edfdf5 0%,#f7fffb 58%,#fff8e7 100%)!important;
    border:1px solid rgba(22,163,106,.22)!important;
    border-radius:18px!important;
    padding:20px 22px!important;
    box-shadow:0 18px 42px rgba(12,55,39,.10)!important;
}
.hpw-ud-price-block::before{
    content:"";position:absolute;right:-44px;top:-52px;width:150px;height:150px;border-radius:999px;
    background:radial-gradient(circle,rgba(251,191,36,.28),rgba(251,191,36,0) 68%);pointer-events:none;
}
.hpw-ud-price-block .hpw-ud-price{position:relative;z-index:1;color:#07583b!important;font-size:38px!important;line-height:1!important;margin:0!important;letter-spacing:-.04em!important}
.hpw-ud-price-block .hpw-ud-price-unit{color:#51645c!important;font-weight:700!important;letter-spacing:0!important}
.hpw-ud-price-block .hpw-ud-price-orig{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;margin-top:9px!important;margin-left:0!important;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.72);border:1px solid rgba(var(--hpw-brand-deep-rgb),.10);color:#6b7280!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important}
.hpw-ud-price-block .hpw-ud-price-orig del{color:#8a9390;text-decoration-thickness:2px;text-decoration-color:#ef4444}
.hpw-ud-promo-dates{position:relative;z-index:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;padding-top:14px;border-top:1px dashed rgba(var(--hpw-brand-deep-rgb),.18)}
.hpw-ud-promo-date-card{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:14px;background:rgba(255,255,255,.78);border:1px solid rgba(22,163,106,.18);box-shadow:0 8px 18px rgba(12,55,39,.06)}
.hpw-ud-promo-date-card span{font-size:11px;line-height:1.25;color:#65736d;font-weight:900;letter-spacing:.01em}
.hpw-ud-promo-date-card span b{color:#ef4444;font-size:13px}
.hpw-ud-promo-date-card strong{font-size:15px;line-height:1.2;color:#063f2b;font-weight:950}
.hpw-ud-reco-price-wrap{margin-top:auto!important;padding-top:10px!important;border-top:1px solid #eef5f1!important;display:flex!important;flex-direction:column!important;gap:4px!important}
.hpw-ud-reco-price-wrap .hpw-ud-reco-price{margin:0!important;padding:0!important;border:0!important;color:#06734f!important;font-size:18px!important;font-weight:950!important;line-height:1.15!important}
.hpw-ud-reco-price-wrap.is-promo .hpw-ud-reco-price{color:#be123c!important}
.hpw-ud-reco-old-price{display:inline-flex!important;align-items:center;gap:5px;width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412!important;font-size:11.5px!important;font-weight:900!important;line-height:1.25!important}
.hpw-ud-reco-old-price del{color:#9ca3af;text-decoration-color:#ef4444;text-decoration-thickness:2px}
.hpw-ud-reco-promo-dates{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;margin-top:3px!important;padding:7px!important;border-radius:14px!important;background:linear-gradient(135deg,#fff7ed,#f0fdf4)!important;border:1px dashed rgba(var(--hpw-brand-deep-rgb),.18)!important}
.hpw-ud-reco-promo-dates>span{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;gap:8px!important;padding:5px 7px!important;border-radius:10px!important;background:rgba(255,255,255,.72)!important;color:#34443d!important}
.hpw-ud-reco-promo-dates em{font-style:normal!important;font-size:10px!important;line-height:1.15!important;color:#64748b!important;font-weight:900!important;white-space:normal!important}
.hpw-ud-reco-promo-dates em b{color:#ef4444!important;font-size:11px!important}
.hpw-ud-reco-promo-dates strong{font-size:11.5px!important;line-height:1!important;color:#064e3b!important;font-weight:950!important;white-space:nowrap!important}
@media(max-width:560px){.hpw-ud-promo-dates{grid-template-columns:1fr}.hpw-ud-price-block .hpw-ud-price{font-size:32px!important}.hpw-ud-reco-promo-dates>span{grid-template-columns:1fr!important;gap:4px!important}}

/* v3.9.195 — Unit booking / quotation conversion UI */
.hpw-ud-action-panel{position:relative;overflow:hidden;margin:4px 0 8px;padding:18px;border-radius:22px;background:linear-gradient(135deg,#052e22 0%,#07583b 58%,#ecfdf5 58.2%,#fff 100%);box-shadow:0 18px 42px rgba(4,47,34,.14);border:1px solid rgba(6,95,70,.12)}
.hpw-ud-action-panel:before{content:"";position:absolute;right:18px;top:16px;width:72px;height:72px;border-radius:999px;background:radial-gradient(circle,rgba(16,185,129,.22),rgba(16,185,129,0) 68%);pointer-events:none}
.hpw-ud-action-copy{position:relative;z-index:1;color:#fff;max-width:62%;padding-right:10px}.hpw-ud-action-copy span{display:block;color:#a7f3d0;font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px}.hpw-ud-action-copy strong{display:block;font-size:20px;line-height:1.15;font-weight:950;letter-spacing:-.03em}.hpw-ud-action-copy p{margin:7px 0 0;color:rgba(236,253,245,.82);font-size:12.5px;line-height:1.45;font-weight:700}
.hpw-ud-action-buttons{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.hpw-ud-action-btn{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border-radius:999px;font-size:14px;font-weight:950;text-align:center;text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.hpw-ud-action-btn--reserve{background:linear-gradient(135deg,#10b981,#047857);color:#fff!important;box-shadow:0 14px 28px rgba(4,120,87,.24)}.hpw-ud-action-btn--quote{background:rgba(255,255,255,.92);color:#07583b!important;border:1px solid rgba(6,95,70,.12);box-shadow:0 12px 24px rgba(4,47,34,.10)}.hpw-ud-action-btn:hover{transform:translateY(-2px);filter:brightness(1.03)}
.hpw-ud-sticky-btn--reserve{background:linear-gradient(135deg,#10b981,#047857)!important;color:#fff!important;box-shadow:0 10px 24px rgba(4,120,87,.22);justify-content:center!important;text-align:center!important;padding:13px 16px!important;max-width:190px;width:100%}.hpw-ud-sticky-btn--phone{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:1px!important;width:54px!important;height:54px!important;min-width:54px!important;padding:0!important;border-radius:50%!important;background:#07583b!important;color:#fff!important;border:2px solid #10b981!important;box-shadow:0 6px 20px rgba(4,120,87,.35)!important;font-size:9px!important;font-weight:900!important;line-height:1.1!important;letter-spacing:.03em!important;text-decoration:none!important}.hpw-ud-sticky-btn--phone::before{content:"📞";font-size:22px;line-height:1;display:block}.hpw-ud-sticky-btn--phone span{font-size:9px;color:rgba(255,255,255,.85)}
/* v3.46.0: ปุ่มนำทาง Google Maps (วงกลมไอคอน — สีน้ำเงิน Google) */
.hpw-ud-sticky-btn--map{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:1px!important;width:54px!important;height:54px!important;min-width:54px!important;padding:0!important;border-radius:50%!important;background:#1a73e8!important;color:#fff!important;border:2px solid #4285f4!important;box-shadow:0 6px 20px rgba(26,115,232,.35)!important;font-size:9px!important;font-weight:900!important;line-height:1.1!important;letter-spacing:.03em!important;text-decoration:none!important}.hpw-ud-sticky-btn--map::before{content:"📍";font-size:22px;line-height:1;display:block}.hpw-ud-sticky-btn--map span{font-size:9px;color:rgba(255,255,255,.9)}
.hpw-ub-wrap{max-width:1180px;margin:0 auto;padding:20px 18px 54px;font-family:var(--hpw-font);color:#0f172a}.hpw-ub-hero{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:stretch;padding:30px;border-radius:30px;background:radial-gradient(circle at 20% 20%,rgba(16,185,129,.24),transparent 30%),linear-gradient(135deg,#052e22,#07583b);color:#fff;box-shadow:0 28px 70px rgba(4,47,34,.18)}.hpw-ub-kicker{display:block;color:#a7f3d0;font-size:12px;font-weight:950;letter-spacing:.14em;text-transform:uppercase;margin-bottom:10px}.hpw-ub-hero h1{margin:0;font-size:clamp(30px,4vw,52px);line-height:1.02;letter-spacing:-.05em;color:#fff}.hpw-ub-hero p{max-width:620px;margin:12px 0 0;color:rgba(236,253,245,.84);font-size:16px;line-height:1.65}.hpw-ub-summary{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:22px;border-radius:24px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(14px)}.hpw-ub-summary small{color:#a7f3d0;font-weight:900}.hpw-ub-summary strong{font-size:20px;line-height:1.25;color:#fff}.hpw-ub-summary b{color:#fef3c7;font-size:24px}
.hpw-ub-error{margin:16px 0;padding:13px 16px;border-radius:16px;background:#fef2f2;color:#991b1b;border:1px solid #fecaca;font-weight:800}.hpw-ub-form{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;margin-top:20px}.hpw-ub-card{padding:22px;border-radius:24px;background:#fff;border:1px solid rgba(var(--hpw-brand-deep-rgb),.10);box-shadow:0 18px 44px rgba(var(--hpw-brand-deep-rgb),.08)}.hpw-ub-card h2{margin:0 0 16px;color:#064e3b;font-size:22px}.hpw-ub-type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.hpw-ub-type-tabs label{display:block}.hpw-ub-type-tabs input{position:absolute;opacity:0}.hpw-ub-type-tabs span{display:flex;justify-content:center;padding:12px 14px;border-radius:999px;background:#f0fdf4;border:1px solid #dcfce7;color:#047857;font-weight:950}.hpw-ub-type-tabs input:checked+span{background:#07583b;color:#fff;border-color:#07583b;box-shadow:0 10px 22px rgba(7,88,59,.18)}.hpw-ub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hpw-ub-grid label{display:flex;flex-direction:column;gap:6px;color:#334155;font-weight:850;font-size:13px}.hpw-ub-company-field{display:none!important}.hpw-ub-form:has(input[name="customer_type"][value="company"]:checked) .hpw-ub-company-field{display:flex!important}.hpw-ub-grid input,.hpw-ub-grid textarea{width:100%;border:1px solid #dbe7df;border-radius:14px;padding:11px 12px;background:#fbfefc;color:#0f172a;font:inherit}.hpw-ub-full{grid-column:1/-1}.hpw-ub-side{align-self:start;position:sticky;top:24px}.hpw-ub-side ol{margin:0 0 18px;padding-left:20px;color:#475569;line-height:1.8;font-weight:700}.hpw-ub-submit{width:100%;border:0;border-radius:999px;padding:14px 18px;background:linear-gradient(135deg,#10b981,#047857);color:#fff;font-weight:950;font-size:15px;box-shadow:0 16px 30px rgba(4,120,87,.24);cursor:pointer}.hpw-ub-side p{margin:12px 0 0;color:#64748b;font-size:12.5px;line-height:1.55}.hpw-ub-receipt{max-width:900px;margin:0 auto;padding:30px;border-radius:28px;background:#fff;border:1px solid rgba(var(--hpw-brand-deep-rgb),.12);box-shadow:0 24px 64px rgba(var(--hpw-brand-deep-rgb),.12)}.hpw-ub-receipt header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:18px;border-bottom:2px solid #ecfdf5}.hpw-ub-receipt header span{display:block;color:#047857;font-size:12px;font-weight:950;letter-spacing:.14em}.hpw-ub-receipt h1{margin:4px 0 0;color:#064e3b;font-size:34px}.hpw-ub-receipt header strong{padding:9px 12px;border-radius:999px;background:#ecfdf5;color:#047857}.hpw-ub-receipt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:22px 0}.hpw-ub-receipt-grid>div{padding:15px;border-radius:18px;background:#f8fcfa;border:1px solid #e3f3e9}.hpw-ub-receipt-grid small{display:block;color:#64748b;font-weight:800}.hpw-ub-receipt-grid b{display:block;margin-top:4px;color:#064e3b;font-size:18px}.hpw-ub-receipt-grid p{margin:5px 0 0;color:#475569}.hpw-ub-paybox{padding:18px;border-radius:20px;background:#fffbeb;border:1px solid #fde68a;color:#713f12}.hpw-ub-paybox p{margin:7px 0 0;line-height:1.65}.hpw-ub-receipt footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hpw-ub-receipt footer button,.hpw-ub-receipt footer a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:999px;border:0;text-decoration:none!important;font-weight:950}.hpw-ub-receipt footer button{background:#07583b;color:#fff;cursor:pointer}.hpw-ub-receipt footer a{background:#ecfdf5;color:#047857}
.hpw-ub-doc-head{display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:18px;align-items:center;padding:0 0 18px!important;border-bottom:1px solid #dbeee5!important}.hpw-ub-company-mark{display:flex;align-items:center;gap:15px}.hpw-ub-company-mark img{width:72px;height:72px;object-fit:contain;border-radius:18px;background:#fff;border:1px solid rgba(var(--hpw-brand-deep-rgb),.12);box-shadow:0 10px 24px rgba(var(--hpw-brand-deep-rgb),.08)}.hpw-ub-company-mark span{display:block;color:#047857;font-size:11px;font-weight:950;letter-spacing:.16em;text-transform:uppercase}.hpw-ub-company-mark h2{margin:4px 0 0;color:#064e3b;font-size:22px;line-height:1.15;font-weight:950;letter-spacing:-.02em}.hpw-ub-company-en{margin:3px 0 0!important;color:#64748b!important;font-size:12px!important;font-weight:800}.hpw-ub-company-meta{text-align:right;color:#475569;font-size:12px;line-height:1.55}.hpw-ub-company-meta p{margin:0 0 4px!important}.hpw-ub-company-meta span{display:inline-block;margin-left:8px}.hpw-ub-doc-titlebar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 22px;padding:18px 20px;border-radius:22px;background:linear-gradient(135deg,#052e22,#08734d);color:#fff;box-shadow:0 18px 40px rgba(4,47,34,.16)}.hpw-ub-doc-titlebar span{display:block;color:#a7f3d0;font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.hpw-ub-doc-titlebar h1{margin:4px 0 0!important;color:#fff!important;font-size:32px!important;line-height:1.05;letter-spacing:-.04em}.hpw-ub-doc-titlebar strong{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:14px;white-space:nowrap}
.hpw-ub-payment-box{margin:18px 0;padding:18px;border-radius:24px;background:linear-gradient(135deg,#052e22 0%,#07583b 42%,#f8fffb 42.2%,#ffffff 100%);border:1px solid rgba(6,95,70,.14);box-shadow:0 18px 44px rgba(4,47,34,.10);overflow:hidden}.hpw-ub-payment-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.hpw-ub-payment-head span{display:block;color:#a7f3d0;font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.hpw-ub-payment-head strong{display:block;color:#064e3b;font-size:22px;line-height:1;font-weight:950;letter-spacing:-.03em}.hpw-ub-payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hpw-ub-bank-card,.hpw-ub-promptpay-card{padding:15px;border-radius:18px;background:rgba(255,255,255,.88);border:1px solid rgba(var(--hpw-brand-deep-rgb),.12);box-shadow:0 10px 24px rgba(var(--hpw-brand-deep-rgb),.06)}.hpw-ub-bank-card small,.hpw-ub-promptpay-card small{display:block;color:#047857;font-size:11px;font-weight:950;letter-spacing:.04em;text-transform:uppercase;margin-bottom:5px}.hpw-ub-bank-card b,.hpw-ub-promptpay-card b{display:block;color:#064e3b;font-size:18px;line-height:1.2;font-weight:950}.hpw-ub-bank-card p,.hpw-ub-promptpay-card p{margin:7px 0 0;color:#475569;font-size:13px;line-height:1.55}.hpw-ub-bank-card p strong{color:#0f172a}.hpw-ub-bank-card--ref{background:linear-gradient(135deg,#fff7ed,#fff);border-color:rgba(245,158,11,.22)}.hpw-ub-bank-card--ref b{color:#b45309}.hpw-ub-promptpay-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#ecfdf5,#ffffff)}.hpw-ub-promptpay-card img{width:132px;height:132px;border-radius:18px;border:6px solid #fff;box-shadow:0 14px 30px rgba(4,47,34,.12);background:#fff;object-fit:contain;flex:0 0 auto}
@media(max-width:760px){.hpw-ub-payment-box{background:linear-gradient(150deg,#052e22 0%,#07583b 30%,#f8fffb 30.2%,#fff 100%)}.hpw-ub-payment-head{display:block}.hpw-ub-payment-head strong{margin-top:6px}.hpw-ub-payment-grid{grid-template-columns:1fr}.hpw-ub-promptpay-card{display:block}.hpw-ub-promptpay-card img{margin-top:12px}.hpw-ud-action-panel{background:linear-gradient(150deg,#052e22 0%,#07583b 52%,#ecfdf5 52.2%,#fff 100%)}.hpw-ud-action-copy{max-width:100%;padding-right:0}.hpw-ud-action-buttons{grid-template-columns:1fr}.hpw-ub-hero,.hpw-ub-form{grid-template-columns:1fr}.hpw-ub-hero{padding:22px;border-radius:24px}.hpw-ub-grid,.hpw-ub-receipt-grid{grid-template-columns:1fr}.hpw-ub-side{position:static}.hpw-ub-receipt{padding:20px}.hpw-ub-receipt header{flex-direction:column}.hpw-ub-receipt h1{font-size:26px}}
@media(max-width:760px){.hpw-ub-doc-head{grid-template-columns:1fr!important}.hpw-ub-company-meta{text-align:left}.hpw-ub-company-meta span{margin:0 8px 0 0}.hpw-ub-doc-titlebar{display:block}.hpw-ub-doc-titlebar strong{margin-top:12px}.hpw-ub-company-mark img{width:58px;height:58px}.hpw-ub-doc-titlebar h1{font-size:25px!important}}
@media print{.hpw-ub-doc-head{grid-template-columns:1fr 1fr!important}.hpw-ub-doc-titlebar{box-shadow:none!important;background:#064e3b!important}.hpw-ub-company-mark img{box-shadow:none!important}.hpw-ub-receipt{padding:18px!important}.hpw-ub-payment-box{box-shadow:none!important}body:has(.hpw-ub-print-wrap) *{visibility:hidden!important}body:has(.hpw-ub-print-wrap) .hpw-ub-print-wrap,body:has(.hpw-ub-print-wrap) .hpw-ub-print-wrap *{visibility:visible!important}.hpw-ub-print-wrap{position:absolute;left:0;top:0;width:100%;padding:0!important}.hpw-ub-receipt{box-shadow:none!important;border:0!important}.hpw-ub-receipt footer{display:none!important}}
@media(prefers-reduced-motion:reduce){.hpw-ud-action-btn,.hpw-ub-submit{transition:none}.hpw-ud-action-btn:hover{transform:none}}

/* v3.9.235 — Unit detail estimated move-in cost card */
.hpw-ud-fee-card{position:relative;overflow:hidden;margin:2px 0 18px;padding:18px;border-radius:24px;background:linear-gradient(145deg,#062f24 0%,#07583b 42%,#f8fffb 42.3%,#fff 100%);border:1px solid rgba(6,95,70,.16);box-shadow:0 20px 48px rgba(4,47,34,.13)}
.hpw-ud-fee-card:before{content:"";position:absolute;right:18px;top:18px;width:82px;height:82px;border-radius:999px;background:radial-gradient(circle,rgba(16,185,129,.28),rgba(16,185,129,0) 68%);filter:blur(1px);pointer-events:none}
.hpw-ud-fee-head{position:relative;z-index:1;color:#fff;max-width:58%;min-height:126px;display:flex;flex-direction:column;justify-content:center}.hpw-ud-fee-head span{display:block;color:#a7f3d0;font-size:11px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}.hpw-ud-fee-head strong{margin-top:5px;color:#fff;font-size:21px;line-height:1.1;font-weight:950;letter-spacing:-.04em}.hpw-ud-fee-head b{display:block;margin-top:8px;color:#fef3c7;font-size:34px;line-height:1;font-weight:950;letter-spacing:-.05em}.hpw-ud-fee-head small{margin-top:7px;color:rgba(236,253,245,.82);font-size:12px;line-height:1.4;font-weight:800}
.hpw-ud-fee-rows{position:relative;z-index:1;display:grid;gap:8px;margin-top:14px}.hpw-ud-fee-rows>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:15px;background:rgba(255,255,255,.88);border:1px solid rgba(var(--hpw-brand-deep-rgb),.10);box-shadow:0 8px 18px rgba(var(--hpw-brand-deep-rgb),.05)}.hpw-ud-fee-rows span{color:#475569;font-size:12px;font-weight:850}.hpw-ud-fee-rows strong{color:#064e3b;font-size:15px;font-weight:950;white-space:nowrap}.hpw-ud-fee-rows .is-total{background:linear-gradient(135deg,#ecfdf5,#fff7ed);border-color:rgba(16,185,129,.26)}.hpw-ud-fee-rows .is-total span{color:#047857}.hpw-ud-fee-rows .is-total strong{color:#b45309;font-size:18px}
.hpw-ud-utility-box{position:relative;z-index:1;margin-top:12px;padding:12px;border-radius:18px;background:rgba(255,255,255,.84);border:1px solid rgba(6,95,70,.12)}.hpw-ud-utility-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:9px}.hpw-ud-utility-head .hpw-ud-utility-title{margin-bottom:0}.hpw-ud-utility-title{margin-bottom:9px;color:#064e3b;font-size:13px;font-weight:950}.hpw-ud-utility-src{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:900;line-height:1.3;white-space:nowrap;background:#fff7ed;border:1px solid #fdba74;color:#9a3412}.hpw-ud-utility-src.is-own{background:#f0fdf4;border-color:#86efac;color:#15803d}.hpw-ud-utility-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hpw-ud-utility-item{padding:11px;border-radius:14px;background:#f8fafc;border:1px solid #e5e7eb}.hpw-ud-utility-item span{display:block;color:#64748b;font-size:11px;font-weight:900}.hpw-ud-utility-item strong{display:block;margin-top:3px;color:#0f172a;font-size:14px;font-weight:950}.hpw-ud-utility-item small{display:block;margin-top:4px;color:#047857;font-size:11px;font-weight:800;line-height:1.35}.hpw-ud-fee-notes{position:relative;z-index:1;margin:12px 0 0;padding:10px 12px 10px 28px;border-radius:16px;background:rgba(255,251,235,.92);border:1px solid rgba(245,158,11,.24);color:#713f12;font-size:11.5px;line-height:1.55;font-weight:750}.hpw-ud-fee-notes li{margin:2px 0}
@media(max-width:760px){.hpw-ud-fee-card{background:linear-gradient(160deg,#062f24 0%,#07583b 34%,#f8fffb 34.2%,#fff 100%);padding:16px}.hpw-ud-fee-head{max-width:100%;min-height:112px}.hpw-ud-utility-grid{grid-template-columns:1fr}.hpw-ud-fee-head b{font-size:30px}}

/* v3.9.264 — Spec cards redesign */
.hpw-ud-specs-grid--under-gallery {
    margin: 18px 0 22px !important;
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important;
}
/* icon = grid col1 (spans all rows); label/val/small stack in col2 */
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item {
    display: grid;
    grid-template-columns: 34px minmax(0,1fr);
    grid-auto-rows: min-content;
    align-content: center;
    column-gap: 9px; row-gap: 0;
    min-height: 0; padding: 9px 10px;
    border-radius: 13px;
    background: #fff;
    border: 1.5px solid #e8f0eb;
    box-shadow: 0 1px 3px rgba(var(--hpw-brand-deep-rgb),.05);
    transition: border-color .18s, box-shadow .18s, transform .18s;
    position: relative; overflow: hidden;
    text-align: left;
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(16,185,129,.045) 0%, transparent 55%);
    pointer-events: none;
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item:hover {
    border-color: #6ee7b7;
    box-shadow: 0 5px 16px rgba(16,185,129,.13);
    transform: translateY(-1px);
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-icon {
    grid-column: 1; grid-row: 1 / span 3;
    align-self: center;
    width: 34px; height: 34px; margin: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(16,185,129,.15);
    position: relative; z-index: 1;
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-label {
    grid-column: 2; position: relative; z-index: 1;
    display: block; min-width: 0;
    font-size: 10px; color: #6b7280; font-weight: 800;
    text-transform: uppercase; letter-spacing: .02em;
    margin: 0 0 1px; line-height: 1.3;
    white-space: normal; overflow: visible; text-overflow: clip;
    word-break: break-word;
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-val {
    grid-column: 2; position: relative; z-index: 1;
    display: block; min-width: 0;
    font-size: 14px; font-weight: 900; color: #0f172a;
    line-height: 1.25; word-break: break-word; text-align: left;
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item--utility small {
    grid-column: 2; position: relative; z-index: 1;
    margin-top: 2px;
}
/* Utility items (ค่าไฟ / ค่าน้ำ) */
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item--utility {
    border-color: #dbeafe; background: linear-gradient(145deg, #eff6ff, #fff);
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item--utility::before {
    background: linear-gradient(145deg, rgba(59,130,246,.05) 0%, transparent 60%);
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item--utility .hpw-ud-spec-icon {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 2px 6px rgba(59,130,246,.15);
}
.hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item--utility:hover {
    border-color: #93c5fd; box-shadow: 0 6px 20px rgba(59,130,246,.12);
}
.hpw-ud-spec-item--utility small {
    display: block; margin-top: 2px;
    color: #3b82f6; font-size: 9.5px; line-height: 1.3; font-weight: 700;
}
.hpw-ud-spec-src {
    display: inline-flex; align-items: center; margin-top: 5px;
    padding: 1px 8px; border-radius: 999px;
    font-size: 9px; font-weight: 900; line-height: 1.35; white-space: nowrap;
    background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
}
.hpw-ud-spec-src.is-own { background: #f0fdf4; border-color: #86efac; color: #15803d; }
@media (max-width: 900px) {
    .hpw-ud-specs-grid--under-gallery { grid-template-columns: repeat(2,minmax(0,1fr)) !important; margin-top: 16px !important; }
}
@media (max-width: 520px) {
    .hpw-ud-specs-grid--under-gallery { grid-template-columns: 1fr !important; }
}
@media (max-width: 420px) {
    .hpw-ud-specs-grid--under-gallery .hpw-ud-spec-item { padding: 9px 11px; }
    .hpw-ud-specs-grid--under-gallery .hpw-ud-spec-val { font-size: 14px; }
}

/* v3.9.240 — Modern print/PDF proposal layout for Unit Detail */
@page hpw-unit-detail{
    size:A4 portrait;
    margin:16mm 12mm 14mm;
    @top-left{content:"Hanuman PropWorks";font:700 8pt Sarabun,Arial,sans-serif;color:var(--hpw-brand-deep);letter-spacing:.03em}
    @top-right{content:"www.construction.co.th  หน้าที่ " counter(page) "/" counter(pages);font:700 8pt Sarabun,Arial,sans-serif;color:#334155}
}
@media print{
    body:has(.hpw-ud-wrap){page:hpw-unit-detail;background:#fff!important;color:#172033!important;font-family:var(--hpw-font)!important;font-size:9.6pt!important;line-height:1.45!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
    body:has(.hpw-ud-wrap) #wpadminbar,
    body:has(.hpw-ud-wrap) .site-header,
    body:has(.hpw-ud-wrap) #ast-fixed-header,
    body:has(.hpw-ud-wrap) .main-header-bar,
    body:has(.hpw-ud-wrap) .ast-mobile-header-wrap,
    body:has(.hpw-ud-wrap) .hpw-ud-breadcrumb,
    body:has(.hpw-ud-wrap) .hpw-admin-edit-link,
    body:has(.hpw-ud-wrap) .hpw-share-bar,
    body:has(.hpw-ud-wrap) .hpw-ud-action-panel,
    body:has(.hpw-ud-wrap) .hpw-ud-sticky-bar,
    body:has(.hpw-ud-wrap) .hpw-ud-video-btn,
    body:has(.hpw-ud-wrap) .hpw-ud-gallery-shell,
    body:has(.hpw-ud-wrap) .hpw-ud-gallery-dots,
    body:has(.hpw-ud-wrap) .hpw-ud-reco-section,
    body:has(.hpw-ud-wrap) .hpw-ud-map-section,
    body:has(.hpw-ud-wrap) .hpw-ud-section,
    body:has(.hpw-ud-wrap) .hpw-ud-desc-toggle,
    body:has(.hpw-ud-wrap) .hpw-ud-unavailable,
    body:has(.hpw-ud-wrap) footer.site-footer,
    body:has(.hpw-ud-wrap) .chaty-widget{display:none!important}
    body:has(.hpw-ud-wrap) .site-content,
    body:has(.hpw-ud-wrap) .ast-container,
    body:has(.hpw-ud-wrap) .content-area,
    body:has(.hpw-ud-wrap) .site-main,
    body:has(.hpw-ud-wrap) article,
    body:has(.hpw-ud-wrap) .entry-content{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important}
    body:has(.hpw-ud-wrap) .hpw-ud-wrap{max-width:none!important;margin:0!important;padding:0!important;color:#172033!important}
    body:has(.hpw-ud-wrap) .hpw-ud-top-title{margin:0 0 7mm!important;padding:0 0 4mm!important;border-bottom:1.2pt solid var(--hpw-brand-deep)!important;break-after:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-top-title:before{content:"PROPERTY BRIEF";display:block;margin-bottom:2mm;color:#b7791f;font-size:7.5pt;font-weight:950;letter-spacing:.18em;text-transform:uppercase}
    body:has(.hpw-ud-wrap) .hpw-ud-top-title h1{margin:0!important;max-width:150mm!important;color:#073b2d!important;font-size:18pt!important;line-height:1.18!important;font-weight:950!important;letter-spacing:-.02em!important}
    body:has(.hpw-ud-wrap) .hpw-ud-layout{display:grid!important;grid-template-columns:78mm 1fr!important;gap:7mm!important;align-items:start!important;page-break-after:always!important;break-after:page!important}
    body:has(.hpw-ud-wrap) .hpw-ud-left,
    body:has(.hpw-ud-wrap) .hpw-ud-right{display:block!important;position:static!important;width:auto!important;height:auto!important;min-width:0!important}
    body:has(.hpw-ud-wrap) .hpw-ud-cover-wrap{height:64mm!important;margin:0 0 4mm!important;border:1pt solid #dce7e1!important;border-radius:5mm!important;overflow:hidden!important;box-shadow:none!important;background:#eef6f1!important;break-inside:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-cover{display:block!important;width:100%!important;height:64mm!important;object-fit:cover!important;background:#eef6f1!important}
    body:has(.hpw-ud-wrap) .hpw-ud-badge,
    body:has(.hpw-ud-wrap) .hpw-ud-ribbon{font-size:7pt!important;padding:2mm 3mm!important;border-radius:999px!important;box-shadow:none!important}
    body:has(.hpw-ud-wrap) .hpw-ud-specs-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:2.6mm!important;margin:0!important}
    body:has(.hpw-ud-wrap) .hpw-ud-spec-item{min-height:21mm!important;margin:0!important;padding:3mm!important;border:1pt solid #e2ebe6!important;border-radius:4mm!important;background:#fbfdfc!important;box-shadow:none!important;break-inside:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-spec-icon{font-size:12pt!important;margin-bottom:1mm!important}
    body:has(.hpw-ud-wrap) .hpw-ud-spec-label{font-size:6.8pt!important;color:#64748b!important;line-height:1.1!important}
    body:has(.hpw-ud-wrap) .hpw-ud-spec-val{font-size:9.5pt!important;line-height:1.18!important;color:#111827!important}
    body:has(.hpw-ud-wrap) .hpw-ud-spec-item--utility small{font-size:6.5pt!important;line-height:1.1!important;color:#047857!important}
    body:has(.hpw-ud-wrap) .hpw-ud-project-ref,
    body:has(.hpw-ud-wrap) .hpw-ud-address{margin:0 0 3mm!important;color:#475569!important;font-size:8.6pt!important;line-height:1.35!important}
    body:has(.hpw-ud-wrap) .hpw-ud-price-block{margin:0 0 4mm!important;padding:4mm 5mm!important;border:1pt solid #dfe9e4!important;border-radius:5mm!important;background:linear-gradient(110deg,#f7fffb 0%,#ffffff 66%,#fff7df 100%)!important;box-shadow:none!important;break-inside:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-price{font-size:24pt!important;line-height:1!important;color:#064e3b!important;font-weight:950!important}
    body:has(.hpw-ud-wrap) .hpw-ud-price-unit{font-size:9pt!important;color:#475569!important}
    body:has(.hpw-ud-wrap) .hpw-ud-price-orig,
    body:has(.hpw-ud-wrap) .hpw-ud-promo-dates{font-size:7.2pt!important;line-height:1.25!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-card{margin:0!important;padding:5mm!important;border:0!important;border-radius:6mm!important;background:linear-gradient(140deg,#063725 0%,#07583b 40%,#f8fffb 40.4%,#fff 100%)!important;box-shadow:none!important;break-inside:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-head{min-height:31mm!important;max-width:56%!important;color:#fff!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-head span{font-size:7pt!important;letter-spacing:.12em!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-head strong{font-size:12pt!important;line-height:1.12!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-head b{font-size:22pt!important;line-height:1!important;color:#fff6bf!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-head small{font-size:7pt!important;color:#d1fae5!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-rows{gap:2mm!important;margin-top:4mm!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-rows>div{min-height:auto!important;padding:2.8mm 3.2mm!important;border-radius:3mm!important;font-size:8pt!important;line-height:1.2!important;box-shadow:none!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-rows strong{font-size:9.5pt!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-box{margin-top:3mm!important;padding:3mm!important;border-radius:4mm!important;background:rgba(255,255,255,.9)!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-title{font-size:8.4pt!important;margin-bottom:2mm!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:2mm!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-item{padding:2.8mm!important;border-radius:3mm!important;font-size:7.5pt!important;line-height:1.2!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-item strong{font-size:8.8pt!important}
    body:has(.hpw-ud-wrap) .hpw-ud-utility-item small{font-size:6.8pt!important}
    body:has(.hpw-ud-wrap) .hpw-ud-fee-notes{margin-top:2.5mm!important;padding:2.5mm 3mm 2.5mm 7mm!important;border-radius:3mm!important;font-size:7.2pt!important;line-height:1.25!important;background:#fff8e6!important;border:1pt solid #f3d59b!important;color:#71430f!important}
    body:has(.hpw-ud-wrap) .hpw-ud-full-section{margin:0 0 6mm!important;padding:6mm!important;border:1pt solid #dce7e1!important;border-radius:6mm!important;background:#fff!important;box-shadow:none!important;break-inside:auto!important;page-break-inside:auto!important}
    body:has(.hpw-ud-wrap) .hpw-ud-full-map-section{break-before:page!important;page-break-before:always!important;break-after:page!important;page-break-after:always!important}
    body:has(.hpw-ud-wrap) .hpw-ud-full-title{margin:0 0 4mm!important;padding:0 0 3mm!important;border-bottom:1pt solid #e2ebe6!important;color:#064e3b!important;font-size:18pt!important;line-height:1.15!important;font-weight:950!important}
    body:has(.hpw-ud-wrap) .hpw-ud-map-full,
    body:has(.hpw-ud-wrap) .hpw-ud-map{height:124mm!important;min-height:124mm!important;border-radius:5mm!important;box-shadow:none!important;border:1pt solid #d6e2dc!important;overflow:hidden!important}
    body:has(.hpw-ud-wrap) .hpw-ud-map-link{margin-top:4mm!important;display:inline-block!important;padding:2.5mm 5mm!important;border-radius:3mm!important;background:#ecfdf5!important;border:1pt solid #b7e4ce!important;color:#065f46!important;font-weight:800!important;text-decoration:none!important}
    body:has(.hpw-ud-wrap) .hpw-ud-full-desc-section{break-before:page!important;page-break-before:always!important}
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full{font-size:10.2pt!important;line-height:1.68!important;color:#273244!important;max-height:none!important;overflow:visible!important}
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full h2,
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full h3{margin:6mm 0 2.4mm!important;color:#172033!important;font-size:15pt!important;line-height:1.18!important;break-after:avoid!important;page-break-after:avoid!important}
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full p{margin:0 0 3.2mm!important;orphans:3;widows:3}
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full ul{margin:2mm 0 4mm 7mm!important}
    body:has(.hpw-ud-wrap) .hpw-ud-desc-full li{margin:0 0 1.4mm!important}
}

/* v3.9.143 — Branded no-image placeholder responsive polish */
@media (max-width: 768px) {
    .hpw-ud-cover-placeholder { height:260px!important; min-height:260px!important; }
    .hpw-ud-cover-placeholder-copy { padding:20px 18px; border-radius:20px; }
    .hpw-ud-cover-placeholder-copy strong { font-size:clamp(28px,9vw,38px); }
}
@media (max-width: 500px) {
    .hpw-ud-cover-placeholder { height:220px!important; min-height:220px!important; }
    .hpw-ud-cover-placeholder::before { inset:12px; border-radius:14px; }
    .hpw-ud-cover-placeholder-copy { width:min(82%,270px); padding:18px 16px; gap:6px; }
    .hpw-ud-cover-placeholder-kicker { font-size:9px; letter-spacing:.14em; }
    .hpw-ud-cover-placeholder-copy small { font-size:11.5px; }
}

/* v3.9.226 — Unit detail branded social share bar */
.hpw-share-bar{
    display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0 14px;padding:10px 12px;
    border:1px solid rgba(var(--hpw-brand-deep-rgb),.10);border-radius:999px;background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(240,253,244,.92));
    box-shadow:0 12px 28px rgba(12,55,39,.07);width:max-content;max-width:100%;
}
.hpw-share-label{font-size:12px;font-weight:950;color:var(--hpw-brand-deep);letter-spacing:.02em;margin:0 2px 0 1px}
.hpw-share-btn{width:34px;height:34px;border-radius:999px;border:0!important;display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer;text-decoration:none!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif;font-size:14px;font-weight:950;line-height:1;box-shadow:0 8px 18px rgba(15,23,42,.14);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;padding:0!important;position:relative;overflow:hidden}
.hpw-share-btn span{position:relative;z-index:1;display:block;line-height:1;transform:translateY(-.5px)}
.hpw-share-btn:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(15,23,42,.18);filter:saturate(1.08)}
.hpw-share-btn:focus-visible{outline:3px solid rgba(20,184,166,.35);outline-offset:3px}
.hpw-share-facebook{background:#1877f2;font-size:22px;font-family:Arial,Helvetica,sans-serif}.hpw-share-facebook span{font-weight:900;transform:translate(1px,2px)}
.hpw-share-x{background:#000;font-size:15px}.hpw-share-x span{font-weight:950;letter-spacing:-.04em}
.hpw-share-messenger{background:linear-gradient(135deg,#00b2ff,#006aff 45%,#a033ff 72%,#ff5280);font-size:17px}.hpw-share-messenger::before{content:"";position:absolute;inset:7px 6px 8px;border-radius:50% 50% 50% 18%;background:rgba(255,255,255,.20)}
.hpw-share-line{background:#06c755;font-size:9px;letter-spacing:-.05em}.hpw-share-line span{font-weight:950}
.hpw-share-whatsapp{background:#25d366;font-size:16px}.hpw-share-whatsapp::before{content:"";position:absolute;inset:6px;border:2px solid rgba(255,255,255,.88);border-radius:999px}.hpw-share-whatsapp span{transform:translate(1px,0)}
.hpw-share-copy{background:#64748b;font-size:15px}
.hpw-share-print{background:#475569;font-size:16px}
.hpw-share-status{min-width:62px;color:#047857;font-size:12px;font-weight:900;white-space:nowrap}
@media(max-width:640px){.hpw-share-bar{border-radius:18px;width:100%;gap:7px}.hpw-share-label{width:100%;margin-bottom:1px}.hpw-share-btn{width:36px;height:36px}.hpw-share-status{flex:1}}
@media(prefers-reduced-motion:reduce){.hpw-share-btn{transition:none}.hpw-share-btn:hover{transform:none}}

/* v3.9.227 — Unit detail gallery: single-row carousel + hero dots */
.hpw-ud-gallery-stage{position:relative;background:#082f23!important}
.hpw-ud-gallery-stage .hpw-ud-cover{transition:opacity .18s ease,transform .32s ease}
.hpw-ud-gallery-dots{position:absolute;left:16px;bottom:14px;z-index:5;display:flex;align-items:center;justify-content:flex-start;gap:8px;max-width:calc(100% - 150px);padding:7px 10px;border-radius:999px;background:rgba(4,18,14,.22);backdrop-filter:blur(7px);box-shadow:0 10px 26px rgba(0,0,0,.16)}
.hpw-ud-gallery-dot{width:10px;height:10px;min-width:10px;border:2px solid rgba(255,255,255,.76)!important;border-radius:999px;background:rgba(255,255,255,.42)!important;padding:0!important;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.22);transition:width .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}
.hpw-ud-gallery-dot.is-active{width:24px;background:#ef4444!important;border-color:#ef4444!important;transform:translateY(-1px)}
.hpw-ud-gallery-shell{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;margin:0 0 22px;padding:8px 0}
.hpw-ud-gallery{display:flex!important;grid-template-columns:none!important;gap:8px!important;margin:0!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;padding:2px;scroll-behavior:smooth}
.hpw-ud-gallery::-webkit-scrollbar{display:none}
.hpw-ud-gallery-item{flex:0 0 calc((100% - 24px)/4);height:74px;aspect-ratio:auto!important;border:0!important;border-radius:8px!important;overflow:hidden;cursor:pointer;scroll-snap-align:start;background:#e8f2ed!important;padding:0!important;box-shadow:0 0 0 1px rgba(var(--hpw-brand-deep-rgb),.10);transition:box-shadow .18s ease,transform .18s ease,opacity .18s ease}
.hpw-ud-gallery-item img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:8px!important;display:block;transition:transform .24s ease!important}
.hpw-ud-gallery-item:hover{transform:translateY(-1px);box-shadow:0 0 0 2px rgba(16,185,129,.45),0 10px 20px rgba(12,55,39,.12)!important}
.hpw-ud-gallery-item:hover img{transform:scale(1.045)!important}
.hpw-ud-gallery-item.is-active{box-shadow:0 0 0 3px #ef4444,0 12px 24px rgba(239,68,68,.20)!important}
.hpw-ud-gallery-nav{width:38px;height:58px;border:0!important;border-radius:18px;background:linear-gradient(135deg,#ffffff,#f0fdf4)!important;color:var(--hpw-brand-deep)!important;font-size:34px;font-weight:900;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 28px rgba(12,55,39,.12);padding:0 0 4px!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.hpw-ud-gallery-nav:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(12,55,39,.18);background:#10b981!important;color:#052e22!important}
.hpw-ud-gallery-nav:focus-visible,.hpw-ud-gallery-dot:focus-visible,.hpw-ud-gallery-item:focus-visible{outline:3px solid rgba(239,68,68,.28);outline-offset:3px}
@media(max-width:640px){.hpw-ud-gallery-dots{bottom:10px;gap:6px;max-width:calc(100% - 92px);padding:6px 8px}.hpw-ud-gallery-dot{width:8px;height:8px;min-width:8px}.hpw-ud-gallery-dot.is-active{width:20px}.hpw-ud-gallery-shell{grid-template-columns:34px minmax(0,1fr) 34px;gap:6px;margin-bottom:18px}.hpw-ud-gallery-item{flex-basis:calc((100% - 16px)/3);height:64px}.hpw-ud-gallery-nav{width:32px;height:52px;border-radius:14px;font-size:30px}}
@media(prefers-reduced-motion:reduce){.hpw-ud-gallery-stage .hpw-ud-cover,.hpw-ud-gallery-dot,.hpw-ud-gallery-item,.hpw-ud-gallery-item img,.hpw-ud-gallery-nav,.hpw-ud-gallery-item__zoom,.hpw-ud-gallery-item__zoom svg{transition:none!important}.hpw-ud-gallery{scroll-behavior:auto}.hpw-ud-gallery-item:hover,.hpw-ud-gallery-nav:hover,.hpw-ud-gallery-dot.is-active{transform:none}.hpw-ud-gallery-item:hover .hpw-ud-gallery-item__zoom svg{transform:none}}

/* ---- PAGINATION (v3.83.0) — [propworks_listings] per_page ---- */
.hpw-ls-pagination {
    display:         flex;
    flex-wrap:       wrap;
    align-items:     center;
    justify-content: space-between;
    gap:             12px;
    margin-top:      28px;
    padding-top:     18px;
    border-top:      1px solid #e5e7eb;
}
.hpw-ls-pg-info { font-size:13px; color:#6b7280; }
.hpw-ls-pg-btns { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.hpw-ls-pg-btn {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    min-width:       36px;
    height:          36px;
    padding:         0 11px;
    border:          1.5px solid #d1d5db;
    border-radius:   8px;
    background:      #fff;
    color:           #374151;
    font-size:       13px;
    font-weight:     700;
    text-decoration: none;
    transition:      all .18s;
}
a.hpw-ls-pg-btn:hover { border-color:var(--hpw-brand-ink); background:#f0faf5; color:var(--hpw-brand-ink); }
.hpw-ls-pg-btn.is-current {
    border-color: var(--hpw-brand-ink);
    background:   var(--hpw-brand-ink);
    color:        #fff;
    cursor:       default;
}
.hpw-ls-pg-btn.is-disabled { opacity:.45; cursor:not-allowed; }
.hpw-ls-pg-gap { padding:0 2px; color:#9ca3af; font-weight:700; }
@media (max-width:640px) {
    .hpw-ls-pagination { justify-content:center; }
    .hpw-ls-pg-info    { width:100%; text-align:center; }
}

/* v4.13.0: "อีกประมาณ ..." ต่อท้ายวันที่ห้องจะว่าง — คนตัดสินใจจาก
   "รออีกนานไหม" มากกว่าจากตัวเลขวันที่ที่ต้องเอาไปลบเองในหัว */
.hpw-ud-unavailable-date .hpw-ud-free-in {
    display:inline-block; margin-left:6px; padding:2px 9px; border-radius:999px;
    background:rgba(194,65,12,.10); font-size:12px; font-weight:900;
}
/* v4.13.0: ว่างภายใน 90 วัน = ข่าวดีของคนที่กำลังหา ยกระดับให้เห็นชัดกว่า */
.hpw-ls-badge--lease-end.is-soon { background:#dcfce7 !important; color:#15803d !important; }
/* v4.39.0: "เข้าอยู่ได้ <วัน>" — ห้องว่างแล้วแต่ยังเข้าไม่ได้จนถึงวันนั้น
   จานสีฟ้าอมเขียว แยกจาก "คาดว่าจะว่าง" (ส้ม) ให้ชัด เพราะสองป้ายตอบคนละคำถาม
   ★ ป้ายนี้กับ lease-end ไม่มีทางขึ้นพร้อมกัน (ทะเบียนสถานะแยกกันอยู่)
   จึงใช้มุมเดียวกันของการ์ดได้โดยไม่ทับกัน */
.hpw-ls-badge--avail-from { position:absolute; bottom:8px; right:8px; z-index:3; background:#0891b2; color:#fff;
    border:none; font-size:10px; padding:3px 7px; border-radius:6px; font-weight:700; }
.hpw-ud-availfrom-date { margin-top:6px; font-size:13px; font-weight:700; color:#155e75; }
.hpw-ud-availfrom-date .hpw-ud-free-in { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px;
    background:#cffafe; color:#155e75; font-size:11.5px; font-weight:700; }

/* ── v4.25.1: ริบบิ้นสถานะทั่วไปบนรูปหน้ารายละเอียดห้อง ──────────
   ใช้เรขาคณิตเดียวกับริบบิ้น "จองก่อนสร้าง" (แถบสี่เหลี่ยมหมุน 45°)
   เพราะรับคำยาวได้โดยไม่ต้องย่อฟอนต์ · สีมาทางตัวแปร --st จากทะเบียนสถานะ
   ไฟล์นี้จึงไม่มีชื่อสถานะอยู่เลย สถานะใหม่ได้ริบบิ้นเองทันที */
.hpw-ud-cover-status-ribbon{
    position:absolute; top:0; right:0; z-index:6;
    width:132px; height:132px; overflow:hidden; pointer-events:none;
}
.hpw-ud-cover-status-ribbon span{
    position:absolute; top:26px; right:-40px; width:180px;
    padding:6px 0;
    transform:rotate(45deg); transform-origin:center;
    background:var(--st,#64748b);
    box-shadow:0 6px 16px rgba(15,23,42,.28);
    color:#fff; font-size:12.5px; font-weight:1000; letter-spacing:.01em;
    text-align:center; text-shadow:0 2px 4px rgba(0,0,0,.22);
}

/* ═══════════════════════════════════════════════════════════════════════
   ★★★ v4.53.1 — แถบจองบนมือถือ (หน้าห้อง/ล็อค)
   -----------------------------------------------------------------------
   สองแถว: [ข้อมูล | ปุ่มลัด] แล้ว [ปุ่มจองเต็มความกว้าง]
   เหตุผลของโครงนี้อยู่ในคอมเมนต์ของ markup ใน shortcode-listings.php

   ★ --hpw-ud-bar-h เป็น "เลขที่มีชื่อ" ตัวเดียวของความสูงแถบ — ทั้งตัวแถบเอง
     และระยะยกปุ่มลอยของปลั๊กอินติดต่อ อ่านจากตัวนี้ที่เดียว · เขียนเลขซ้ำ
     คนละที่เมื่อไหร่ วันที่แถบสูงขึ้นปุ่มลอยจะทับทันทีโดยไม่มีอะไรฟ้อง
     (บทเรียน v4.39.1 — สำเนาของกติกาในรูปตัวเลขดิบ)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    /* ★ ความสูงแถบ "ประกอบจากส่วนของมันเอง" ไม่ใช่ตัวเลขที่วัดแล้วจดไว้ —
       ทุกตัวเลขข้างล่างถูกใช้จริงในกฎที่วาดแถบด้วย ถ้าแก้ตัวไหน ความสูงที่
       ปุ่มลอยอ่านไปใช้ก็ขยับตามเอง · เขียน 128px ทิ้งไว้เฉย ๆ เมื่อไหร่
       มันจะเพี้ยนจากความจริงทันทีที่มีคนแก้ padding (เจอจริงตอนวัดรอบแรก:
       ประกาศไว้ 128px แต่แถบสูงจริง 138px) */
    --hpw-ud-bar-pad: 9px;
    --hpw-ud-bar-gap: 9px;
    --hpw-ud-bar-row: 60px;   /* แถวบน: ป้ายสถานะ + ราคา */
    --hpw-ud-bar-cta: 50px;   /* ปุ่มจอง */
    --hpw-ud-bar-h: calc(var(--hpw-ud-bar-pad) * 2 + var(--hpw-ud-bar-row)
                       + var(--hpw-ud-bar-gap) + var(--hpw-ud-bar-cta) + 1px);
}

.hpw-ud-sticky-bar {
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-areas: "info quick" "cta cta" !important;
    align-items: center;
    gap: var(--hpw-ud-bar-gap) 10px !important;
    /* ★ ความสูงมาจากส่วนประกอบของตัวเอง (padding + min-height ของสองแถว)
       **ไม่ได้อ่าน --hpw-ud-bar-h กลับเข้ามา** โดยตั้งใจ — ตัวแปรนั้นเป็น
       "ขาออก" สำหรับคนอื่น (ปุ่มลอย · ระยะเว้นท้ายหน้า) ถ้าแถบอ่านมันเอง
       สคริปต์ที่เขียนค่ากลับจะกลายเป็นวงวนกับ ResizeObserver ทันที */
    padding: var(--hpw-ud-bar-pad) 12px !important;
    padding-bottom: calc(var(--hpw-ud-bar-pad) + env(safe-area-inset-bottom, 0px)) !important;
    background: linear-gradient(180deg,#fff 0%,#f6fbf8 100%);
    border-top: 1px solid #dbeae3;
    box-shadow: 0 -10px 30px rgba(8,47,35,.15);
}

.hpw-ud-sticky-info  { grid-area: info; min-height: var(--hpw-ud-bar-row); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.hpw-ud-sticky-quick { grid-area: quick; display: flex; align-items: center; gap: 8px; }

/* ป้ายสถานะ — สีมาจากทะเบียนผ่าน .hpw-ls-badge--<คีย์> ที่ระบบสร้างให้แล้ว */
.hpw-ud-sticky-status { font-size: 10.5px !important; padding: 2px 8px !important; line-height: 1.35; }
.hpw-ud-sticky-status i { font-style: normal; }

/* ราคา: มีป้ายกำกับ ตัวเลขจึงอ่านออกว่าเป็น "ค่าเช่าต่อเดือน" ไม่ใช่เลขลอย */
.hpw-ud-sticky-money       { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; min-width: 0; }
.hpw-ud-sticky-money small { flex: 0 0 100%; color: #6b7f76; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.hpw-ud-sticky-money b     { color: #0b6042; font-size: 22px; font-weight: 950; line-height: 1.1; letter-spacing: -.02em; }
.hpw-ud-sticky-money del   { color: #9aa8a2; font-size: 12.5px; font-weight: 800; text-decoration-color: #ef4444; text-decoration-thickness: 2px; }

/* ★ ปุ่มหลักได้บรรทัดของตัวเอง — ป้ายยาวแค่ไหนก็ไม่ล้นไปทับของข้าง ๆ อีก */
.hpw-ud-sticky-btn--reserve {
    grid-area: cta;
    display: flex !important; align-items: center; justify-content: center; gap: 8px;
    width: 100%; max-width: none !important;
    min-height: var(--hpw-ud-bar-cta);
    padding: 11px 16px !important;
    border-radius: 14px !important;
    white-space: normal;
    /* ★ ป้ายยาวที่ตัดสองบรรทัดต้องแบ่งให้พอ ๆ กัน ไม่ใช่บรรทัดบนยาวเต็ม
       แล้วเหลือคำเดียวห้อยอยู่บรรทัดล่าง (หัวข้อกำพร้าฉบับปุ่ม) */
    text-wrap: balance;
    font-size: 15.5px; font-weight: 950; letter-spacing: .01em; line-height: 1.2;
    text-align: center;
}
.hpw-ud-sticky-btn--reserve span { min-width: 0; }
.hpw-ud-sticky-btn--reserve b    { font-size: 17px; font-weight: 900; line-height: 1; }

/* จอกว้างขึ้นแต่ยังเห็นแถบอยู่ (แท็บเล็ต) — ปุ่มไม่ต้องยาวเต็มจอ อ่านง่ายกว่า */
@media (min-width: 620px) {
    .hpw-ud-sticky-bar { justify-content: center; }
    .hpw-ud-sticky-btn--reserve { max-width: 420px !important; margin: 0 auto; }
}

/* ★★ ไอคอนปุ่มลัดเป็น SVG อยู่ในปุ่มเอง ไม่ใช่อีโมจิใน ::before ของ CSS
   — อีโมจิ ☎/📞 ถูกวาดเป็นกลิฟขาวดำบนหลายเครื่อง ผลคือไอคอนสีเข้มบนพื้น
   เขียวเข้มของปุ่ม "โทร" ซึ่งแทบมองไม่เห็น (เห็นในภาพที่ผู้ใช้ส่งมาจริง)
   ★ กติกาเดียวกับ hpw_action_icon() ฝั่งระบบจัดการ (บทเรียน v4.30.0):
     ไอคอนที่เก็บไว้คนละที่กับปุ่ม คือไอคอนที่วันหนึ่งจะไม่ตรงกับปุ่ม */
.hpw-ud-sticky-btn--map::before,
.hpw-ud-sticky-btn--phone::before { content: none !important; }
.hpw-ud-sticky-quick svg {
    display: block; width: 22px; height: 22px;
    fill: none; stroke: #fff; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ★ แถบสูงขึ้นแล้ว เนื้อหาท้ายหน้าจึงต้องมีที่ว่างพอที่จะเลื่อนพ้นแถบได้
   — ระยะนี้อ่านจากความสูงแถบตัวเดียวกัน ไม่ใช่ตัวเลขที่เดาเอง */
@media (max-width: 900px) {
    .hpw-ud-wrap { padding-bottom: calc(var(--hpw-ud-bar-h) + env(safe-area-inset-bottom, 0px) + 20px); }
}

/* ★★ ปุ่มลอยของปลั๊กอินติดต่อ (Chaty) เกาะขอบล่างเหมือนกัน จึงทับแถบนี้เสมอ
   — ยกขึ้นเหนือแถบ เฉพาะหน้ารายละเอียดห้อง/ล็อค และเฉพาะช่วงจอที่แถบโผล่จริง
   ★ ถ้าไม่ได้ติดตั้งปลั๊กอินนั้น selector นี้ไม่แมตช์อะไรเลย = ไม่มีผลข้างเคียง
   ★ ระยะยกอ่านจาก --hpw-ud-bar-h ตัวเดียวกับความสูงแถบ ไม่ใช่เลขที่เดาเอง */
@media (max-width: 900px) {
    body:has(.hpw-ud-wrap) .chaty-widget,
    body:has(.hpw-ud-wrap) [id^="chaty-widget"] {
        bottom: calc(var(--hpw-ud-bar-h) + env(safe-area-inset-bottom, 0px) + 10px) !important;
    }
}
