/*
 * Mbgc Property homepage focal treatment.
 *
 * This file deliberately styles only the active Home 101 hero and Featured
 * Residences section. Content and media remain managed by RentalSpace's
 * existing Banner Section Three and Top Rated Destination admin screens.
 */

:root {
    --text-muted: #5C6E71;
}

.banner-section-three {
    isolation: isolate;
    background-color: var(--bg-deep);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body .banner-section-three::after {
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(22, 41, 45, 0.78) 0%,
        rgba(22, 41, 45, 0.64) 48%,
        rgba(22, 41, 45, 0.48) 100%
    );
    pointer-events: none;
}

.banner-section-three > .container {
    position: relative;
    z-index: 2;
}

.banner-section-three .subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white-color);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.banner-section-three .subtitle::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    content: "";
    flex: 0 0 auto;
}

.banner-section-three .banner-section-three-title {
    max-width: 100%;
    margin-top: 14px;
    background: none;
    color: var(--white-color);
    font-size: clamp(58px, 5.2vw, 96px);
    font-weight: 300;
    line-height: 0.96;
    letter-spacing: -0.5px;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    text-wrap: balance;
}

.banner-section-three .banner-section-three-title > div {
    color: inherit;
    overflow: visible !important;
    -webkit-text-fill-color: currentColor !important;
}

.banner-section-three .container > .destination-search {
    border-color: rgba(244, 241, 234, 0.72);
    border-radius: 20px;
    background: rgba(244, 241, 234, 0.78);
    box-shadow: var(--shadow-2);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

.banner-section-three .btn-2 svg path {
    fill: var(--primary-color) !important;
}

.banner-section-three .hero-property-card {
    overflow: hidden;
    border-color: rgba(244, 241, 234, 0.24);
    background: rgba(22, 41, 45, 0.3);
    box-shadow: 0 24px 60px rgba(8, 20, 23, 0.28);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
}

.banner-section-three .hero-property-image-link {
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.banner-section-three .hero-property-image-link > img {
    width: 100%;
    height: clamp(270px, 24vw, 360px);
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-section-three .hero-property-image-link:hover > img,
.banner-section-three .hero-property-image-link:focus-visible > img {
    transform: scale(1.035);
}

.banner-section-three .hero-property-image-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.banner-section-three .hero-property-badge {
    max-width: calc(100% - 48px);
    justify-content: space-between;
    text-align: left;
    background: rgba(22, 41, 45, 0.82);
    box-shadow: 0 14px 34px rgba(8, 20, 23, 0.24);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
}

.banner-section-three .hero-property-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.banner-section-three .hero-property-copy small {
    color: var(--primary-color);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.banner-section-three .hero-property-copy strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--white-color);
    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(17px, 1.4vw, 22px);
    font-weight: 500;
    line-height: 1.05;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.banner-section-three .hero-property-copy > span {
    overflow: hidden;
    color: rgba(244, 241, 234, 0.74);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 11px;
    font-style: normal;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-section-three .hero-property-badge > i {
    border: 1px solid rgba(244, 241, 234, 0.18);
    background: rgba(244, 241, 234, 0.94);
    color: var(--bg-deep);
}

body .top-rated-destination-section {
    isolation: isolate;
    background-color: var(--bg-deep-alt);
}

body .top-rated-destination-section::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(22, 41, 45, 0.58);
    content: "";
    pointer-events: none;
}

.top-rated-destination-section > .container {
    position: relative;
    z-index: 2;
}

.top-rated-destination-section .section-title {
    color: var(--white-color);
    font-weight: 300;
    letter-spacing: -0.25px;
}

.top-rated-destination-section .section-header .right-side {
    color: var(--mbgc-mist, #A8BDC3);
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.top-rated-destination-section .top-rated-destination-video {
    z-index: 0;
}

.special-text {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: rgba(244, 241, 234, 0.12);
    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(72px, 10vw, 150px);
    font-weight: 300;
    line-height: 0.8;
    letter-spacing: -1px;
    white-space: nowrap;
}

.special-text svg {
    display: none;
}

.special-text::before {
    content: attr(data-wordmark);
}

.top-rated-destination-section .destination-box4 .img-box img {
    border-radius: 20px;
}

@media (max-width: 1399px) {
    .banner-section-three .banner-section-three-title {
        font-size: clamp(58px, 5.2vw, 84px);
    }
}

@media (min-width: 1200px) {
    .banner-section-three .banner-section-three-title {
        white-space: nowrap;
    }
}

@media (max-width: 991px) {
    .banner-section-three .banner-section-three-title {
        font-size: clamp(48px, 9vw, 70px);
    }
}

@media (max-width: 575px) {
    .banner-section-three .banner-section-three-title {
        font-size: clamp(38px, 12vw, 52px);
        line-height: 1;
    }

    .banner-section-three .subtitle {
        justify-content: center;
    }

    .banner-section-three .hero-property-image-link > img {
        height: 260px;
    }

    .banner-section-three .hero-property-badge {
        max-width: calc(100% - 20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner-section-three-video,
    .top-rated-destination-video {
        display: none;
    }
}
