/* =====================================================================================
   HomePost UI: header, mobile drawer, homepage search + advanced search, footer,
   content pages, error page. Loaded after style.css.
   ===================================================================================== */
:root {
    --hp-brand: #EB6753;
    --hp-brand-dark: #d9533f;
    --hp-ink: #181A20;
    --hp-ink-2: #22252e;
    --hp-line: rgba(255, 255, 255, 0.08);
    --hp-muted: #a8acb7;
    --hp-header-h: 72px;
}

/* ------------------------------------------------------------------ Header */
.hpu-header {
    position: relative;
    z-index: 1030;
    background: var(--hp-ink);
    border-bottom: 1px solid var(--hp-line);
}

.hpu-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1254px;              /* lines up with the theme's .container content edge */
    height: var(--hp-header-h);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .hpu-header-inner { gap: 10px; padding: 0 16px; }
    .hpu-action { padding: 10px 8px; }
}

.hpu-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.hpu-logo img { width: 168px; height: auto; display: block; }

.hpu-nav { flex: 1 1 auto; min-width: 0; }
.hpu-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}
.hpu-nav-list > li { position: relative; list-style: none; }

.hpu-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-family: var(--title-font-family);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.hpu-nav-link i { color: var(--hp-brand); font-size: 15px; font-weight: 300; }
.hpu-nav-link .hpu-caret { color: var(--hp-muted); font-size: 13px; transition: transform .2s ease; }
.hpu-nav-link:hover, .hpu-nav-link:focus-visible, .hpu-has-dropdown.is-open > .hpu-nav-link { background: rgba(255, 255, 255, 0.07); color: #fff; }
.hpu-nav-link.is-active { background: rgba(235, 103, 83, 0.14); color: #fff; }
.hpu-has-dropdown.is-open > .hpu-nav-link .hpu-caret { transform: rotate(180deg); }

.hpu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 290px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(24, 26, 32, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.hpu-dropdown::before { /* hover bridge so the menu doesn't close in the gap */
    content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px;
}
.hpu-has-dropdown.is-open > .hpu-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1200px) {
    .hpu-has-dropdown:hover > .hpu-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.hpu-dropdown li { list-style: none; }
.hpu-dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--hp-ink);
    text-decoration: none;
}
.hpu-dropdown a:hover, .hpu-dropdown a:focus-visible { background: #fdf0ee; }
.hpu-dropdown a i { width: 20px; margin-top: 3px; color: var(--hp-brand); font-size: 16px; text-align: center; }
.hpu-dropdown a strong { display: block; font-family: var(--title-font-family); font-size: 14px; font-weight: 600; line-height: 1.3; }
.hpu-dropdown a small { display: block; color: #6b6f7b; font-size: 12.5px; line-height: 1.4; }

.hpu-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.hpu-actions > div { display: flex; }
.hpu-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    font-family: var(--title-font-family);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.hpu-action i { color: #c1c1c1; font-size: 17px; }
.hpu-action:hover, .hpu-action:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }

.hpu-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}
.hpu-burger span { display: block; height: 2px; border-radius: 2px; background: #fff; }
.hpu-burger span:nth-child(2) { width: 70%; }

/* 1200 - 1439: tighter nav, no icons on links */
@media (max-width: 1439.98px) {
    .hpu-header-inner { gap: 12px; }
    .hpu-nav-link { padding: 10px 11px; font-size: 14.5px; }
    .hpu-nav-link > i:first-child { display: none; }
}

/* < 1200: burger + drawer */
@media (max-width: 1199.98px) {
    .hpu-nav { display: none; }
    .hpu-header-inner { justify-content: space-between; }
    .hpu-burger { display: inline-flex; }
}
@media (max-width: 767.98px) {
    :root { --hp-header-h: 62px; }
    .hpu-header-inner { padding: 0 12px 0 16px; gap: 8px; }
    .hpu-logo img { width: 138px; }
    .hpu-action { padding: 10px; }
    .hpu-action span { display: none; }
    .hpu-action i { font-size: 19px; }
}

/* the theme hid .main-menu < 992px and drew a second mobile header; neither exists any more */
.mobilie_header_nav { display: none !important; }

/* ------------------------------------------------------------------ Drawer */
.hpu-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(12, 13, 17, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}
.hpu-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    width: min(340px, 88vw);
    background: var(--hp-ink);
    color: #fff;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-102%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    visibility: hidden;
}
body.hpu-drawer-open { overflow: hidden; }
body.hpu-drawer-open .hpu-drawer { transform: none; visibility: visible; }
body.hpu-drawer-open .hpu-drawer-backdrop { opacity: 1; visibility: visible; }

.hpu-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 20px;
    border-bottom: 1px solid var(--hp-line);
}
.hpu-drawer-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-size: 20px;
}
.hpu-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 10px 12px 16px; -webkit-overflow-scrolling: touch; }
.hpu-drawer-label {
    margin: 18px 10px 6px;
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hpu-drawer-list { margin: 0; padding: 0; list-style: none; }
.hpu-drawer-list li { list-style: none; }
.hpu-drawer-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #fff;
    font-family: var(--title-font-family);
    font-size: 15.5px;
    font-weight: 500;
    text-decoration: none;
}
.hpu-drawer-list a i { width: 22px; color: var(--hp-brand); font-size: 17px; text-align: center; }
.hpu-drawer-list a:hover, .hpu-drawer-list a:focus-visible { background: rgba(255, 255, 255, 0.07); color: #fff; }
.hpu-drawer-list a.is-active { background: rgba(235, 103, 83, 0.16); }
.hpu-drawer-foot { padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hp-line); }
.hpu-drawer-foot .hpu-drawer-btn { display: flex; justify-content: center; gap: 8px; width: 100%; }
.hpu-drawer-small { margin: 14px 0 0; color: var(--hp-muted); font-size: 13px; text-align: center; }
.hpu-drawer-small a { color: var(--hp-muted); }
.hpu-drawer-small a:hover { color: #fff; }
@media (min-width: 1200px) {
    .hpu-drawer, .hpu-drawer-backdrop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hpu-drawer, .hpu-drawer-backdrop, .hpu-dropdown { transition: none; }
}

/* ------------------------------------------------------------------ Homepage search */
.advance-content-style2 .clear-button { z-index: 3; }
#homeSearch::-webkit-search-cancel-button, #hpAdvLocation::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.hpu-ac { max-height: min(420px, 60vh); overflow-y: auto; z-index: 1060; }
.hpu-ac .autocomplete-item { position: relative; gap: 4px; }
.hpu-ac .autocomplete-item.selected { background: #fdf0ee; }
.hpu-ac .item-content { flex: 1 1 auto; min-width: 0; }
.hpu-ac .item-text { overflow-wrap: anywhere; }
.hpu-ac-state { color: #8a8f9c; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.hpu-ac-guide {
    flex: 0 0 auto;
    align-self: center;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--hp-brand);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}
.hpu-ac-guide:hover { background: #fbe3df; color: var(--hp-brand-dark); }
.hpu-ac-empty { color: #6b6f7b; cursor: default; }
.advance-search-btn { position: relative; }
.hpu-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--hp-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.hpu-filter-count[hidden] { display: none; }

/* ------------------------------------------------------------------ Advanced search modal */
.hpu-adv-modal .modal-content { border: 0; border-radius: 18px; overflow: visible; }
.hpu-adv-modal .modal-header { padding: 20px 28px; border-bottom: 1px solid #eee; }
.hpu-adv-modal .modal-title { margin: 0; font-size: 20px; font-weight: 600; }
.hpu-adv-modal .modal-title i { color: var(--hp-brand); margin-right: 6px; }
.hpu-adv-modal .modal-body { padding: 22px 28px 8px; }
.hpu-adv-modal .modal-footer { justify-content: space-between; padding: 16px 28px; border-top: 1px solid #eee; }
.hpu-adv-section { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.hpu-adv-title { display: block; float: none; width: auto; margin: 0 0 10px; padding: 0; color: var(--hp-ink); font-family: var(--title-font-family); font-size: 15px; font-weight: 600; }
.hpu-adv-sub { display: block; margin: 0 0 6px; color: #6b6f7b; font-size: 13px; }
.hpu-adv-hint { margin: 8px 0 0; color: #8a8f9c; font-size: 13px; }
.hpu-adv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hpu-adv-modal .form-select, .hpu-adv-modal .form-control { height: 50px; border-radius: 10px; border-color: #ddd; font-size: 15px; }
.hpu-adv-modal .form-select:focus, .hpu-adv-modal .form-control:focus { border-color: var(--hp-brand); box-shadow: 0 0 0 3px rgba(235, 103, 83, .15); }
.hpu-adv-loc { position: relative; }
.hpu-adv-loc .autocomplete-container { top: calc(100% + 4px); left: 0; right: 0; width: auto; }
.hpu-loc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hpu-loc-chips:not(:empty) { margin-bottom: 10px; }
.hpu-loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 12px;
    border-radius: 20px;
    background: #fdf0ee;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 500;
}
.hpu-loc-chip button {
    width: 24px; height: 24px;
    border: 0; border-radius: 50%;
    background: rgba(235, 103, 83, .18);
    color: var(--hp-brand-dark);
    font-size: 16px; line-height: 1;
}
.hpu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hpu-chip { position: relative; margin: 0; cursor: pointer; }
.hpu-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hpu-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    color: var(--hp-ink);
    font-size: 14px;
    font-weight: 500;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.hpu-chip:hover span { border-color: var(--hp-brand); }
.hpu-chip input:checked + span { border-color: var(--hp-ink); background: var(--hp-ink); color: #fff; }
.hpu-chip input:focus-visible + span { outline: 2px solid var(--hp-brand); outline-offset: 2px; }
.hpu-adv-reset { border: 0; background: none; color: var(--hp-ink); font-weight: 600; text-decoration: underline; }
.hpu-adv-reset i { margin-right: 4px; }
@media (max-width: 575.98px) {
    .hpu-adv-modal .modal-content { border-radius: 0; }
    .hpu-adv-modal .modal-header, .hpu-adv-modal .modal-body, .hpu-adv-modal .modal-footer { padding-left: 16px; padding-right: 16px; }
    .hpu-adv-row { grid-template-columns: 1fr; }
    .hpu-adv-row > div:only-child { grid-column: auto; }
    .hpu-adv-modal .modal-footer { position: sticky; bottom: 0; background: #fff; }
    .hpu-chip span { padding: 8px 13px; }
}
.advance-style2 .advance-content-style2 { background-color: #fff; border-radius: 95px; padding: 10px; position: relative; }
@media (max-width: 767.98px) { .advance-style2 .advance-content-style2 { border-radius: 20px; } }

/* ------------------------------------------------------------------ Footer */
.hpu-footer { background: var(--hp-ink); color: var(--hp-muted); padding: 70px 0 0; }
.hpu-footer a { color: #d6d8de; text-decoration: none; }
.hpu-footer a:hover, .hpu-footer a:focus-visible { color: #fff; text-decoration: underline; }
.hpu-footer-logo img { width: 168px; height: auto; }
.hpu-footer-about { margin: 18px 0 20px; max-width: 360px; color: var(--hp-muted); font-size: 15px; line-height: 1.7; }
.hpu-footer-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; background: var(--hp-brand); color: #fff !important; font-weight: 600; }
.hpu-footer-cta:hover { background: var(--hp-brand-dark); text-decoration: none !important; }
.hpu-footer-title { margin: 6px 0 16px; color: #fff; font-size: 16px; font-weight: 600; }
.hpu-footer-links { margin: 0; padding: 0; list-style: none; }
.hpu-footer-links li { list-style: none; margin: 0 0 10px; }
.hpu-footer-links a { font-size: 14.5px; }
.hpu-footer-disclaimer { margin: 40px 0 0; padding: 22px 0; border-top: 1px solid var(--hp-line); color: #8a8f9c; font-size: 12.5px; line-height: 1.7; }
.hpu-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 26px; border-top: 1px solid var(--hp-line); font-size: 14px; }
.hpu-footer-bottom p { margin: 0; color: var(--hp-muted); }
@media (max-width: 767.98px) {
    .hpu-footer { padding-top: 48px; }
    .hpu-footer-bottom { flex-direction: column; text-align: center; }
    .hpu-footer-links a { display: inline-block; padding: 4px 0; }
}

/* ------------------------------------------------------------------ Content pages */
.hpu-page-title { font-size: clamp(28px, 4vw, 40px); }
.hpu-page-title span { color: var(--hp-brand); }
.hpu-page-lead { max-width: 720px; margin: 10px 0 0; font-size: 16px; opacity: .85; }
.hpu-content h2 { margin: 34px 0 12px; font-size: 22px; }
.hpu-content h2:first-child { margin-top: 0; }
.hpu-content h3 { margin: 0 0 10px; font-size: 18px; }
.hpu-content p, .hpu-content li { color: #41454f; font-size: 15.5px; line-height: 1.75; }
.hpu-content a:not(.ud-btn) { color: var(--hp-brand-dark); text-decoration: underline; }
.hpu-list { margin: 0 0 16px; padding-left: 20px; }
.hpu-list li { list-style: disc; margin: 0 0 8px; }
.hpu-list.small li { font-size: 14px; }
.hpu-card { margin: 0 0 24px; padding: 28px; border: 1px solid #ececec; border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(24, 26, 32, .05); }
.hpu-note { padding: 14px 18px; border-left: 3px solid var(--hp-brand); border-radius: 0 10px 10px 0; background: #fdf5f3; font-size: 14px !important; }
.hpu-legal { max-width: 860px; }
.hpu-updated { color: #8a8f9c !important; font-size: 14px !important; }
.hpu-form label { display: block; margin: 0 0 6px; color: var(--hp-ink); font-size: 14px; font-weight: 600; }
.hpu-form .form-control { min-height: 50px; border-radius: 10px; border-color: #ddd; }
.hpu-form .form-control:focus { border-color: var(--hp-brand); box-shadow: 0 0 0 3px rgba(235, 103, 83, .15); }
.hpu-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hpu-form-status { margin: 12px 0 0; font-size: 14px; }
.hpu-form-status.ok { color: #1e7d4f; }
.hpu-form-status.err { color: #c0392b; }
@media (max-width: 575.98px) { .hpu-card { padding: 20px; } }

/* ------------------------------------------------------------------ 404 page */
.hpu-error { padding: 90px 0 110px; background: #f7f7f7; }
.hpu-error-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hpu-error-code { margin: 0; color: var(--hp-brand); font-family: var(--title-font-family); font-size: clamp(72px, 14vw, 120px); font-weight: 700; line-height: 1; }
.hpu-error h1 { margin: 12px 0 12px; font-size: clamp(24px, 4vw, 32px); }
.hpu-error p { color: #5b5f6a; font-size: 16px; }
.hpu-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px 0 30px; }
.hpu-error-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.hpu-error-links li { list-style: none; }
.hpu-error-links a { color: var(--hp-ink); font-weight: 600; text-decoration: underline; }

/* ------------------------------------------------------------------ Homepage search: mobile */
.hpu-search-label { display: none; }
@media (max-width: 767.98px) {
    #hpHeroSearch > .col-md-4 > div { justify-content: space-between !important; padding: 2px 4px 4px; }
    #hpHeroSearch .advance-search-icon {
        display: inline-flex; align-items: center; justify-content: center; gap: 8px;
        flex: 1 1 auto; width: auto; height: 48px; margin-left: 16px !important; border-radius: 12px;
    }
    #hpHeroSearch .advance-search-icon .flaticon-search { position: static; transform: none; }
    .hpu-search-label { display: inline; font-weight: 600; }
    .hpu-ac-guide { padding: 6px 4px; font-size: 12px; }
}
@media (max-width: 575.98px) {
    #hpAdvModal .modal-dialog { width: 100vw !important; max-width: none !important; height: 100%; margin: 0 !important; }
    .hpu-adv-modal .modal-content { height: 100%; border-radius: 0; }
    .hpu-adv-modal .modal-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* Listings: only for-sale listings exist and the server ignores "status", so hide the Buy/Sold/Rent toggle */
.hp-filter-group:has(> .hp-status-toggle), .hp-status-toggle { display: none !important; }
div.ps-price { line-height: 1.1; font-family: var(--title-font-family); }
/* the "start listing" CTA hangs 150px into the footer (margin-bottom:-150px); make room for it */
@media (min-width: 992px) { body:has(.our-cta2) .hpu-footer { padding-top: 220px; } }

/* ------------------------------------------------------------------ Reports: not available yet */
.hpu-na-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; min-height: 50px; padding: 12px 20px;
    border: 1px dashed rgba(235, 103, 83, .55); border-radius: 12px;
    background: rgba(235, 103, 83, .08); color: var(--hp-brand-dark);
    font-family: var(--title-font-family); font-size: 15px; font-weight: 600;
    cursor: default; user-select: none;
}
.pgw-closer-cta .hpu-na-btn, .bir-price-panel .hpu-na-btn { background: rgba(255, 255, 255, .92); }
.hpu-na-notice {
    display: flex; align-items: flex-start; gap: 14px;
    max-width: 760px; margin: 0 auto 40px; padding: 18px 22px;
    border: 1px solid rgba(235, 103, 83, .35); border-radius: 14px;
    background: rgba(235, 103, 83, .08); color: inherit; text-align: left;
}
.hpu-na-notice > i { margin-top: 3px; color: var(--hp-brand); font-size: 22px; }
.hpu-na-notice strong { display: block; margin-bottom: 2px; font-size: 16px; }
.hpu-na-notice span { font-size: 14.5px; opacity: .9; }
.hpu-na-notice a { color: var(--hp-brand); font-weight: 600; text-decoration: underline; }
.hpu-na-mini { cursor: default; opacity: .75; }
.hpu-na-mini:hover { transform: none !important; }
#birPreviewPersuasion { display: none !important; }   /* sales pop-ups inside the sample preview */

/* ------------------------------------------------------------------ Sign in / register / verify / reset */
.hpu-linkbtn { padding: 0; border: 0; background: none; color: var(--hp-brand-dark); font-weight: 600; text-decoration: underline; cursor: pointer; }
.hpu-linkbtn:hover { color: var(--hp-brand); }
.hpu-auth-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: #eef4ff; color: #22335a; }
.hpu-auth-notice.warning { background: #fff6e5; color: #6b4a00; }
.hpu-auth-notice.error { background: #fdecea; color: #8a1f12; }
.hpu-auth-notice.success { background: #e8f6ee; color: #145c36; }
.hpu-auth-notice .hpu-linkbtn { color: inherit; }
.hpu-auth-lead { margin: 0 0 16px; color: #5b5f6a; font-size: 14.5px; }
.hpu-auth-small { margin: -4px 0 14px; color: #6b6f7b; font-size: 13px; }
.hpu-auth-small a { color: var(--hp-brand-dark); text-decoration: underline; }
.hpu-auth-done { padding: 10px 4px 6px; text-align: center; }
.hpu-auth-done-icon, .hpu-auth-page-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 50%; background: #fdf0ee; color: var(--hp-brand); font-size: 28px; }
.hpu-auth-page-icon.ok { background: #e8f6ee; color: #1e7d4f; }
.hpu-auth-page-icon.warn { background: #fff6e5; color: #b07300; }
.hpu-auth-done h6 { margin: 0 0 8px; font-size: 18px; }
.hpu-auth-done p { color: #5b5f6a; font-size: 14.5px; }
.hpu-reset-form { max-width: 420px; margin: 24px auto 0; text-align: left; }
.hpu-reset-form .form-control { margin-bottom: 14px; }

/* ------------------------------------------------------------------ Listings map popup links */
.map-popup-content .popup-img-link { display: block; border-radius: 10px 10px 0 0; overflow: hidden; }
.map-popup-content .popup-img-link img { display: block; width: 100%; transition: transform .3s ease; }
.map-popup-content .popup-img-link:hover img { transform: scale(1.04); }
.map-popup-content .popup-title a { color: inherit; text-decoration: none; }
.map-popup-content .popup-title a:hover { color: var(--hp-brand-dark); text-decoration: underline; }
.map-popup-content .popup-view-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 10px 12px 12px; padding: 10px 14px; border-radius: 10px;
    background: var(--hp-brand); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none;
}
.map-popup-content .popup-view-btn:hover { background: var(--hp-brand-dark); }
@media (max-width: 767.98px) {
    .map-popup-content .popup-img, .map-popup-content .popup-img-link img { height: 104px !important; object-fit: cover; }
    .map-popup-content .popup-title { font-size: 13.5px !important; line-height: 1.3; }
    .map-popup-content .popup-view-btn { margin: 6px 10px 10px; padding: 8px 12px; font-size: 13px; }
}

/* ------------------------------------------------------------------ Homepage hero: phones & tablets (portrait)
   Desktop keeps the original fixed, natural-size background. Below 992px a fixed background shows the
   1620px image at full size (and iOS ignores "fixed" altogether), so it looked zoomed-in and off-centre;
   the banner was also 100% wide plus a 12px offset, so it ran off the right edge. */
@media (max-width: 991.98px) {
    .home-banner-style2 .home2-hero-banner {
        left: 12px;
        right: 12px;
        width: auto;
        height: 480px;
        background-attachment: scroll;
        background-size: cover;
        background-position: 66% center;
        border-radius: 20px;
    }
}
@media (max-width: 767.98px) {
    .home-banner-style2 .home2-hero-banner { height: 500px; background-position: 64% center; }
    .inner-banner-style2 .hero-title { font-size: 30px !important; line-height: 1.2; }
    .inner-banner-style2 .hero-text { font-size: 17px !important; line-height: 1.45; }
}
@media (max-width: 380px) {
    .home-banner-style2 .home2-hero-banner { height: 520px; }
    .inner-banner-style2 .hero-title { font-size: 27px !important; }
    .inner-banner-style2 .hero-text { font-size: 16px !important; }
}
@media (max-width: 991.98px) {
    .home-banner-style2 .home2-hero-banner { overflow: hidden; }
    .home-banner-style2 .home2-hero-banner::after {           /* legibility wash behind the hero text */
        content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
        background: linear-gradient(180deg, rgba(24, 26, 32, .58) 0%, rgba(24, 26, 32, .42) 38%, rgba(24, 26, 32, .08) 62%, rgba(24, 26, 32, 0) 75%);
    }
    .inner-banner-style2 > div:not(.advance-style2) { position: relative; z-index: 1; padding: 0 18px !important; }
    .inner-banner-style2 .hero-title { color: #fff !important; }
    .inner-banner-style2 .hero-title.text-glow-light { text-shadow: 0 2px 12px rgba(0, 0, 0, .45) !important; }
    .inner-banner-style2 .hero-text { text-shadow: 0 1px 8px rgba(0, 0, 0, .5) !important; }
}

/* ------------------------------------------------------------------ Property map: data loader */
.hpu-map-loader {
    position: absolute; left: 50%; top: 16px; z-index: 5;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border-radius: 999px;
    background: rgba(24, 26, 32, .86); color: #fff;
    font-family: var(--title-font-family); font-size: 13.5px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
    transform: translateX(-50%); transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}
.hpu-map-loader.is-hidden { opacity: 0; transform: translate(-50%, -8px); }
.hpu-map-loader.is-error { background: rgba(160, 40, 25, .92); }
.hpu-map-loader-spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .3); border-top-color: var(--hp-brand);
    animation: hpu-spin .8s linear infinite;
}
@keyframes hpu-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hpu-map-loader-spin { animation-duration: 2.4s; } }
