/* =========================================================
   LISTADO DE PROPIEDADES
========================================================= */

.properties-main {
    padding-top: 90px;
    padding-bottom: 110px;
}

.properties-content {
    width: 100%;
}


/* =========================================================
   ENCABEZADO DEL LISTADO
========================================================= */

.properties-toolbar {
    margin-bottom: 42px;

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

.properties-toolbar__label {
    display: block;

    margin-bottom: 9px;

    color: #879873;

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

.properties-toolbar h2 {
    margin: 0;

    color: #233b32;

    font-size: clamp(28px, 2.4vw, 40px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.properties-toolbar__count {
    margin: 10px 0 0;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   ORDEN
========================================================= */

.properties-toolbar__sort {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.properties-toolbar__sort span {
    color: #6b7280;

    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

.properties-toolbar__sort button {
    min-height: 38px;
    padding: 0 16px;

    border: 1px solid rgba(35, 59, 50, 0.14);
    border-radius: 2px;

    background: #ffffff;
    color: #233b32;

    font: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;

    cursor: pointer;

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

.properties-toolbar__sort button:hover {
    border-color: #233b32;

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


/* =========================================================
   GRILLA
========================================================= */

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


/* =========================================================
   TARJETA
========================================================= */

.listing-property-card {
    min-width: 0;

    overflow: hidden;

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

    background: #ffffff;

    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.055);

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

.listing-property-card:hover {
    transform: translateY(-4px);

    border-color: rgba(35, 59, 50, 0.16);

    box-shadow:
        0 22px 48px rgba(15, 23, 42, 0.09);
}


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

.listing-property-card__image {
    position: relative;

    display: block;

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

    overflow: hidden;

    background: #eef0ec;
}

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

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.listing-property-card:hover
.listing-property-card__image img {
    transform: scale(1.035);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

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

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

    background:
        linear-gradient(
            135deg,
            #eef0ec,
            #e4e8e1
        );

    color: #7a847d;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   CONTENIDO
========================================================= */

.listing-property-card__content {
    padding: 24px;
}


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

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

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

    color: #4b5563;

    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

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

    flex: 0 0 16px;

    margin-top: 1px;

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

.listing-property-card__location span {
    min-width: 0;

    overflow: hidden;

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


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

.listing-property-card__features {
    margin-top: 19px;
    padding: 17px 0;

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

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

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

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;

    text-align: center;
}

.listing-property-card__feature svg {
    width: 18px;
    height: 18px;

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

.listing-property-card__feature span {
    max-width: 100%;

    color: #5f6763;

    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;

    white-space: nowrap;
}


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

.listing-property-card__price {
    min-height: 58px;
    margin-top: 19px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.listing-property-card__price strong {
    color: #233b32;

    font-size: 20px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.listing-property-card__price small {
    color: #7b817e;

    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}


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

.listing-property-card__actions {
    margin-top: 18px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.listing-property-card__button {
    min-height: 42px;
    padding: 0 14px;

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

    border: 1px solid transparent;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;

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

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

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

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

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

    background: #879873;
}

.listing-property-card__button--whatsapp {
    border-color: rgba(35, 59, 50, 0.18);

    background: transparent;
    color: #233b32;
}

.listing-property-card__button--whatsapp:hover {
    border-color: #233b32;

    background: rgba(35, 59, 50, 0.04);
}


/* =========================================================
   PAGINACIÓN
========================================================= */

.properties-pagination {
    margin-top: 62px;

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

.properties-pagination__pages {
    display: flex;
    align-items: center;
    gap: 7px;
}

.properties-pagination__control,
.properties-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;

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

    background: #ffffff;
    color: #233b32;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;

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

.properties-pagination__control {
    min-height: 38px;
    padding: 0 16px;
}

.properties-pagination__page {
    width: 38px;
    height: 38px;
}

.properties-pagination__control:hover,
.properties-pagination__page:hover {
    border-color: #233b32;
}

.properties-pagination__page--active {
    border-color: #233b32;

    background: #233b32;
    color: #ffffff;

    pointer-events: none;
}

.properties-pagination__control--disabled {
    opacity: 0.4;

    cursor: default;
    pointer-events: none;
}


/* =========================================================
   SIN RESULTADOS
========================================================= */

.properties-empty {
    max-width: 680px;
    margin: 30px auto 0;
    padding: 80px 40px;

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

    background: #ffffff;

    text-align: center;
}

.properties-empty__eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #879873;

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

.properties-empty h3 {
    margin: 0;

    color: #233b32;

    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.properties-empty p {
    max-width: 490px;
    margin: 16px auto 0;

    color: #6b7280;

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

.properties-empty__button {
    min-height: 43px;
    margin-top: 27px;
    padding: 0 22px;

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

    border: 1px solid #233b32;

    background: #233b32;
    color: #ffffff;

    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;

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

.properties-empty__button:hover {
    transform: translateY(-1px);

    border-color: #879873;

    background: #879873;
}


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

@media (max-width: 1366px) {

    .properties-main {
        padding-top: 78px;
        padding-bottom: 95px;
    }

    .properties-grid {
        gap: 28px 22px;
    }

    .listing-property-card__content {
        padding: 21px;
    }
}


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

@media (max-width: 1050px) {

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

    .properties-toolbar {
        align-items: center;
    }
}


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

@media (max-width: 780px) {

    .properties-main {
        padding-top: 62px;
        padding-bottom: 80px;
    }

    .properties-toolbar {
        margin-bottom: 30px;

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

    .properties-toolbar__sort {
        width: 100%;

        justify-content: space-between;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .listing-property-card {
        max-width: 620px;
        width: 100%;
        margin-inline: auto;
    }

    .properties-pagination {
        margin-top: 48px;
        gap: 12px;
    }
}


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

@media (max-width: 520px) {

    .properties-main {
        padding-top: 50px;
        padding-bottom: 68px;
    }

    .properties-toolbar h2 {
        font-size: 28px;
    }

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

    .listing-property-card__features {
        gap: 5px;
    }

    .listing-property-card__feature span {
        font-size: 9px;
    }

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

    .listing-property-card__button {
        min-height: 43px;
    }

    .properties-pagination {
        flex-wrap: wrap;
    }

    .properties-pagination__control {
        min-height: 36px;
        padding: 0 13px;
    }

    .properties-pagination__page {
        width: 36px;
        height: 36px;
    }

    .properties-empty {
        padding: 58px 22px;
    }
}


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

@media (max-width: 380px) {

    .listing-property-card__features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 8px;
    }

    .properties-pagination__pages {
        gap: 4px;
    }

    .properties-pagination__page {
        width: 33px;
        height: 33px;
    }
}
