.real-estate-best {
    background: #ffffff;
    padding: 36px 0 64px;
}

.real-estate-best__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.real-estate-best__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.real-estate-best__title {
    margin: 0;
    font-size: 32px;
    font-weight: 500;
    color: #111111;
}

.real-estate-best__controls {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.real-estate-best__control {
    width: 64px;
    height: 36px;
    border-radius: 999px;
    border: none;
    background: #f1f1f1;
    color: #a6a6a6;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.real-estate-best__control--primary {
    background: #1d5bff;
    color: #ffffff;
}

.real-estate-best__control:disabled {
    opacity: 0.4;
    cursor: default;
}

.real-estate-best__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.real-estate-best__track::-webkit-scrollbar {
    display: none;
}

.real-estate-best-card {
    position: relative;
    font-family: "Segoe UI", "Arial", "Noto Sans", "Liberation Sans", sans-serif;
    flex: 0 0 100%;
    max-width: 1120px;
    aspect-ratio: 900 / 380;
    border-radius: 45px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-size: cover;
    background-position: center 60%;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    font-size: 16px;
    scroll-snap-align: start;
}

.real-estate-best-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.real-estate-best-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.real-estate-best-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.real-estate-best-card__main h1 {
    font-family: 'Metal', sans-serif;
    font-size: 35px;
    font-weight: 500;
    line-height: 1.1;
    margin: 0 0 22px;
    letter-spacing: -0.5px;
}

.real-estate-best-card__location {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 8px;
    font-weight: 300;
}

.real-estate-best-card__link {
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    opacity: 0.8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.real-estate-best-card__link:hover {
    opacity: 1;
}

.real-estate-best-card__price {
    background: #ffffff;
    color: #000000;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.real-estate-best-card__stats {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.95;
}

.real-estate-best-card__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.real-estate-best-card__icon {
    width: 18px;
    height: 18px;
    display: inline-block;

    color: currentColor;
}

@media (max-width: 700px) {
    .real-estate-best-card {
        aspect-ratio: 3 / 4;
        min-height: 600px;
        padding: 40px 26px 28px;
        border-radius: 32px;
        background-position: center 70%;
    }

    .real-estate-best-card__main h1 {
        font-size: 26px;
    }

    .real-estate-best-card__main {
        max-width: 85%;
        padding-top: 0;
    }

    .real-estate-best-card__stats {
        position: relative;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        padding-right: 90px;
    }

    .real-estate-best-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .real-estate-best-card__price {
        position: static;
        order: -1;
        margin-bottom: 8px;
    }

    .real-estate-best-card__location {
        font-size: 19px;
        margin-top: 18px;
    }

    .real-estate-best-card__link {
        font-size: 14px;
        opacity: 0.9;
        position: static;
        margin-top: 6px;
        align-self: flex-start;
    }
}
