:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #eef2f7;
    --ink: #101828;
    --muted: #667085;
    --line: #e5e7eb;
    --brand: #111827;
    --brand-2: #1d4ed8;
    --gold: #c59b45;
    --radius: 24px;
    --shadow: 0 18px 50px rgba(16, 24, 40, 0.10);
    --shadow-soft: 0 12px 30px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

a:hover { color: var(--brand-2); }

img { max-width: 100%; height: auto; display: block; }

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.15rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.custom-logo { max-height: 54px; width: auto; }

.primary-nav .menu,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #344054;
    font-weight: 600;
}

.primary-nav a:hover {
    background: #eef2ff;
    color: #1d4ed8;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 99px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 86px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1220 0%, #111827 56%, #172554 100%);
    color: #fff;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 480px;
    height: 480px;
    border-radius: 999px;
    background: rgba(197, 155, 69, 0.20);
    filter: blur(8px);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 44px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
}

.hero-copy h1,
.archive-hero h1,
.single-property-copy h1 {
    margin: 0;
    font-size: clamp(2.55rem, 5vw, 5.35rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.hero-copy p,
.archive-hero p,
.cta-card p {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-light {
    background: #fff;
    color: #0f172a;
    box-shadow: var(--shadow-soft);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.btn-dark:hover { color: #fff; background: #1d2939; }

.btn.full { width: 100%; }

.hero-panel {
    padding: 28px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 32px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
}

.property-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.hero-panel .property-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #d0d5dd;
    font-size: 0.82rem;
    font-weight: 800;
}

.archive-hero .filter-field label { color: #344054; }

.filter-field input,
.filter-field select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.94);
    color: #101828;
    outline: none;
}

.archive-hero .filter-field input,
.archive-hero .filter-field select {
    border-color: var(--line);
    background: #fff;
}

.stats-strip {
    position: relative;
    z-index: 2;
    margin-top: -28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.stats-strip div {
    padding: 24px;
    background: #fff;
}

.stats-strip strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
}

.stats-strip span { color: var(--muted); font-weight: 600; }

.section { padding: 72px 0; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2,
.content-card h1,
.content-card h2,
.property-description h2,
.lead-card h2,
.cta-card h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.text-link {
    color: #1d4ed8;
    font-weight: 800;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.property-card {
    background: #fff;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.property-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1.38 / 1;
    overflow: hidden;
    background: var(--surface-soft);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.property-card:hover .property-card-image img { transform: scale(1.04); }

.property-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: grid;
    place-items: center;
    color: #667085;
    font-weight: 800;
    background: linear-gradient(135deg, #e5e7eb, #f8fafc);
}

.property-placeholder.large { min-height: 520px; border-radius: 32px; }

.property-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.84);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.property-card-content { padding: 20px; }

.property-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.property-card h3 {
    margin: 12px 0 8px;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.property-address {
    min-height: 26px;
    margin: 0 0 14px;
    color: var(--muted);
}

.property-price {
    margin-bottom: 14px;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.property-specs,
.single-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.property-specs span,
.single-specs span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.88rem;
    font-weight: 700;
}

.cta-section { padding: 20px 0 80px; }

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 44px;
    color: #fff;
    background: linear-gradient(135deg, #111827, #1e3a8a);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.archive-hero {
    padding: 58px 0 42px;
    background: linear-gradient(180deg, #fff, #f6f7fb);
    border-bottom: 1px solid var(--line);
}

.archive-hero h1 { color: var(--ink); }

.archive-hero p {
    color: var(--muted);
    margin-bottom: 26px;
}

.archive-hero .property-filter {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.archive-count {
    margin-bottom: 20px;
    color: var(--muted);
    font-weight: 800;
}

.pagination-wrap { margin-top: 34px; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    font-weight: 800;
}

.page-numbers.current {
    background: #111827;
    color: #fff;
}

.empty-state,
.content-card,
.lead-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.empty-state { grid-column: 1 / -1; text-align: center; }

.single-property-hero {
    padding: 52px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.single-property-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 38px;
    align-items: center;
}

.single-property-copy h1 { color: var(--ink); }

.single-address {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 700;
}

.single-price {
    margin: 22px 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.075em;
}

.single-specs span {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 100px;
    min-height: 64px;
    border-radius: 18px;
    padding: 10px 14px;
}

.single-specs strong {
    color: #111827;
    font-size: 1.15rem;
}

.single-property-image img {
    width: 100%;
    min-height: 440px;
    max-height: 620px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 28px;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { color: #344054; }
.entry-content a { color: #1d4ed8; font-weight: 700; }

.lead-card {
    position: sticky;
    top: 100px;
}

.lead-card h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.reference {
    padding: 12px 14px;
    background: #f2f4f7;
    border-radius: 16px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.post-thumb img,
.post-hero img {
    width: 100%;
    border-radius: 22px;
    margin-bottom: 18px;
}

.page-content { max-width: 900px; }

.site-footer {
    padding: 58px 0 28px;
    color: #d0d5dd;
    background: #0b1220;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 30px;
}

.site-footer h3,
.site-footer h4 {
    margin: 0 0 12px;
    color: #fff;
}

.site-footer p { color: #98a2b3; }

.footer-menu li { margin-bottom: 8px; }

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #98a2b3;
}

@media (max-width: 980px) {
    .hero-grid,
    .single-property-grid,
    .single-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .property-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lead-card { position: static; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, 1180px); }
    .menu-toggle { display: block; }

    .primary-nav {
        position: absolute;
        top: 78px;
        left: 14px;
        right: 14px;
        display: none;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open { display: block; }
    .primary-nav .menu { flex-direction: column; align-items: stretch; }
    .primary-nav a { justify-content: center; }

    .hero-section { padding-top: 56px; }
    .hero-panel { padding: 18px; }
    .hero-panel .property-filter,
    .property-filter,
    .property-grid,
    .blog-grid,
    .stats-strip {
        grid-template-columns: 1fr;
    }

    .section { padding: 48px 0; }
    .section-heading,
    .cta-card {
        display: block;
    }

    .section-heading .text-link { display: inline-flex; margin-top: 12px; }
    .cta-card .btn { margin-top: 20px; }
    .single-property-image img { min-height: 300px; }
}
