/* property-bundle-nav.css - สร้างอัตโนมัติจาก navbar-desktop.css, contact-us.css, contact-us-cta.css (App\Support\CssBundle) ห้ามแก้ไฟล์นี้ แก้ไฟล์ต้นทางแทน */
/* ---- navbar-desktop.css ---- */
/* ─────────────────────────────────────────────────────────────────────────────
   Property navbar - desktop / laptop (>= 1200px). Phone + tablet markup is untouched.
   Ideas taken from Agoda / DDproperty / Fastwork (user, 2026-11-06):
   - "ค้นหา" opens a quick-search panel (the same smart search as the home hero) from any page, "/" key too
   - "ดูตามประเภท" is a mega menu: types with listing counts + popular provinces (hover or click)
   - one soft hover surface glides between the center items; the current page keeps its underline
   - the header is flat at the top of the page and gets a soft shadow once the page scrolls
   - chat / bell show a styled tooltip instead of the slow native title
   Behaviour: assets/js/navbar-desktop.js
   ───────────────────────────────────────────────────────────────────────────── */

@media (min-width: 1200px) {
    /* ── Header elevation: hairline at the top, soft shadow after scrolling (no height change = nothing jumps) ── */
    .property-navbar.shadow-sm {
        box-shadow: none !important;
        transition: box-shadow .2s ease;
    }

    .property-navbar.shadow-sm.is-scrolled {
        box-shadow: 0 10px 24px -18px rgba(15, 39, 27, .42), 0 1px 2px rgba(15, 39, 27, .04) !important;
    }

    /* ── Center items ── */
    #mainNavbar [data-nvd-nav] { gap: 2px; }

    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link {
        position: relative;
        z-index: 1;
        gap: 7px;
        padding: 0 .8rem !important;
        border: 0;
        border-radius: 10px;
        background: transparent;
        font-size: 15px;
        transition: color .15s ease, background-color .15s ease;
    }

    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link > .bi:not(.navbar-type-chevron) { font-size: 16px; }
    #mainNavbar [data-nvd-nav] .navbar-type-chevron { margin-left: -1px; }
    #mainNavbar [data-nvd-nav] .navbar-type-chevron::before { transition: transform .2s ease; }

    /* hover surface without JS; the glide below takes over once navbar-desktop.js runs */
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link:hover,
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link[aria-expanded="true"] {
        background: var(--theme-primary-light, #e3f3e9);
        color: var(--theme-primary) !important;
    }

    #mainNavbar [data-nvd-nav].nvd-has-glide > .nav-item > .nav-link:hover:not([aria-expanded="true"]) {
        background: transparent;
    }

    /* property.css grows an underline under the hovered link - the glide is the hover now, so only the
       current page keeps a bar: short, rounded, just under the label (inside the header, not on its bottom
       edge - there it sat 17px from the text and merged into the hero photo; user, 2026-11-06) */
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link::after { display: none; }
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link.active { box-shadow: none; }

    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link.active::after {
        content: '';
        display: block;
        position: absolute;
        left: .8rem;
        right: .8rem;
        bottom: 4px;
        width: auto;
        height: 3px;
        margin: 0;
        border: 0;
        border-radius: 3px;
        background: var(--theme-primary);
        transform: none;
        transition: none;
    }

    /* the logo never shrinks to make room (it used to squeeze for owners at 1200-1399) */
    .property-navbar .navbar-brand { flex-shrink: 0; }
}

/* 1200-1399px (container 1140px): an owner's 4 items + chat + bell + name must fit beside the full logo */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link { gap: 6px; padding: 0 .6rem !important; }
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link.active::after { left: .6rem; right: .6rem; }
    #mainNavbar .navbar-cta.ms-xl-3 { margin-left: .5rem !important; }

    #mainNavbar .nvd-nav--compact > .nav-item > .nav-link > .bi:not(.navbar-type-chevron, .bi-search),
    #mainNavbar .nvd-nav--compact .navbar-action-label > .bi { display: none; }

    /* owners have 5 center items: measured 22px over the row without these (the page scrolled sideways at 1200) */
    #mainNavbar .nvd-nav--compact { gap: 0; }
    #mainNavbar .nvd-nav--compact > .nav-item > .nav-link { padding-inline: .45rem !important; }
    #mainNavbar .nvd-nav--compact > .nav-item > .nav-link.active::after { left: .45rem; right: .45rem; }
    .property-navbar .navbar-cta--compact .navbar-account-name { max-width: 6rem; }
}

@media (min-width: 1400px) {
    .property-navbar .navbar-cta--compact .navbar-account-name { max-width: 7.5rem; }

    /* the longest name with 5 items measured 9.7px over the row at 1400+ */
    #mainNavbar .nvd-nav--compact > .nav-item > .nav-link { padding-inline: .7rem !important; }
    #mainNavbar .nvd-nav--compact > .nav-item > .nav-link.active::after { left: .7rem; right: .7rem; }
}

/* ทรัพย์ของฉัน's count sits on the corner like the bell's, not in the row: inline it added 38px and pushed
   the header past its edge the moment a count appeared */
@media (min-width: 1200px) {
    #mainNavbar .nav-link.navbar-action-link .navbar-action-badge {
        position: absolute;
        top: 1px;
        right: -3px;
        z-index: 1;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        font-size: 10px;
    }
}

/* The JS appends the glide to the navbar on every width and keeps the inline width/height of the last hover.
   Below 1200px it must not be a flex item of the header: after a desktop hover and a narrower window it became an
   invisible 131x44 box on a second row and the header grew from 60 to 97px (user, 2026-11-06). */
.nvd-glide { display: none; }

@media (min-width: 1200px) {

    .nvd-glide {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
        width: 0;
        height: 0;
        border-radius: 10px;
        background: var(--theme-primary-light, #e3f3e9);
        opacity: 0;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.22, .8, .24, 1), width .3s cubic-bezier(.22, .8, .24, 1), opacity .16s ease;
        will-change: transform, width;
    }

    .nvd-glide.is-on { opacity: 1; }

    /* ── Panels (quick search + mega menu): drop from the whole header, centred on the page ── */
    #mainNavbar .nvd-dd { position: static; }

    #mainNavbar .nvd-panel {
        --nvd-w: 760px;
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        width: var(--nvd-w);
        max-width: calc(100vw - 32px);
        margin: 0 0 0 calc(var(--nvd-w) / -2);
        padding: 18px;
        border: 1px solid #e0e9e4;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 22px 48px -20px rgba(15, 39, 27, .32), 0 4px 14px rgba(15, 39, 27, .06);
        color: #1f2d25;
        text-align: left;
    }

    /* invisible bridge over the gap under the header: moving the mouse from the item to the panel keeps it open */
    #mainNavbar .nvd-panel::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -18px;
        height: 18px;
    }

    #mainNavbar .nvd-panel.show { animation: nvdPanelIn .18s ease-out; }

    @keyframes nvdPanelIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nvd-panel-head {
        display: block;
        margin: 0 0 8px 10px;
        color: #5f7a6c;
        font-size: 13px;
        font-weight: 700;
        line-height: 18px; /* whole-pixel line heights in the panels: fractional rows (1.4 x 13px) made each
                              row snap differently, so the same pin icon sat .87px off in one row and not the next */
    }

    /* Bootstrap paints .dropdown-item:active solid blue - keep the soft green of the site */
    #mainNavbar .nvd-panel .dropdown-item {
        white-space: normal;
        color: inherit;
    }

    #mainNavbar .nvd-panel .dropdown-item:is(:hover, :focus, :active) {
        background: #f1f7f3;
        color: inherit;
    }

    #mainNavbar .nvd-panel .dropdown-item:focus-visible {
        outline: 2px solid var(--theme-primary);
        outline-offset: -2px;
    }

    /* ── Mega menu: ดูตามประเภท ── */
    #mainNavbar .nvd-mega { padding-bottom: 8px; }

    .nvd-mega-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 232px;
        gap: 0 18px;
    }

    .nvd-mega-col--places {
        padding-left: 18px;
        border-left: 1px solid #edf1ee;
    }

    .nvd-type-list,
    .nvd-place-list {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nvd-type-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2px 6px;
    }

    #mainNavbar .nvd-type {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 7px 10px;
        border-radius: 12px;
    }

    .nvd-type-icon {
        display: flex;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #eef6f1;
        color: var(--theme-primary);
        transition: background-color .15s ease, color .15s ease;
    }

    .nvd-type-icon .bi { font-size: 20px; }

    /* measured at 4x: the briefcase glyph draws .87px above the centre of its tile */
    .nvd-type-icon .bi-briefcase { position: relative; top: 1px; }

    /* layouts/property loads no web font: Thai falls back to Tahoma but digits stay Times New Roman (serif).
       Counts are digits only, so a sans face here changes no Thai letter. */
    .nvd-num { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }

    .nvd-type-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .nvd-type-name {
        color: #1f2d25;
        font-size: 15px;
        font-weight: 600;
        line-height: 21px;
    }

    .nvd-type-count {
        color: #6b7d72;
        font-size: 13px;
        line-height: 18px;
    }

    #mainNavbar .nvd-type:is(:hover, :focus) .nvd-type-icon {
        background: var(--theme-primary);
        color: #fff;
    }

    #mainNavbar .nvd-type:is(:hover, :focus) .nvd-type-name { color: var(--theme-primary); }

    .nvd-type--empty .nvd-type-icon { background: #f3f5f4; color: #93a39a; }
    .nvd-type--empty .nvd-type-name { color: #6b7d72; font-weight: 500; }
    .nvd-type--empty .nvd-type-count { color: #93a39a; }

    #mainNavbar .nvd-place {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 10px;
        border-radius: 10px;
        font-size: 15px;
        line-height: 21px;
    }

    .nvd-place > .bi { flex: 0 0 auto; color: #7f9a8b; font-size: 16px; }

    .nvd-place-name {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nvd-place-count {
        flex: 0 0 auto;
        padding: 1px 8px;
        border-radius: 999px;
        background: #f1f5f2;
        color: #5f7a6c;
        font-size: 12px;
        font-weight: 600;
        line-height: 18px;
    }

    #mainNavbar .nvd-place:is(:hover, :focus) { color: var(--theme-primary); }
    #mainNavbar .nvd-place:is(:hover, :focus) > .bi { color: var(--theme-primary); }
    #mainNavbar .nvd-place:is(:hover, :focus) .nvd-place-count { background: #dff0e6; color: var(--theme-primary); }

    #mainNavbar .nvd-mega-all {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 10px;
        padding: 10px 10px 12px; /* measured: the words sat 1.5px low with 11px / 11px */
        border-top: 1px solid #edf1ee;
        border-radius: 0 0 10px 10px;
        color: var(--theme-primary);
        font-size: 15px;
        font-weight: 600;
        line-height: 21px;
    }

    #mainNavbar .nvd-mega-all:is(:hover, :focus) { color: var(--theme-primary); }
    #mainNavbar .nvd-mega-all > .bi { position: relative; top: 1px; font-size: 16px; transition: transform .18s ease; }
    #mainNavbar .nvd-mega-all:hover > .bi { transform: translateX(3px); }

    /* ── Quick search panel: ค้นหา ── */
    #mainNavbar .nvd-search { --nvd-w: 640px; padding: 16px 18px 14px; }
    #mainNavbar .nvd-search .nvd-panel-head { margin-left: 2px; }

    .nvd-search-row {
        display: flex;
        align-items: stretch;
        gap: 8px;
    }

    .nvd-search-field {
        position: relative;
        flex: 1 1 auto;
        min-width: 0;
    }

    /* search-assistant.js lifts its wrapper to z-index 1060 on focus (for the floating box elsewhere);
       here that would cover the magnifier, and the box lives inside the panel anyway */
    #mainNavbar .nvd-search-field .search-assistant-wrapper { z-index: auto !important; }

    .nvd-search-field > .bi {
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 2;
        color: #7d9187;
        font-size: 18px;
        pointer-events: none;
    }

    #mainNavbar .nvd-search-input {
        width: 100%;
        height: 48px;
        padding: 0 14px 0 44px;
        border: 1.5px solid #d4e2da;
        border-radius: 12px;
        background: #fff;
        color: #1f2d25;
        font-size: 15px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

    #mainNavbar .nvd-search-input::placeholder { color: #8a9a91; }

    #mainNavbar .nvd-search-input:focus {
        border-color: var(--theme-primary);
        outline: 0;
        box-shadow: 0 0 0 4px rgba(3, 84, 50, .12);
    }

    .nvd-search-submit {
        flex: 0 0 auto;
        min-width: 96px;
        height: 48px;
        padding: 0 20px;
        border: 0;
        border-radius: 12px;
        background: var(--theme-primary);
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        transition: background-color .15s ease;
    }

    .nvd-search-submit:hover { background: var(--theme-primary-hover, #024028); }

    .nvd-search-submit:focus-visible {
        outline: 2px solid var(--theme-primary);
        outline-offset: 2px;
    }

    /* ราคา + ขนาดพื้นที่ (quick-range-filters variant nav) ใต้ช่องพิมพ์ */
    .nvd-search-ranges { margin-top: 10px; }

    /* the smart-search history / suggestions box moved in here by the JS: part of the panel, not a floating card */
    #mainNavbar .nvd-search-suggest .search-dropdown-menu {
        position: static;
        margin: 14px 0 0;
        padding: 14px 2px 2px;
        border: 0;
        border-top: 1px solid #edf1ee;
        border-radius: 0;
        box-shadow: none;
        animation: none;
    }

    .nvd-search-tip {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 12px 0 0 2px;
        color: #6b7d72;
        font-size: 13px;
        line-height: 18px;
    }

    .nvd-search-tip kbd {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border: 1px solid #d4e2da;
        border-bottom-width: 2px;
        border-radius: 6px;
        background: #f7faf8;
        color: #3f5448;
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
    }
}

/* ── Icon ↔ label alignment (user, 2026-11-06: "ไอคอนกับตัวอักษรไม่อยู่ระหว่างกลางกัน") ──
   Measured at 4x: the icon's drawn centre vs the BODY of the Thai letters (rows with >= 45% of the densest
   row's ink, so tone marks and upper/lower vowels don't pull it), and that body vs the centre of the surface.
   Before: three layers of nudges (navbar inline -.75px / -.5px / +1px and icon-label-align's .065em) left
   icons .75-1.25px off. Here one explicit value per glyph replaces them on desktop. `top` and
   `inset-block-start` are both set because the older rules use one or the other. */
@media (min-width: 1200px) {
    /* center items: the letters sat 1.25px below the middle of the 44px item - lift the whole row.
       Whole pixels only: fractional offsets snapped differently per element (2.5px lifted the text 2px). */
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link { padding-bottom: 2px !important; }

    #mainNavbar [data-nvd-nav] .navbar-link-label,
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link > .bi,
    #mainNavbar [data-nvd-nav] .navbar-action-label > .bi {
        position: relative;
        top: 0;
        inset-block-start: 0;
    }

    /* measured -.75 / -.75 / -1.25px (icon above the letters) -> 1px down = within .25px */
    #mainNavbar [data-nvd-nav] > .nav-item > .nav-link > :is(.bi-house-door, .bi-house-door-fill, .bi-search, .bi-grid, .bi-list-task, .navbar-type-chevron) { top: 1px; inset-block-start: 1px; }

    /* contact / post / sign in / register (14px labels): the label body sits in the middle already */
    .property-navbar .navbar-cta .navbar-quick-action > :is(.navbar-quick-label, .navbar-account-name),
    .property-navbar .navbar-cta .navbar-quick-action > .bi {
        position: relative;
        top: 0;
        inset-block-start: 0;
    }

    /* measured +.88px (icon below the letters) -> 1px up */
    .property-navbar .navbar-cta .navbar-quick-action > :is(.bi-plus-circle, .bi-box-arrow-in-right, .bi-person-plus) {
        top: -1px;
        inset-block-start: -1px;
    }
}

/* ── Account button (user, 2026-11-06: "ปรับให้สวยงามและทันสมัย น่าใช้ เฟรนลี่") ──
   An account chip: avatar flush in the pill's rounded end (concentric), name, chevron.
   Rest = transparent like the other header actions; hover = the shared soft green;
   open = a white pill with a hairline border and soft shadow, the same surface as the menu card below it,
   so it reads as "this opened that". No lift, no width change between states. */
@media (min-width: 1200px) {
    .property-navbar .navbar-cta .navbar-account-toggle {
        gap: 8px;
        padding: var(--navbar-action-inset) 11px var(--navbar-action-inset) 3px;
        border-radius: 999px;
    }

    .property-navbar .navbar-cta .navbar-account-toggle::before {
        border: 1px solid transparent;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }

    .property-navbar .navbar-cta .navbar-account-toggle[aria-expanded="true"] {
        --navbar-action-fill: #fff;
        color: var(--theme-primary);
    }

    .property-navbar .navbar-cta .navbar-account-toggle[aria-expanded="true"]::before {
        border-color: #cfe2d6;
        box-shadow: 0 8px 18px -10px rgba(3, 84, 50, .42), 0 1px 2px rgba(15, 39, 27, .06);
    }

    .property-navbar .navbar-cta .navbar-account-toggle > :is(.navbar-profile-img, .navbar-profile-initial) {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
        box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #d3e4da;
        transition: box-shadow .15s ease;
    }

    .property-navbar .navbar-cta .navbar-account-toggle:is(:hover, [aria-expanded="true"]) > :is(.navbar-profile-img, .navbar-profile-initial) {
        box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--theme-primary);
    }

    /* Thai initial: Tahoma keeps the looped letters (the loopless fallback drew "บ" like a Latin "U") */
    .property-navbar .navbar-cta .navbar-profile-initial {
        background: linear-gradient(145deg, #0B7A46 0%, #035432 100%);
        color: #fff;
        font-family: Tahoma, "Segoe UI", sans-serif;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        padding-bottom: .1em;
    }

    .property-navbar .navbar-cta .navbar-profile-initial--latin { padding-bottom: 0; padding-top: .08em; }

    .property-navbar .navbar-cta .navbar-account-name { font-weight: 500; }

    /* measured: the name's letters sat .63px below the middle of the pill -> name + chevron 1px up */
    .property-navbar .navbar-cta .navbar-account-toggle > :is(.navbar-account-name, .navbar-account-chevron) {
        position: relative;
        top: -1px;
        inset-block-start: -1px;
    }

    .property-navbar .navbar-cta .navbar-account-chevron {
        color: #7a8a80;
        transition: transform .2s ease, color .15s ease;
    }

    .property-navbar .navbar-cta .navbar-account-toggle:is(:hover, [aria-expanded="true"]) .navbar-account-chevron { color: var(--theme-primary); }

    /* the menu's own avatar initial: same looped face as the button */
    .property-navbar .navbar-cta .navbar-menu-avatar-initial {
        font-family: Tahoma, "Segoe UI", sans-serif;
        font-size: 18px;
        font-weight: 700;
        transform: none;
        padding-bottom: 4px; /* measured at 4x: 0 = 2.1-2.6px low, 4px = .1-.6px */
    }

    .property-navbar .navbar-cta .navbar-menu-avatar-initial--latin { padding-bottom: 0; padding-top: .08em; }

    /* Account menu rows: whole-pixel sizes (were .85rem = 13.6px, .68rem, .92rem...). Fractional row positions
       made the same icon tile sit .75px off its label in some rows and centred in others. */
    .property-navbar .navbar-cta .navbar-menu-profile-name::before { font-size: 11px; line-height: 15px; }
    .property-navbar .navbar-cta .navbar-menu-profile-name { font-size: 15px; line-height: 20px; }
    .property-navbar .navbar-cta .navbar-menu-profile-meta { font-size: 11px; line-height: 15px; }
    .property-navbar .navbar-cta .navbar-menu-section { font-size: 11px; line-height: 16px; }
    .property-navbar .navbar-cta .navbar-menu-item { font-size: 14px; line-height: 20px; }
    .property-navbar .navbar-cta .navbar-menu-label { line-height: 20px; }
    .property-navbar .navbar-cta .navbar-menu-label .mmenu-subtext { font-size: 11px; line-height: 15px; }
    .property-navbar .navbar-cta .navbar-menu-label small { font-size: 12px; line-height: 16px; } /* agent-usability.css: 12px x 1.35 */

    /* agents read 15px rows (agent-usability.css): there the letters sat .75px below the tile's middle in every row */
    .agent-session .property-navbar .navbar-cta .navbar-menu-label { position: relative; top: -1px; }
}

/* ── Tooltip on the icon-only chat / bell buttons (mouse only) ── */
@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
    .navbar-cta [data-nvd-tip]::after {
        content: attr(data-nvd-tip);
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        z-index: 5;
        padding: 5px 10px;
        border-radius: 8px;
        background: #1f2d25;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.4;
        white-space: nowrap;
        opacity: 0;
        transform: translate(-50%, -3px);
        pointer-events: none;
        transition: opacity .14s ease, transform .14s ease;
    }

    .navbar-cta [data-nvd-tip]:hover::after {
        opacity: 1;
        transform: translate(-50%, 0);
        transition-delay: .3s;
    }

    .navbar-cta [data-nvd-tip][aria-expanded="true"]::after { opacity: 0; transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
    .nvd-glide,
    .property-navbar.shadow-sm,
    #mainNavbar [data-nvd-nav] .navbar-type-chevron::before,
    #mainNavbar .nvd-mega-all > .bi { transition: none; }

    #mainNavbar .nvd-panel.show { animation: none; }
    .navbar-cta [data-nvd-tip]::after { transition: none; }

    .property-navbar .navbar-cta .navbar-account-toggle::before,
    .property-navbar .navbar-cta .navbar-account-toggle > :is(.navbar-profile-img, .navbar-profile-initial),
    .property-navbar .navbar-cta .navbar-account-chevron { transition: none; }
}
/* ---- contact-us.css ---- */
/* ============================================================================
   ป๊อปอัป "ติดต่อเรา" - components/contact-us/modal.blade.php + contact-us.js
   จอใหญ่: การ์ดกลางจอ (ขยายนุ่มๆ จากปุ่มที่กด), มือถือ: แผ่นจากล่างจอ ปัดลงเพื่อปิด
   เปิด = .is-open บน .cu-root, ปิด = .is-closing (สั้นกว่า ไม่มีดีเลย์) แล้วซ่อน
   เครื่องที่ปิดแอนิเมชัน: property.css ทำให้ transition จบทันทีเอง - JS ไม่รอ transitionend
   ไม่มีแถบสีขอบซ้าย ไม่ยกการ์ดตอน hover (CLAUDE.md)
   ========================================================================== */

.cu-root {
    --cu-green: #035432;
    --cu-green-2: #0B7A46;
    --cu-ease: cubic-bezier(0.16, 1, 0.3, 1);
    /* การ์ดจอใหญ่: ชะลอตอนท้ายสั้นกว่า --cu-ease ข้อความไม่ค่อยๆ คลานทีละเศษพิกเซลนานหลังการ์ดดูเหมือนหยุดแล้ว */
    --cu-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --cu-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    position: fixed;
    inset: 0;
    z-index: 1085;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--theme-font-family, 'Sarabun', 'Segoe UI', sans-serif);
}
.cu-root[hidden] { display: none; }

.cu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 30, 18, 0.46);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    opacity: 0;
    transition: opacity 0.38s ease;
}
.cu-root.is-open .cu-backdrop { opacity: 1; }

/* ── การ์ด ─────────────────────────────────────────────────────────────── */
.cu-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 80px -20px rgba(2, 40, 24, 0.45), 0 10px 24px -12px rgba(2, 40, 24, 0.25);
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transform-origin: var(--cu-origin, 50% 0%);
    transition: transform 0.42s var(--cu-ease-soft), opacity 0.24s ease;
    /* เลเยอร์เดียวตลอดที่เปิดอยู่: การ์ดอยู่กลางจอที่เศษพิกเซล (สูงไม่ลงตัว) ระหว่างแอนิเมชันเบราว์เซอร์วาดข้อความในเลเยอร์
       พอจบแล้วถอดเลเยอร์ วาดใหม่ลงหน้า ตัวอักษรเลื่อน 1 พิกเซลทีเดียวหลังการ์ดหยุดแล้ว (กล่อง "ชำระเงินผ่าน..." เห็นชัดสุด
       ที่ 1280x851, 1280x900, 1920x1080) - คงเลเยอร์ไว้ = ภาพตอนเล่นกับตอนจบเป็นชุดเดียวกัน ไม่มีจังหวะกระโดด (2026-11-05) */
    will-change: transform, opacity;
    outline: none;
}
.cu-root.is-open .cu-dialog {
    opacity: 1;
    transform: none;
}
/* การ์ดรับโฟกัสตอนเปิดเพื่อพาโฟกัสเข้าป๊อปอัปเท่านั้น - กฎ :focus-visible ของ layouts/property (ทีหลัง สเปกเท่ากัน)
   เคยวาดกรอบสี่เหลี่ยมเขียวเข้มรอบการ์ดเมื่อเปิดด้วยคีย์บอร์ด/หลังกดปุ่ม Esc แยกสองกฎ (:focus-visible ห้ามอยู่ในรายการเดียวกับตัวเลือกอื่น) */
.cu-dialog:focus { outline: none; }
.cu-dialog:focus-visible { outline: none; }
.cu-root.is-closing .cu-dialog {
    transition: transform 0.22s ease-in, opacity 0.2s ease-in;
    transform: translateY(10px) scale(0.97);
    opacity: 0;
}
.cu-root.is-closing .cu-backdrop {
    transition-duration: 0.24s;
    opacity: 0;
}

.cu-grip { display: none; }

/* ── ปก ─────────────────────────────────────────────────────────────── */
.cu-cover {
    position: relative;
    height: 124px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cu-green-2), var(--cu-green));
}
.cu-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
    display: block;
    opacity: 0; /* contact-us.js ใส่ .is-loaded เมื่อรูปโหลดเสร็จ = ค่อยๆ ปรากฏ ไม่โผล่วาบ */
    transform: scale(1.12);
    transition: opacity 0.35s ease, transform 1.4s var(--cu-ease);
}
.cu-cover img.is-loaded { opacity: 0.55; }
.cu-root.is-open .cu-cover img { transform: scale(1); }
.cu-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 85% 0%, rgba(255, 214, 102, 0.28), rgba(255, 214, 102, 0) 60%),
        linear-gradient(180deg, rgba(3, 84, 50, 0.35) 0%, rgba(3, 84, 50, 0.82) 100%);
}

.cu-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.cu-close:hover { background: rgba(255, 255, 255, 0.3); }
.cu-close:active { transform: scale(0.92); }
.cu-close:focus-visible { outline: 3px solid #FFD666; outline-offset: 2px; }
.cu-close .bi { font-family: bootstrap-icons; line-height: 1; }
.cu-close .bi::before { vertical-align: 0; }

/* ── หัว ─────────────────────────────────────────────────────────────── */
.cu-body {
    position: relative;
    padding: 0 20px 22px;
}
.cu-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -54px;
}
.cu-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #E8F5EC;
    box-shadow: 0 0 0 5px #fff, 0 14px 30px -8px rgba(3, 84, 50, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.6s var(--cu-spring) 0.1s, opacity 0.25s ease 0.1s;
}
.cu-root.is-open .cu-avatar { transform: none; opacity: 1; }
.cu-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cu-avatar img.is-loaded { opacity: 1; }
/* น้องแฮปปี้: ภาพเต็มตัว 600x800 - ซูมเข้าครึ่งตัวบน ให้หน้าอยู่กลางวง */
.cu-avatar--mascot {
    background: linear-gradient(160deg, #F2FBF5 0%, #D6EFDF 100%);
}
.cu-avatar--mascot img {
    object-fit: cover;
    object-position: 50% 0%;
    width: 100%;
    height: 100%;
    transform: scale(1.75) translateY(-8%);
    transform-origin: 50% 0%;
}
.cu-avatar-clip {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cu-avatar--initial { background: linear-gradient(145deg, var(--cu-green-2) 0%, var(--cu-green) 100%); }
.cu-initial {
    color: #fff;
    font-family: var(--theme-font-family-heading, 'Prompt', 'Segoe UI', sans-serif);
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1;
    padding-bottom: .1em; /* พยัญชนะไทยนั่งต่ำกว่ากลางกล่องบรรทัด ยกให้อยู่กลางวง (วัดจากพิกเซลจริง) */
}
.cu-initial--latin { padding-bottom: 0; padding-top: .08em; }
/* จุดเขียว "พร้อมคุย" - วงกระเพื่อมเบาๆ */
.cu-avatar-dot {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22C55E;
    box-shadow: 0 0 0 3px #fff;
}
.cu-avatar-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22C55E;
    animation: cu-ping 2.2s ease-out 1s infinite;
}
@keyframes cu-ping {
    0% { transform: scale(1); opacity: 0.55; }
    70%, 100% { transform: scale(2.4); opacity: 0; }
}

.cu-title {
    margin: 14px 0 2px;
    font-family: var(--theme-font-family-heading, 'Prompt', 'Segoe UI', sans-serif);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0F172A;
    letter-spacing: -0.01em;
}
.cu-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cu-green);
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.cu-meta {
    margin: 6px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #475569;
    background: #F1F5F3;
    border-radius: 999px;
    padding: 4px 12px;
    line-height: 1.4;
}
.cu-meta .bi { color: var(--cu-green-2); line-height: 1; }
.cu-meta .bi::before { vertical-align: -0.08em; }

/* ── ช่องทางติดต่อ ───────────────────────────────────────────────────────── */
.cu-list {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cu-row {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid #E5EDE8;
    background: #F8FBF9;
    color: #0F172A;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.cu-row:hover {
    background: #EFF7F2;
    border-color: #CFE3D7;
    color: #0F172A;
}
.cu-row:active { transform: scale(0.985); }
.cu-row:focus-visible { outline: 3px solid rgba(11, 122, 70, 0.45); outline-offset: 2px; }

.cu-row-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -6px rgba(15, 23, 42, 0.35);
    transition: transform 0.25s var(--cu-spring);
}
.cu-row:hover .cu-row-icon { transform: scale(1.07) rotate(-4deg); }
/* ไอคอนในวงอยู่กลางที่พิกเซลจริง: ฟอนต์ค้ำบรรทัดเป็น bootstrap-icons + font-size px จำนวนเต็มคู่ (เหตุผลเต็มใน agent-referral.css) */
.cu-row-icon .bi { font-family: bootstrap-icons; line-height: 1; }
.cu-row-icon .bi::before { vertical-align: 0; }
.cu-row--phone .cu-row-icon { background: linear-gradient(145deg, #0F8A50, var(--cu-green)); }
.cu-row--line .cu-row-icon { background: linear-gradient(145deg, #2EDB72, #06C755); font-size: 22px; }
.cu-row--fb .cu-row-icon { background: linear-gradient(145deg, #3B8DFF, #1877F2); font-size: 20px; }
.cu-row--web .cu-row-icon { background: linear-gradient(145deg, #64748B, #475569); }

.cu-row-text {
    flex: 1 1 9rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.cu-row-label {
    font-size: 0.78rem;
    color: #64748B;
    line-height: 1.3;
}
.cu-row-value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0F172A;
    overflow-wrap: anywhere;
}
.cu-row-value--tel {
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}
.cu-row-go {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.84rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 7px 10px 7px 13px;
    white-space: nowrap;
    line-height: 1.2;
}
.cu-row-go .bi { font-size: 0.75rem; transition: transform 0.2s ease; }
.cu-row:hover .cu-row-go .bi { transform: translateX(2px); }
.cu-row--phone .cu-row-go { background: #DDF1E4; color: var(--cu-green); }
.cu-row--line .cu-row-go { background: #DDF7E7; color: #047A36; }
.cu-row--fb .cu-row-go { background: #E3EEFE; color: #1461C9; }
.cu-row--web .cu-row-go { background: #EEF2F6; color: #334155; }

/* โทรศัพท์สั่นเบาๆ หนึ่งครั้งหลังเปิด - ชวนกดโทร */
.cu-root.is-open .cu-row--phone .cu-row-icon .bi {
    display: inline-block;
    animation: cu-ring 0.9s ease-in-out 0.85s 1 both;
}
@keyframes cu-ring {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(-16deg); }
    30% { transform: rotate(14deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(8deg); }
    75% { transform: rotate(-3deg); }
}

/* ── ชำระเงินผ่านบริษัทเท่านั้น ───────────────────────────────────────────── */
.cu-notice {
    position: relative;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FFF8E7 0%, #FFF1D2 100%);
    border: 1px solid #F8D58A;
    color: #6B4400;
}
.cu-notice-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #FBBF24, #F59E0B);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 6px 14px -6px rgba(217, 119, 6, 0.7);
}
.cu-notice-icon .bi { font-family: bootstrap-icons; line-height: 1; }
.cu-notice-icon .bi::before { vertical-align: 0; }
.cu-notice-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}
.cu-notice-text strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: #4A2F00;
    white-space: nowrap;
}
/* ── เข้าทีละชิ้น: จางเข้าอย่างเดียว ไม่เลื่อน ───────────────────────────────
   ข้อความเคลื่อนไปพร้อมการ์ดชุดเดียว - เคยให้แต่ละแถวเลื่อนขึ้นเองซ้อนกับการ์ดที่กำลังขยาย
   ตัวอักษรจึงไหลคนละทิศและหยุดไม่พร้อมกันจนเกือบ 1 วินาที ดูขยับไม่สมูต (2026-11-05) */
.cu-stagger {
    opacity: 0;
    transition: opacity 0.3s ease;
    transition-delay: calc(0.1s + var(--i, 0) * 0.05s);
}
.cu-root.is-open .cu-stagger { opacity: 1; }
.cu-root.is-closing .cu-stagger { transition-delay: 0s; }

/* ── มือถือ: แผ่นจากล่างจอ ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .cu-root {
        align-items: flex-end;
        padding: 0;
    }
    .cu-dialog {
        max-width: none;
        border-radius: 26px 26px 0 0;
        max-height: 94vh;
        max-height: 94dvh;
        transform: translateY(100%);
        opacity: 1;
        transition: transform 0.5s var(--cu-ease);
    }
    .cu-root.is-open .cu-dialog { transform: translateY(var(--cu-drag, 0px)); }
    .cu-root.is-dragging .cu-dialog { transition: none; }
    .cu-root.is-closing .cu-dialog {
        transition: transform 0.26s cubic-bezier(0.4, 0, 1, 1);
        transform: translateY(100%);
        opacity: 1;
    }
    .cu-grip {
        display: flex;
        justify-content: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3;
        padding: 9px 0 14px;
        touch-action: none;
    }
    .cu-grip span {
        width: 44px;
        height: 5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.75);
    }
    .cu-cover { height: 112px; touch-action: none; }
    .cu-body { padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
    .cu-avatar { width: 92px; height: 92px; }
    .cu-head { margin-top: -50px; }
    .cu-title { font-size: 1.3rem; margin-top: 12px; }
    .cu-notice {
        margin-top: 28px;
        padding: 23px 12px 12px;
        border-radius: 17px;
        background: linear-gradient(145deg, #FFF9EA 0%, #FFF1D4 100%);
    }
    .cu-notice-icon {
        position: absolute;
        top: -18px;
        left: 50%;
        display: flex;
        width: 36px;
        height: 36px;
        transform: translateX(-50%);
        font-size: 16px;
        box-shadow: 0 7px 16px -7px rgba(217, 119, 6, 0.8), 0 0 0 4px #fff;
    }
    .cu-notice-text {
        width: 100%;
        align-items: center;
        gap: 3px;
        line-height: 1.5;
        text-align: center;
    }
    .cu-notice-text strong {
        font-size: clamp(0.7rem, 3.2vw, 0.84rem);
    }
}

@media (max-width: 359.98px) {
    .cu-row { padding: 10px; gap: 10px; }
    .cu-row-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .cu-notice { margin-right: -6px; margin-left: -6px; padding-right: 10px; padding-left: 10px; }
}

/* ปุ่มเปิดบน navbar + แอนิเมชันแนะนำ: contact-us-cta.css */

/* ตัวแทนที่ล็อกอินเห็นข้อมูลของตัวเอง - บอกว่าลูกค้าเห็นแบบนี้ + ลิงก์ไปแก้ */
.cu-self-note {
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: #F1F5F9;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.45;
}
.cu-self-note .bi { color: #64748B; line-height: 1; }
.cu-self-note span { flex: 1 1 10rem; min-width: 0; }
.cu-self-note a {
    font-weight: 700;
    color: #035432;
    text-decoration: none;
    white-space: nowrap;
}
.cu-self-note a:hover { text-decoration: underline; }
/* ---- contact-us-cta.css ---- */
/* Contact uses the shared navbar action style. These rules add the one-time
   introduction and keep room for the logo and the other actions on phones. */
@media (max-width: 439.98px) {
    .property-navbar .navbar-quick-action.cu-cta--header {
        --navbar-action-inline-inset: 6px;
        --navbar-action-fill: var(--theme-primary-light);
        width: 44px;
        padding: 0;
        border-radius: 50%;
        color: var(--theme-primary);
    }

    .cu-cta--header .cu-cta-label { display: none; }

    .cu-cta--header > .bi-headset {
        position: relative;
        inset-block-start: 1px;
    }
}

@keyframes cu-ring {
    0%, 58%, 100% { transform: rotate(0deg); }
    6% { transform: rotate(-18deg); }
    13% { transform: rotate(16deg); }
    20% { transform: rotate(-13deg); }
    27% { transform: rotate(10deg); }
    34% { transform: rotate(-6deg); }
    41% { transform: rotate(3deg); }
}
.cu-cta.is-attn > .bi { animation: cu-ring 1.5s ease-in-out 1; }

@media (hover: hover) and (pointer: fine) {
    .cu-cta:not(.is-attn):hover > .bi { animation: cu-ring 1.1s ease-in-out 1; }
}

.cu-hint {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1031;
    max-width: calc(100vw - 16px);
    padding: 9px 14px;
    border-radius: 14px;
    background: #035432;
    background: linear-gradient(180deg, #0B7A46 0%, #035432 100%);
    color: #fff;
    font-family: var(--theme-font-family, 'Sarabun', 'Segoe UI', sans-serif); /* ตัวเดียวกับป๊อปอัปติดต่อเรา */
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 12px 28px -10px rgba(2, 40, 24, 0.6);
    opacity: 0;
    transform: translateY(-6px) scale(0.92);
    transform-origin: var(--cu-hint-x, 50%) 0;
    transition: opacity 0.2s ease, transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.cu-hint.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.cu-hint::before {
    content: '';
    position: absolute;
    top: -5px;
    left: var(--cu-hint-x, 50%);
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 2px;
    background: #0B7A46;
    transform: rotate(45deg);
}
.cu-hint b { font-weight: 800; }
