/* =====================================================================
   Latur Homes design system  (prefix: lh-)
   Built on Bootstrap 5.3. Bootstrap variables are re-pointed to our
   tokens so existing Bootstrap markup picks up the brand automatically.
   ===================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --lh-navy:        #0B1F3A;
    --lh-navy-2:      #13294B;
    --lh-navy-3:      #1C3A66;
    --lh-blue:        #1F6FEB;   /* 4.6:1 on white: OK for text and buttons */
    --lh-blue-dark:   #1659C4;
    --lh-blue-soft:   #E8F0FE;
    --lh-gold:        #C9A227;   /* accents only; never body text on white */
    --lh-gold-soft:   #FBF5E1;
    --lh-gold-ink:    #7A5F0C;   /* gold-family text that passes contrast */

    /* Neutrals */
    --lh-ink:         #0F172A;
    --lh-ink-2:       #334155;
    --lh-muted:       #64748B;
    --lh-line:        #E2E8F0;
    --lh-line-2:      #EEF2F7;
    --lh-bg:          #F6F8FB;
    --lh-white:       #FFFFFF;

    /* Status */
    --lh-green:       #0F8A5F;  --lh-green-soft:  #E6F6EF;
    --lh-amber:       #B45309;  --lh-amber-soft:  #FEF3E2;
    --lh-red:         #C2362B;  --lh-red-soft:    #FDECEA;
    --lh-violet:      #6D4AFF;  --lh-violet-soft: #F0ECFF;

    /* Shape, depth, motion */
    --lh-radius-sm:   8px;
    --lh-radius:      14px;
    --lh-radius-lg:   20px;
    --lh-shadow-sm:   0 1px 2px rgba(15, 23, 42, .06);
    --lh-shadow:      0 4px 16px rgba(15, 23, 42, .07);
    --lh-shadow-lg:   0 14px 40px rgba(15, 23, 42, .12);
    --lh-ease:        cubic-bezier(.2, .7, .2, 1);
    --lh-fast:        .16s;

    /* Inter carries the Latin letters, Noto Sans Devanagari the Marathi ones. Both are named so a page
       mixing the two (a Marathi description under an English heading) uses one family for each. */
    --lh-font: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --lh-sidebar-w: 260px;

    /* Bootstrap re-pointing */
    --bs-primary:            var(--lh-blue);
    --bs-primary-rgb:        31, 111, 235;
    --bs-dark-rgb:           11, 31, 58;
    --bs-body-font-family:   var(--lh-font);
    --bs-body-color:         var(--lh-ink);
    --bs-body-bg:            var(--lh-white);
    --bs-secondary-color:    var(--lh-muted);
    --bs-border-color:       var(--lh-line);
    --bs-border-radius:      var(--lh-radius-sm);
    --bs-border-radius-lg:   var(--lh-radius);
    --bs-link-color:         var(--lh-blue);
    --bs-link-color-rgb:     31, 111, 235;
    --bs-link-hover-color:   var(--lh-blue-dark);
    --bs-link-hover-color-rgb: 22, 89, 196;
    --bs-focus-ring-color:   rgba(31, 111, 235, .25);
}

/* ── 2. Base ───────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--lh-font);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    color: var(--lh-ink);
    background: var(--lh-white);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--lh-navy);
    font-weight: 700;
    letter-spacing: -.015em;
}
.display-5, .display-6 { letter-spacing: -.03em; }
.text-muted, .text-secondary { color: var(--lh-muted) !important; }
.text-primary { color: var(--lh-blue) !important; }
.bg-primary   { background-color: var(--lh-navy) !important; }   /* legacy hero/headers become navy */
.bg-light     { background-color: var(--lh-bg) !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.btn:hover, .nav-link:hover, .lh-card-link:hover, .dropdown-item:hover, .page-link:hover { text-decoration: none; }
::selection { background: var(--lh-blue-soft); }

.material-icons { vertical-align: middle; line-height: 1; }
.lh-ico-sm { font-size: 1rem !important; }
.lh-ico-md { font-size: 1.25rem !important; }

:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; }

.lh-skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--lh-navy); color: #fff; padding: .5rem 1rem; border-radius: var(--lh-radius-sm);
}
.lh-skip-link:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── 3. Buttons ────────────────────────────────────────────────────── */
.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; transition: all var(--lh-fast) var(--lh-ease); }
.btn-sm { padding: .35rem .8rem; border-radius: 8px; font-size: .85rem; }
.btn-lg { padding: .8rem 1.5rem; border-radius: 12px; }
.btn .material-icons { font-size: 1.1em; margin-top: -2px; }
.btn-primary {
    --bs-btn-bg: var(--lh-blue); --bs-btn-border-color: var(--lh-blue);
    --bs-btn-hover-bg: var(--lh-blue-dark); --bs-btn-hover-border-color: var(--lh-blue-dark);
    --bs-btn-active-bg: var(--lh-blue-dark); --bs-btn-active-border-color: var(--lh-blue-dark);
    --bs-btn-disabled-bg: var(--lh-blue); --bs-btn-disabled-border-color: var(--lh-blue);
    box-shadow: 0 2px 6px rgba(31, 111, 235, .25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(31, 111, 235, .3); }
.btn-outline-primary {
    --bs-btn-color: var(--lh-blue); --bs-btn-border-color: #BFD3FB;
    --bs-btn-hover-bg: var(--lh-blue-soft); --bs-btn-hover-color: var(--lh-blue-dark); --bs-btn-hover-border-color: var(--lh-blue);
    --bs-btn-active-bg: var(--lh-blue-soft); --bs-btn-active-color: var(--lh-blue-dark); --bs-btn-active-border-color: var(--lh-blue);
}
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--lh-line); --bs-btn-color: var(--lh-navy); }
.btn-navy {
    --bs-btn-bg: var(--lh-navy); --bs-btn-color: #fff; --bs-btn-border-color: var(--lh-navy);
    --bs-btn-hover-bg: var(--lh-navy-3); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--lh-navy-3);
    --bs-btn-active-bg: var(--lh-navy-2); --bs-btn-active-color: #fff;
}
.btn-gold {
    --bs-btn-bg: var(--lh-gold); --bs-btn-color: var(--lh-navy); --bs-btn-border-color: var(--lh-gold);
    --bs-btn-hover-bg: #B8921C; --bs-btn-hover-color: var(--lh-navy); --bs-btn-hover-border-color: #B8921C;
    --bs-btn-active-bg: #A8841A; --bs-btn-active-color: var(--lh-navy);
}
.btn-whatsapp {
    --bs-btn-bg: #1FAF53; --bs-btn-color: #fff; --bs-btn-border-color: #1FAF53;
    --bs-btn-hover-bg: #178F43; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #178F43;
}
.btn-ghost { --bs-btn-color: var(--lh-ink-2); --bs-btn-hover-bg: var(--lh-line-2); --bs-btn-hover-color: var(--lh-navy); border: 0; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 1.1rem; height: 1.1rem;
    border: 2px solid rgba(255, 255, 255, .6); border-top-color: #fff; border-radius: 50%;
    animation: lh-spin .7s linear infinite;
}
.btn-outline-primary.is-loading::after, .btn-light.is-loading::after { border-color: #BFD3FB; border-top-color: var(--lh-blue); }
@keyframes lh-spin { to { transform: rotate(360deg); } }

/* ── 4. Forms ──────────────────────────────────────────────────────── */
.form-label { font-weight: 600; color: var(--lh-ink-2); font-size: .9rem; margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px; border-color: #D5DEEA; padding: .6rem .85rem; min-height: 44px;
    transition: border-color var(--lh-fast), box-shadow var(--lh-fast);
}
.form-control-sm, .form-select-sm { min-height: 36px; padding: .35rem .65rem; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--lh-blue); box-shadow: 0 0 0 4px rgba(31, 111, 235, .12); }
.form-text { color: var(--lh-muted); }
.form-check-input:checked { background-color: var(--lh-blue); border-color: var(--lh-blue); }
.invalid-feedback { font-weight: 500; }
.input-group-text { background: var(--lh-bg); border-color: #D5DEEA; border-radius: 10px; }

/* Tap-to-select chips (BHK, amenities, purpose …) */
.lh-chip-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.lh-chip-group input { position: absolute; opacity: 0; pointer-events: none; }
.lh-chip {
    display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; user-select: none;
    padding: .5rem .9rem; min-height: 40px; border-radius: 999px;
    border: 1.5px solid var(--lh-line); background: #fff; color: var(--lh-ink-2); font-weight: 500; font-size: .9rem;
    transition: all var(--lh-fast) var(--lh-ease);
}
.lh-chip:hover { border-color: #BFD3FB; color: var(--lh-navy); }
.lh-chip-group input:checked + .lh-chip, .lh-chip.is-active {
    border-color: var(--lh-blue); background: var(--lh-blue-soft); color: var(--lh-blue-dark); font-weight: 600;
}
.lh-chip-group input:focus-visible + .lh-chip { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; }

/* Large choice tiles (wizard step 1/2) */
.lh-tile-group input { position: absolute; opacity: 0; pointer-events: none; }
.lh-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; height: 100%;
    padding: 1.1rem .75rem; text-align: center; cursor: pointer; border-radius: var(--lh-radius);
    border: 1.5px solid var(--lh-line); background: #fff; font-weight: 600; color: var(--lh-navy);
    transition: all var(--lh-fast) var(--lh-ease);
}
.lh-tile .material-icons { font-size: 2rem; color: var(--lh-blue); }
.lh-tile small { font-weight: 400; color: var(--lh-muted); }
.lh-tile:hover { border-color: #BFD3FB; box-shadow: var(--lh-shadow); transform: translateY(-2px); }
.lh-tile-group input:checked + .lh-tile { border-color: var(--lh-blue); background: var(--lh-blue-soft); box-shadow: 0 0 0 3px rgba(31, 111, 235, .15); }
.lh-tile-group input:focus-visible + .lh-tile { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; }

/* ── 5. Cards, surfaces ────────────────────────────────────────────── */
.card { border-color: var(--lh-line); border-radius: var(--lh-radius); }
.card.shadow-sm, .card.shadow { box-shadow: var(--lh-shadow-sm) !important; }
.card-header { background: #fff; border-bottom-color: var(--lh-line-2); font-weight: 600; }
.card-header.bg-primary { background: var(--lh-navy) !important; }
.lh-surface { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm); }
.lh-surface-pad { padding: 1.25rem; }
@media (min-width: 768px) { .lh-surface-pad { padding: 1.5rem; } }
.lh-section { padding: 3.5rem 0; }
.lh-section-alt { background: var(--lh-bg); }
.lh-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lh-gold-ink); }
.lh-section-title { font-size: clamp(1.4rem, 2.5vw, 2rem); margin-bottom: .35rem; }
.lh-section-sub { color: var(--lh-muted); margin-bottom: 1.75rem; }

/* Property / project card */
.lh-card {
    position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow-sm); transition: transform var(--lh-fast) var(--lh-ease), box-shadow var(--lh-fast) var(--lh-ease);
}
.lh-card:hover { transform: translateY(-4px); box-shadow: var(--lh-shadow-lg); }
.lh-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--lh-line-2); overflow: hidden; }
.lh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--lh-ease); }
.lh-card:hover .lh-card-media img { transform: scale(1.04); }
.lh-card-tags { position: absolute; top: .75rem; left: .75rem; right: 3.4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.lh-card-fav {
    position: absolute; top: .6rem; right: .6rem; width: 38px; height: 38px; border-radius: 50%; border: 0;
    display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--lh-ink-2); box-shadow: var(--lh-shadow-sm);
}
.lh-card-fav.is-active { color: var(--lh-red); }
.lh-card-count {
    position: absolute; bottom: .6rem; right: .6rem; padding: .15rem .5rem; border-radius: 6px; font-size: .75rem;
    background: rgba(11, 31, 58, .75); color: #fff; display: inline-flex; align-items: center; gap: .2rem;
}
.lh-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.lh-card-price { font-size: 1.2rem; font-weight: 800; color: var(--lh-navy); letter-spacing: -.02em; }
.lh-card-price small { font-size: .8rem; font-weight: 500; color: var(--lh-muted); }
.lh-card-title { font-size: 1rem; font-weight: 600; color: var(--lh-ink); margin: 0; line-height: 1.35; }
.lh-card-loc { font-size: .85rem; color: var(--lh-muted); display: flex; align-items: center; gap: .2rem; }
.lh-card-facts { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--lh-line); font-size: .82rem; color: var(--lh-ink-2); }
.lh-card-facts span { display: inline-flex; align-items: center; gap: .25rem; }
.lh-card-facts .material-icons { font-size: 1rem; color: var(--lh-muted); }
.lh-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lh-card-fav, .lh-card .lh-above-link { position: absolute; z-index: 2; }

/* Stat card */
.lh-stat {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; height: 100%;
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm);
    position: relative; transition: box-shadow var(--lh-fast), transform var(--lh-fast);
}
a.lh-stat:hover, .lh-stat:has(a.stretched-link):hover { box-shadow: var(--lh-shadow); transform: translateY(-2px); }
.lh-stat-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.lh-stat-icon .material-icons { font-size: 1.5rem; }
.lh-stat-value { font-size: 1.6rem; font-weight: 800; color: var(--lh-navy); line-height: 1.1; letter-spacing: -.02em; }
.lh-stat-label { font-size: .85rem; color: var(--lh-muted); font-weight: 500; }
.lh-tone-blue   { background: var(--lh-blue-soft);   color: var(--lh-blue); }
.lh-tone-green  { background: var(--lh-green-soft);  color: var(--lh-green); }
.lh-tone-amber  { background: var(--lh-amber-soft);  color: var(--lh-amber); }
.lh-tone-red    { background: var(--lh-red-soft);    color: var(--lh-red); }
.lh-tone-gold   { background: var(--lh-gold-soft);   color: var(--lh-gold-ink); }
.lh-tone-navy   { background: #E3E8F1;               color: var(--lh-navy); }
.lh-tone-violet { background: var(--lh-violet-soft); color: var(--lh-violet); }
.lh-tone-navy   { background: #E7ECF4;               color: var(--lh-navy); }

/* ── 6. Badges, pills, trust marks ─────────────────────────────────── */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 6px; padding: .4em .6em; }
.lh-pill {
    display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
    padding: .25rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.lh-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.lh-pill.no-dot::before { display: none; }
.lh-pill-grey { background: #EEF2F6; color: #475569; }
.lh-pill-blue   { background: var(--lh-blue-soft);   color: var(--lh-blue-dark); }
.lh-pill-green  { background: var(--lh-green-soft);  color: var(--lh-green); }
.lh-pill-amber  { background: var(--lh-amber-soft);  color: var(--lh-amber); }
.lh-pill-red    { background: var(--lh-red-soft);    color: var(--lh-red); }
.lh-pill-violet { background: var(--lh-violet-soft); color: var(--lh-violet); }
.lh-pill-navy   { background: var(--lh-navy);        color: #fff; }
.lh-pill-glass  { background: rgba(255, 255, 255, .92); color: var(--lh-navy); box-shadow: var(--lh-shadow-sm); }

.lh-trust {
    display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px;
    background: var(--lh-gold-soft); color: var(--lh-gold-ink); border: 1px solid #EBDDA8;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.lh-trust .material-icons { font-size: 1rem; color: var(--lh-gold); }
.lh-disclaimer {
    display: flex; gap: .5rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 10px;
    background: var(--lh-bg); border: 1px solid var(--lh-line); font-size: .8rem; color: var(--lh-muted);
}
.lh-disclaimer .material-icons { font-size: 1.1rem; color: var(--lh-muted); }

/* ── 7. Alerts, toasts, empty states, skeletons ───────────────────── */
.alert { border-radius: 12px; border-width: 1px; display: flex; gap: .6rem; align-items: flex-start; }
.alert .btn-close { margin-left: auto; }
.alert-success { background: var(--lh-green-soft); border-color: #BFE6D3; color: #0B5E41; }
.alert-warning { background: var(--lh-amber-soft); border-color: #F6D9A8; color: #7C3A06; }
.alert-danger  { background: var(--lh-red-soft);   border-color: #F4C2BD; color: #8E1F16; }
.alert-info    { background: var(--lh-blue-soft);  border-color: #C6D8FB; color: #133E86; }

.lh-toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.lh-toast {
    display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px;
    background: var(--lh-navy); color: #fff; box-shadow: var(--lh-shadow-lg); font-size: .9rem;
    animation: lh-toast-in .25s var(--lh-ease);
}
.lh-toast.is-success .material-icons { color: #5FD8A4; }
.lh-toast.is-error   .material-icons { color: #FF9A8F; }
.lh-toast.is-warning .material-icons { color: #F7C95C; }
@keyframes lh-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lh-empty { text-align: center; padding: 2.5rem 1rem; color: var(--lh-muted); }
.lh-empty-icon { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--lh-blue-soft); color: var(--lh-blue); }
.lh-empty-icon .material-icons { font-size: 2.1rem; }
.lh-empty h5 { color: var(--lh-navy); margin-bottom: .35rem; }
.lh-empty p { max-width: 420px; margin: 0 auto 1rem; }

.lh-skeleton {
    background: linear-gradient(90deg, #EEF2F7 25%, #F7F9FC 50%, #EEF2F7 75%);
    background-size: 200% 100%; animation: lh-shimmer 1.2s infinite linear; border-radius: 8px;
}
.lh-skeleton-line { height: .85rem; margin-bottom: .5rem; }
@keyframes lh-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── 8. Tables ─────────────────────────────────────────────────────── */
.table { --bs-table-hover-bg: #F8FAFD; margin-bottom: 0; }
.table > thead th {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--lh-muted);
    font-weight: 700; background: var(--lh-bg); border-bottom: 1px solid var(--lh-line); white-space: nowrap;
}
.table > :not(caption) > * > * { padding: .8rem .9rem; border-bottom-color: var(--lh-line-2); }
.table-primary { --bs-table-bg: var(--lh-bg); --bs-table-color: var(--lh-muted); }
.table-responsive { border: 1px solid var(--lh-line); border-radius: var(--lh-radius); background: #fff; box-shadow: var(--lh-shadow-sm); margin-bottom: 1.5rem; }
.table-responsive > .table > tbody > tr:last-child > * { border-bottom: 0; }

/* ── 9. Navigation: public navbar ──────────────────────────────────── */
.lh-nav { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--lh-line); }
.lh-nav .navbar { padding: .55rem 0; }
.lh-nav .nav-link { color: var(--lh-ink-2); font-weight: 500; padding: .5rem .85rem !important; border-radius: 8px; }
.lh-nav .nav-link:hover, .lh-nav .nav-link.active { color: var(--lh-navy); background: var(--lh-line-2); }
.lh-brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--lh-navy) !important; letter-spacing: -.02em; }
.lh-brand-mark {
    width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--lh-navy) 0%, var(--lh-navy-3) 100%); color: var(--lh-gold);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .35);
}
.lh-brand-mark .material-icons { font-size: 1.3rem; }
.lh-brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lh-gold-ink); margin-top: -2px; }
.lh-brand-text { line-height: 1.05; }
.lh-post-btn .lh-free { background: var(--lh-gold); color: var(--lh-navy); font-size: .65rem; font-weight: 800; padding: .1rem .35rem; border-radius: 4px; margin-left: .25rem; letter-spacing: .04em; }

/* ── 10. Footer ────────────────────────────────────────────────────── */
.lh-footer { background: var(--lh-navy); color: #B9C5D8; padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .9rem; }
.lh-footer h6 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.lh-footer a { color: #D6DEEA; }
.lh-footer a:hover { color: #fff; }
.lh-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.lh-footer .lh-brand { color: #fff !important; }
.lh-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding-top: 1.25rem; font-size: .8rem; color: #93A3BC; }

/* ── 11. Portal shell (sidebar layout for admin / seller / staff) ─── */
.lh-portal { background: var(--lh-bg); min-height: 100vh; }
.lh-topbar {
    position: sticky; top: 0; z-index: 1030; height: 60px; display: flex; align-items: center; gap: .75rem;
    padding: 0 1rem; background: #fff; border-bottom: 1px solid var(--lh-line);
}
@media (min-width: 992px) { .lh-topbar { margin-left: var(--lh-sidebar-w); padding: 0 1.75rem; } }
.lh-topbar-title { font-weight: 600; color: var(--lh-navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-navy); color: var(--lh-gold); font-weight: 700; font-size: .9rem; flex: none; }

/* Bootstrap's .offcanvas-lg forces a transparent background on desktop,
   so the colour lives on the inner wrapper. */
.lh-sidebar { --bs-offcanvas-width: var(--lh-sidebar-w); --bs-offcanvas-bg: var(--lh-navy); color: #C3CEDF; }
@media (min-width: 992px) {
    .lh-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1035; }
}
.lh-sidebar-inner { width: var(--lh-sidebar-w); height: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--lh-navy); }
@media (min-width: 992px) { .lh-sidebar-inner { height: 100vh; } }
.lh-sidebar-head { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lh-sidebar .lh-brand { color: #fff !important; font-size: 1.05rem; }
.lh-sidebar-body { flex: 1; overflow-y: auto; padding: 1rem .75rem; }
.lh-side-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7F8FA9; padding: .9rem .75rem .4rem; }
.lh-side-link {
    display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; margin-bottom: 2px; border-radius: 10px;
    color: #C3CEDF; font-weight: 500; font-size: .92rem; transition: background var(--lh-fast), color var(--lh-fast);
}
.lh-side-link .material-icons { font-size: 1.25rem; opacity: .85; }
.lh-side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.lh-side-link.active { background: rgba(31, 111, 235, .22); color: #fff; box-shadow: inset 3px 0 0 var(--lh-gold); }
.lh-side-link.active .material-icons { color: var(--lh-gold); opacity: 1; }
.lh-side-link .lh-side-count { margin-left: auto; background: var(--lh-red); color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; }
.lh-sidebar-foot { padding: .75rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.lh-sidebar-foot button.lh-side-link { width: 100%; background: none; border: 0; text-align: left; }

.lh-portal-main { padding: 1.25rem 1rem 3rem; }
@media (min-width: 992px) { .lh-portal-main { margin-left: var(--lh-sidebar-w); padding: 1.75rem 1.75rem 3rem; } }
.lh-portal-main > .container, .lh-portal-main main > .container { max-width: 1320px; margin-top: 0 !important; padding: 0; }
.lh-page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.lh-page-head h1, .lh-page-head h2 { font-size: 1.5rem; margin: 0; }

/* Legacy pill nav: replaced by the sidebar inside the portal */
.lh-portal-main .nav-pills { display: none; }

/* ── 12. Stepper (wizards) ─────────────────────────────────────────── */
.lh-stepper { display: flex; gap: .25rem; counter-reset: lh-step; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.lh-stepper::-webkit-scrollbar { display: none; }
.lh-step { flex: 1 0 auto; min-width: 88px; display: flex; flex-direction: column; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--lh-muted); }
.lh-step-bar { height: 4px; border-radius: 4px; background: var(--lh-line); }
.lh-step.is-done .lh-step-bar { background: var(--lh-green); }
.lh-step.is-current .lh-step-bar { background: var(--lh-blue); }
.lh-step.is-current { color: var(--lh-navy); }
.lh-step.is-done { color: var(--lh-ink-2); }
.lh-step-num::before { counter-increment: lh-step; content: counter(lh-step) ". "; }
.lh-action-bar {
    position: sticky; bottom: 0; z-index: 1020; display: flex; gap: .5rem; justify-content: space-between; align-items: center;
    padding: .75rem 1rem; margin: 1.5rem -1rem -1rem; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--lh-line);
    backdrop-filter: blur(6px); border-radius: 0 0 var(--lh-radius) var(--lh-radius);
}

/* ── 13. Pagination ────────────────────────────────────────────────── */
.pagination { gap: .3rem; }
.page-link { border-radius: 8px !important; border-color: var(--lh-line); color: var(--lh-ink-2); font-weight: 600; min-width: 40px; text-align: center; }
.page-item.active .page-link { background: var(--lh-navy); border-color: var(--lh-navy); }
.page-item.disabled .page-link { background: transparent; }

/* ── 14. Hero (public) ─────────────────────────────────────────────── */
.lh-hero {
    position: relative; color: #fff; overflow: hidden;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(201, 162, 39, .22), transparent 60%),
        radial-gradient(700px 380px at 0% 110%, rgba(31, 111, 235, .35), transparent 60%),
        linear-gradient(160deg, var(--lh-navy) 0%, var(--lh-navy-2) 55%, #10325F 100%);
}
.lh-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.035em; }
.lh-hero .lead { color: #C9D5E8; }
.lh-hero-accent { color: var(--lh-gold); }

/* Homepage hero + search */
.lh-home-hero { padding: 3.5rem 0 2.5rem; }
@media (min-width: 992px) { .lh-home-hero { padding: 5rem 0 3rem; } }
.lh-search {
    background: #fff; border-radius: var(--lh-radius-lg); box-shadow: 0 24px 60px rgba(4, 14, 30, .35);
    padding: .5rem; text-align: left; color: var(--lh-ink);
}
.lh-search-tabs { display: flex; gap: .25rem; padding: .25rem .25rem .5rem; border-bottom: 1px solid var(--lh-line-2); margin-bottom: .5rem; }
.lh-search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.lh-search-tab span {
    display: inline-block; padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
    color: var(--lh-muted); cursor: pointer; transition: all var(--lh-fast);
}
.lh-search-tab span:hover { color: var(--lh-navy); background: var(--lh-line-2); }
.lh-search-tab input:checked + span { background: var(--lh-navy); color: #fff; }
.lh-search-tab input:focus-visible + span { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 2px; }
.lh-search-row { display: flex; flex-direction: column; gap: .25rem; }
/* Stacked on phones; two columns on tablets; one row on desktop */
@media (min-width: 576px) and (max-width: 991.98px) {
    .lh-search-row { display: grid; grid-template-columns: 1fr 1fr; }
    .lh-search-grow, .lh-search-btn { grid-column: 1 / -1; }
}
@media (min-width: 992px) { .lh-search-row { flex-direction: row; align-items: stretch; } }
.lh-search-field {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .85rem; border-radius: 12px; min-width: 0;
    transition: background var(--lh-fast);
}
@media (min-width: 992px) { .lh-search-field { flex: 0 0 22%; } .lh-search-field + .lh-search-field { border-left: 1px solid var(--lh-line-2); } }
@media (max-width: 991.98px) { .lh-search-field { background: var(--lh-bg); } }
.lh-search-grow { flex: 1 1 auto !important; }
.lh-search-field:focus-within { background: var(--lh-blue-soft); }
.lh-search-field > .material-icons { color: var(--lh-blue); font-size: 1.35rem; }
.lh-search-field label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-muted); margin: 0; }
.lh-search-field input, .lh-search-field select {
    width: 100%; border: 0; outline: 0; background: transparent; padding: .1rem 0; font-weight: 600; color: var(--lh-navy);
    font-size: 1rem; min-height: 28px; appearance: none; -webkit-appearance: none;
}
.lh-search-field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748B' stroke-width='2' d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 14px; padding-right: 1.2rem; }
.lh-search-field input::placeholder { color: #94A3B8; font-weight: 500; }
.lh-search-btn { border-radius: 14px; white-space: nowrap; }
@media (max-width: 991.98px) { .lh-search-btn { width: 100%; margin-top: .25rem; } }

.lh-quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .5rem; font-size: .88rem; color: #AFC0D9; }
.lh-quick-links a { color: #fff; padding: .2rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); }
.lh-quick-links a:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }

.lh-hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.lh-hero-stats div { text-align: center; }
.lh-hero-stats strong { display: block; font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.lh-hero-stats span { font-size: .85rem; color: #AFC0D9; }

.lh-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }

/* Locality tiles */
.lh-locality {
    position: relative; display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.1rem 1rem;
    border-radius: var(--lh-radius); color: #fff !important; overflow: hidden; min-height: 116px;
    transition: transform var(--lh-fast) var(--lh-ease), box-shadow var(--lh-fast);
}
.lh-locality:hover { transform: translateY(-3px); box-shadow: var(--lh-shadow-lg); text-decoration: none; }
.lh-locality > .material-icons { font-size: 1.6rem; opacity: .9; margin-bottom: auto; }
.lh-locality::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.lh-locality-name { font-weight: 700; font-size: 1.02rem; margin-top: .6rem; }
.lh-locality-count { font-size: .8rem; opacity: .85; }
.lh-locality-0 { background: linear-gradient(140deg, #0B1F3A, #1C3A66); }
.lh-locality-1 { background: linear-gradient(140deg, #1659C4, #1F6FEB); }
.lh-locality-2 { background: linear-gradient(140deg, #13294B, #2A4B7C); }
.lh-locality-3 { background: linear-gradient(140deg, #7A5F0C, #B08A1E); }

/* Horizontal card scroller */
.lh-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .25rem 1rem; scrollbar-width: thin; }
@media (min-width: 576px) { .lh-scroller { grid-auto-columns: 46%; } }
@media (min-width: 992px) { .lh-scroller { grid-auto-columns: calc((100% - 3rem) / 4); } }
.lh-scroller-item { scroll-snap-align: start; }

/* Builder cards */
.lh-builder {
    display: flex; align-items: center; gap: .85rem; height: 100%; padding: 1rem; color: inherit !important;
    background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm);
    transition: box-shadow var(--lh-fast), transform var(--lh-fast);
}
.lh-builder:hover { box-shadow: var(--lh-shadow); transform: translateY(-2px); text-decoration: none; }
.lh-builder-logo { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--lh-navy); color: var(--lh-gold); }
.lh-builder-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; color: var(--lh-navy); line-height: 1.3; }
.lh-builder-meta { display: block; font-size: .8rem; color: var(--lh-muted); }
.lh-builder .lh-trust { padding: .2rem .35rem; }
.min-w-0 { min-width: 0; }

/* How it works */
.lh-step-card { position: relative; height: 100%; padding: 1.5rem; border-radius: var(--lh-radius); border: 1px solid var(--lh-line); background: #fff; }
.lh-step-badge { position: absolute; top: 1.1rem; right: 1.2rem; font-size: 2.2rem; font-weight: 800; color: var(--lh-line); line-height: 1; }

/* Testimonials */
.lh-quote { height: 100%; margin: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm); display: flex; flex-direction: column; }
.lh-quote blockquote { color: var(--lh-ink-2); font-size: 1rem; line-height: 1.6; flex: 1; }
.lh-quote-stars { color: var(--lh-gold); letter-spacing: .1em; margin-bottom: .6rem; }
.lh-quote figcaption { display: flex; align-items: center; gap: .7rem; }

/* CTA band */
.lh-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: 2rem; border-radius: var(--lh-radius-lg);
    background: radial-gradient(600px 240px at 100% 0%, rgba(201, 162, 39, .25), transparent 60%), linear-gradient(135deg, var(--lh-navy), var(--lh-navy-3));
}
@media (min-width: 992px) { .lh-cta { padding: 2.5rem 3rem; } }

/* Active filter chips (listing page) */
.lh-filter-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .4rem .3rem .75rem; border-radius: 999px; background: var(--lh-blue-soft); color: var(--lh-blue-dark); font-weight: 600; font-size: .85rem; }
.lh-filter-chip a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--lh-blue-dark); }
.lh-filter-chip a:hover { background: rgba(31, 111, 235, .15); text-decoration: none; }
.lh-filter-chip .material-icons { font-size: 1rem; }

/* ── Search results: filter sidebar ──────────────────────────────── */
/* Bootstrap's .offcanvas-lg strips background, border and padding on desktop,
   so the panel look lives on the inner form. */
@media (min-width: 992px) {
    .lh-filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: var(--lh-radius); }
    .lh-filter-form { background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm); }
}
.lh-filters.offcanvas-lg { --bs-offcanvas-width: min(360px, 92vw); }
@media (max-width: 991.98px) { .lh-filters .lh-filter-form { overflow-y: auto; flex: 1; } }
.lh-filter-form { display: flex; flex-direction: column; padding: 1.1rem; }
.lh-filter-group { border: 0; padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px solid var(--lh-line-2); min-width: 0; }
.lh-filter-title { display: block; float: none; width: auto; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
                   text-transform: uppercase; color: var(--lh-muted); margin-bottom: .6rem; padding: 0; }
.lh-filter-form .lh-chip { padding: .35rem .75rem; min-height: 34px; font-size: .85rem; }
.lh-filter-form .form-check { min-height: 28px; }
.lh-filter-form .form-check-label { font-size: .92rem; cursor: pointer; }
.lh-filter-actions { display: flex; gap: .5rem; position: sticky; bottom: 0; background: #fff; padding: .75rem 0 .1rem; margin-top: auto; }
@media (min-width: 992px) { .lh-filter-actions .btn-primary { display: none; } }   /* desktop applies on change */
.lh-results-bar { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }

/* Card: save + compare buttons */
.lh-card-fav { transition: transform var(--lh-fast), color var(--lh-fast); cursor: pointer; }
.lh-card-fav:hover { transform: scale(1.08); color: var(--lh-red); }
.lh-card-fav.is-active .material-icons { color: var(--lh-red); }
.lh-card-compare {
    position: absolute; z-index: 2; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .15rem;
    padding: .2rem .6rem .2rem .4rem; border: 0; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .92); color: var(--lh-navy); box-shadow: var(--lh-shadow-sm); cursor: pointer;
}
.lh-card-compare .material-icons { font-size: 1rem; }
.lh-card-compare:hover { background: #fff; }
.lh-card-compare.is-active { background: var(--lh-navy); color: #fff; }
.lh-card-compare.is-active .material-icons { color: var(--lh-gold); }

/* Compare tray (fixed bottom bar) */
.lh-compare-tray {
    /* Centred with margins, not a transform: the entry animation animates transform. */
    /* z-index below Bootstrap's offcanvas/backdrop (1040+) so open panels and modals cover it. */
    position: fixed; left: 0; right: 0; margin: 0 auto; bottom: 1rem; z-index: 1035;
    width: min(920px, calc(100vw - 1.5rem)); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
    padding: .65rem .75rem; border-radius: 16px; background: var(--lh-navy); color: #fff; box-shadow: var(--lh-shadow-lg);
    animation: lh-toast-in .25s var(--lh-ease);
}
.lh-compare-items { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 auto; min-width: 0; }
.lh-compare-chip { display: inline-flex; align-items: center; gap: .2rem; max-width: 220px; padding: .2rem .25rem .2rem .7rem;
                   border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .82rem; font-weight: 600; }
.lh-compare-chip > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-compare-chip button { border: 0; background: none; color: #C9D5E8; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.lh-compare-chip button:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.lh-compare-chip .material-icons { font-size: 1rem; }
.lh-compare-actions { display: flex; gap: .4rem; margin-left: auto; }
@media (max-width: 575.98px) {
    .lh-compare-tray { bottom: .5rem; }
    .lh-compare-actions { width: 100%; }
    .lh-compare-actions .btn-gold { flex: 1; }
}
body.lh-has-tray .lh-toast-stack { bottom: 6rem; }
body.lh-has-tray .lh-footer { padding-bottom: 6rem; }

/* Compare table */
.lh-compare table { min-width: 640px; }
.lh-compare th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; width: 170px; font-size: .85rem; color: var(--lh-ink-2); }
.lh-compare thead th { background: #fff; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--lh-ink); vertical-align: top; }
.lh-compare-label-col { position: sticky; left: 0; z-index: 2; }
.lh-compare-col { min-width: 200px; }
.lh-compare-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--lh-line-2); }
.lh-compare-section th { background: var(--lh-bg) !important; font-size: .75rem !important; text-transform: uppercase; letter-spacing: .08em; color: var(--lh-muted) !important; }

/* ── Property / project detail page ──────────────────────────────── */
.breadcrumb { --bs-breadcrumb-divider-color: var(--lh-muted); --bs-breadcrumb-item-active-color: var(--lh-muted); flex-wrap: nowrap; overflow: hidden; }
.breadcrumb-item { white-space: nowrap; flex-shrink: 0; }
.breadcrumb-item.active { flex-shrink: 1; min-width: 0; }   /* only the page title shortens ("…"); links never overlap */

/* Gallery: one large + four small on desktop; a single swipeable hero on phones */
.lh-gallery { position: relative; border-radius: var(--lh-radius-lg); overflow: hidden; background: var(--lh-line-2); }
.lh-gallery button { border: 0; padding: 0; background: none; display: block; width: 100%; cursor: zoom-in; }
.lh-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--lh-ease), filter .2s; }
.lh-gallery button:hover img { transform: scale(1.03); filter: brightness(.95); }
.lh-gallery-main { aspect-ratio: 16 / 10; overflow: hidden; }
@media (min-width: 992px) { .lh-gallery-single .lh-gallery-main { aspect-ratio: 21 / 9; } }
.lh-gallery-grid { display: grid; gap: 6px; }
@media (min-width: 768px) {
    .lh-gallery-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(320px, 42vw, 460px); }
    .lh-gallery-grid .lh-gallery-main { grid-row: 1 / 3; aspect-ratio: auto; height: 100%; }
    .lh-gallery-thumb { position: relative; overflow: hidden; height: 100%; }
}
@media (max-width: 767.98px) { .lh-gallery-thumb { display: none !important; } }
.lh-gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11, 31, 58, .55); color: #fff; font-weight: 700; font-size: 1.1rem; }
.lh-gallery-count {
    position: absolute !important; right: .85rem; bottom: .85rem; width: auto !important; display: inline-flex !important; align-items: center; gap: .35rem;
    padding: .45rem .8rem !important; border-radius: 10px; background: rgba(255, 255, 255, .95) !important; color: var(--lh-navy);
    font-weight: 600; font-size: .85rem; box-shadow: var(--lh-shadow); cursor: pointer !important;
}
.lh-gallery-empty { position: relative; }
.lh-gallery-empty span { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: var(--lh-muted); font-weight: 600; }

.lh-detail-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; }
.lh-detail-price { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; color: var(--lh-navy); letter-spacing: -.02em; }
.lh-detail-action { display: inline-flex; align-items: center; gap: .3rem; }
.lh-detail-action.is-active { border-color: var(--lh-blue) !important; color: var(--lh-blue-dark); background: var(--lh-blue-soft); }
.lh-detail-action[data-lh-fav].is-active { color: var(--lh-red); border-color: #F4C2BD !important; background: var(--lh-red-soft); }

.lh-subnav {
    position: sticky; top: 64px; z-index: 5; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none;
    background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--lh-line); padding: .25rem 0; backdrop-filter: blur(6px);
}
.lh-subnav::-webkit-scrollbar { display: none; }
.lh-subnav a { flex: none; padding: .55rem .9rem; border-radius: 8px; color: var(--lh-ink-2); font-weight: 600; font-size: .9rem; }
.lh-subnav a:hover { background: var(--lh-line-2); color: var(--lh-navy); text-decoration: none; }
.lh-subnav a.active { color: var(--lh-blue-dark); background: var(--lh-blue-soft); }
.lh-detail-section { padding: 1.75rem 0; border-bottom: 1px solid var(--lh-line-2); scroll-margin-top: 130px; }
.lh-detail-section:last-child { border-bottom: 0; }

.lh-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .lh-facts { grid-template-columns: repeat(3, 1fr); } }
.lh-fact { display: flex; gap: .7rem; align-items: center; padding: .85rem; border-radius: 12px; background: var(--lh-bg); }
.lh-fact > .material-icons { color: var(--lh-blue); font-size: 1.4rem; }
.lh-fact small { display: block; color: var(--lh-muted); font-size: .75rem; }
.lh-fact strong { display: block; color: var(--lh-navy); font-size: .95rem; line-height: 1.3; }

.lh-readmore { max-height: 9.5rem; overflow: hidden; position: relative; transition: max-height .3s var(--lh-ease); }
.lh-readmore.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3rem; background: linear-gradient(transparent, #fff); }
.lh-readmore.is-open { max-height: none; }

.lh-config { height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); background: #fff; }
.lh-config-type { font-weight: 800; font-size: 1.15rem; color: var(--lh-navy); }
.lh-config-price { font-weight: 800; font-size: 1.1rem; color: var(--lh-navy); }

.lh-amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 768px) { .lh-amenities { grid-template-columns: repeat(3, 1fr); } }
.lh-amenity { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border-radius: 10px; border: 1px solid var(--lh-line-2); font-size: .9rem; }
.lh-amenity .material-icons { color: var(--lh-gold); font-size: 1.25rem; }

.lh-map { position: relative; aspect-ratio: 16 / 9; border-radius: var(--lh-radius); overflow: hidden; background: var(--lh-bg); border: 1px solid var(--lh-line); }
.lh-map iframe { width: 100%; height: 100%; border: 0; }
.lh-map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1rem;
    background: repeating-linear-gradient(45deg, #F3F6FA, #F3F6FA 12px, #EEF2F7 12px, #EEF2F7 24px); }
.lh-map-placeholder > .material-icons { font-size: 2.4rem; color: var(--lh-blue); margin-bottom: .4rem; }

.lh-builder-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); }
.lh-builder-logo-lg { width: 60px; height: 60px; font-size: 1.2rem; border-radius: 14px; }
.lh-checklist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.lh-checklist li { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.lh-checklist .material-icons { font-size: 1.2rem; margin-top: 1px; }

/* Enquiry card */
.lh-enquiry { border-radius: var(--lh-radius-lg); overflow: hidden; border: 1px solid var(--lh-line); box-shadow: var(--lh-shadow); background: #fff; scroll-margin-top: 90px; }
@media (min-width: 992px) { .lh-enquiry { position: sticky; top: 84px; } }
.lh-enquiry-head { padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--lh-navy), var(--lh-navy-3)); }
.lh-enquiry-body { padding: 1.25rem; }
.lh-enquiry.is-highlighted { box-shadow: 0 0 0 4px rgba(31, 111, 235, .35), var(--lh-shadow-lg); transition: box-shadow .3s; }

/* Mobile sticky action bar on detail pages */
.lh-mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--lh-line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
}
.lh-mobile-cta .btn { flex: none; margin-left: auto; }
@media (max-width: 991.98px) {
    body:has(.lh-mobile-cta) .lh-footer { padding-bottom: 6rem; }
    body:has(.lh-mobile-cta) .lh-compare-tray { display: none; }      /* the detail page has its own action bar */
    body:has(.lh-mobile-cta) .lh-toast-stack { bottom: 5.5rem; }
}

/* Photo lightbox */
.lh-lightbox .modal-content { background: #0A1424; color: #fff; display: flex; flex-direction: column; }
.lh-lightbox-bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; font-weight: 600; }
.lh-lightbox .carousel-inner, .lh-lightbox .carousel-item { height: 100%; }
.lh-lightbox-figure { height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1rem 1rem; }
.lh-lightbox-figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.lh-lightbox-figure figcaption { margin-top: .6rem; color: #C9D5E8; font-size: .9rem; }
.lh-lightbox .carousel-control-prev, .lh-lightbox .carousel-control-next { width: 12%; }

/* ── Registration ───────────────────────────────────────────────── */
.lh-register-aside {
    padding: 2rem; border-radius: var(--lh-radius-lg); color: #C9D5E8;
    background: radial-gradient(500px 220px at 100% 0%, rgba(201, 162, 39, .22), transparent 60%), linear-gradient(150deg, var(--lh-navy), var(--lh-navy-3));
}
.lh-register-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.lh-register-points li { display: flex; gap: .7rem; align-items: flex-start; }
.lh-register-points .material-icons { color: var(--lh-gold); }
@media (max-width: 991.98px) { .lh-register-aside { padding: 1.25rem; } .lh-register-aside h2 { font-size: 1.25rem; } }
.lh-otp-input { font-size: 1.8rem; font-weight: 700; letter-spacing: .6em; text-align: center; padding-left: .6em; font-variant-numeric: tabular-nums; }

/* Sign-up chooser */
.lh-choice {
    display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem; color: inherit !important;
    background: #fff; border: 1.5px solid var(--lh-line); border-radius: var(--lh-radius-lg); box-shadow: var(--lh-shadow-sm);
    transition: border-color var(--lh-fast), box-shadow var(--lh-fast), transform var(--lh-fast);
}
.lh-choice:hover { border-color: #BFD3FB; box-shadow: var(--lh-shadow); transform: translateY(-2px); text-decoration: none; }
.lh-choice-title { font-size: 1.2rem; font-weight: 800; color: var(--lh-navy); margin-top: .4rem; }
.lh-choice-text { color: var(--lh-ink-2); }
.lh-choice-list { list-style: none; padding: 0; margin: .25rem 0 1rem; display: grid; gap: .35rem; font-size: .88rem; color: var(--lh-muted); }
.lh-choice-list li::before { content: "✓"; color: var(--lh-green); font-weight: 700; margin-right: .45rem; }

/* Builder logo */
.lh-logo-box { width: 96px; height: 96px; border-radius: 16px; border: 1px solid var(--lh-line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.lh-logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.lh-builder-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }

/* Verification Centre */
.lh-tracker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: none; }
.lh-tracker li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--lh-muted); position: relative; }
.lh-tracker li .material-icons { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-line-2); color: var(--lh-muted); font-size: 1.3rem; z-index: 1; }
.lh-tracker li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: var(--lh-line); }
.lh-tracker li.is-done { color: var(--lh-ink-2); }
.lh-tracker li.is-done .material-icons { background: var(--lh-green-soft); color: var(--lh-green); }
.lh-tracker li.is-done:not(:last-child)::after { background: var(--lh-green); }
.lh-tracker li.is-current { color: var(--lh-navy); }
.lh-tracker li.is-current .material-icons { background: var(--lh-blue); color: #fff; box-shadow: 0 0 0 4px rgba(31, 111, 235, .18); }
.lh-tracker li.is-alert { color: var(--lh-amber); }
.lh-tracker li.is-alert .material-icons { background: var(--lh-amber-soft); color: var(--lh-amber); }
@media (max-width: 575.98px) {
    .lh-tracker { grid-template-columns: 1fr; }
    .lh-tracker li { flex-direction: row; text-align: left; }
    .lh-tracker li::after { display: none; }
    .lh-tracker li .material-icons { width: 34px; height: 34px; font-size: 1.1rem; }
}
.lh-doc-type { padding: .9rem 1rem; border: 1px solid var(--lh-line); border-radius: 12px; }
.lh-doc-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; }
.lh-doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; background: var(--lh-bg); font-size: .9rem; }
.lh-doc-list li .material-icons { color: var(--lh-blue); }
.lh-doc-list li a { font-weight: 600; word-break: break-all; }
.lh-upload-box { padding: 1rem; border: 1.5px dashed #C6D3E6; border-radius: 12px; background: #FAFCFF; }
.lh-timeline { list-style: none; padding: 0 0 0 1.1rem; margin: 0; border-left: 2px solid var(--lh-line); display: grid; gap: 1rem; }
.lh-timeline li { position: relative; }
.lh-timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--lh-blue); box-shadow: 0 0 0 3px #fff; }

.lh-review-doc { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--lh-line-2); }
.lh-review-doc:first-of-type { border-top: 0; padding-top: 0; }
.lh-review-preview { flex: none; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--lh-line); background: var(--lh-bg); }
.lh-review-preview a { display: block; width: 100%; height: 100%; }
.lh-review-preview img { width: 100%; height: 100%; object-fit: cover; }
.lh-pdf-tile { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: var(--lh-red); font-weight: 600; font-size: .8rem; }
.lh-pdf-tile .material-icons { font-size: 2.2rem; }
@media (max-width: 575.98px) { .lh-review-doc { flex-direction: column; } .lh-review-preview { width: 100%; height: 180px; } }

/* ── Listing wizard ─────────────────────────────────────────────── */
.lh-wizard-steps ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; }
.lh-wizard-steps ol::-webkit-scrollbar { display: none; }
.lh-wizard-steps li { flex: 1 0 auto; }
.lh-wizard-steps li > a, .lh-wizard-steps li > span {
    display: flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border-radius: 10px; border-bottom: 3px solid var(--lh-line);
    color: var(--lh-muted); font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.lh-wizard-steps li > a:hover { background: var(--lh-line-2); text-decoration: none; }
.lh-wstep-num { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-line-2); font-size: .75rem; }
.lh-wizard-steps li.is-done > a, .lh-wizard-steps li.is-done > span { color: var(--lh-ink-2); border-bottom-color: var(--lh-green); }
.lh-wizard-steps li.is-done .lh-wstep-num { background: var(--lh-green-soft); color: var(--lh-green); }
.lh-wizard-steps li.is-current > span { color: var(--lh-navy); border-bottom-color: var(--lh-blue); background: var(--lh-blue-soft); }
.lh-wizard-steps li.is-current .lh-wstep-num { background: var(--lh-blue); color: #fff; }
@media (max-width: 767.98px) { .lh-wizard-steps li:not(.is-current) .lh-wstep-label { display: none; } }
.lh-tile-sm { padding: .8rem .5rem; font-size: .88rem; }
.lh-tile-sm .material-icons { font-size: 1.6rem; }
.lh-sticky-side { position: sticky; top: 84px; }
.lh-meter { height: 10px; border-radius: 999px; background: var(--lh-line-2); overflow: hidden; }
.lh-meter span { display: block; height: 100%; border-radius: inherit; background: var(--lh-amber); transition: width .4s var(--lh-ease); }
.lh-meter span.is-ok { background: var(--lh-blue); }
.lh-meter span.is-good { background: var(--lh-green); }
.lh-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.lh-photo { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--lh-bg); }
.lh-photo.is-cover { border-color: var(--lh-gold); }
.lh-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.lh-photo-cover { position: absolute; top: .4rem; left: .4rem; display: inline-flex; align-items: center; gap: .15rem; padding: .1rem .45rem; border-radius: 6px; background: var(--lh-navy); color: #fff; font-size: .72rem; font-weight: 700; }
.lh-photo-cover .material-icons { font-size: .9rem; color: var(--lh-gold); }
.lh-photo-tools { display: flex; gap: .3rem; padding: .4rem .4rem 0; align-items: center; }
.lh-photo-tools form:last-child { margin-left: auto; }
.lh-photo-tools .btn { padding: .2rem .35rem; }
.lh-photo-tools .material-icons { font-size: 1.1rem; }
.lh-photo-move { padding: .35rem .4rem .45rem; }
.lh-photo[draggable="true"] { cursor: grab; transition: box-shadow .15s var(--lh-ease), opacity .15s; }
.lh-photo.is-dragging { opacity: .45; box-shadow: 0 0 0 2px var(--lh-blue); }
.lh-photo-drag { position: absolute; top: .4rem; right: .4rem; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,.88); color: var(--lh-muted); }
.lh-photo-drag .material-icons { font-size: 1.1rem; }
.lh-photo-group[hidden], .lh-photo[hidden] { display: none !important; }

/* ── Seller dashboard (Module 12) ───────────────────────────────── */
.lh-bell-dot { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
    background: var(--lh-red); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.lh-notif-menu { width: min(340px, 92vw); border-radius: 12px; overflow: hidden; }
.lh-notif-item { display: flex; gap: .65rem; align-items: flex-start; padding: .65rem 1rem; color: var(--lh-ink); text-decoration: none;
    border-bottom: 1px solid var(--lh-line-2); }
.lh-notif-item:hover { background: var(--lh-bg); text-decoration: none; }
.lh-notif-item .material-icons { color: var(--lh-blue); font-size: 1.25rem; margin-top: 2px; }
.lh-notif-item.is-unread { background: var(--lh-blue-soft); }
.lh-notif-item.is-unread:hover { background: #DCEAFE; }
.lh-chart-card { position: relative; min-height: 260px; }
.lh-chart-card canvas { max-height: 280px; }
.lh-stat-link { position: absolute; inset: 0; border-radius: inherit; }
.lh-list-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--lh-line-2); }
.lh-list-row:first-child { border-top: 0; }
.lh-when { flex: none; min-width: 120px; font-size: .82rem; font-weight: 600; color: var(--lh-navy); }
.lh-when.is-overdue { color: var(--lh-red); }
.lh-faq .accordion-button { font-weight: 600; }
.min-w-0 { min-width: 0; }

/* ── Admin-editable announcement banner (Module 14) ─────────────── */
.lh-announce { padding: .5rem 0; font-size: .9rem; font-weight: 600; text-align: center; background: var(--lh-blue-soft); color: var(--lh-navy); }
.lh-announce .material-icons { font-size: 1.15rem; color: var(--lh-blue); }
.lh-announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lh-announce.is-warning { background: var(--lh-amber-soft); }
.lh-announce.is-warning .material-icons { color: var(--lh-amber); }
.lh-announce.is-success { background: var(--lh-green-soft); }
.lh-announce.is-success .material-icons { color: var(--lh-green); }

/* ── CRM (Module 13) ────────────────────────────────────────────── */
.lh-stepper { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .15rem; }
.lh-stepper::-webkit-scrollbar { display: none; }
.lh-step { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: .25rem; min-width: 92px; padding: .45rem .35rem;
    border: 0; border-radius: 10px; background: transparent; color: var(--lh-muted); font-size: .78rem; font-weight: 600; }
.lh-step:hover:not(:disabled) { background: var(--lh-line-2); color: var(--lh-navy); }
.lh-step:disabled { opacity: 1; }
.lh-step-dot .material-icons { font-size: 1.35rem; }
.lh-step.is-done { color: var(--lh-green); }
.lh-step.is-current { color: var(--lh-blue); background: var(--lh-blue-soft); }
.lh-step-label { white-space: nowrap; }
.lh-activity { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.lh-activity li { display: flex; gap: .7rem; align-items: flex-start; }
.lh-activity-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-blue-soft); color: var(--lh-blue); }
.lh-activity-icon .material-icons { font-size: 1.05rem; }
.lh-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.lh-board-col { background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: 12px; padding: .6rem; min-height: 200px; display: flex; flex-direction: column; }
.lh-board-col.is-over { border-color: var(--lh-blue); box-shadow: 0 0 0 3px rgba(31,111,235,.15); }
.lh-board-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .85rem; color: var(--lh-navy); padding: .1rem .2rem .5rem; }
.lh-board-cards { display: grid; gap: .5rem; flex: 1; align-content: start; }
.lh-card-lead { background: #fff; border: 1px solid var(--lh-line); border-radius: 10px; padding: .6rem .65rem; cursor: grab; box-shadow: var(--lh-shadow-sm); }
.lh-card-lead.is-dragging { opacity: .5; }
.lh-card-lead.is-saving { opacity: .6; }
.lh-card-lead a { color: var(--lh-ink); font-weight: 700; }
.lh-card-lead .lh-card-meta { font-size: .76rem; color: var(--lh-muted); }
.lh-card-lead .form-select { font-size: .75rem; padding-top: .15rem; padding-bottom: .15rem; }
.lh-due { font-size: .75rem; font-weight: 600; color: var(--lh-navy); }
.lh-due.is-overdue { color: var(--lh-red); }
.lh-filterbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.lh-filterbar .form-select, .lh-filterbar .form-control { min-width: 140px; }

/* ── Builder inventory: towers and the unit grid (lh-inventory.js) ── */
.lh-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.lh-tabs::-webkit-scrollbar { display: none; }
.lh-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--lh-line);
    background: #fff; color: var(--lh-ink-2); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; }
.lh-tab:hover { background: var(--lh-line-2); text-decoration: none; }
.lh-tab.is-active { background: var(--lh-navy); border-color: var(--lh-navy); color: #fff; }
.lh-tab-count { font-size: .75rem; font-weight: 600; opacity: .75; }
.lh-legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .82rem; color: var(--lh-ink-2); align-items: center; }
.lh-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.lh-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid transparent; }
.lh-swatch.is-available, .lh-unit.is-available { background: #E8F7EF; border-color: #A9DEC2; }
.lh-swatch.is-reserved,  .lh-unit.is-reserved  { background: #FFF4DB; border-color: #F2CF7E; }
.lh-swatch.is-sold,      .lh-unit.is-sold      { background: #DDE3EE; border-color: #B7C2D6; }
.lh-unit-scroll { overflow-x: auto; margin: 0 -.25rem; padding: 0 .25rem .25rem; }
.lh-unit-grid { border-collapse: separate; border-spacing: 5px; }
.lh-unit-grid th { padding: 0; }
.lh-unit-head { width: 100%; min-width: 34px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--lh-muted);
    font-size: .78rem; font-weight: 700; }
.lh-unit-head:hover, .lh-unit-head:focus-visible { background: var(--lh-line-2); color: var(--lh-navy); }
.lh-unit-grid td { padding: 0; }
.lh-unit { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 52px;
    border: 1.5px solid; border-radius: 8px; padding: 0 .2rem; color: var(--lh-ink); line-height: 1.15;
    transition: transform .1s var(--lh-ease), box-shadow .1s var(--lh-ease); }
.lh-unit:hover { transform: translateY(-1px); box-shadow: var(--lh-shadow-sm); }
.lh-unit:focus-visible { outline: 3px solid rgba(31,111,235,.45); outline-offset: 1px; }
.lh-unit-no { font-weight: 700; font-size: .88rem; }
.lh-unit-type { font-size: .7rem; color: var(--lh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lh-unit.is-sold .lh-unit-no { color: #4A5874; }
.lh-unit-note { position: absolute; top: 2px; right: 3px; font-size: .75rem !important; color: var(--lh-muted); }
.lh-unit.is-selected { box-shadow: 0 0 0 3px var(--lh-blue); border-color: var(--lh-blue); }
.lh-unit.is-saving { opacity: .55; }
.lh-segment { display: flex; gap: .4rem; flex-wrap: wrap; }
.lh-segment .btn { flex: 1; border: 1.5px solid var(--lh-line); font-weight: 600; background: #fff; }
.btn-check:checked + .btn.is-available { background: #E8F7EF; border-color: var(--lh-green); color: #0E6B3F; }
.btn-check:checked + .btn.is-reserved  { background: #FFF4DB; border-color: var(--lh-amber); color: #7A5200; }
.btn-check:checked + .btn.is-sold      { background: #DDE3EE; border-color: var(--lh-navy); color: var(--lh-navy); }
.lh-bulk-bar { position: sticky; bottom: .75rem; z-index: 5; margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
    padding: .6rem .8rem; border-radius: 12px; background: var(--lh-navy); color: #fff; box-shadow: var(--lh-shadow); }
.lh-bulk-bar .btn-light { font-weight: 600; }
.lh-bulk-bar .btn-ghost { color: #fff; }
.lh-bulk-bar[hidden] { display: none; }
@media (max-width: 575.98px) { .lh-unit { width: 64px; height: 48px; } }

/* Public project page: availability per tower */
.lh-avail-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--lh-line-2); }
.lh-avail-bar span { display: block; height: 100%; }
.lh-avail-bar .is-available { background: var(--lh-green); }
.lh-avail-bar .is-taken { background: #B7C2D6; }

/* ── Photo uploader (lh-uploader.js) ────────────────────────────── */
.lh-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; text-align: center;
    padding: 1.6rem 1rem; border: 2px dashed #C6D3E6; border-radius: 14px; background: #FAFCFF; cursor: pointer;
    transition: border-color .15s var(--lh-ease), background .15s var(--lh-ease); margin: 0; width: 100%; }
.lh-dropzone:hover, .lh-dropzone:focus-within { border-color: var(--lh-blue); background: var(--lh-blue-soft); }
.lh-dropzone.is-over { border-color: var(--lh-blue); background: var(--lh-blue-soft); box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
.lh-dropzone-icon { font-size: 2.4rem; color: var(--lh-blue); }
.lh-dropzone-title { font-weight: 700; color: var(--lh-navy); }
.lh-dropzone-link { color: var(--lh-blue); text-decoration: underline; text-underline-offset: 3px; }
.lh-dropzone-hint { font-size: .82rem; color: var(--lh-muted); }
/* Without JS the file input is a normal visible field; with JS the whole box is the picker. */
.lh-dropzone-input { margin-top: .6rem; max-width: 100%; }
.is-enhanced .lh-dropzone-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.is-busy .lh-dropzone { opacity: .6; pointer-events: none; }
.lh-upload-queue { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .45rem; }
.lh-uq-item { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .7rem; border-radius: 10px; background: var(--lh-bg); font-size: .88rem; }
.lh-uq-icon { color: var(--lh-blue); font-size: 1.3rem; }
.lh-uq-body { flex: 1; min-width: 0; }
.lh-uq-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-uq-item .progress { height: 6px; margin: .3rem 0 .2rem; }
.lh-uq-note { font-size: .8rem; color: var(--lh-muted); }
.lh-uq-item.is-done .lh-uq-icon { color: var(--lh-green); }
.lh-uq-item.is-done .progress-bar { background: var(--lh-green); }
.lh-uq-item.is-error { background: #FFF4F2; }
.lh-uq-item.is-error .lh-uq-icon, .lh-uq-item.is-error .lh-uq-note { color: var(--lh-red); }
.lh-toast-action { margin-left: auto; background: none; border: 0; color: #9CC3FF; font-weight: 700; padding: 0 .25rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; }
.lh-toast-action:hover, .lh-toast-action:focus-visible { color: #fff; text-decoration: underline; }
.lh-preview-frame { border: 2px dashed #C6D3E6; border-radius: var(--lh-radius-lg); padding: 1rem; background: #fff; }
@media (min-width: 992px) { .lh-preview-frame { padding: 1.5rem; } }
.lh-my-listing { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem; background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm); }
.lh-my-listing-img { width: 120px; height: 90px; border-radius: 10px; object-fit: cover; background: var(--lh-line-2); flex: none; }
.lh-my-listing-actions { display: flex; gap: .4rem; align-items: center; margin-left: auto; }
@media (max-width: 575.98px) { .lh-my-listing-img { width: 100%; height: 160px; } .lh-my-listing-actions { width: 100%; justify-content: flex-end; } }
a.lh-search-tab { text-decoration: none; }
.lh-search-tab .lh-tab-on { background: var(--lh-navy); color: #fff; }

/* Account checklist (seller home) */
.lh-checklist-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); background: #fff; }
.lh-checklist-card + .lh-checklist-card { margin-top: .6rem; }
.lh-check-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.lh-check-dot.is-done { background: var(--lh-green-soft); color: var(--lh-green); }
.lh-check-dot.is-todo { background: var(--lh-blue-soft); color: var(--lh-blue); }
.lh-check-dot.is-soon { background: var(--lh-line-2); color: var(--lh-muted); }
.lh-avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
.lh-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ── 15. Login / auth card ─────────────────────────────────────────── */
.lh-auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: var(--lh-bg); }
@media (min-width: 992px) { .lh-auth { grid-template-columns: 1.05fr 1fr; } }
.lh-auth-aside { display: none; }
@media (min-width: 992px) {
    .lh-auth-aside { display: flex; flex-direction: column; justify-content: space-between; padding: 3rem; }
}
.lh-auth-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.lh-auth-card { width: 100%; max-width: 420px; }

/* ── 16. Utilities ─────────────────────────────────────────────────── */
.lh-gap-xs { gap: .35rem !important; }
.lh-text-navy { color: var(--lh-navy) !important; }
.lh-text-gold { color: var(--lh-gold-ink) !important; }
.lh-fw-800 { font-weight: 800 !important; }
.lh-divider { height: 1px; background: var(--lh-line); margin: 1.25rem 0; }
.lh-color-sample { height: 64px; border-radius: 12px; border: 1px solid var(--lh-line); }
.lh-kv dt { color: var(--lh-muted); font-weight: 500; }
.lh-kv dd { color: var(--lh-ink); font-weight: 600; }
.sticky-top { top: 84px !important; }

/* ── Maps (location discovery) ───────────────────────────────────────── */
.lh-leaflet { height: 340px; border-radius: 12px; border: 1px solid var(--lh-line); z-index: 0; background: var(--lh-line-2); }
.lh-leaflet.is-drawing { cursor: crosshair; }
.lh-leaflet .leaflet-control-attribution { font-size: 11px; }
@media (max-width: 575.98px) { .lh-leaflet { height: 280px; } }
.lh-map-results { display: grid; gap: .25rem; margin-bottom: .5rem; }
.lh-map-results button { text-align: left; border: 1px solid var(--lh-line); background: #fff; border-radius: 10px; padding: .55rem .75rem; font-size: .9rem; min-height: 44px; }
.lh-map-results button:hover, .lh-map-results button:focus-visible { border-color: var(--lh-blue); background: var(--lh-blue-soft); }
.lh-map-suggest { border: 1px solid var(--lh-line); border-radius: 12px; padding: .9rem 1rem; background: var(--lh-bg); font-size: .9rem; }
.lh-map-suggest ul { list-style: none; padding: 0; margin: .35rem 0 0; display: grid; gap: .25rem; }
.lh-map-suggest .lh-dist { color: var(--lh-muted); font-variant-numeric: tabular-nums; }

/* Road / locality cards (location discovery L4) */
.lh-place-card { display: flex; flex-direction: column; height: 100%; border-radius: 14px; overflow: hidden; background: #fff;
    border: 1px solid var(--lh-line); box-shadow: var(--lh-shadow-sm); color: var(--lh-ink); text-decoration: none;
    transition: box-shadow var(--lh-fast), transform var(--lh-fast); }
.lh-place-card:hover, .lh-place-card:focus-visible { box-shadow: var(--lh-shadow); transform: translateY(-2px); color: var(--lh-ink); }
.lh-place-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--lh-line-2); }
.lh-place-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-place-count { position: absolute; left: .6rem; top: .6rem; background: rgba(255, 255, 255, .95); color: var(--lh-navy);
    font-weight: 700; font-size: .78rem; padding: .25rem .6rem; border-radius: 999px; }
.lh-place-body { display: flex; flex-direction: column; gap: .1rem; padding: .75rem .9rem .85rem; flex: 1; }
.lh-place-name { font-weight: 800; font-size: 1.05rem; color: var(--lh-navy); line-height: 1.25; }
.lh-place-where { font-size: .82rem; color: var(--lh-muted); }
.lh-place-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: auto; padding-top: .5rem;
    font-size: .84rem; color: var(--lh-ink-2); }
.lh-place-go { display: inline-flex; align-items: center; gap: .15rem; color: var(--lh-blue); font-weight: 700; white-space: nowrap; }
.lh-place-go .material-icons { font-size: 1rem; }
@media (max-width: 575.98px) {
    .lh-place-row { grid-auto-columns: 72%; }
    .row .lh-place-card .lh-place-body { padding: .6rem .7rem .7rem; }
    .row .lh-place-card .lh-place-name { font-size: .95rem; }
    .row .lh-place-card .lh-place-foot > span:first-child { display: none; }   /* 2 columns: the badge already shows the count */
}

/* Road / locality / landmark pages (location discovery L5) */
.lh-place-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; }
.lh-filter-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.lh-filter-links a { display: inline-flex; align-items: center; min-height: 38px; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--lh-line);
    background: #fff; color: var(--lh-ink-2); font-size: .86rem; font-weight: 600; text-decoration: none; }
.lh-filter-links a:hover { border-color: #BFD3FB; color: var(--lh-navy); }
.lh-filter-links a.is-active { background: var(--lh-navy); border-color: var(--lh-navy); color: #fff; }
@media (min-width: 992px) { .lh-place-filters .offcanvas-header { display: none; } .lh-place-filters .offcanvas-body { padding: 0; } }
@media (max-width: 991.98px) {
    .lh-place-filters.offcanvas-bottom { height: auto; max-height: 82vh; border-radius: 18px 18px 0 0; }
    .lh-filter-open { min-height: 44px; }
}
.lh-near-badge { display: inline-flex; align-items: center; gap: .25rem; margin-bottom: .4rem; padding: .2rem .6rem; border-radius: 999px;
    background: var(--lh-blue-soft); color: var(--lh-navy); font-weight: 700; font-size: .8rem; }
.lh-near-badge .material-icons { font-size: 1rem; color: var(--lh-blue); }
.lh-link-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .35rem; }
.lh-link-list a { font-weight: 600; }

/* Property search (location discovery L6) */
.lh-seg-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lh-seg-scroll::-webkit-scrollbar { display: none; }
.lh-seg-scroll .lh-seg span { white-space: nowrap; }
.lh-seg-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 40px; padding: 0 .9rem; border-radius: 9px; font-weight: 600;
    font-size: .9rem; color: var(--lh-ink-2); text-decoration: none; }
.lh-seg-link .material-icons { font-size: 1.1rem; }
.lh-seg-link.is-on { background: var(--lh-navy); color: #fff; }
.lh-leaflet-tall { height: 460px; }
@media (max-width: 575.98px) { .lh-leaflet-tall { height: 360px; } }
@media (min-width: 992px) { .lh-more-filters .offcanvas-header { display: none; } .lh-more-filters .offcanvas-body { padding: 0; } }
@media (max-width: 991.98px) { .lh-more-filters.offcanvas-bottom { height: auto; max-height: 82vh; border-radius: 18px 18px 0 0; } }
@media (max-width: 575.98px) { .lh-seg-scroll { width: 100%; } }

/* Near a landmark (homepage) */
.lh-near-form { display: grid; gap: 1rem; }
.lh-near-places .lh-chip { min-height: 44px; }
.lh-near-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.lh-seg-group { display: inline-flex; border: 1.5px solid var(--lh-line); border-radius: 12px; padding: 3px; background: #fff; margin: 0; }
.lh-seg { position: relative; }
.lh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.lh-seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border-radius: 9px; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--lh-ink-2); }
.lh-seg input:checked + span { background: var(--lh-navy); color: #fff; }
.lh-seg input:focus-visible + span { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 1px; }
@media (max-width: 575.98px) { .lh-near-actions, .lh-seg-group { width: 100%; } .lh-seg { flex: 1; } .lh-seg span { justify-content: center; padding: 0 .4rem; width: 100%; } .lh-near-actions .btn { width: 100%; } }

/* Categories and the contact band */
.lh-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.lh-cat { display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .6rem .8rem; border-radius: 12px; background: #fff;
    border: 1px solid var(--lh-line); color: var(--lh-navy); font-weight: 600; font-size: .92rem; text-decoration: none; }
.lh-cat:hover, .lh-cat:focus-visible { border-color: #BFD3FB; background: var(--lh-blue-soft); color: var(--lh-navy); }
.lh-cat .material-icons { color: var(--lh-blue); font-size: 1.3rem; }
@media (max-width: 575.98px) { .lh-cat-grid { grid-template-columns: 1fr 1fr; } }
.lh-contact-band { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem;
    border-radius: 16px; background: var(--lh-blue-soft); border: 1px solid #BFD3FB; }
@media (max-width: 575.98px) { .lh-contact-band .btn { width: 100%; } }

/* ── Information pages (P1): About, Contact, FAQ, Terms, Privacy ───── */
.lh-info-hero { background: linear-gradient(180deg, var(--lh-blue-soft), #fff); border-bottom: 1px solid var(--lh-line); padding: 1.5rem 0 2rem; }
.lh-info-hero h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.lh-info-hero .lead { max-width: 720px; color: #334155; font-size: 1.05rem; }
.lh-info-narrow { max-width: 820px; }
.lh-info-narrow > .lh-prose { margin-top: 1.5rem; }
.lh-prose { max-width: 720px; overflow-wrap: anywhere; }
.lh-prose h2 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.lh-prose h2:first-child { margin-top: 0; }
.lh-prose p, .lh-prose li { line-height: 1.65; color: #334155; }
.lh-prose ul { padding-left: 1.2rem; display: grid; gap: .35rem; margin-bottom: 1rem; }
.lh-contact-ways { display: grid; gap: .6rem; }
.lh-contact-way { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--lh-line); border-radius: 12px;
    background: #fff; color: var(--lh-navy); min-height: 56px; overflow-wrap: anywhere; }
a.lh-contact-way:hover, a.lh-contact-way:focus-visible { border-color: #BFD3FB; background: var(--lh-blue-soft); text-decoration: none; color: var(--lh-navy); }
.lh-contact-way > .material-icons { color: var(--lh-blue); flex: none; margin-top: .1rem; }
.lh-contact-way.is-whatsapp > .material-icons { color: var(--lh-green); }
.lh-contact-way > span:last-child { display: grid; gap: .1rem; min-width: 0; font-size: .92rem; color: #475569; }
.lh-contact-way strong { color: var(--lh-navy); font-size: .95rem; }
.lh-info-links { display: grid; gap: .25rem; }
.lh-info-links a { display: flex; gap: .75rem; align-items: center; padding: .6rem .5rem; border-radius: 10px; color: var(--lh-navy); min-height: 52px; }
.lh-info-links a:hover, .lh-info-links a:focus-visible { background: var(--lh-blue-soft); text-decoration: none; }
.lh-info-links .material-icons { color: var(--lh-blue); flex: none; }
.lh-info-links a > span:last-child { display: grid; font-size: .85rem; color: var(--lh-muted); }
.lh-info-links strong { color: var(--lh-navy); font-size: .95rem; }
.lh-faq-search { position: relative; max-width: 560px; }
.lh-faq-search .material-icons { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--lh-muted); pointer-events: none; }
.lh-faq-search .form-control { padding-left: 2.8rem; border-radius: 12px; }
.lh-faq .accordion-item { border-color: var(--lh-line); }
.lh-faq .accordion-item:first-of-type, .lh-faq .accordion-item:first-of-type .accordion-button { border-top-left-radius: var(--lh-radius); border-top-right-radius: var(--lh-radius); }
.lh-faq .accordion-item:last-of-type, .lh-faq .accordion-item:last-of-type .accordion-button.collapsed { border-bottom-left-radius: var(--lh-radius); border-bottom-right-radius: var(--lh-radius); }
.lh-faq .accordion-button { font-weight: 600; color: var(--lh-navy); min-height: 56px; }
.lh-faq .accordion-button:not(.collapsed) { background: var(--lh-blue-soft); color: var(--lh-navy); box-shadow: none; }
.lh-faq .accordion-body { color: #334155; line-height: 1.65; }
/* Contact form bot trap: off-screen for people, still present for scripts that fill every field */
.lh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lh-msg-text { white-space: pre-line; overflow-wrap: anywhere; }

/* ── Property page extras (P2): share, print, EMI, video, panorama ─── */
.lh-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.lh-share-label { font-weight: 600; color: var(--lh-navy); margin-right: .25rem; }
.lh-share-btn { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: .35rem .85rem; border-radius: 999px;
    border: 1px solid var(--lh-line); background: #fff; color: var(--lh-navy); font-size: .88rem; font-weight: 600; cursor: pointer; }
.lh-share-btn:hover, .lh-share-btn:focus-visible { background: var(--lh-blue-soft); border-color: #BFD3FB; color: var(--lh-navy); text-decoration: none; }
.lh-share-btn.is-whatsapp { border-color: #B7E3CF; color: var(--lh-green); }
.lh-share-btn .material-icons { font-size: 1.05rem; }
.lh-emi-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.lh-emi-result > div { background: var(--lh-bg); border: 1px solid var(--lh-line); border-radius: 12px; padding: .7rem .85rem; min-width: 0; }
.lh-emi-result small { display: block; color: var(--lh-muted); font-size: .78rem; }
.lh-emi-result strong { display: block; color: var(--lh-navy); font-size: 1.1rem; overflow-wrap: anywhere; }
.lh-emi-result > div:first-child { background: var(--lh-blue-soft); border-color: #BFD3FB; }
@media (max-width: 575.98px) { .lh-emi-result { grid-template-columns: 1fr 1fr; } .lh-emi-result > div:first-child { grid-column: 1 / -1; } }
/* ── Plans, and the plots marked on them (A6) ──────────────────────────
   The drawing is never cropped or stretched: it keeps its own shape and the marks sit on top as
   percentages, so a plot stays where the builder put it at any size.                            */
.lh-plan { position: relative; display: block; width: 100%; background: var(--lh-mist);
           border: 1px solid var(--lh-line); border-radius: var(--lh-radius); overflow: hidden; }
.lh-plan img, .lh-planner-canvas img { display: block; width: 100%; height: auto; user-select: none; }
.lh-planner-canvas { position: relative; touch-action: none; cursor: crosshair;
                     border: 1px solid var(--lh-line); border-radius: var(--lh-radius); overflow: hidden; }

.lh-plot { position: absolute; display: flex; align-items: center; justify-content: center;
           font-size: .68rem; font-weight: 600; line-height: 1; text-align: center;
           border: 2px solid transparent; border-radius: 3px; color: #10243f;
           text-decoration: none; overflow: hidden; }
.lh-plot-green { background: rgba(15,138,95,.30);  border-color: #0F8A5F; }
.lh-plot-amber { background: rgba(214,158,46,.32); border-color: #B9892B; }
.lh-plot-grey  { background: rgba(99,110,125,.34); border-color: #636E7D; color: #2b3542; }
.lh-plot-draft { background: rgba(11,31,58,.22);   border-color: var(--lh-navy); border-style: dashed; }
a.lh-plot:hover, a.lh-plot:focus-visible { outline: 3px solid var(--lh-gold); outline-offset: 1px; }

.lh-plan-key { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .85rem; }
.lh-plan-key span { display: inline-flex; align-items: center; gap: .35rem; }
.lh-plan-key i { width: .85rem; height: .85rem; border-radius: 2px; border: 2px solid; display: inline-block; }

/* ── Compact row view for search results (A9) ──────────────────────────
   A wide row so many properties can be compared at a glance. On a phone it folds back into a
   stack, because a row that narrow is just a worse card.                                      */
.lh-row { display: flex; gap: 1rem; align-items: stretch; background: #fff; border: 1px solid var(--lh-line);
          border-radius: var(--lh-radius); overflow: hidden; }
.lh-row-media { position: relative; flex: 0 0 200px; display: block; background: var(--lh-mist); }
.lh-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-row-count { position: absolute; right: .4rem; bottom: .4rem; display: inline-flex; align-items: center; gap: .15rem;
                padding: .1rem .4rem; border-radius: 999px; background: rgba(11,31,58,.78); color: #fff; font-size: .75rem; }
.lh-row-body { flex: 1 1 auto; min-width: 0; padding: .9rem 0; }
.lh-row-actions { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .9rem 1rem .9rem 0; }
@media (max-width: 767.98px) {
    .lh-row { flex-direction: column; gap: 0; }
    .lh-row-media { flex-basis: auto; aspect-ratio: 16 / 9; }
    .lh-row-body { padding: .9rem 1rem .25rem; }
    .lh-row-actions { flex-direction: row; padding: 0 1rem 1rem; }
    .lh-row-actions .btn { flex: 1 1 0; }
}

.lh-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--lh-radius); overflow: hidden; background: var(--lh-navy); }
.lh-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* A file we serve ourselves. "contain" so a portrait clip is shown whole instead of being cut off. */
.lh-video-file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--lh-navy); }
.lh-video-play { position: absolute; inset: 0; width: 100%; display: grid; place-content: center; justify-items: center; gap: .15rem; border: 0;
    background: linear-gradient(135deg, var(--lh-navy), var(--lh-navy-3)); color: #fff; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.lh-video-play .material-icons { font-size: 4rem; color: var(--lh-gold); }
.lh-video-play small { font-weight: 400; color: #C9D5E8; }
.lh-video-play:hover .material-icons, .lh-video-play:focus-visible .material-icons { color: #fff; }
.lh-pano { height: clamp(220px, 42vw, 400px); overflow-x: auto; overflow-y: hidden; border-radius: var(--lh-radius); background: var(--lh-line-2);
    cursor: grab; touch-action: pan-x; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.lh-pano.is-dragging { cursor: grabbing; user-select: none; }
.lh-pano img { height: 100%; width: auto; max-width: none; display: block; user-select: none; -webkit-user-drag: none; }
.lh-pano:focus-visible { outline: 3px solid var(--lh-blue); outline-offset: 2px; }

/* ── Agents (P3) ────────────────────────────────────────────────────── */
.lh-agent-photo { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--lh-blue-soft);
    color: var(--lh-blue-dark); font-weight: 700; width: 48px; height: 48px; font-size: 1rem; }
.lh-agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.lh-agent-photo.is-sm { width: 48px; height: 48px; }
.lh-agent-photo.is-lg { width: 112px; height: 112px; font-size: 2rem; }
.lh-agent-photo.is-xl { width: 140px; height: 140px; font-size: 2.5rem; }
.lh-agent-card { height: 100%; background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); box-shadow: var(--lh-shadow-sm);
    padding: 1.5rem 1.25rem; text-align: center; }
.lh-agent-card h3 a { color: var(--lh-navy); }
.lh-agent-head { display: flex; gap: 1.5rem; align-items: center; }
@media (max-width: 575.98px) {
    .lh-agent-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .lh-agent-photo.is-xl { width: 104px; height: 104px; font-size: 2rem; }
}
@media print { .lh-agent-help { display: none !important; } }

/* ── Reviews and ratings (P4) ───────────────────────────────────────── */
.lh-stars { color: #B7791F; letter-spacing: .05em; white-space: nowrap; }
.lh-rating-chip { display: inline-flex; align-items: center; gap: .2rem; font-weight: 600; color: var(--lh-navy); font-size: .88rem; white-space: nowrap; }
.lh-rating-chip > span:first-child { color: #B7791F; }
.lh-rating-big { display: flex; align-items: center; gap: .5rem; }
.lh-rating-big strong { font-size: 1.5rem; color: var(--lh-navy); line-height: 1; }
.lh-review { border: 1px solid var(--lh-line); border-radius: 12px; padding: .9rem 1rem; background: #fff; }
.lh-review-form > summary { list-style: none; }
.lh-review-form > summary::-webkit-details-marker { display: none; }
.lh-review-form[open] > summary { display: none; }
@media print { .lh-review-form, #reviews .alert { display: none !important; } }
.lh-amenity-filter > summary { cursor: pointer; font-weight: 600; color: var(--lh-navy); min-height: 40px; display: inline-flex; align-items: center; gap: .4rem; }
.lh-amenity-filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .35rem .75rem; }
/* Phone filter sheet: the "Show properties" button stays in reach while the long list scrolls */
.lh-sheet-apply { position: sticky; bottom: -1rem; background: #fff; padding-top: .6rem; padding-bottom: 1rem; margin-bottom: -1rem; z-index: 2; }

/* ── Blog (P5) ──────────────────────────────────────────────────────── */
.lh-blog-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow-sm); overflow: hidden; }
.lh-blog-card-media { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--lh-blue-soft); color: var(--lh-blue); }
.lh-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.lh-blog-card-media .material-icons { font-size: 3rem; opacity: .6; }
.lh-blog-card-body { padding: 1rem 1.1rem 1.2rem; overflow-wrap: anywhere; }
.lh-blog-card h3 a:hover { color: var(--lh-blue) !important; }
.lh-blog-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--lh-radius); display: block; }
.lh-blog-more { display: grid; gap: .15rem; padding: .75rem .9rem; border: 1px solid var(--lh-line); border-radius: 12px; background: #fff; color: var(--lh-navy); }
.lh-blog-more:hover, .lh-blog-more:focus-visible { background: var(--lh-blue-soft); border-color: #BFD3FB; text-decoration: none; color: var(--lh-navy); }

/* ── Owner's number on the property page (P8) ───────────────────────── */
.lh-owner-number { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; background: var(--lh-blue-soft); border-bottom: 1px solid var(--lh-line); }
.lh-owner-number > .material-icons { color: var(--lh-blue); flex: none; }
.lh-owner-number > span { display: grid; }
.lh-owner-number strong { color: var(--lh-navy); font-size: 1.05rem; letter-spacing: .02em; }
.lh-owner-number small { color: var(--lh-muted); font-size: .78rem; line-height: 1.3; }

/* ── Quick view (P7) ────────────────────────────────────────────────── */
.lh-card-quick { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 999px;
    padding: .3rem .7rem; background: rgba(255, 255, 255, .94); color: var(--lh-navy); font-size: .78rem; font-weight: 600; box-shadow: var(--lh-shadow-sm);
    opacity: 0; transition: opacity .15s ease; }
.lh-card:hover .lh-card-quick, .lh-card-quick:focus-visible { opacity: 1; }
@media (hover: none) { .lh-card-quick { opacity: 1; } }      /* touch screens have no hover */
.lh-quick-media { position: relative; aspect-ratio: 16 / 10; background: var(--lh-line-2); }
.lh-quick-media img { width: 100%; height: 100%; object-fit: cover; }
.lh-quick-media .lh-pill { position: absolute; top: .75rem; left: .75rem; }
.lh-quick-body { padding: 1.1rem 1.25rem 1.25rem; }
.lh-facts-sm .lh-fact { padding: .5rem .65rem; }

/* ── Homepage additions (P6) ────────────────────────────────────────── */
.lh-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.lh-why { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 1.1rem 1.2rem; }
.lh-why > .material-icons { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lh-blue-soft); color: var(--lh-blue); }
.lh-why p { color: var(--lh-muted); font-size: .92rem; }
.lh-numbers { background: linear-gradient(135deg, var(--lh-navy), var(--lh-navy-3)); color: #C9D5E8; }
.lh-numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.lh-numbers-grid > div { display: grid; justify-items: center; gap: .15rem; padding: .5rem; }
.lh-numbers-grid .material-icons { color: var(--lh-gold); font-size: 1.8rem; }
.lh-numbers-grid strong { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.lh-google-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; padding: 1rem 1.25rem; border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius); background: #fff; color: var(--lh-navy); }
.lh-google-strip:hover, .lh-google-strip:focus-visible { border-color: #BFD3FB; background: var(--lh-blue-soft); text-decoration: none; color: var(--lh-navy); }
.lh-google-strip strong { font-size: 1.6rem; line-height: 1; }
.lh-google-strip .lh-stars { font-size: 1.2rem; }
.lh-google-strip-link { display: inline-flex; align-items: center; gap: .25rem; color: var(--lh-blue-dark); font-weight: 600; }
.lh-google-strip-link .material-icons { font-size: 1rem; }
/* Footer sign-up box */
.lh-newsletter { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 1rem 2rem; align-items: start; margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1); }
.lh-newsletter-row { display: flex; gap: .5rem; }
.lh-newsletter-row .form-control { min-width: 0; }
.lh-newsletter-done { color: #9BE3C3; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.lh-newsletter-error { color: #FFC9C9; font-size: .85rem; margin-top: .35rem; }
.lh-newsletter .form-check-label a { text-decoration: underline; }
@media (max-width: 767.98px) { .lh-newsletter { grid-template-columns: 1fr; } }
/* Floating WhatsApp / call buttons. They move up on pages that have the bottom "Contact" bar. */
.lh-float-contact { position: fixed; right: 1rem; bottom: 1rem; z-index: 1020; display: grid; gap: .6rem; justify-items: end; }
.lh-float-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 52px; height: 52px; padding: 0 .9rem; border-radius: 999px;
    color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(11, 31, 58, .28); }
.lh-float-btn:hover, .lh-float-btn:focus-visible { color: #fff; text-decoration: none; filter: brightness(1.08); }
.lh-float-btn.is-whatsapp { background: #128C4A; }
.lh-float-btn.is-call { background: var(--lh-blue); padding: 0; }
@media (max-width: 991.98px) {
    .lh-float-btn.is-whatsapp { padding: 0; }
    body:has(.lh-mobile-cta) .lh-float-contact { bottom: 5.25rem; }
}
@media print { .lh-float-contact, .lh-newsletter { display: none !important; } }

/* Printing a property or project page: the facts and photos, without menus, forms and buttons */
@media print {
    .lh-nav, .lh-footer, .lh-announce, .lh-mobile-cta, .lh-enquiry, .lh-share, .lh-subnav, .lh-emi, .lh-video, .lh-pano,
    .lh-skip-link, .lh-toast-stack, .breadcrumb, .modal, .btn, [data-lh-readmore-btn], .lh-gallery-count { display: none !important; }
    body { background: #fff !important; }
    .lh-readmore { max-height: none !important; overflow: visible !important; }
    .lh-readmore::after { display: none !important; }
    .col-lg-8 { width: 100% !important; }
    a { color: inherit !important; text-decoration: none !important; }
    .lh-detail-section { break-inside: avoid; }
}

/* Road facts and "What's nearby" on property / project pages (location discovery L3) */
.lh-road-facts { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.lh-road-facts li { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px;
    background: var(--lh-bg); border: 1px solid var(--lh-line); font-size: .85rem; font-weight: 600; color: var(--lh-ink-2); }
.lh-road-facts li.is-main { background: var(--lh-blue-soft); border-color: #BFD3FB; color: var(--lh-navy); }
.lh-road-facts .material-icons { font-size: 1rem; color: var(--lh-blue); }
.lh-nearby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.lh-nearby-group { border: 1px solid var(--lh-line); border-radius: 12px; padding: .7rem .85rem; background: #fff; }
.lh-nearby-head { display: flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; color: var(--lh-navy); margin-bottom: .35rem; }
.lh-nearby-head .material-icons { font-size: 1.1rem; color: var(--lh-blue); }
.lh-nearby-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; font-size: .88rem; }
.lh-nearby-group li { display: flex; justify-content: space-between; gap: .5rem; }
.lh-nearby-group li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-nearby-group .lh-dist { color: var(--lh-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── 17. Phones and touch (Module 16) ──────────────────────────────── */
/* Side-scrolling strips: lh-ui.js adds these when there's more to swipe to */
.lh-fade-end   { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
.lh-fade-start { -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
.lh-fade-start.lh-fade-end { -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
                             mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
/* Long emails, websites and IDs wrap instead of running off the card */
dd, .lh-kv dd, .lh-break { overflow-wrap: anywhere; min-width: 0; }

/* Tables keep their pinned first column sharp: only the right edge fades */
.table-responsive.lh-fade-start { -webkit-mask-image: none; mask-image: none; }
.table-responsive.lh-fade-end, .table-responsive.lh-fade-start.lh-fade-end {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.lh-hscroll { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lh-hscroll::-webkit-scrollbar { display: none; }

/* Square icon buttons and small chip buttons that stay easy to tap */
.lh-icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: .25rem; }
.lh-chip-btn { border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; }

@media (pointer: coarse) {
    /* Fingers need about 44px; keep the look, grow the hit area */
    .btn-sm, .lh-chip-btn { min-height: 38px; }
    .lh-icon-btn { min-width: 44px; min-height: 44px; }
    .form-check { min-height: 1.75rem; padding-left: 1.9em; }
    .form-check .form-check-input { width: 1.3em; height: 1.3em; margin-left: -1.9em; margin-top: .1em; }
    .form-switch { padding-left: 3em; }
    .form-switch .form-check-input { width: 2.4em; margin-left: -3em; }
    .dropdown-item { padding-top: .6rem; padding-bottom: .6rem; }
    .pagination .page-link { min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 575.98px) {
    /* Number tiles: small icon, number and label stacked, so 8 tiles don't fill the first screen */
    .lh-stat { gap: .6rem; padding: .75rem .8rem; align-items: flex-start; }
    .lh-stat-icon { width: 34px; height: 34px; border-radius: 9px; }
    .lh-stat-icon .material-icons { font-size: 1.15rem; }
    .lh-stat-value { font-size: 1.3rem; }
    .lh-stat-label { font-size: .78rem; line-height: 1.25; }
    /* Wide tables: the first column (name) stays put while the rest scrolls */
    .table-responsive > .table > :is(thead, tbody) > tr > :first-child {
        position: sticky; left: 0; z-index: 1; background: var(--bs-table-bg, #fff); box-shadow: 1px 0 0 var(--lh-line);
        min-width: 9.5rem; max-width: 46vw; white-space: normal; overflow-wrap: anywhere;
    }
    .table-responsive > .table > thead > tr > :first-child { background: var(--lh-bg); z-index: 2; }
    .lh-compare thead > tr > :first-child { background: #fff !important; }
    /* iOS zooms into inputs with text under 16px; keep forms at 16px on phones */
    .form-control, .form-select { font-size: 16px; }
    /* Modals use the full width and stay above the on-screen keyboard */
    .modal-dialog { margin: .5rem; }
    .modal-dialog-scrollable .modal-content { max-height: calc(100dvh - 1rem); }
}
