/* =========================================================
   HERO DE PROPIEDADES
========================================================= */

.properties-hero {
    position: relative;

    box-sizing: border-box;

    width: 100%;
    min-height: 720px;
    margin: 0;
    padding: 150px 0 150px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(24, 42, 35, 0.78) 0%,
            rgba(35, 59, 50, 0.58) 34%,
            rgba(35, 59, 50, 0.22) 68%,
            rgba(35, 59, 50, 0.08) 100%
        ),
        url("../../../img/hero/hero.7b5c3de5a539.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.properties-hero::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(24, 42, 35, 0.14) 0%,
            transparent 35%,
            rgba(24, 42, 35, 0.2) 100%
        );
}


/* =========================================================
   CONTENIDO DEL HERO
========================================================= */

.properties-hero__content {
    position: relative;
    z-index: 2;

    width: min(1500px, calc(100% - 80px));
    max-width: none;
    margin-inline: auto;
}

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

    margin-bottom: 20px;

    color: #c5cfb9;

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

.properties-hero__eyebrow::before {
    content: "";

    display: block;

    width: 28px;
    height: 1px;

    background: #879873;
}

.properties-hero h1 {
    max-width: 820px;
    margin: 0;

    color: #ffffff;

    font-size: clamp(38px, 3.4vw, 56px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.properties-hero p {
    max-width: 650px;
    margin: 24px 0 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}


/* =========================================================
   CANTIDAD DE PROPIEDADES
========================================================= */

.properties-hero__meta {
    margin-top: 32px;
}

.properties-hero__meta span {
    min-height: 42px;
    padding: 0 17px;

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

    border: 1px solid rgba(197, 207, 185, 0.48);
    border-radius: 999px;

    background: rgba(35, 59, 50, 0.28);
    color: #ffffff;

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

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


/* =========================================================
   INDICADOR UF
========================================================= */

.properties-uf-card {
    position: absolute;
    right: max(40px, calc((100vw - 1500px) / 2));
    bottom: 120px;
    z-index: 2;

    box-sizing: border-box;

    width: max-content;
    max-width: 450px;
    min-height: 74px;
    padding: 15px 21px;

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

    border-left: 1px solid rgba(197, 207, 185, 0.58);

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

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.properties-uf-card span {
    display: block;

    margin-bottom: 6px;

    color: #c5cfb9;

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

.properties-uf-card strong {
    display: block;

    color: #ffffff;

    font-size: 25px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.properties-uf-card small {
    color: rgba(255, 255, 255, 0.76);

    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    white-space: nowrap;
}


/* =========================================================
   SECCIÓN DEL BUSCADOR
========================================================= */

.property-search-section {
    position: relative;
    z-index: 10;

    margin-top: -72px;
    margin-bottom: 86px;
}

.property-search {
    box-sizing: border-box;

    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px 32px 32px;

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

    background: #ffffff;

    box-shadow:
        0 25px 60px rgba(35, 59, 50, 0.1),
        0 8px 20px rgba(35, 59, 50, 0.04);
}


/* =========================================================
   ENCABEZADO DEL BUSCADOR
========================================================= */

.property-search__header {
    margin-bottom: 25px;

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

.property-search__eyebrow {
    display: block;

    margin-bottom: 9px;

    color: #879873;

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

.property-search__header h2 {
    margin: 0;

    color: #233b32;

    font-size: clamp(25px, 2vw, 32px);
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.property-search__reset-top {
    flex-shrink: 0;

    padding-bottom: 3px;

    color: #6b7280;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    text-decoration: none;

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

.property-search__reset-top:hover {
    transform: translateY(-1px);

    color: #879873;
}


/* =========================================================
   CAMPOS DEL BUSCADOR
========================================================= */

.property-search__fields {
    display: grid;
    grid-template-columns:
        minmax(210px, 1.1fr)
        minmax(190px, 0.9fr)
        minmax(210px, 1fr)
        210px;

    align-items: end;
    gap: 15px;
}

.property-search__field {
    min-width: 0;
}

.property-search__field label {
    display: block;

    margin-bottom: 9px;

    color: #233b32;

    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.property-search__field select {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    height: 54px;
    padding: 0 46px 0 16px;

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

    outline: none;

    background-color: #f7f8f6;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23879873' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;

    color: #233b32;

    font-family: inherit;
    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

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

.property-search__field select:hover {
    border-color: rgba(135, 152, 115, 0.7);

    background-color: #ffffff;
}

.property-search__field select:focus {
    border-color: #879873;

    background-color: #ffffff;

    box-shadow: 0 0 0 3px rgba(135, 152, 115, 0.12);
}


/* =========================================================
   ACCIONES DEL BUSCADOR
========================================================= */

.property-search__actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.property-search__submit {
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    min-height: 54px;
    padding: 0 22px;

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

    border: 1px solid #233b32;
    border-radius: 0;

    outline: none;

    background: #233b32;
    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;

    cursor: pointer;

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

.property-search__submit:hover {
    transform: translateY(-1px);

    border-color: #879873;

    background: #879873;
    color: #ffffff;
}

.property-search__submit:focus-visible {
    outline: 2px solid #879873;
    outline-offset: 3px;
}

.property-search__submit:active {
    transform: translateY(0);
}


/* =========================================================
   ENLACE LIMPIAR ALTERNATIVO
========================================================= */

.property-search__clear {
    box-sizing: border-box;

    min-height: 54px;
    padding: 0 17px;

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

    border: 1px solid rgba(35, 59, 50, 0.2);
    border-radius: 0;

    background: #ffffff;
    color: #233b32;

    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

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

.property-search__clear:hover {
    border-color: #879873;

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


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

@media (max-width: 1366px) {

    .properties-hero {
        min-height: 680px;
        padding: 135px 0 145px;
    }

    .properties-hero__content {
        width: calc(100% - 64px);
    }

    .properties-uf-card {
        right: 48px;
        bottom: 112px;
    }

    .property-search {
        width: min(1120px, 100%);
    }
}


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

@media (max-width: 1050px) {

    .properties-hero {
        min-height: 630px;
        padding: 115px 0 135px;
    }

    .properties-hero__content {
        width: calc(100% - 56px);
    }

    .properties-hero h1 {
        max-width: 700px;

        font-size: clamp(38px, 5vw, 50px);
    }

    .properties-hero p {
        max-width: 570px;

        font-size: 15px;
    }

    .properties-uf-card {
        right: 28px;
        bottom: 105px;

        gap: 18px;
        padding: 14px 17px;
    }

    .properties-uf-card strong {
        font-size: 22px;
    }

    .property-search-section {
        margin-top: -64px;
        margin-bottom: 72px;
    }

    .property-search {
        padding: 26px;
    }

    .property-search__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .property-search__actions {
        align-self: end;
    }
}


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

@media (max-width: 780px) {

    .properties-hero {
        min-height: 680px;
        padding: 95px 0 175px;

        background:
            linear-gradient(
                90deg,
                rgba(24, 42, 35, 0.84) 0%,
                rgba(35, 59, 50, 0.68) 58%,
                rgba(35, 59, 50, 0.32) 100%
            ),
            url("../../../img/hero/hero.7b5c3de5a539.png");

        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .properties-hero__content {
        width: calc(100% - 36px);
    }

    .properties-hero h1 {
        max-width: 620px;

        font-size: clamp(35px, 6vw, 46px);
    }

    .properties-hero p {
        max-width: 530px;

        font-size: 15px;
        line-height: 1.75;
    }

    .properties-hero__meta {
        margin-top: 26px;
    }

    .properties-uf-card {
        right: auto;
        bottom: 88px;
        left: 18px;

        max-width: calc(100% - 36px);
    }

    .property-search-section {
        margin-top: -58px;
        margin-bottom: 62px;
    }

    .property-search {
        padding: 24px 22px;
    }

    .property-search__header {
        align-items: flex-start;
    }

    .property-search__fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }
}


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

@media (max-width: 560px) {

    .properties-hero {
        min-height: 660px;
        padding: 82px 0 180px;
    }

    .properties-hero__content {
        width: calc(100% - 28px);
    }

    .properties-hero__eyebrow {
        margin-bottom: 17px;

        font-size: 10px;
    }

    .properties-hero h1 {
        font-size: clamp(32px, 8vw, 40px);
        line-height: 1.14;
    }

    .properties-hero p {
        margin-top: 19px;

        font-size: 14px;
    }

    .properties-hero__meta span {
        min-height: 39px;
        padding: 0 14px;

        font-size: 11px;
    }

    .properties-uf-card {
        bottom: 84px;
        left: 14px;

        max-width: calc(100% - 28px);
        padding: 12px 14px;

        gap: 14px;
    }

    .properties-uf-card strong {
        font-size: 20px;
    }

    .properties-uf-card small {
        max-width: 165px;

        font-size: 10px;
        white-space: normal;
    }

    .property-search-section {
        margin-top: -54px;
        margin-bottom: 52px;
    }

    .property-search {
        padding: 22px 18px;
    }

    .property-search__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .property-search__header h2 {
        font-size: 26px;
    }

    .property-search__fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .property-search__field select,
    .property-search__submit {
        min-height: 51px;
        height: 51px;
    }
}


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

@media (max-width: 430px) {

    .properties-hero {
        min-height: 640px;
        padding: 74px 0 176px;
    }

    .properties-hero h1 {
        font-size: 32px;
    }

    .properties-hero p {
        font-size: 13px;
        line-height: 1.7;
    }

    .properties-uf-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .property-search {
        padding: 20px 16px;
    }

    .property-search__header h2 {
        font-size: 24px;
    }
}