/* =========================================================
   PROPIEDADES DESTACADAS
========================================================= */

.featured-section {
    position: relative;
    z-index: 2;

    margin: 0;
    padding: 0 0 80px;

    isolation: isolate;
    scroll-margin-top: var(--navbar-height, 82px);

    background: #f7f8f6;
}

.featured-section .section-container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.featured-header {
    width: min(1500px, 100%);
    margin: 0 auto 40px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.featured-header__text {
    min-width: 0;
}

.featured-header__eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;

    margin-bottom: 10px;

    color: #879873;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.featured-header__eyebrow::before {
    content: "";

    display: block;

    width: 25px;
    height: 1px;

    background: #879873;
}

.featured-header h2 {
    max-width: 700px;
    margin: 0;

    color: #233b32;

    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.16;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.featured-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;

    flex-shrink: 0;
}

.featured-header__link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #233b32;

    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition:
        gap 0.2s ease,
        color 0.2s ease;
}

.featured-header__link span {
    font-size: 18px;
    line-height: 1;
}

.featured-header__link:hover {
    gap: 13px;

    color: #879873;
}


/* =========================================================
   CONTROLES SUPERIORES
========================================================= */

.featured-carousel__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.featured-carousel__control {
    width: 42px;
    height: 42px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(35, 59, 50, 0.16);

    background: #ffffff;
    color: #233b32;

    font: inherit;
    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.featured-carousel__control:hover {
    transform: translateY(-2px);

    border-color: #233b32;

    background: #233b32;
    color: #ffffff;
}

.featured-carousel__control:disabled {
    opacity: 0.35;

    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   CARRUSEL
========================================================= */

.featured-carousel {
    position: relative;

    width: min(1500px, 100%);
    margin: 0 auto;
}

.featured-carousel__viewport {
    position: relative;

    width: 100%;

    overflow: hidden;
}

.featured-carousel__track {
    position: relative;

    display: flex;
    align-items: stretch;
    gap: 28px;

    transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.25, 1);

    will-change: transform;
}


/* =========================================================
   TARJETA DE PROPIEDAD
========================================================= */

.featured-property-card {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(35, 59, 50, 0.1);

    background: #ffffff;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.featured-property-card:hover {
    transform: translateY(-5px);

    border-color: rgba(135, 152, 115, 0.5);

    box-shadow:
        0 22px 45px rgba(35, 59, 50, 0.1),
        0 6px 15px rgba(35, 59, 50, 0.04);
}


/* =========================================================
   IMAGEN
========================================================= */

.featured-property-card__image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    display: block;

    overflow: hidden;

    background: #e9ede8;
}

.featured-property-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.45s ease;
}

.featured-property-card:hover .featured-property-card__image img {
    transform: scale(1.025);
}

.featured-property-card__placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e9ede8;
    color: #6b7280;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   ETIQUETAS SOBRE LA IMAGEN
========================================================= */

.featured-property-card__badges {
    position: absolute;
    top: 15px;
    right: 15px;
    left: 15px;
    z-index: 2;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.featured-property-card__badge {
    min-height: 29px;
    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.55);

    background: rgba(255, 255, 255, 0.92);
    color: #233b32;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}


/* =========================================================
   CONTENIDO DE LA TARJETA
========================================================= */

.featured-property-card__content {
    flex: 1;

    padding: 20px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   UBICACIÓN
========================================================= */

.featured-property-card__location {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #233b32;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
}

.featured-property-card__location svg {
    width: 16px;
    height: 16px;

    flex-shrink: 0;

    fill: none;
    stroke: #879873;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.featured-property-card__location span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.featured-property-card__features {
    margin-top: 15px;
    padding: 14px 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    border-top: 1px solid rgba(35, 59, 50, 0.09);
    border-bottom: 1px solid rgba(35, 59, 50, 0.09);
}

.featured-property-card__feature {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #6b7280;

    font-size: 10px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

.featured-property-card__feature:not(:last-child) {
    border-right: 1px solid rgba(35, 59, 50, 0.09);
}

.featured-property-card__feature svg {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    fill: none;
    stroke: #879873;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   PRECIO
========================================================= */

.featured-property-card__price {
    width: 100%;
    margin-top: 18px;

    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;

    color: #233b32;
}

.featured-property-card__price strong {
    min-width: 0;

    font-size: 20px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.featured-property-card__price small {
    margin-left: auto;

    color: #6b7280;

    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}


/* =========================================================
   ACCIONES
========================================================= */

.featured-property-card__actions {
    margin-top: auto;
    padding-top: 18px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.featured-property-card__button {
    box-sizing: border-box;

    min-height: 42px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.featured-property-card__button:hover {
    transform: translateY(-1px);
}


/* VER FICHA */

.featured-property-card__button--primary {
    border-color: #233b32;

    background: #233b32;
    color: #ffffff;
}

.featured-property-card__button--primary:hover {
    border-color: #879873;

    background: #879873;
    color: #ffffff;
}


/* CONSULTAR */

.featured-property-card__button--secondary {
    border-color: rgba(35, 59, 50, 0.45);

    background: #ffffff;
    color: #233b32;
}

.featured-property-card__button--secondary:hover {
    border-color: #233b32;

    background: #f1f4ef;
    color: #233b32;
}


/* =========================================================
   NAVEGACIÓN INFERIOR
========================================================= */

.featured-carousel__navigation {
    position: relative;
    z-index: 3;

    margin-top: 26px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.featured-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(35, 59, 50, 0.22);

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.featured-carousel__dot.is-active {
    width: 28px;

    background: #879873;
}


/* =========================================================
   MENSAJE SIN PROPIEDADES
========================================================= */

.featured-empty {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 48px 30px;

    border: 1px solid rgba(35, 59, 50, 0.1);

    background: #ffffff;

    text-align: center;
}

.featured-empty p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE - NOTEBOOK
   HASTA 1366 PX
========================================================= */

@media (max-width: 1366px) {

    .featured-section {
        padding-bottom: 72px;
    }

    .featured-header {
        margin-bottom: 36px;
    }

    .featured-carousel__track {
        gap: 22px;
    }

    .featured-property-card {
        flex-basis: calc((100% - 44px) / 3);
    }

    .featured-property-card__content {
        padding: 18px;
    }

    .featured-property-card__feature {
        gap: 4px;

        font-size: 9px;
    }

    .featured-property-card__feature svg {
        width: 13px;
        height: 13px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET / NOTEBOOK PEQUEÑO
   HASTA 1050 PX
========================================================= */

@media (max-width: 1050px) {

    .featured-section {
        padding-bottom: 64px;
    }

    .featured-header {
        margin-bottom: 32px;
    }

    .featured-carousel__track {
        gap: 20px;
    }

    .featured-property-card {
        flex-basis: calc((100% - 20px) / 2);
    }

    .featured-property-card__content {
        padding: 19px;
    }

    .featured-property-card__feature {
        font-size: 10px;
    }

    .featured-property-card__feature svg {
        width: 14px;
        height: 14px;
    }
}


/* =========================================================
   RESPONSIVE - TABLET VERTICAL
   HASTA 780 PX
========================================================= */

@media (max-width: 780px) {

    .featured-section {
        padding-bottom: 58px;
    }

    .featured-header {
        margin-bottom: 28px;

        align-items: flex-start;
    }

    .featured-header h2 {
        font-size: clamp(28px, 6vw, 38px);
    }

    .featured-header__link {
        font-size: 12px;
    }

    .featured-carousel__track {
        gap: 16px;
    }

    .featured-property-card {
        flex-basis: calc((100% - 16px) / 2);
    }

    .featured-property-card__content {
        padding: 16px;
    }

    .featured-property-card__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 7px 0;
    }

    .featured-property-card__feature {
        min-height: 32px;
    }

    .featured-property-card__feature:nth-child(2) {
        border-right: 0;
    }

    .featured-property-card__feature:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(35, 59, 50, 0.09);
    }

    .featured-property-card__price {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .featured-property-card__price small {
        margin-left: 0;

        text-align: left;
    }

    .featured-property-card__actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL
   HASTA 560 PX
========================================================= */

@media (max-width: 560px) {

    .featured-section {
        padding-bottom: 50px;
    }

    .featured-header {
        margin-bottom: 24px;

        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .featured-header__actions {
        width: 100%;

        justify-content: space-between;
    }

    .featured-carousel__track {
        gap: 14px;
    }

    .featured-property-card {
        flex-basis: 100%;
    }

    .featured-property-card__content {
        padding: 17px;
    }

    .featured-property-card__features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 13px 0;
    }

    .featured-property-card__feature {
        min-height: auto;

        font-size: 9px;
    }

    .featured-property-card__feature:nth-child(2) {
        border-right: 1px solid rgba(35, 59, 50, 0.09);
    }

    .featured-property-card__feature:nth-child(-n + 2) {
        border-bottom: 0;
    }

    .featured-property-card__price {
        align-items: baseline;
        flex-direction: row;
        gap: 12px;
    }

    .featured-property-card__price small {
        margin-left: auto;

        text-align: right;
    }

    .featured-property-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
   HASTA 430 PX
========================================================= */

@media (max-width: 430px) {

    .featured-property-card__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 7px 0;
    }

    .featured-property-card__feature {
        min-height: 32px;

        font-size: 10px;
    }

    .featured-property-card__feature:nth-child(2) {
        border-right: 0;
    }

    .featured-property-card__feature:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(35, 59, 50, 0.09);
    }

    .featured-property-card__price {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .featured-property-card__price small {
        margin-left: 0;

        text-align: left;
    }

    .featured-property-card__actions {
        grid-template-columns: 1fr;
    }
}

