/* MOH Listings — Brand & Component Overrides
   Layered on top of Bootstrap 5 + sticky-mobile style.css
   Design reference: sticky-mobile/code/page-listing-home-2.html
   ------------------------------------------------------------------ */

/* ── Brand tokens ─────────────────────────────────────────────────── */
:root {
    --moh-primary:    #4A89DC;
    --moh-secondary:  #1A1A2E;
    --moh-success:    #27AE60;
    --moh-warning:    #F39C12;
    --moh-danger:     #E74C3C;
    --moh-lease:      #3498DB;
    --moh-both:       #8E44AD;
    --moh-bg:         #F0F2F5;
    --moh-card-bg:    #FFFFFF;
    --moh-border:     #E9ECEF;
    --moh-text:       #2C3E50;
    --moh-muted:      #6C757D;
    --moh-radius:     18px;       /* card radius */
    --moh-radius-pill:50px;       /* pill buttons & badges */
    --moh-shadow:     0 4px 20px rgba(0,0,0,.08);
    --moh-shadow-lg:  0 8px 30px rgba(0,0,0,.13);
    --moh-font-display: 'Source Sans 3', 'Source Sans Pro', Roboto, sans-serif;
}

/* ── Body & base ──────────────────────────────────────────────────── */
body {
    background-color: var(--moh-bg);
    color: var(--moh-text);
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────────────────────── */
.header { background-color: var(--moh-secondary) !important; }
.header a, .header .header-title { color: #fff !important; }
.header-logo { height: 28px; }

/* suppress sticky-mobile's preload-logo.png */
.theme-light .header .header-logo,
.theme-dark  .header .header-logo,
.theme-light .footer .footer-logo,
.theme-dark  .footer .footer-logo { background-image: none !important; }

/* ── Footer nav ───────────────────────────────────────────────────── */
.footer-bar-1 .active-nav i,
.footer-bar-1 .active-nav span { color: var(--moh-primary) !important; }

#footer-bar .circle-nav { position: relative; }
#footer-bar .circle-nav i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--moh-primary);
    color: #fff !important;
    font-size: 1.2rem !important;
    margin: -20px auto 2px;
    box-shadow: 0 6px 18px rgba(74,137,220,.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#footer-bar .circle-nav:active i { transform: scale(0.92); box-shadow: 0 3px 10px rgba(74,137,220,.35); }
#footer-bar .circle-nav span { color: var(--moh-muted) !important; font-size: 9px !important; }

/* ── Buttons — pill shape ─────────────────────────────────────────── */
.btn-moh {
    background-color: var(--moh-primary);
    border-color:     var(--moh-primary);
    color: #fff;
    border-radius: var(--moh-radius-pill);
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(74,137,220,.3);
    transition: all 0.2s ease;
}
.btn-moh:hover, .btn-moh:focus {
    background-color: #3D78C8;
    border-color:     #3D78C8;
    color: #fff;
    box-shadow: 0 6px 18px rgba(74,137,220,.4);
    transform: translateY(-1px);
}
.btn-moh:active { transform: translateY(0); }

.btn-moh-outline {
    border: 2px solid var(--moh-primary);
    color: var(--moh-primary);
    border-radius: var(--moh-radius-pill);
    font-weight: 700;
    background: transparent;
    transition: all 0.2s ease;
}
.btn-moh-outline:hover { background-color: var(--moh-primary); color: #fff; box-shadow: 0 4px 12px rgba(74,137,220,.3); }

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border-radius: var(--moh-radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37,211,102,.3);
}
.btn-whatsapp:hover { background-color: #1ebb58; color: #fff; }

.btn-call {
    background-color: var(--moh-secondary);
    color: #fff;
    border-radius: var(--moh-radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(26,26,46,.25);
}
.btn-call:hover { background-color: #2c2c50; color: #fff; }

/* ── Hero banner (index.html) ─────────────────────────────────────── */
.hero-banner {
    position: relative;
    height: 220px;
    background: linear-gradient(145deg, var(--moh-secondary) 0%, #2d2d5e 60%, #4A89DC 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-banner h1 { color: #fff; font-size: 1.5rem; font-weight: 800; margin: 0; position: relative; z-index: 1; letter-spacing: -0.3px; }
.hero-banner p  { color: rgba(255,255,255,.78); font-size: 0.9rem; margin: 6px 0 0; position: relative; z-index: 1; }

/* ── Search box (floating over hero) ─────────────────────────────── */
.moh-search-box {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: var(--moh-radius-pill);
    box-shadow: var(--moh-shadow-lg);
    padding: 0 6px 0 18px;
    margin: -24px 16px 0;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,.06);
}
.moh-search-box i.search-icon { color: var(--moh-muted); font-size: 0.9rem; flex-shrink: 0; }
.moh-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 13px 12px;
    font-size: 0.9rem;
    background: transparent;
    color: var(--moh-text);
}
.moh-search-box input::placeholder { color: var(--moh-muted); }
.moh-search-box .filter-trigger {
    background: var(--moh-primary);
    border: none;
    border-radius: var(--moh-radius-pill);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
    cursor: pointer;
    margin: 3px;
    transition: background 0.2s;
}
.moh-search-box .filter-trigger:hover { background: #3D78C8; }

/* ── Sort pill bar ────────────────────────────────────────────────── */
.sort-bar { display: flex; gap: 8px; padding: 12px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sort-bar::-webkit-scrollbar { display: none; }
.sort-pill {
    flex-shrink: 0;
    padding: 7px 18px;
    border: 1.5px solid var(--moh-border);
    border-radius: var(--moh-radius-pill);
    background: #fff;
    color: var(--moh-muted);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.sort-pill.active-pill {
    background: var(--moh-primary);
    border-color: var(--moh-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(74,137,220,.3);
}

/* ── Property card — modern rounded ──────────────────────────────── */
.listing-card {
    border-radius: var(--moh-radius);
    box-shadow: var(--moh-shadow);
    background: var(--moh-card-bg);
    overflow: hidden;
    border: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}
.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--moh-shadow-lg);
}
.listing-card .card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.listing-card .card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2.5rem;
}
.listing-card .card-body { padding: 14px 16px 18px; }
.listing-card .card-price {
    font-size: 1.5rem;            /* 24px — matches reference font-24 */
    font-weight: 800;
    font-family: var(--moh-font-display);
    color: var(--moh-primary);
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.listing-card .card-rent { font-size: 0.82rem; font-weight: 500; color: var(--moh-muted); letter-spacing: 0.1px; }
.card-per-unit { font-size: 0.75rem; color: var(--moh-muted); margin-top: 3px; letter-spacing: 0.1px; }
.card-id-label { font-size: 0.72rem; color: var(--moh-muted); opacity: 0.7; letter-spacing: 0.2px; margin-bottom: 4px; }
.listing-card .card-title {
    font-size: 1rem;              /* 16px — up from 0.9rem */
    font-weight: 700;
    font-family: var(--moh-font-display);
    color: var(--moh-text);
    margin: 8px 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    line-height: 1.3;
}
.listing-card .card-specs {
    font-size: 0.875rem;          /* 14px — matches reference font-14 */
    font-weight: 600;
    color: var(--moh-text);
    opacity: 0.75;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    letter-spacing: 0.1px;
}
.spec-icon {
    color: var(--moh-primary);
    margin-right: 3px;
    font-size: 0.8em;
    opacity: 1;
}
.listing-card .card-location {
    font-size: 0.8125rem;         /* 13px — matches reference font-13 */
    color: var(--moh-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 5px;
    opacity: 0.65;
    letter-spacing: 0.15px;
}
.listing-card { position: relative; }
.card-badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* ── Badges — pill, sized to reference px-3 py-2 font-11 ─────────── */
.badge {
    border-radius: var(--moh-radius-pill) !important;
    font-weight: 700 !important;
    font-size: 0.6875rem !important;   /* 11px */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 16px !important;      /* matches reference px-3 py-2 */
    line-height: 1.2 !important;
}
.badge-sale   { background-color: var(--moh-success) !important; color: #fff; }
.badge-lease  { background-color: var(--moh-lease)   !important; color: #fff; }
.badge-both   { background-color: var(--moh-both)    !important; color: #fff; }
.badge-sold   { background-color: #888 !important; color: #fff; }
.badge-leased { background-color: #888 !important; color: #fff; }
.badge-expired{ background-color: var(--moh-danger) !important; color: #fff; }
.badge-premium{ background-color: #F59E0B !important; color: #fff; }

/* ── Expiry chip — pill ───────────────────────────────────────────── */
.expiry-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--moh-radius-pill);
}
.expiry-chip.urgent  { background: rgba(231,76,60,.12);  color: var(--moh-danger); }
.expiry-chip.warning { background: rgba(243,156,18,.12); color: #b7770a; }
.expiry-chip.ok      { background: rgba(0,0,0,.07);      color: var(--moh-muted); }

/* ── Expiry chip overrides on card image overlay — solid for visibility ── */
.card-badge-row .expiry-chip.ok      { display: none; }
.card-badge-row .expiry-chip.warning { background: #f39c12; color: #fff; }
.card-badge-row .expiry-chip.urgent  { background: var(--moh-danger); color: #fff; }

/* ── Feature chips ────────────────────────────────────────────────── */
.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    background: #f0f4ff;
    color: var(--moh-secondary);
    border-radius: var(--moh-radius-pill);
    font-size: 0.79rem;
    font-weight: 600;
    border: 1.5px solid #dce4f5;
}

/* ── Filter bottom sheet handle ───────────────────────────────────── */
.filter-sheet-handle {
    width: 44px;
    height: 4px;
    background: #dee2e6;
    border-radius: 4px;
    margin: 12px auto 18px;
}

/* ── Bottom sheet top-rounded ─────────────────────────────────────── */
.menu-box-bottom {
    border-radius: 24px 24px 0 0 !important;
}

/* ── Bottom sheets must cap their height and scroll internally ────────
   The sticky-template base sets height:auto with no max-height, so a tall
   sheet (filter sheet, especially with the on-screen keyboard open) grows
   past the top of the viewport and its overflow:scroll never engages —
   users can't reach the top fields or the Apply button. Cap the height and
   let the sheet scroll, keeping the last controls clear of the home
   indicator / keyboard. */
.menu-box-bottom.menu-box-detached {
    max-height: 88vh;                       /* fallback for older browsers */
    max-height: calc(100dvh - 24px);        /* dynamic viewport — mobile-safe */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;           /* don't scroll the page behind */
    scrollbar-width: none;                  /* Firefox — hide track, sheet is short */
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
}
.menu-box-bottom.menu-box-detached::-webkit-scrollbar { width: 0; height: 0; }

/* ── OTP inputs ───────────────────────────────────────────────────── */
.otp-inputs { display: flex; gap: 8px; justify-content: center; }
.otp-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--moh-border);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    background: #fff;
}
.otp-inputs input:focus { border-color: var(--moh-primary); box-shadow: 0 0 0 3px rgba(74,137,220,.15); }
.otp-inputs input.otp-filled { border-color: var(--moh-success); background: #f0fff4; }

/* ── Login page ───────────────────────────────────────────────────── */
.login-brand-name { font-size: 1.5rem; font-weight: 700; color: #fff; text-align: center; }
.login-tagline    { font-size: 0.9rem; color: rgba(255,255,255,.7); text-align: center; }
.login-card {
    background: var(--moh-card-bg);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2);
    padding: 28px 24px;
    margin: 0 16px;
}
.login-step { display: none; }
.login-step.active { display: block; }

/* ── Mobile number input ──────────────────────────────────────────── */
.mobile-input-group {
    display: flex;
    border: 1.5px solid var(--moh-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s;
}
.mobile-input-group .prefix {
    padding: 13px 14px;
    background: #f8f9fa;
    color: var(--moh-text);
    font-weight: 600;
    font-size: 0.95rem;
    border-right: 1px solid var(--moh-border);
    white-space: nowrap;
    flex-shrink: 0;
}
.mobile-input-group input {
    flex: 1;
    border: none;
    padding: 13px 14px;
    font-size: 0.95rem;
    outline: none;
    background: transparent;
}
.mobile-input-group:focus-within { border-color: var(--moh-primary); box-shadow: 0 0 0 3px rgba(74,137,220,.12); }

/* ── Form inputs global ───────────────────────────────────────────── */
.form-control, .form-select {
    border-radius: 14px !important;
    border: 1.5px solid var(--moh-border) !important;
    padding: 11px 14px !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--moh-primary) !important;
    box-shadow: 0 0 0 3px rgba(74,137,220,.12) !important;
}

/* ── Inquiry form ─────────────────────────────────────────────────── */
.inquiry-form .form-control {
    border-radius: 14px !important;
    border: 1.5px solid var(--moh-border) !important;
    padding: 12px 14px !important;
    font-size: 0.9rem;
}
.inquiry-form .form-control:focus {
    border-color: var(--moh-primary) !important;
    box-shadow: 0 0 0 3px rgba(74,137,220,.12) !important;
}

/* ── Sticky CTA bar ───────────────────────────────────────────────── */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--moh-card-bg);
    border-top: 1px solid var(--moh-border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    gap: 10px;
    z-index: 900;
    box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.sticky-cta-bar .btn { flex: 1; padding: 13px; font-size: 0.95rem; }

/* ── Logo watermark overlay (listing cards + detail gallery) ─────── */
.card-img-wrap {
    position: relative;
    display: block;
    line-height: 0;
}
.card-img-wrap::after,
.gallery-photo-wrap::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    pointer-events: none;
    z-index: 3;
    background: url('../images/moh-logo-full.svg') no-repeat right bottom;
    background-size: contain;
    opacity: 0.62;
}
.card-img-wrap::after {
    width: 36%;
    height: 20%;
}
.gallery-photo-wrap::after {
    width: 22%;
    height: 14%;
}

/* ── Photo gallery — continuous single-column list ───────────────────
   Replaces the old swipeable carousel + fullscreen tap-to-zoom modal
   (see CHANGELOG.md 2.6.2 for the rationale / how to revert). Each photo
   is a fixed-ratio tile stacked in one column, no click-to-zoom. */
.gallery-list { width: 100%; display: flex; flex-direction: column; gap: 2px; background: #e9ecef; }
.gallery-photo-wrap { position: relative; display: block; line-height: 0; aspect-ratio: 4/3; overflow: hidden; }
.gallery-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-youtube-thumb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-youtube-play {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    pointer-events: none;
    transition: transform 0.15s;
}
.gallery-youtube-thumb:hover .gallery-youtube-play { transform: scale(1.1); }

/* ── Dashboard listing row ────────────────────────────────────────── */
/* Card is a vertical stack of full-width sections (head / badges / stats /
   bottom-bar) — badges and stats get the whole card width to wrap in
   instead of being squeezed into the narrow column beside the thumbnail. */
.my-listing-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--moh-card-bg);
    border-radius: var(--moh-radius);
    box-shadow: var(--moh-shadow);
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}
.my-listing-row:hover { box-shadow: var(--moh-shadow-lg); }
.my-listing-row .row-head { display: flex; gap: 12px; align-items: flex-start; }
.my-listing-row .thumb {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.my-listing-row .thumb-placeholder {
    width: 82px;
    height: 62px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.my-listing-row .meta { flex: 1; min-width: 0; }
.my-listing-row .listing-title { font-weight: 700; font-size: 0.92rem; line-height: 1.35; white-space: normal; overflow-wrap: break-word; }
.my-listing-row .card-id-label { margin-top: 3px; margin-bottom: 0; }
.my-listing-row .listing-sub { font-size: 0.78rem; color: var(--moh-muted); }

/* ── Admin tabs ───────────────────────────────────────────────────── */
.admin-tab-nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 0; border-bottom: 2px solid var(--moh-border); scrollbar-width: none; }
.admin-tab-nav::-webkit-scrollbar { display: none; }
.admin-tab-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--moh-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    letter-spacing: 0.2px;
}
.admin-tab-btn.active { color: var(--moh-primary); border-bottom-color: var(--moh-primary); }
.admin-tab-section { display: none; padding: 16px 0; }
.admin-tab-section.active { display: block; }

/* ── Table card ───────────────────────────────────────────────────── */
.tbl-card {
    background: var(--moh-card-bg);
    border-radius: var(--moh-radius);
    box-shadow: var(--moh-shadow);
    overflow: hidden;
}
.tbl-card table { margin-bottom: 0; font-size: 0.85rem; }
.tbl-card thead th { background: #f8f9fa; font-weight: 700; font-size: 0.78rem; color: var(--moh-muted); }
.tbl-search {
    border-radius: var(--moh-radius-pill);
    border: 1.5px solid var(--moh-border);
    padding: 10px 18px;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}
.tbl-search:focus { border-color: var(--moh-primary); outline: none; box-shadow: 0 0 0 3px rgba(74,137,220,.12); }

/* ── Stat cards ───────────────────────────────────────────────────── */
.stat-card {
    background: var(--moh-card-bg);
    border-radius: var(--moh-radius);
    padding: 18px 12px;
    box-shadow: var(--moh-shadow);
    text-align: center;
}
.stat-card .stat-num   { font-size: 1.7rem; font-weight: 700; color: var(--moh-primary); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--moh-muted); margin-top: 3px; font-weight: 600; letter-spacing: 0.3px; }

/* ── FAB post ─────────────────────────────────────────────────────── */
.fab-post {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--moh-primary);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(74,137,220,.45);
    cursor: pointer;
    z-index: 800;
    border: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.fab-post:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(74,137,220,.55); }

/* ── Step wizard ──────────────────────────────────────────────────── */
.wizard-steps { display: flex; gap: 0; margin-bottom: 22px; }
.wizard-step-dot {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    color: var(--moh-muted);
    font-weight: 600;
}
.wizard-step-dot::before {
    content: '';
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--moh-border);
    margin: 0 auto 5px;
}
.wizard-step-dot.active::before { background: var(--moh-primary); box-shadow: 0 3px 10px rgba(74,137,220,.35); }
.wizard-step-dot.done::before   { background: var(--moh-success); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }

/* ── Image upload previews ────────────────────────────────────────── */
.img-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.img-preview-item { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid var(--moh-border); }
.img-preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-preview-item .img-delete-btn {
    position: absolute; top: 5px; right: 5px;
    background: rgba(0,0,0,.6); color: #fff; border: none;
    border-radius: 50%; width: 24px; height: 24px;
    font-size: 0.7rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.img-preview-item.is-primary { border-color: var(--moh-primary); }
.img-primary-badge {
    position: absolute; bottom: 5px; left: 5px;
    background: var(--moh-primary); color: #fff;
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em;
    padding: 2px 7px; border-radius: 20px;
    display: flex; align-items: center; gap: 3px; pointer-events: none;
}
.img-set-primary-btn {
    position: absolute; bottom: 5px; left: 5px;
    background: rgba(0,0,0,0.45); color: #fff;
    border: none; border-radius: 20px;
    font-size: 0.62rem; font-weight: 700;
    padding: 3px 8px; cursor: pointer; opacity: 0;
    transition: opacity 0.15s, background 0.15s;
    display: flex; align-items: center; gap: 3px;
}
.img-set-primary-btn::after { content: ' Main'; }
.img-preview-item:hover .img-set-primary-btn { opacity: 1; }
.img-set-primary-btn:hover { background: var(--moh-primary); }

/* ── Rent period selector buttons ─────────────────────────────────── */
.rent-period-btn {
    padding: 5px 14px;
    border-radius: var(--moh-radius-pill);
    border: 1.5px solid var(--moh-border);
    background: #fff;
    color: var(--moh-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.rent-period-btn.active-period {
    background: var(--moh-primary);
    border-color: var(--moh-primary);
    color: #fff;
}
.rent-period-btn:hover:not(.active-period) {
    border-color: var(--moh-primary);
    color: var(--moh-primary);
}

/* ── MOH ID chip (badge-style pill on photos) ────────────────────── */
.moh-id-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 7px 16px;
    border-radius: var(--moh-radius-pill);
    background: #1a1a2e;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background 0.15s;
    line-height: 1.2;
}
.moh-id-chip:hover { background: #111127; }
.card-id-chip,
.gallery-id-chip {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 4;
}

/* ── View toggle bar ─────────────────────────────────────────────── */
.view-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 14px 6px;
    gap: 4px;
}
.view-btn {
    background: var(--moh-bg);
    border: 1px solid var(--moh-border);
    color: var(--moh-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.view-btn:hover { color: var(--moh-text); }
.view-btn.active-view {
    background: var(--moh-primary);
    border-color: var(--moh-primary);
    color: #fff;
}

/* ── List view (horizontal card) ─────────────────────────────────── */
.listings-grid.list-view .listing-card {
    display: flex;
    flex-direction: row;
    min-height: 130px;
}
.listings-grid.list-view .card-img-wrap {
    width: 130px;
    min-width: 130px;
    align-self: stretch;
    border-radius: var(--moh-radius) 0 0 var(--moh-radius);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.listings-grid.list-view .card-img-wrap .card-img,
.listings-grid.list-view .card-img-wrap .card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listings-grid.list-view .card-badge-row {
    position: absolute;
    top: 7px;
    left: 7px;
    right: auto;
    gap: 4px;
}
.listings-grid.list-view .card-badge-row .badge {
    font-size: 0.58rem !important;
    padding: 3px 7px !important;
}
.listings-grid.list-view .card-badge-row .expiry-chip { display: none; }
.listings-grid.list-view .share-btn,
.listings-grid.list-view .like-btn,
.listings-grid.list-view .card-id-chip { display: none; }
.listings-grid.list-view .card-body {
    padding: 12px 14px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
}
.listings-grid.list-view .card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--moh-primary);
    line-height: 1.2;
}
.listings-grid.list-view .card-rent { font-size: 0.72rem; font-weight: 500; }
.listings-grid.list-view .card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 4px 0 3px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.35;
    color: var(--moh-text);
}
.listings-grid.list-view .card-location {
    font-size: 0.72rem;
    color: var(--moh-muted);
    margin-bottom: 4px;
}
.listings-grid.list-view .card-specs {
    font-size: 0.72rem;
    color: var(--moh-muted);
    flex-wrap: wrap;
    gap: 8px;
}
.listings-grid.list-view .card-time-ago { font-size: 0.68rem; }
.listings-grid.list-view .card-id-label,
.listings-grid.list-view .card-per-unit,
.listings-grid.list-view .card-cta-row { display: none; }

/* ── Table view ───────────────────────────────────────────────────── */
.listings-table-container {
    overflow-x: auto;
    background: var(--moh-bg);
    border: 1px solid var(--moh-border);
    border-radius: var(--moh-radius);
    margin: 0 14px 14px;
}
.listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}
.listings-table th, .listings-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--moh-border);
    vertical-align: middle;
}
.listings-table tr:last-child td { border-bottom: none; }
.listings-table th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.9);
    background: var(--moh-primary);
    white-space: nowrap;
    user-select: none;
}
.listings-table th.sortable { cursor: pointer; }
.listings-table th.sortable:hover { color: #fff; background: #3a78cc; }
.listings-table th .sort-icon { margin-left: 4px; font-size: 0.65rem; opacity: 0.5; }
.listings-table th.sort-asc .sort-icon::before { content: '↑'; opacity: 1; }
.listings-table th.sort-desc .sort-icon::before { content: '↓'; opacity: 1; }
.listings-table th:not(.sort-asc):not(.sort-desc) .sort-icon::before { content: '↕'; }
.listings-table tbody tr { cursor: pointer; transition: background 0.12s; }
.listings-table tbody tr:hover { background: rgba(74, 137, 220, 0.06); }
.table-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--moh-secondary);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moh-muted);
    font-size: 1rem;
    flex-shrink: 0;
}
.table-title-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 150px;
    max-width: 240px;
}

/* ── Map view ─────────────────────────────────────────────────────── */
.listings-map-container {
    margin: 0 14px 14px;
    height: calc(100vh - 260px);
    min-height: 400px;
    border-radius: var(--moh-radius);
    overflow: hidden;
    border: 1px solid var(--moh-border);
    position: relative;
    /* Leaflet's internal panes/controls use z-index up to ~1000, which
       would otherwise paint above the app's fixed header/footer (z-index
       ~98-99) since they're not scoped to this container. */
    isolation: isolate;
}
#listings-map-element {
    width: 100%;
    height: 100%;
}
.map-popup-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
    display: block;
}
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    padding: 4px;
    font-family: 'Source Sans 3', sans-serif;
}
.leaflet-popup-content { margin: 8px 10px !important; }

/* ── Toast ────────────────────────────────────────────────────────── */
.moh-toast {
    position: fixed;
    bottom: calc(85px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: var(--moh-secondary);
    color: #fff;
    padding: 11px 22px;
    border-radius: var(--moh-radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 9999;
    white-space: nowrap;
    animation: toastIn 0.25s ease;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.moh-toast.success { background: var(--moh-success); }
.moh-toast.error   { background: var(--moh-danger); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Skeleton loaders ─────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f4f6f8 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton-card { border-radius: var(--moh-radius); overflow: hidden; box-shadow: var(--moh-shadow); }
.skeleton-img  { width: 100%; aspect-ratio: 4/3; border-radius: 0; }
.skeleton-line { height: 13px; margin: 8px 14px; }
.skeleton-line.short  { width: 60%; }
.skeleton-line.xshort { width: 40%; }

/* ── Page spacing ─────────────────────────────────────────────────── */
.page-content  { padding-bottom: 80px; }
.content-padded{ padding: 0 16px; }
.price-php::before { content: '₱ '; }

/* ── Listings grid ────────────────────────────────────────────────── */
.listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
}
@media (min-width: 576px) { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Filter chips (active filters row) ───────────────────────────── */
#filter-chips .btn { border-radius: var(--moh-radius-pill) !important; }

/* ── Shared button-like pills in JS-injected styles ──────────────── */
.active-type, .active-bed, .active-pill, .active-feat, .active-expiry, .active-ptype, .active-qf-intent {
    background: var(--moh-primary) !important;
    color: #fff !important;
    border-color: var(--moh-primary) !important;
    box-shadow: 0 3px 10px rgba(74,137,220,.28);
}
.type-sel, .bed-btn, .type-btn, .feat-toggle, .expiry-sel, .sort-pill, .f-ptype-btn, .qf-intent-btn {
    border: 1.5px solid var(--moh-border);
    background: #fff;
    color: var(--moh-text);
    border-radius: var(--moh-radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s;
}
.btn-xs { padding: 5px 12px; font-size: 0.75rem; border-radius: var(--moh-radius-pill); font-weight: 600; }
.active-prop-type { border-color: var(--moh-primary) !important; background: rgba(74,137,220,.08) !important; color: var(--moh-primary) !important; box-shadow: 0 2px 8px rgba(74,137,220,.18); }
.active-furn { background: var(--moh-primary) !important; color: #fff !important; border-color: var(--moh-primary) !important; }
.furn-btn { border: 1.5px solid var(--moh-border); background: #f8f9fa; color: var(--moh-text); border-radius: 20px; font-size: 0.8rem; }

/* ── My Listings row (dashboard.html) ─────────────────────────────── */
.listing-bottom-bar { width: 100%; border-top: 1px solid var(--moh-border); padding-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.avail-switch { display: inline-flex; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--moh-border); flex-shrink: 0; }
.avail-btn { padding: 6px 16px; font-size: 0.78rem; font-weight: 600; border: none; background: #f8f9fa; color: var(--moh-muted); cursor: pointer; transition: background 0.15s, color 0.15s; line-height: 1.4; }
.avail-active-on { background: #27ae60; color: #fff; }
.avail-active-off { background: var(--moh-danger); color: #fff; }
.icon-btn-shadow { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border: none; cursor: pointer; font-size: 0.85rem; transition: transform 0.15s, box-shadow 0.15s; }
.icon-btn-shadow:active { transform: scale(0.93); }
.icon-btn-edit   { background: var(--moh-primary); box-shadow: 0 4px 10px rgba(74,137,220,.38); }
.icon-btn-view   { background: #6c757d;             box-shadow: 0 4px 10px rgba(108,117,125,.38); }
.icon-btn-delete { background: #e74c3c;             box-shadow: 0 4px 10px rgba(231,76,60,.38); }

/* ── Property type selector grid ──────────────────────────────────── */
.prop-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}
.prop-type-btn {
    border: 1.5px solid var(--moh-border);
    border-radius: 14px;
    padding: 10px 4px 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    color: var(--moh-muted);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
    user-select: none;
}
.prop-type-btn .pty-icon { font-size: 1.5rem; display: block; margin-bottom: 3px; }
.prop-type-btn.active {
    border-color: var(--moh-primary);
    background: rgba(74,137,220,.07);
    color: var(--moh-primary);
    box-shadow: 0 2px 8px rgba(74,137,220,.18);
}
.prop-type-btn:hover:not(.active) { border-color: #aaa; background: #fafafa; }

/* ── Area unit toggle ─────────────────────────────────────────────── */
.area-unit-toggle {
    display: flex;
    border: 1.5px solid var(--moh-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}
.area-unit-toggle button {
    flex: 1;
    border: none;
    background: #f8f9fa;
    color: var(--moh-muted);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.area-unit-toggle button.active {
    background: var(--moh-secondary);
    color: #fff;
}
.area-conversion {
    font-size: 0.72rem;
    color: var(--moh-muted);
    margin-top: 4px;
    min-height: 16px;
}

/* ── Conditional field groups ─────────────────────────────────────── */
.prop-field-group { transition: opacity 0.2s; }
.prop-field-group.hidden { display: none; }

/* ── Typeahead dropdown ───────────────────────────────────────────── */
.ta-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid var(--moh-border);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    z-index: 1100;
    max-height: 260px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.ta-dropdown::-webkit-scrollbar { display: none; }
.ta-dropdown.ta-open { display: block; }
.ta-item {
    padding: 11px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--moh-border);
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: background 0.1s;
}
.ta-item:last-child { border-bottom: none; }
.ta-item:hover, .ta-item.ta-active { background: #f5f0ff; }
.ta-label { font-size: 0.9rem; font-weight: 600; color: var(--moh-text); }
.ta-sub   { font-size: 0.75rem; color: var(--moh-muted); }
.ta-empty { padding: 12px 16px; font-size: 0.85rem; color: var(--moh-muted); text-align: center; }
.ta-dropdown mark {
    background: transparent;
    color: var(--moh-primary);
    font-weight: 700;
    padding: 0;
}

/* ── Card: "Added X ago" timestamp label ─────────────────────────── */
.card-time-ago {
    font-size: 0.8125rem;      /* 13px — matches reference font-13 font-500 */
    font-weight: 500;
    color: var(--moh-muted);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
    letter-spacing: 0.1px;
    opacity: 0.75;
}

/* ── Card: View Listing CTA button row ───────────────────────────── */
.card-cta-row { display: flex; gap: 8px; margin-top: 10px; }
.card-cta-row .btn-view-listing {
    flex: 1;
    text-align: center;
    font-size: 0.82rem;
    padding: 9px 12px;
    border-radius: var(--moh-radius-pill);
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: #fff;
    background-color: var(--moh-primary);
    border: none;
    display: block;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 3px 10px rgba(74,137,220,.25);
}
.card-cta-row .btn-view-listing:hover {
    background-color: #3D78C8;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(74,137,220,.35);
    color: #fff;
}

/* ── Detail page: price, title, location, specs, description ─────── */
#price-display {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--moh-font-display);
    color: var(--moh-primary);
    letter-spacing: -0.5px;
    line-height: 1.15;
}
#listing-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    font-family: var(--moh-font-display);
    letter-spacing: -0.3px;
    line-height: 1.35;
    color: var(--moh-text);
}
#listing-location {
    font-size: 0.9rem !important;
    letter-spacing: 0.15px;
    line-height: 1.5;
}
#listing-description {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    letter-spacing: 0.1px;
}
#specs-row {
    font-size: 0.9rem;
    letter-spacing: 0.1px;
}

/* ── Profile dropdown ─────────────────────────────────────────────── */
.moh-profile-wrap { position: relative; }
.moh-profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    min-width: 230px;
    z-index: 2000;
    overflow: hidden;
    display: none;
    border: 1px solid rgba(0,0,0,.07);
}
.moh-profile-dropdown.is-open { display: block; }
.moh-pd-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f7f8fa;
    border-bottom: 1px solid #eee;
}
.moh-pd-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--moh-primary, #4A89DC);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}
.moh-pd-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1A1A2E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 148px;
}
.moh-pd-role {
    font-size: 0.72rem;
    color: #888;
    text-transform: capitalize;
    margin-top: 1px;
}
.moh-pd-divider { height: 1px; background: #f0f0f0; margin: 0; }
.moh-pd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.12s;
    text-align: left;
}
.moh-pd-item:hover { background: #f0f4ff; color: var(--moh-primary, #4A89DC); text-decoration: none; }
.moh-pd-item i { width: 18px; text-align: center; color: #888; flex-shrink: 0; }
.moh-pd-item:hover i { color: var(--moh-primary, #4A89DC); }
.moh-pd-logout { color: #e8553e; }
.moh-pd-logout i { color: #e8553e; }
.moh-pd-logout:hover { background: #fff5f5; color: #c0392b; }
.moh-pd-logout:hover i { color: #c0392b; }
#profile-avatar-btn {
    width: 36px; height: 36px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18) !important;
    border: 2px solid rgba(255,255,255,.35) !important;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    transition: background 0.15s, transform 0.12s;
}
#profile-avatar-btn:hover {
    background: rgba(255,255,255,.28) !important;
    transform: scale(1.06);
}

/* ── Form section label ───────────────────────────────────────────── */
.form-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--moh-muted);
    margin: 20px 0 10px;
}

/* ── AI fill section ──────────────────────────────────────────────── */
.ai-fill-box {
    background: linear-gradient(135deg,#fff 0%,rgba(74,137,220,.05) 100%);
    border: 1px solid var(--moh-border);
    border-left: 3px solid var(--moh-primary);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ai-fill-title { font-size: 0.92rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ai-fill-title i { color: var(--moh-primary); }
.ai-fill-hint { font-size: 0.74rem; color: var(--moh-muted); margin: 0; line-height: 1.4; }
#ai-fill-status, .ai-fill-status-box {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    display: flex;
    gap: 8px;
    align-items: center;
}
#ai-fill-status.is-loading, .ai-fill-status-box.is-loading { background: #f8f9fa; border: 1px solid var(--moh-border); color: var(--moh-muted); }
#ai-fill-status.is-success, .ai-fill-status-box.is-success { background: #eafaf1; border: 1px solid #27ae6040; color: #27ae60; }
#ai-fill-status.is-error,   .ai-fill-status-box.is-error   { background: #fdf0ef; border: 1px solid #e74c3c40; color: #c0392b; }

/* ── Map address search results ───────────────────────────────────── */
.map-search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    line-height: 1.3;
    color: var(--moh-text);
}
.map-search-result-item:hover { background: #f0f4ff; }
.map-search-result-item i { color: var(--moh-primary); margin-top: 2px; flex-shrink: 0; }

/* ── Badge breathing pulse ────────────────────────────────────────── */
@keyframes badge-breathe {
    0%, 100% { transform: scale(1);    box-shadow: 0 2px 8px rgba(0,0,0,.18); }
    50%       { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
}
.badge-sale,
.badge-lease,
.badge-both {
    animation: badge-breathe 2.8s ease-in-out infinite;
    transform-origin: left center;
}

/* ── Clickable building name on cards ─────────────────────────────── */
.card-building-link {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(74,137,220,.28);
    background: rgba(74,137,220,.07);
    border-radius: 10px;
    color: var(--moh-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    text-align: left;
    line-height: 1.2;
    transition: background 0.15s, border-color 0.15s, transform 0.06s;
}
.card-building-link:hover  { background: rgba(74,137,220,.14); border-color: rgba(74,137,220,.5); }
.card-building-link:active  { transform: scale(0.985); }
.card-building-link > i.fa-building { font-size: 0.85rem; flex-shrink: 0; opacity: 0.9; }
.card-building-link > span[itemprop] {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.card-building-link .card-building-cta {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
}
.card-building-link .card-building-cta i { font-size: 0.62rem; }

/* ── Building sheet (all units in a building) ─────────────────────── */
#building-sheet { max-height: 82vh; display: flex; flex-direction: column; }
.building-sheet-head {
    flex-shrink: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--moh-border);
    margin-bottom: 6px;
}
.building-sheet-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--moh-font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--moh-text);
    letter-spacing: -0.2px;
}
.building-sheet-title i { color: var(--moh-primary); font-size: 1rem; }
.building-sheet-sub {
    font-size: 0.78rem;
    color: var(--moh-muted);
    margin-top: 3px;
    padding-left: 25px;
}
.building-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}
.building-sheet-loading,
.building-sheet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 16px;
    color: var(--moh-muted);
    text-align: center;
    font-size: 0.85rem;
}
.building-sheet-loading { flex-direction: row; justify-content: center; }
.building-sheet-empty i { font-size: 2rem; color: var(--moh-border); }
.building-sheet-empty p { margin: 0; }

.building-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--moh-border);
    cursor: pointer;
    transition: background 0.12s;
}
.building-row:last-child { border-bottom: none; }
.building-row:hover  { background: rgba(74,137,220,.06); }
.building-row:active { background: rgba(74,137,220,.11); }
.brow-thumb {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #f0f2f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moh-border);
}
.brow-info { flex: 1; min-width: 0; }
.brow-price {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--moh-primary);
    letter-spacing: -0.2px;
    line-height: 1.2;
}
.brow-price .brow-rent { font-size: 0.75rem; font-weight: 500; color: var(--moh-muted); }
.brow-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--moh-text);
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.brow-meta {
    font-size: 0.72rem;
    color: var(--moh-muted);
    margin-top: 2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.brow-chev { color: var(--moh-border); font-size: 0.8rem; flex-shrink: 0; }

/* ── Guide sheet ──────────────────────────────────────────────────── */
.guide-feature-list { display: flex; flex-direction: column; gap: 14px; }
.guide-feature-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--moh-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--moh-shadow);
}
.guide-feature-item img {
    width: 100%;
    aspect-ratio: 1024 / 724;
    object-fit: cover;
    display: block;
    background: var(--moh-bg);
}
.guide-feature-body { padding: 12px 14px; }
.guide-feature-item strong { display: block; font-size: 0.9rem; margin-bottom: 3px; }
.guide-feature-item span { display: block; font-size: 0.76rem; color: var(--moh-muted); line-height: 1.4; }

/* ── Two Ways to Publish — sales-oriented offer cards ────────────────── */
.guide-offer-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--moh-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--moh-shadow);
}
.guide-offer-card img {
    width: 100%;
    aspect-ratio: 1024 / 724;
    object-fit: cover;
    display: block;
    background: var(--moh-bg);
}
.guide-offer-body {
    padding: 14px 16px 16px;
    border-top: 3px solid var(--moh-primary);
}
.guide-offer-name {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--moh-muted);
}
.guide-offer-price {
    font-family: var(--moh-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--moh-primary);
    letter-spacing: -0.3px;
    margin-top: 2px;
}
.guide-offer-price span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--moh-muted);
    letter-spacing: 0;
    margin-left: 4px;
}
.guide-offer-highlight { margin: 8px 0 0; font-size: 0.85rem; font-weight: 700; color: var(--moh-text); }
.guide-offer-desc { margin: 4px 0 0; font-size: 0.78rem; color: var(--moh-muted); line-height: 1.45; }
.guide-services-note {
    background: linear-gradient(135deg,#fff 0%,rgba(74,137,220,.06) 100%);
    border: 1px solid var(--moh-border);
    border-radius: 14px;
    padding: 14px 16px;
}
.guide-services-note p { margin: 0 0 12px; font-size: 0.8rem; color: var(--moh-muted); line-height: 1.5; }

.guide-guideline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-guideline-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.8rem; color: var(--moh-text); line-height: 1.4; }
.guide-guideline-list li i { color: var(--moh-primary); margin-top: 3px; flex-shrink: 0; }
