:root {
    --hub-blue: #075dcc;
    --hub-blue-dark: #06316b;
    --hub-ink: #111827;
    --hub-muted: #6b7280;
    --hub-line: #e5e7eb;
    --hub-soft: #f4f7fb;
    --hub-green: #119a51;
    --hub-orange: #ef7d21;
}

* { letter-spacing: 0; }
body {
    color: var(--hub-ink);
    background: var(--hub-soft);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-decoration: none; }
.container { max-width: 1410px; }
.btn, .form-control, .form-select { border-radius: 6px; }
.btn-primary { background: var(--hub-blue); border-color: var(--hub-blue); }
.btn-primary:hover { background: #054cac; border-color: #054cac; }
.section-pad { padding: 3.5rem 0; }
.eyebrow { color: var(--hub-blue); font-weight: 700; font-size: .8rem; text-transform: uppercase; }

.site-header { box-shadow: 0 2px 14px rgba(15, 23, 42, .06); }
.top-strip {
    height: 32px;
    background: #f7f9fc;
    color: #111827;
}
.top-strip .container { min-height: 32px; }
.top-strip a { color: #111827; }
.navbar { min-height: 70px; }
.navbar-brand { margin-right: 1.4rem; }
.navbar-brand small {
    display: block;
    font-size: .64rem;
    color: var(--hub-muted);
    text-transform: uppercase;
    line-height: 1;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--hub-blue);
    border-radius: 8px;
}
.location-pill {
    align-items: center;
    gap: .45rem;
    min-width: 126px;
    padding: .68rem .9rem;
    color: var(--hub-ink);
    border: 1px solid var(--hub-line);
    border-radius: 6px;
    background: #fff;
}
.navbar .nav-link {
    color: #111827;
    font-weight: 700;
    font-size: .92rem;
}

.home-hero {
    min-height: 382px;
    color: #fff;
    padding: 58px 0 0;
    background:
        linear-gradient(90deg, rgba(2, 21, 56, .9) 0%, rgba(2, 21, 56, .62) 46%, rgba(2, 21, 56, .35) 100%),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2200&q=84") center 48%/cover;
}
.hero-copy {
    max-width: 640px;
    margin-bottom: 26px;
}
.hero-copy h1 {
    margin: 0 0 .35rem;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}
.hero-copy p {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 700;
}
.hero-search-panel {
    max-width: 1060px;
    overflow: hidden;
    color: var(--hub-ink);
    background: #fff;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, .22);
}
.purpose-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 330px;
    background: rgba(7, 93, 204, .06);
}
.purpose-tabs label {
    display: grid;
    min-height: 50px;
    place-items: center;
    cursor: pointer;
    font-weight: 800;
    color: #fff;
    background: rgba(11, 28, 58, .78);
}
.purpose-tabs .btn-check:checked + label {
    background: var(--hub-blue);
}
.hero-search-grid {
    display: grid;
    grid-template-columns: minmax(280px, 2.1fr) repeat(3, minmax(145px, 1fr)) 130px;
    gap: 14px;
    padding: 16px;
}
.search-input-wrap {
    position: relative;
}
.search-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    color: var(--hub-muted);
    transform: translateY(-50%);
}
.search-input-wrap .form-control { padding-left: 42px; }
.hero-search-grid .form-control,
.hero-search-grid .form-select,
.hero-search-grid .btn {
    min-height: 48px;
    font-weight: 700;
}
.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem 1.7rem;
    padding: 0 16px 16px;
    font-size: .82rem;
}
.popular-searches a { color: var(--hub-blue); font-weight: 800; }

.home-content {
    padding: 24px 0 0;
}
.category-strip {
    display: grid;
    grid-template-columns: repeat(9, minmax(118px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.category-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    min-height: 56px;
    padding: .75rem;
    color: var(--hub-ink);
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
    font-weight: 800;
    font-size: .86rem;
    white-space: nowrap;
}
.category-pill span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: var(--hub-blue);
    border-radius: 8px;
    background: #eef5ff;
}
.content-block {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.section-title-row h2,
.content-block > h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}
.section-title-row a {
    color: var(--hub-blue);
    font-size: .85rem;
    font-weight: 800;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(260px, 1fr);
    gap: 14px;
}
.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.property-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(17,24,39,.1);
}
.property-media {
    position: relative;
    overflow: hidden;
}
.property-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.property-label {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: .25rem .55rem;
    color: #fff;
    background: var(--hub-orange);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
}
.wishlist-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #475569;
}
.property-price { font-size: 1.05rem; }
.badge-soft { background: #eaf7ef; color: var(--hub-green); }
.property-specs {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: .7rem;
    white-space: nowrap;
}
.map-card {
    position: relative;
    min-height: 100%;
    display: grid;
    align-items: end;
    justify-items: center;
    padding: 22px;
    color: #fff;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(rgba(7, 93, 204, .08), rgba(7, 93, 204, .08)),
        url("https://tile.openstreetmap.org/8/181/105.png") center/cover;
}
.map-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(7, 45, 105, .58));
}
.map-card strong {
    position: relative;
    z-index: 1;
    padding: .78rem 1.25rem;
    border-radius: 6px;
    background: var(--hub-blue);
}
.map-pin {
    position: absolute;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 0;
    background: var(--hub-blue);
    transform: rotate(-45deg);
    box-shadow: 0 0 0 5px rgba(7, 93, 204, .16);
}
.pin-one { left: 22%; top: 28%; }
.pin-two { left: 62%; top: 20%; }
.pin-three { left: 72%; top: 58%; }
.pin-four { left: 38%; top: 62%; }

.info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 16px;
}
.city-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.city-mini {
    position: relative;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: .8rem;
    color: #fff;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}
.city-mini::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.74));
}
.city-mini span,
.city-mini small {
    position: relative;
    z-index: 1;
    font-weight: 800;
}
.city-mini small { font-weight: 600; opacity: .9; }
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 18px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: .8rem;
}
.benefit-item i {
    width: 36px;
    height: 36px;
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    color: var(--hub-blue);
    border-radius: 8px;
    background: #eef5ff;
}
.benefit-item strong,
.benefit-item small {
    display: block;
    line-height: 1.25;
}
.benefit-item strong { font-size: .84rem; }
.benefit-item small { color: var(--hub-muted); font-size: .74rem; }

.property-tabs {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    overflow-x: auto;
}
.property-tabs a {
    color: var(--hub-ink);
    font-size: .86rem;
    font-weight: 800;
    white-space: nowrap;
}
.property-tabs a.active {
    color: var(--hub-blue);
    border-bottom: 2px solid var(--hub-blue);
}
.latest-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}
.list-property-cta {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(420px, 1.35fr);
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
    padding: 18px 22px;
    color: #fff;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(5, 31, 74, .98), rgba(8, 63, 137, .92)),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1300&q=75") right center/auto 100% no-repeat;
}
.list-property-cta h2 { margin: 0; font-size: 1.4rem; font-weight: 800; }
.list-property-cta p { margin: .2rem 0 0; color: rgba(255,255,255,.8); }
.cta-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.cta-metrics span {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 .55rem;
}
.cta-metrics i { grid-row: span 2; font-size: 1.3rem; opacity: .86; }
.cta-metrics strong { line-height: 1; }
.cta-metrics small { color: rgba(255,255,255,.76); font-size: .74rem; }
.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .85fr);
    gap: 16px;
}
.review-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.review-card {
    display: flex;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
}
.review-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    color: #7c3aed;
    background: #f3e8ff;
    border-radius: 50%;
}
.review-card strong,
.review-card small {
    display: block;
}
.review-card small { color: var(--hub-muted); }
.stars { color: #f59e0b; font-size: .8rem; }
.review-card p {
    margin: .35rem 0 0;
    color: #374151;
    font-size: .82rem;
}
.blog-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.blog-mini {
    color: var(--hub-ink);
}
.blog-mini img {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 8px;
}
.blog-mini strong,
.blog-mini small {
    display: block;
    margin-top: .45rem;
}
.blog-mini small {
    color: var(--hub-muted);
    font-size: .75rem;
}

.hero {
    min-height: 560px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(5, 22, 47, .86), rgba(5, 22, 47, .42)),
        url("https://images.unsplash.com/photo-1600585154526-990dced4db0d?auto=format&fit=crop&w=1800&q=82") center/cover;
}
.hero-search {
    max-width: 980px;
    background: rgba(255,255,255,.96);
    color: var(--hub-ink);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(0,0,0,.2);
}
.purpose-toggle .btn { min-width: 84px; }
.icon-tile {
    min-height: 96px;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--hub-ink);
    background: #fff;
}
.icon-tile i { color: var(--hub-blue); font-size: 1.45rem; }
.city-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 8px;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.city-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.city-card > div { position: absolute; inset: auto 1rem 1rem 1rem; }
.filter-panel {
    position: sticky;
    top: 118px;
    border: 1px solid var(--hub-line);
    border-radius: 8px;
    background: #fff;
}
.detail-gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.thumb-strip img { width: 76px; height: 56px; object-fit: cover; border-radius: 6px; }
.bottom-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 9;
    background: #fff;
    border-top: 1px solid var(--hub-line);
}
.dashboard-shell { background: var(--hub-soft); min-height: calc(100vh - 74px); }
.sidebar {
    background: #fff;
    border-right: 1px solid var(--hub-line);
    min-height: calc(100vh - 74px);
}
.sidebar a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--hub-ink);
    padding: .7rem .85rem;
    border-radius: 8px;
}
.sidebar a.active, .sidebar a:hover { color: var(--hub-blue); background: #eef5ff; }
.stat-card {
    border: 1px solid var(--hub-line);
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
}
.step-progress span {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: var(--hub-line);
}
.step-progress span.active { background: var(--hub-blue); }
.admin-sidebar { background: #162033; }
.admin-sidebar a, .admin-sidebar .brand { color: #dbe5f4; }
.ad-slot {
    border: 1px dashed #9db7dd;
    background: #eef5ff;
    color: #16457f;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.site-footer {
    background: linear-gradient(90deg, #061936, #082b5c);
}
.footer a { display: block; color: rgba(255,255,255,.72); margin-bottom: .45rem; }
.footer .d-flex a { display: inline-flex; }

@media (max-width: 1399.98px) {
    .latest-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .featured-grid > div:nth-child(4) { display: none; }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .category-pill { min-width: 180px; }
}

@media (max-width: 1399.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
}

@media (max-width: 1199.98px) {
    .hero-search-grid {
        grid-template-columns: 1fr 1fr;
    }
    .featured-layout,
    .info-grid,
    .bottom-grid,
    .list-property-cta {
        grid-template-columns: 1fr;
    }
    .map-card { min-height: 240px; }
    .cta-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .navbar { min-height: 64px; }
    .home-hero {
        min-height: auto;
        padding: 34px 0 22px;
    }
    .purpose-tabs {
        width: 100%;
    }
    .featured-grid,
    .latest-row,
    .review-row,
    .blog-row,
    .city-strip {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
    }
    .featured-grid > div,
    .latest-row > div {
        flex: 0 0 78%;
        max-width: 360px;
        scroll-snap-align: start;
    }
    .featured-grid > div:nth-child(4) { display: block; }
    .review-card,
    .blog-mini,
    .city-mini {
        flex: 0 0 78%;
        max-width: 360px;
    }
    .section-pad { padding: 2.5rem 0; }
    .filter-panel { position: static; }
    .sidebar { min-height: auto; border-right: 0; border-bottom: 1px solid var(--hub-line); }
}

@media (max-width: 767.98px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .brand-mark { width: 36px; height: 36px; }
    .navbar-brand { font-size: 1rem; }
    .home-hero {
        background-position: 62% center;
    }
    .hero-copy h1 {
        font-size: 1.85rem;
    }
    .hero-copy p {
        font-size: 1rem;
    }
    .hero-search-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .popular-searches {
        gap: .5rem .9rem;
    }
    .content-block {
        padding: 12px;
    }
    .section-title-row {
        align-items: flex-start;
        gap: .75rem;
    }
    .property-tabs {
        order: 3;
        width: 100%;
        gap: 1.2rem;
    }
    .featured-grid > div,
    .latest-row > div,
    .review-card,
    .blog-mini,
    .city-mini {
        flex-basis: 86%;
    }
    .benefit-grid,
    .cta-metrics {
        grid-template-columns: 1fr;
    }
    .list-property-cta {
        padding: 18px;
        background: linear-gradient(135deg, #061936, #075dcc);
    }
    .footer form {
        flex-direction: column;
    }
}
