/* =====================================================
   GRUPO VIVEXA
   PROPIEDADES - PÁGINA PÚBLICA
===================================================== */

:root {
    --vivexa-blue: #081A38;
    --vivexa-blue-light: #10284B;
    --vivexa-orange: #F68B1F;
    --vivexa-orange-light: #FFF1E3;
    --vivexa-text: #172033;
    --vivexa-muted: #687386;
    --vivexa-bg: #F6F8FB;
    --vivexa-white: #FFFFFF;
    --vivexa-border: #E7EAF0;
}


/* =====================================================
   GENERAL
===================================================== */

body {
    background: var(--vivexa-bg);
    color: var(--vivexa-text);
}


/* =====================================================
   HERO
===================================================== */

.properties-public-hero {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(8, 26, 56, .97),
            rgba(16, 40, 75, .94)
        );

    overflow: hidden;

}


/* decoración */

.properties-public-hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -120px;
    top: -160px;

    border-radius: 50%;

    background:
        rgba(246, 139, 31, .12);

}


.properties-public-hero::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: -130px;
    bottom: -150px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .04);

}


.properties-hero-content {

    position: relative;

    z-index: 2;

    max-width: 780px;

    padding-top: 60px;

}


.properties-label {

    display: inline-flex;

    align-items: center;

    margin-bottom: 18px;

    color: var(--vivexa-orange);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

}


.properties-hero-content h1 {

    margin: 0 0 22px;

    color: #fff;

    font-size: clamp(
        38px,
        5vw,
        64px
    );

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -1.5px;

}


.properties-hero-content p {

    max-width: 680px;

    margin: 0;

    color: rgba(255,255,255,.78);

    font-size: 17px;

    line-height: 1.8;

}


/* =====================================================
   BUSCADOR
===================================================== */

.properties-search-section {

    position: relative;

    z-index: 10;

    margin-top: -65px;

    margin-bottom: 30px;

}


.properties-search-card {

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        auto;

    align-items: end;

    gap: 18px;

    padding: 22px;

    background: #fff;

    border: 1px solid var(--vivexa-border);

    border-radius: 18px;

    box-shadow:
        0 18px 50px rgba(8,26,56,.12);

}


.properties-search-main {

    position: relative;

}


.properties-search-main > i {

    position: absolute;

    left: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: var(--vivexa-orange);

    font-size: 16px;

}


.properties-search-main input {

    width: 100%;

    height: 54px;

    padding: 0 18px 0 46px;

    border: 1px solid var(--vivexa-border);

    border-radius: 10px;

    outline: none;

    color: var(--vivexa-text);

    background: #fff;

    font-family: inherit;

    font-size: 14px;

    transition: .2s;

}


.properties-search-main input:focus {

    border-color: var(--vivexa-orange);

    box-shadow:
        0 0 0 3px rgba(246,139,31,.12);

}


.properties-search-field {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.properties-search-field label {

    color: var(--vivexa-muted);

    font-size: 11px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .7px;

}


.properties-search-field select {

    width: 100%;

    height: 54px;

    padding: 0 14px;

    border: 1px solid var(--vivexa-border);

    border-radius: 10px;

    outline: none;

    background: #fff;

    color: var(--vivexa-text);

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

}


.properties-search-field select:focus {

    border-color: var(--vivexa-orange);

}


.btn-properties-search {

    height: 54px;

    padding: 0 23px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 10px;

    background: var(--vivexa-orange);

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s;

}


.btn-properties-search:hover {

    background: #E9790F;

    transform: translateY(-1px);

}


.properties-clear {

    position: absolute;

    display: none;

}


/* =====================================================
   LISTADO
===================================================== */

.properties-public-list {

    padding: 65px 0 90px;

}


.properties-list-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 32px;

}


.properties-section-label {

    display: block;

    margin-bottom: 8px;

    color: var(--vivexa-orange);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.8px;

}


.properties-list-header h2 {

    margin: 0 0 8px;

    color: var(--vivexa-blue);

    font-size: 32px;

    font-weight: 800;

    letter-spacing: -.5px;

}


.properties-list-header p {

    margin: 0;

    color: var(--vivexa-muted);

    font-size: 14px;

}


/* =====================================================
   CARD PROPIEDAD
===================================================== */

.public-property-card {

    height: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--vivexa-border);

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(8,26,56,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.public-property-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(8,26,56,.13);

}


/* =====================================================
   IMAGEN
===================================================== */

.public-property-image {

    position: relative;

    height: 250px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #E9EDF4,
            #DDE3EC
        );

}


.public-property-image img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .45s ease;

}


.public-property-card:hover
.public-property-image img {

    transform: scale(1.045);

}


.public-property-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: rgba(8,26,56,.25);

    font-size: 55px;

}


/* =====================================================
   BADGES
===================================================== */

.public-property-operation {

    position: absolute;

    top: 15px;

    left: 15px;

    padding: 7px 11px;

    border-radius: 7px;

    background: var(--vivexa-orange);

    color: #fff;

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .5px;

}


.public-property-status {

    position: absolute;

    top: 15px;

    right: 15px;

    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(8,26,56,.88);

    color: #fff;

    font-size: 10px;

    font-weight: 700;

}


.public-property-featured {

    position: absolute;

    bottom: 15px;

    left: 15px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border-radius: 7px;

    background: rgba(255,255,255,.94);

    color: var(--vivexa-blue);

    font-size: 10px;

    font-weight: 800;

}


.public-property-featured i {

    color: var(--vivexa-orange);

}


/* =====================================================
   CUERPO
===================================================== */

.public-property-body {

    display: flex;

    flex-direction: column;

    min-height: 285px;

    padding: 22px;

}


.public-property-code {

    margin-bottom: 7px;

    color: var(--vivexa-orange);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;

}


.public-property-body h3 {

    margin: 0 0 12px;

    color: var(--vivexa-blue);

    font-size: 20px;

    line-height: 1.3;

    font-weight: 750;

}


.public-property-location {

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-bottom: 20px;

    color: var(--vivexa-muted);

    font-size: 13px;

    line-height: 1.5;

}


.public-property-location i {

    margin-top: 2px;

    color: var(--vivexa-orange);

}


/* =====================================================
   CARACTERÍSTICAS
===================================================== */

.public-property-features {

    display: flex;

    flex-wrap: wrap;

    gap: 16px;

    padding: 15px 0;

    border-top: 1px solid var(--vivexa-border);

    border-bottom: 1px solid var(--vivexa-border);

}


.public-property-features span {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--vivexa-muted);

    font-size: 12px;

    font-weight: 600;

}


.public-property-features i {

    color: var(--vivexa-orange);

    font-size: 13px;

}


/* =====================================================
   PRECIO + BOTÓN
===================================================== */

.public-property-bottom {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 15px;

    margin-top: auto;

    padding-top: 18px;

}


.public-property-bottom small {

    display: block;

    margin-bottom: 3px;

    color: #8A93A3;

    font-size: 10px;

}


.public-property-bottom strong {

    display: block;

    color: var(--vivexa-blue);

    font-size: 19px;

    font-weight: 800;

}


.btn-property-view {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 10px 13px;

    border: 1px solid var(--vivexa-blue);

    border-radius: 9px;

    color: var(--vivexa-blue);

    background: #fff;

    text-decoration: none;

    font-size: 11px;

    font-weight: 700;

    white-space: nowrap;

    transition: .25s;

}


.btn-property-view:hover {

    background: var(--vivexa-blue);

    color: #fff;

}


.btn-property-view i {

    transition: .2s;

}


.btn-property-view:hover i {

    transform: translateX(3px);

}


/* =====================================================
   SIN RESULTADOS
===================================================== */

.properties-empty {

    max-width: 600px;

    margin: 40px auto 0;

    padding: 65px 30px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--vivexa-border);

    border-radius: 18px;

}


.properties-empty-icon {

    width: 70px;

    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--vivexa-orange-light);

    color: var(--vivexa-orange);

    font-size: 28px;

}


.properties-empty h3 {

    margin-bottom: 8px;

    color: var(--vivexa-blue);

    font-size: 22px;

    font-weight: 800;

}


.properties-empty p {

    margin-bottom: 25px;

    color: var(--vivexa-muted);

    font-size: 14px;

}


.btn-properties-empty {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 12px 20px;

    border-radius: 9px;

    background: var(--vivexa-orange);

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: .25s;

}


.btn-properties-empty:hover {

    background: #E9790F;

    color: #fff;

}


/* =====================================================
   CTA
===================================================== */

.properties-public-cta {

    padding: 85px 20px;

    background: var(--vivexa-blue);

}


.properties-public-cta h2 {

    max-width: 700px;

    margin: 0 auto 14px;

    color: #fff;

    font-size: 38px;

    line-height: 1.2;

    font-weight: 800;

}


.properties-public-cta p {

    max-width: 620px;

    margin: 0 auto 28px;

    color: rgba(255,255,255,.72);

    font-size: 15px;

    line-height: 1.7;

}


.btn-properties-cta {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 21px;

    border-radius: 9px;

    background: var(--vivexa-orange);

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    transition: .25s;

}


.btn-properties-cta:hover {

    background: #fff;

    color: var(--vivexa-blue);

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .properties-public-hero {

        min-height: 460px;

    }


    .properties-hero-content {

        padding-top: 55px;

    }


    .properties-search-card {

        grid-template-columns:
            1fr
            1fr;

    }


    .properties-search-main {

        grid-column: 1 / -1;

    }


    .btn-properties-search {

        width: 100%;

    }


    .properties-public-list {

        padding-top: 50px;

    }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 767px) {

    .properties-public-hero {

        min-height: 440px;

    }


    .properties-hero-content {

        padding-top: 55px;

    }


    .properties-hero-content h1 {

        font-size: 38px;

        letter-spacing: -1px;

    }


    .properties-hero-content p {

        font-size: 14px;

        line-height: 1.7;

    }


    .properties-search-section {

        margin-top: -45px;

    }


    .properties-search-card {

        grid-template-columns: 1fr;

        gap: 14px;

        padding: 17px;

        border-radius: 14px;

    }


    .properties-search-main {

        grid-column: auto;

    }


    .properties-public-list {

        padding: 45px 0 65px;

    }


    .properties-list-header {

        margin-bottom: 25px;

    }


    .properties-list-header h2 {

        font-size: 27px;

    }


    .public-property-image {

        height: 230px;

    }


    .public-property-body {

        min-height: 270px;

        padding: 19px;

    }


    .public-property-body h3 {

        font-size: 19px;

    }


    .public-property-bottom {

        align-items: flex-start;

        flex-direction: column;

    }


    .btn-property-view {

        width: 100%;

        justify-content: center;

        padding: 12px;

    }


    .properties-public-cta {

        padding: 65px 20px;

    }


    .properties-public-cta h2 {

        font-size: 30px;

    }

}


/* =====================================================
   TELÉFONOS PEQUEÑOS
===================================================== */

@media (max-width: 480px) {

    .properties-hero-content h1 {

        font-size: 34px;

    }


    .properties-hero-content p {

        font-size: 13px;

    }


    .properties-public-search {

        margin-top: -35px;

    }


    .public-property-image {

        height: 215px;

    }


    .public-property-features {

        gap: 10px;

    }


    .public-property-features span {

        font-size: 11px;

    }

}