/* ==========================================================================
   ListingHeads UI refresh (2026-11)
   Design system generated with the UI/UX Pro Max skill:
   pattern "Marketplace / Directory", style "Minimalism & Swiss",
   brand navy kept from the logo, trust teal + alert red as accents.
   Loaded after styles.css so it overrides the legacy rules site-wide.
   ========================================================================== */

:root {
    /* Brand */
    --lh-primary: #1a3c6e;
    --lh-primary-dark: #12294d;
    --lh-primary-50: #eef3fa;
    --lh-primary-100: #d9e4f3;
    --lh-brand-gray: #a8a9ad;          /* logo gray: decorative only, fails text contrast */

    /* Neutrals (text colors all pass WCAG AA on white) */
    --lh-ink: #111827;
    --lh-text: #2a3342;
    --lh-gray: #5f6774;                /* was #a8a9ad (2.4:1) — now 5.9:1 */
    --lh-muted: #5f6774;
    --lh-border: #dde3ea;
    --lh-border-strong: #c3ccd8;
    --lh-surface: #ffffff;
    --lh-accent: #f5f7fa;
    --lh-bg-soft: #f5f7fa;

    /* Semantic */
    --lh-teal: #0f766e;
    --lh-teal-50: #e6f4f2;
    --lh-red: #d92d20;
    --lh-amber: #b54708;
    --lh-success: #067647;

    /* Type */
    --lh-font-head: 'Lexend', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --lh-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Shape & depth */
    --lh-radius-sm: 6px;
    --lh-radius: 10px;
    --lh-radius-lg: 16px;
    --lh-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --lh-shadow: 0 4px 12px rgba(16, 24, 40, .08);
    --lh-shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
    --lh-ring: 0 0 0 3px rgba(26, 60, 110, .28);
    --lh-ease: cubic-bezier(.2, .7, .3, 1);
    --lh-nav-h: 72px;

    /* Legacy aliases used across older pages */
    --radius-lg: 8px;
    --radius-md: 10px;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--lh-nav-h) + 16px); }

/* fadeInLeft/Right entrance animations start 100% off-screen; clip (unlike hidden)
   stops the sideways scroll without breaking position: sticky */
html, body { overflow-x: clip; }

body {
    font-family: var(--lh-font-body);
    color: var(--lh-text);
    background: var(--lh-surface);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6, .display-5 {
    font-family: var(--lh-font-head);
    color: var(--lh-ink);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.text-primary h1, .text-primary h2, h2.text-primary, h3.text-primary, h4.text-primary { color: var(--lh-primary) !important; }

.lead { font-size: 1.125rem; font-weight: 400; }
.text-muted { color: var(--lh-muted) !important; }
.bg-light { background-color: var(--lh-bg-soft) !important; }

a { color: var(--lh-primary); text-underline-offset: 3px; }
a:hover { color: var(--lh-primary-dark); }

::selection { background: var(--lh-primary-100); color: var(--lh-ink); }

/* Visible keyboard focus everywhere (legacy CSS removed several outlines) */
:focus-visible {
    outline: 3px solid var(--lh-primary);
    outline-offset: 2px;
    border-radius: 4px;
}
.form-control:focus-visible, .form-select:focus-visible { outline: none; }

.lh-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10000;
    background: var(--lh-primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--lh-radius-sm);
    font-weight: 600;
    transition: top .2s var(--lh-ease);
}
.lh-skip-link:focus { top: 12px; color: #fff; }

/* Cards: calm hover instead of the old 8px jump on every card site-wide */
.card {
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-lg);
    box-shadow: var(--lh-shadow-sm);
    transition: box-shadow .2s var(--lh-ease), border-color .2s var(--lh-ease);
}
.card.border-0 { border: 1px solid var(--lh-border) !important; }
.card.shadow, .card.shadow-sm { box-shadow: var(--lh-shadow-sm) !important; }

/* ---------- Buttons ---------- */
.btn {
    font-family: var(--lh-font-body);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    border-radius: var(--lh-radius-sm);
    box-shadow: none;
    min-height: 44px;
    transition: background-color .2s var(--lh-ease), border-color .2s var(--lh-ease), color .2s var(--lh-ease), box-shadow .2s var(--lh-ease);
}
.btn-sm { min-height: 36px; }
.btn:hover, .btn:focus { box-shadow: none; }
.btn-lg { font-size: 1rem; padding: .75rem 1.5rem; }
.btn.rounded-pill { border-radius: var(--lh-radius-sm) !important; }

.btn-primary,
.btn-primary:focus {
    background-color: var(--lh-primary) !important;
    border: 1px solid var(--lh-primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: var(--lh-primary-dark) !important;
    border-color: var(--lh-primary-dark) !important;
    transform: none;
    box-shadow: var(--lh-shadow) !important;
}

.btn-outline-primary {
    color: var(--lh-primary) !important;
    border: 1px solid var(--lh-primary) !important;
    background: #fff;
}
.btn-outline-primary:hover {
    background: var(--lh-primary-50) !important;
    color: var(--lh-primary-dark) !important;
}

.btn-light { background: #fff; border: 1px solid var(--lh-border); color: var(--lh-ink); }
.btn-light:hover { background: var(--lh-bg-soft); }

/* Legacy custom buttons unified to one shape and size */
.main-btn, .hero-btn, .white-btn, .main-outline, .btn-outline, .cta-button, .find-agents-button {
    min-height: 44px;
    padding: 10px 22px;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: var(--lh-radius-sm);
    box-shadow: none;
    text-decoration: none;
    gap: 2px;
    transition: background-color .2s var(--lh-ease), color .2s var(--lh-ease), border-color .2s var(--lh-ease), box-shadow .2s var(--lh-ease);
}
.main-btn:hover, .hero-btn:hover, .white-btn:hover, .main-outline:hover, .btn-outline:hover, .cta-button:hover, .find-agents-button:hover {
    transform: none;
    box-shadow: var(--lh-shadow);
}
.main-btn, .hero-btn, .find-agents-button { background: var(--lh-primary); color: #fff; border: 1px solid var(--lh-primary); }
.main-btn:hover, .hero-btn:hover, .find-agents-button:hover { background: var(--lh-primary-dark); color: #fff; }
.white-btn, .cta-button { background: #fff; color: var(--lh-primary); border: 1px solid #fff; }
.white-btn:hover, .cta-button:hover { background: var(--lh-primary-50); color: var(--lh-primary-dark); }
.main-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.main-outline:hover { background: #fff; color: var(--lh-primary); }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border: 1px solid var(--lh-border-strong);
    border-radius: var(--lh-radius-sm);
    color: var(--lh-ink);
    min-height: 44px;
    transition: border-color .15s var(--lh-ease), box-shadow .15s var(--lh-ease);
}
.form-control::placeholder { color: #7a8391; }
.form-control:focus, .form-select:focus {
    border-color: var(--lh-primary);
    box-shadow: var(--lh-ring);
}
.form-label { font-weight: 600; color: var(--lh-ink); font-size: .9rem; }
.form-check-input:checked { background-color: var(--lh-primary); border-color: var(--lh-primary); }

/* ---------- Badges, pagination, accordion ---------- */
.badge { font-weight: 600; letter-spacing: .01em; }
.bg-primary { background-color: var(--lh-primary) !important; }

.pagination { gap: 6px; flex-wrap: wrap; }
.page-link {
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm) !important;
    color: var(--lh-ink);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.page-link:hover { background: var(--lh-primary-50); color: var(--lh-primary); }
.page-item.active .page-link { background: var(--lh-primary); border-color: var(--lh-primary); color: #fff; box-shadow: none; }
.page-item.disabled .page-link { color: #9aa3af; background: #fff; }

.accordion-button:focus-visible { box-shadow: var(--lh-ring); }
.accordion-item { border: 1px solid var(--lh-border); box-shadow: none; }

/* ---------- Navbar ---------- */
#navbar.navbar {
    min-height: var(--lh-nav-h);
    padding: 6px 0;
    background: rgba(255, 255, 255, .97) !important;
    box-shadow: none;
    border-bottom: 1px solid var(--lh-border);
    backdrop-filter: saturate(180%) blur(8px);
}
#navbar.navbar.navbar-scrolled { box-shadow: 0 2px 12px rgba(16, 24, 40, .08); padding: 6px 0; }
.navbar-brand { padding: 0; margin-right: 1.5rem; }
.navbar-brand:hover { transform: none; }
.navbar-brand img { height: 52px; width: auto; }

.navbar-nav .nav-link {
    color: var(--lh-ink);
    font-weight: 500;
    font-size: .95rem;
    padding: .6rem .85rem !important;
    border-radius: var(--lh-radius-sm);
    transition: background-color .15s var(--lh-ease), color .15s var(--lh-ease);
}
.navbar-nav .nav-link::before { display: none; }
.navbar-nav .nav-link:hover { background: var(--lh-bg-soft); color: var(--lh-primary); }
.navbar-nav .nav-link.active { color: var(--lh-primary); box-shadow: inset 0 -2px 0 var(--lh-primary); border-radius: 0; }

.lh-nav-divider { width: 1px; height: 28px; background: var(--lh-border); margin: 0 .5rem; }

.dropdown-menu {
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow-lg);
    padding: .4rem;
    min-width: 240px;
}
.dropdown-item {
    padding: .6rem .75rem;
    border-radius: var(--lh-radius-sm);
    font-size: .95rem;
    color: var(--lh-ink);
}
.dropdown-item:hover, .dropdown-item:focus { transform: none; background: var(--lh-bg-soft); color: var(--lh-primary); }
.dropdown-item.active, .dropdown-item:active { background: var(--lh-primary-50); color: var(--lh-primary); }
.dropdown-item small { display: block; color: var(--lh-muted); font-size: .8rem; font-weight: 400; }
.dropdown-divider { margin: .3rem 0; border-color: var(--lh-border); }

.hamburger span { height: 2px; }
.navbar-toggler { min-width: 44px; min-height: 44px; }

/* Mobile drawer */
.mobile-drawer { width: 360px; box-shadow: var(--lh-shadow-lg); visibility: hidden; transition: right .35s var(--lh-ease), visibility 0s linear .35s; }
.mobile-drawer.active { visibility: visible; transition: right .35s var(--lh-ease), visibility 0s; }
.drawer-content { padding: 1rem; }
.drawer-nav-item { margin-bottom: 2px; }
.drawer-nav-link { padding: .85rem 1rem; color: var(--lh-ink); font-weight: 600; min-height: 48px; }
.drawer-nav-link i { transition: transform .2s var(--lh-ease); }
.drawer-section-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--lh-muted);
    padding: 1rem 1rem .25rem;
}
.drawer-submenu-item { color: var(--lh-text); min-height: 44px; margin-top: 2px; }
.drawer-contact { background: var(--lh-bg-soft); }
.drawer-contact h6 { color: var(--lh-ink); }

/* ---------- Section scaffolding ---------- */
.lh-section { padding: 72px 0; }
.lh-section-sm { padding: 48px 0; }
.lh-section-soft { background: var(--lh-bg-soft); }
.lh-eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lh-teal);
    margin-bottom: .5rem;
}
.lh-section-head { max-width: 680px; margin-bottom: 2.25rem; }
.lh-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lh-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; margin-bottom: .6rem; }
.lh-section-head p { color: var(--lh-muted); font-size: 1.075rem; margin: 0; }
.lh-section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.lh-section-row .lh-section-head { margin-bottom: 0; }
.lh-link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.lh-link-arrow i { transition: transform .2s var(--lh-ease); }
.lh-link-arrow:hover i { transform: translateX(3px); }

/* ---------- Hero with search (homepage) ---------- */
.lh-hero {
    position: relative;
    margin-top: var(--lh-nav-h);
    padding: clamp(64px, 11vw, 132px) 0 clamp(56px, 8vw, 96px);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(10, 24, 46, .55) 0%, rgba(10, 24, 46, .35) 45%, rgba(10, 24, 46, .7) 100%),
        url('../images/hero-img.jpg') center / cover no-repeat;
}
.lh-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    max-width: 820px;
    margin: 0 auto .75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .25);
}
.lh-hero-sub { font-size: clamp(1rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .92); max-width: 640px; margin: 0 auto 2rem; }

.lh-search { max-width: 760px; margin: 0 auto; }
.lh-search-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.lh-search-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    padding: 10px 16px;
    min-height: 44px;
    border-radius: var(--lh-radius-sm);
    cursor: pointer;
    position: relative;
    transition: background-color .15s var(--lh-ease);
}
.lh-search-tab:hover { background: rgba(255, 255, 255, .14); }
.lh-search-tab[aria-selected="true"]::after {
    content: '';
    position: absolute;
    left: 16px; right: 16px; bottom: 4px;
    height: 3px;
    border-radius: 3px;
    background: #fff;
}
.lh-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow-lg);
    padding: 6px;
}
.lh-search-box i.lh-search-icon { color: var(--lh-muted); margin: 0 4px 0 14px; }
.lh-search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 1.05rem;
    padding: 14px 10px;
    color: var(--lh-ink);
    background: transparent;
}
.lh-search-box input::placeholder { color: #6b7380; }
.lh-search-box:focus-within { box-shadow: var(--lh-shadow-lg), 0 0 0 3px rgba(255, 255, 255, .55); }
.lh-search-box .btn { min-height: 52px; padding: 0 26px; border-radius: 8px; font-size: 1rem; }
.lh-search-hint { margin-top: 14px; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.lh-search-hint a { color: #fff; font-weight: 600; text-decoration: underline; }

.lh-hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-top: 2.25rem;
    font-size: .92rem;
    color: rgba(255, 255, 255, .92);
}
.lh-hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.lh-hero-trust i { color: #7dd3c8; }

/* ---------- Category / quick-action tiles ---------- */
.lh-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lh-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-lg);
    text-decoration: none;
    color: var(--lh-text);
    transition: border-color .2s var(--lh-ease), box-shadow .2s var(--lh-ease);
}
.lh-tile:hover { border-color: var(--lh-primary-100); box-shadow: var(--lh-shadow); color: var(--lh-text); }
.lh-tile-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--lh-primary-50);
    color: var(--lh-primary);
    font-size: 1.25rem;
    margin-bottom: 16px;
}
.lh-tile .h3, .lh-tile h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }
.lh-tile p { font-size: .95rem; color: var(--lh-muted); margin-bottom: 1rem; flex: 1; }
.lh-tile .lh-tile-cta { font-weight: 600; color: var(--lh-primary); display: inline-flex; align-items: center; gap: 6px; }
.lh-tile:hover .lh-tile-cta i { transform: translateX(3px); }
.lh-tile .lh-tile-cta i { transition: transform .2s var(--lh-ease); }

/* ---------- Property card ---------- */
.lh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lh-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-lg);
    overflow: hidden;
    transition: box-shadow .2s var(--lh-ease), border-color .2s var(--lh-ease);
}
.lh-card:hover { box-shadow: var(--lh-shadow-lg); border-color: transparent; }
.lh-card:focus-within { box-shadow: var(--lh-shadow-lg), var(--lh-ring); }
.lh-card-media { position: relative; aspect-ratio: 3 / 2; background: var(--lh-bg-soft); overflow: hidden; }
.lh-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--lh-ease); }
.lh-card:hover .lh-card-media img { transform: scale(1.03); }
.lh-card-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    color: #8a94a3;
    background: linear-gradient(135deg, #eef2f7, #e3e9f1);
    font-size: .85rem;
    font-weight: 500;
}
.lh-card-placeholder i { font-size: 2rem; color: #b3bdca; }
.lh-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.lh-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, .96);
    color: var(--lh-ink);
    font-size: .78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: var(--lh-shadow-sm);
}
.lh-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lh-badge-sale::before { background: var(--lh-red); }
.lh-badge-rent::before { background: var(--lh-teal); }
.lh-badge-new { background: var(--lh-primary); color: #fff; }
.lh-badge-new::before { display: none; }
.lh-save-btn {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: var(--lh-ink);
    display: grid; place-items: center;
    box-shadow: var(--lh-shadow-sm);
    cursor: pointer;
    transition: transform .15s var(--lh-ease), color .15s var(--lh-ease);
}
.lh-save-btn:hover { transform: scale(1.06); color: var(--lh-red); }
.lh-save-btn[aria-pressed="true"] { color: var(--lh-red); }
.lh-photo-count {
    position: absolute; right: 12px; bottom: 12px; z-index: 2;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
}
.lh-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.lh-card-price { font-family: var(--lh-font-head); font-size: 1.5rem; font-weight: 600; color: var(--lh-ink); letter-spacing: -0.02em; line-height: 1.2; }
.lh-card-price span { font-size: .95rem; font-weight: 500; color: var(--lh-muted); }
.lh-card-facts { font-size: .92rem; color: var(--lh-text); display: flex; align-items: center; flex-wrap: wrap; }
.lh-card-facts strong { font-weight: 700; color: var(--lh-ink); margin-right: 3px; }
.lh-card-type { color: var(--lh-muted); margin-left: 4px; }
.lh-dot { width: 1px; height: 12px; background: var(--lh-border-strong); margin: 0 8px; display: inline-block; }
.lh-card-address { font-family: var(--lh-font-body); font-size: .95rem; font-weight: 500; letter-spacing: 0; margin: 4px 0 0; line-height: 1.4; }
.lh-card-address a { color: var(--lh-text); text-decoration: none; }
.lh-card-address a::after { z-index: 1; }
.lh-card-address a:focus-visible { outline: none; }
.lh-card:hover .lh-card-address a { color: var(--lh-primary); }
.lh-card-locality { font-size: .88rem; color: var(--lh-muted); margin: 0; }

/* ---------- Value props, steps, stats ---------- */
.lh-feature { display: flex; gap: 16px; }
.lh-feature-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--lh-teal-50);
    color: var(--lh-teal);
}
.lh-feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .25rem; }
.lh-feature p { color: var(--lh-muted); margin: 0; font-size: .95rem; }

.lh-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lh-step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius-lg); }
.lh-step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--lh-primary);
    color: #fff;
    font-family: var(--lh-font-head);
    font-weight: 600;
    margin-bottom: 16px;
}
.lh-step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.lh-step p { color: var(--lh-muted); margin: 0; font-size: .95rem; }

.lh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--lh-border); border-radius: var(--lh-radius-lg); background: #fff; }
.lh-stat { padding: 24px; text-align: center; }
.lh-stat + .lh-stat { border-left: 1px solid var(--lh-border); }
.lh-stat strong { display: block; font-family: var(--lh-font-head); font-size: 1.9rem; font-weight: 600; color: var(--lh-primary); line-height: 1.1; }
.lh-stat span { color: var(--lh-muted); font-size: .9rem; }

.lh-split-img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--lh-radius-lg); }
.lh-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lh-check-list li { display: flex; gap: 10px; align-items: flex-start; }
.lh-check-list i { color: var(--lh-teal); margin-top: 5px; }

/* ---------- Pricing ---------- */
.lh-price-card { position: relative; height: 100%; padding: 28px; background: #fff; border: 1px solid var(--lh-border); border-radius: var(--lh-radius-lg); display: flex; flex-direction: column; }
.lh-price-card.featured { border: 2px solid var(--lh-primary); box-shadow: var(--lh-shadow-lg); }
.lh-price-card .lh-price-flag { position: absolute; top: -13px; left: 28px; background: var(--lh-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }
.lh-price-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .25rem; }
.lh-price-card .lh-price-sub { color: var(--lh-muted); font-size: .9rem; margin-bottom: 1rem; }
.lh-price-amount { font-family: var(--lh-font-head); font-size: 2.4rem; font-weight: 600; color: var(--lh-ink); line-height: 1; margin-bottom: 1.25rem; }
.lh-price-amount span { font-size: 1rem; font-weight: 500; color: var(--lh-muted); }
.lh-price-card ul { flex: 1; margin-bottom: 1.5rem; }

/* ---------- CTA band ---------- */
.lh-cta-band {
    border-radius: var(--lh-radius-lg);
    padding: clamp(32px, 5vw, 56px);
    color: #fff;
    background: linear-gradient(120deg, var(--lh-primary-dark) 0%, var(--lh-primary) 60%, #24508f 100%);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.lh-cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: .4rem; }
.lh-cta-band p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 560px; }
.lh-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Results page (Buy / Rent) ---------- */
.lh-results-top {
    position: sticky;
    top: var(--lh-nav-h);
    z-index: 900;
    margin-top: var(--lh-nav-h);
    background: #fff;
    border-bottom: 1px solid var(--lh-border);
    padding: 12px 0;
}
.lh-filter-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lh-filter-search { position: relative; flex: 1 1 280px; min-width: 220px; }
.lh-filter-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lh-muted); pointer-events: none; }
.lh-filter-search .form-control { padding-left: 40px; }
.lh-filter-form .form-select { width: auto; flex: 0 1 auto; font-weight: 500; cursor: pointer; }
.lh-mode-switch { display: inline-flex; border: 1px solid var(--lh-border-strong); border-radius: var(--lh-radius-sm); overflow: hidden; }
.lh-mode-switch a { padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; color: var(--lh-text); text-decoration: none; }
.lh-mode-switch a + a { border-left: 1px solid var(--lh-border-strong); }
.lh-mode-switch a[aria-current="page"] { background: var(--lh-primary); color: #fff; }
.lh-mode-switch a:not([aria-current]):hover { background: var(--lh-bg-soft); }
.lh-filter-toggle { display: none; }

.lh-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 20px; }
.lh-results-head h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; margin: 0 0 4px; }
.lh-results-head p { margin: 0; color: var(--lh-muted); }
.lh-sort { display: flex; align-items: center; gap: 8px; }
.lh-sort label { font-size: .9rem; color: var(--lh-muted); white-space: nowrap; margin: 0; font-weight: 500; }

.lh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.lh-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--lh-primary-50);
    color: var(--lh-primary);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 36px;
}
.lh-chip i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }
.lh-chip:hover { background: var(--lh-primary-100); color: var(--lh-primary-dark); }
.lh-chip-clear { background: transparent; color: var(--lh-muted); text-decoration: underline; padding-left: 6px; }

.lh-empty {
    text-align: center;
    padding: 64px 24px;
    border: 1px dashed var(--lh-border-strong);
    border-radius: var(--lh-radius-lg);
    background: #fff;
}
.lh-empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--lh-primary-50); color: var(--lh-primary); font-size: 1.5rem; }
.lh-empty h2 { font-size: 1.35rem; font-weight: 600; }
.lh-empty p { color: var(--lh-muted); max-width: 460px; margin: 0 auto 1.25rem; }

/* ---------- Property details ---------- */
.lh-detail-top { margin-top: var(--lh-nav-h); padding-top: 20px; }
.lh-breadcrumb { font-size: .88rem; margin-bottom: 14px; }
.lh-breadcrumb a { color: var(--lh-muted); text-decoration: none; }
.lh-breadcrumb a:hover { color: var(--lh-primary); text-decoration: underline; }
.lh-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #9aa3af; }
.lh-breadcrumb .active { color: var(--lh-ink); }

.lh-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 46vw, 500px); border-radius: var(--lh-radius-lg); overflow: hidden; position: relative; }
.lh-gallery button { padding: 0; border: 0; background: var(--lh-bg-soft); overflow: hidden; cursor: zoom-in; position: relative; }
.lh-gallery button:first-child { grid-row: span 2; }
.lh-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--lh-ease), filter .3s var(--lh-ease); }
.lh-gallery button:hover img { transform: scale(1.02); filter: brightness(.94); }
.lh-gallery.count-1 { grid-template-columns: 1fr; }
.lh-gallery.count-1 button:first-child { grid-row: span 2; }
.lh-gallery.count-2 { grid-template-columns: 2fr 1fr; }
.lh-gallery.count-2 button:nth-child(2) { grid-row: span 2; }
.lh-gallery.count-3 { grid-template-columns: 2fr 1fr; }
.lh-gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.lh-gallery.count-4 button:nth-child(4) { grid-column: span 2; }
.lh-gallery .lh-gallery-all {
    position: absolute;
    cursor: pointer; right: 16px; bottom: 16px; z-index: 2;
    background: #fff; color: var(--lh-ink);
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius-sm);
    padding: 0 14px;
    min-height: 40px;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--lh-shadow);
}
.lh-gallery .lh-gallery-all:hover { background: var(--lh-bg-soft); }

.lh-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 24px 0 8px; }
.lh-detail-price { font-family: var(--lh-font-head); font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 600; color: var(--lh-ink); line-height: 1.1; letter-spacing: -0.02em; }
.lh-detail-price span { font-size: 1.1rem; font-weight: 500; color: var(--lh-muted); }
.lh-detail-address { font-size: 1.1rem; font-weight: 500; color: var(--lh-text); margin: 6px 0 0; font-family: var(--lh-font-body); letter-spacing: 0; }
.lh-detail-actions { display: flex; gap: 8px; }
.lh-icon-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--lh-border-strong); border-radius: var(--lh-radius-sm); background: #fff; color: var(--lh-ink); font-weight: 600; cursor: pointer; }
.lh-icon-btn:hover { background: var(--lh-bg-soft); }
.lh-icon-btn[aria-pressed="true"] i { color: var(--lh-red); }

.lh-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--lh-border); border-radius: var(--lh-radius-lg); margin: 20px 0 32px; }
.lh-fact { padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.lh-fact + .lh-fact { border-left: 1px solid var(--lh-border); }
.lh-fact i { color: var(--lh-primary); font-size: 1.1rem; width: 20px; text-align: center; }
.lh-fact strong { display: block; font-size: 1.1rem; color: var(--lh-ink); line-height: 1.2; }
.lh-fact span { font-size: .82rem; color: var(--lh-muted); }

.lh-detail-section { padding: 28px 0; border-top: 1px solid var(--lh-border); }
.lh-detail-section h2 { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.lh-description { color: var(--lh-text); font-size: 1.02rem; line-height: 1.75; max-width: 72ch; }
.lh-description.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.lh-text-btn { background: none; border: 0; padding: 0; color: var(--lh-primary); font-weight: 600; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.lh-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.lh-kv div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--lh-border); font-size: .95rem; }
.lh-kv dt { color: var(--lh-muted); font-weight: 500; }
.lh-kv dd { margin: 0; color: var(--lh-ink); font-weight: 600; text-align: right; }

.lh-mortgage { background: var(--lh-bg-soft); border-radius: var(--lh-radius-lg); padding: 24px; }
.lh-mortgage-total { font-family: var(--lh-font-head); font-size: 1.9rem; font-weight: 600; color: var(--lh-ink); }
.lh-mortgage-total span { font-size: 1rem; color: var(--lh-muted); font-weight: 500; }
.lh-mortgage-total strong { font-weight: 600; }
.lh-mortgage .form-label { font-size: .82rem; }

.lh-contact-card { position: sticky; top: calc(var(--lh-nav-h) + 20px); border: 1px solid var(--lh-border); border-radius: var(--lh-radius-lg); box-shadow: var(--lh-shadow-lg); padding: 24px; background: #fff; }
.lh-contact-card h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: .25rem; }
.lh-contact-card .lh-contact-sub { color: var(--lh-muted); font-size: .92rem; margin-bottom: 1.25rem; }
.lh-contact-card .form-control { background: #fff; }
.lh-secure-note { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--lh-muted); margin-top: 16px; }
.lh-secure-note i { color: var(--lh-teal); margin-top: 3px; }

.lh-mobile-cta { display: none; }

/* Lightbox */
.lh-lightbox { position: fixed; inset: 0; z-index: 10050; background: rgba(8, 12, 20, .94); display: none; align-items: center; justify-content: center; }
.lh-lightbox.open { display: flex; }
.lh-lightbox img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lh-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; display: grid; place-items: center; cursor: pointer; }
.lh-lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lh-lb-close { top: 20px; right: 20px; }
.lh-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lh-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lh-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: .9rem; }

/* ---------- Footer ---------- */
footer.lh-footer { background: #0e1b30; color: rgba(255, 255, 255, .78); padding: 64px 0 28px; }
footer.lh-footer h2 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--lh-font-body); }
footer.lh-footer a { color: rgba(255, 255, 255, .78); }
footer.lh-footer a:hover { color: #fff; text-decoration: underline; }
footer.lh-footer ul li { margin-bottom: .55rem; }
footer.lh-footer .lh-footer-brand img { height: 48px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; }
footer.lh-footer .lh-footer-brand p { margin-top: 1rem; font-size: .95rem; max-width: 300px; }
footer.lh-footer .form-control { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
footer.lh-footer .form-control::placeholder { color: rgba(255, 255, 255, .6); }
footer.lh-footer .form-control:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .2); }
footer.lh-footer .social-icon { width: 44px; height: 44px; margin-right: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
footer.lh-footer .social-icon:hover { background: rgba(255, 255, 255, .18); transform: none; text-decoration: none; }
.lh-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 24px; font-size: .85rem; color: rgba(255, 255, 255, .65); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lh-footer-bottom p { margin: 0; }
.lh-footer-bottom .lh-eho { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Accessibility: contrast fixes for legacy components ---------- */
.white-btn:hover { background-color: var(--lh-primary-50); }
.benefit-icon { background: rgba(255, 255, 255, .92); }
.about-hero-subtitle, .value-card p, .team-bio, .blog-excerpt, .help-card-description { color: var(--lh-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link { padding: .55rem .6rem !important; font-size: .92rem; }
}

@media (max-width: 991.98px) {
    :root { --lh-nav-h: 64px; }
    .navbar-brand img { height: 44px; }
    .lh-tiles { grid-template-columns: repeat(2, 1fr); }
    .lh-steps { grid-template-columns: 1fr; }
    .lh-stats { grid-template-columns: repeat(2, 1fr); }
    .lh-stat:nth-child(3) { border-left: 0; }
    .lh-stat:nth-child(n+3) { border-top: 1px solid var(--lh-border); }
    .lh-contact-card { position: static; }
    .lh-facts { grid-template-columns: repeat(2, 1fr); }
    .lh-fact:nth-child(3) { border-left: 0; }
    .lh-fact:nth-child(n+3) { border-top: 1px solid var(--lh-border); }

    .lh-filter-toggle { display: inline-flex; align-items: center; gap: 8px; }
    .lh-filter-more { display: none; width: 100%; gap: 8px; flex-wrap: wrap; }
    .lh-filter-more.open { display: flex; }
    .lh-filter-more .form-select { flex: 1 1 140px; }

    .lh-mobile-cta {
        display: flex; gap: 8px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid var(--lh-border);
        box-shadow: 0 -4px 16px rgba(16, 24, 40, .08);
    }
    .lh-mobile-cta .btn { flex: 1; }
    body.has-mobile-cta { padding-bottom: 76px; }
}

@media (min-width: 992px) {
    .lh-filter-more { display: contents; }
}

@media (max-width: 767.98px) {
    .lh-section { padding: 52px 0; }
    .lh-search-box { flex-wrap: wrap; }
    .lh-search-box input { flex: 1 1 60%; }
    .lh-search-box .btn { flex: 1 1 100%; margin-top: 6px; }
    .lh-kv { grid-template-columns: 1fr; }
    .lh-gallery { grid-template-columns: 1fr !important; grid-template-rows: 1fr; height: 280px; border-radius: 0; margin: 0 -12px; }
    .lh-gallery button:not(:first-child) { display: none; }
    .lh-cta-band { flex-direction: column; align-items: flex-start; }
    .lh-results-head { padding-top: 20px; }
}

@media (max-width: 575.98px) {
    /* g-5 gutters (48px) exceed the container padding on phones and cause sideways scroll */
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; --mdb-gutter-x: 1.5rem; }
    .lh-search-tab { padding: 10px 10px; font-size: .9rem; }
    .lh-search-tab[aria-selected="true"]::after { left: 10px; right: 10px; }
    .lh-search-tabs { flex-wrap: nowrap; gap: 0; }
    .lh-tiles { grid-template-columns: 1fr; }
    .lh-grid { grid-template-columns: 1fr; }
    .lh-hero-trust { gap: 8px 18px; font-size: .85rem; }
    .lh-detail-actions .lh-icon-btn span { display: none; }
}

/* Respect reduced-motion: no scroll-reveal, no hover zoom, no smooth scroll */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .wow { visibility: visible !important; }
}
