.estate-theme {
    color: #17212b;
    background: #f4f6f2;
}

.estate-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 62px);
    border-bottom: 1px solid rgba(18, 60, 105, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.estate-brand {
    color: var(--primary);
}

.estate-nav {
    justify-content: center;
}

.estate-nav a {
    color: #334152;
}

.estate-actions .header-phone {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 13px;
}

.estate-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.8fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(42px, 7vw, 96px) clamp(18px, 5vw, 76px) clamp(34px, 5vw, 70px);
}

.estate-hero-copy h1 {
    max-width: 760px;
    color: #13263a;
    font-size: clamp(42px, 7vw, 82px);
}

.estate-hero-copy > p:not(.eyebrow) {
    max-width: 650px;
    color: #516071;
    font-size: 18px;
}

.estate-hero-media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 105, 0.12);
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    background: #dce5df;
    box-shadow: 0 24px 70px rgba(18, 60, 105, 0.16);
}

.estate-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.estate-search-panel {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    color: #fff;
    background: rgba(19, 38, 58, 0.84);
}

.estate-search-panel span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.estate-search-panel div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.estate-search-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    color: #13263a;
    background: #fff;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
}

.estate-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 0 clamp(18px, 5vw, 76px) clamp(40px, 6vw, 76px);
}

.estate-stats article {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid rgba(18, 60, 105, 0.1);
    background: #fff;
}

.estate-stats strong {
    color: var(--primary);
    font-size: 28px;
}

.estate-stats span {
    color: #667485;
    font-size: 13px;
    font-weight: 800;
}

.estate-about,
.estate-listings,
.estate-services,
.estate-cta {
    padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 76px);
}

.estate-about {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.9fr);
    gap: clamp(24px, 5vw, 70px);
    background: #fff;
}

.estate-about h2,
.estate-listings h2,
.estate-services h2,
.estate-cta h2 {
    color: #13263a;
    font-size: clamp(30px, 4vw, 52px);
}

.estate-about p {
    color: #526273;
    font-size: 18px;
}

.estate-listings {
    background: #f4f6f2;
}

.estate-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.estate-listing-card {
    overflow: hidden;
    border: 1px solid rgba(18, 60, 105, 0.1);
    border-radius: 8px;
    background: #fff;
}

.listing-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #dce5df;
}

.listing-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-image span {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #13263a;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.estate-listing-card div {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.estate-listing-card h3,
.estate-service-grid h3 {
    margin: 0;
    color: #13263a;
    font-size: 22px;
}

.estate-listing-card p,
.estate-service-grid p {
    margin: 0;
    color: #5a6877;
}

.estate-listing-card strong {
    color: var(--primary);
    font-size: 18px;
}

.estate-services {
    background: #fff;
}

.estate-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.estate-service-grid article {
    overflow: hidden;
    border: 1px solid rgba(18, 60, 105, 0.1);
    border-radius: 8px;
    background: #f9faf7;
}

.estate-service-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #dce5df;
}

.estate-service-grid div {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.estate-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background: #13263a;
}

.estate-cta h2,
.estate-cta p {
    color: #fff;
}

.estate-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px clamp(18px, 5vw, 76px);
    color: #647080;
    border-top: 1px solid rgba(18, 60, 105, 0.1);
    background: #fff;
}

.estate-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.estate-footer a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.estate-theme .product-image {
    aspect-ratio: 4 / 3;
}

@media (max-width: 920px) {
    .estate-header,
    .estate-hero,
    .estate-about {
        grid-template-columns: 1fr;
    }

    .estate-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .estate-card-grid,
    .estate-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .estate-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .estate-search-panel div,
    .estate-stats,
    .estate-card-grid,
    .estate-service-grid {
        grid-template-columns: 1fr;
    }

    .estate-cta,
    .estate-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
