/*
* VISTA PAGE MLS LISTING
*/


.center-loading {
    text-align: center;
}

.mls-title::first-line {
    font-family: 'Teodor Light';
    font-weight: 200;
}

.mls-title {
    width: 30%;
    font-family: 'NeueMontreal normal';
    font-size: 56px;
    line-height: 56px;
    margin: 44px 0 68px 0;
    letter-spacing: -3px;
    font-weight: 500;
    color: #7A6F5F;
}

.list-mls-header>h2::first-line {
    font-family: 'Teodor Light';
    font-weight: 200;
}

.list-mls-header>h2 {
    width: 33%;
    font-size: 56px;
    font-family: 'NeueMontreal normal';
    color: #7A6F5F;
    letter-spacing: -3px;
    margin-bottom: 2px;
    line-height: 56px;
    font-weight: 500;
}

/*
* VISTA DE FILTRO MLS
*/
.mls-filter {
    background-color: #F3F2F0;
    padding: 36px;
    margin-bottom: 132px;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 6px;
}

.mls-filter-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}


.mls-filter-section-item>label {
    font-family: 'NeueMontreal normal';
    font-size: 16px;
    color: #313131;

}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.mls-filter-section-select {
    appearance: none;
    /* Oculta la flecha por defecto */
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    border-bottom: 1px solid #999;
    padding: 8px 24px 8px 0;
    width: 100%;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    cursor: pointer;
}

.mls-filter-section-select:focus {
    outline: none;
    border-bottom: 1px solid #004B49;
    /* color destacado al enfocar */
}

.custom-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #105D5B;

    /* Color de la flecha */
}

/*Custom DROPDWN */
.custom-dropdown {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.dropdown-options {
    max-height: 300px;
    overflow-y: auto;
}

.search-li {
    padding: 0 !important;
    background: #fff;
    border-bottom: 1px solid #ccc;

    z-index: 1;
}

.dropdown-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    height: 100%;
}



.dropdown-selected {
    padding: 8px 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arrow-icon {
    font-size: 18px;
    color: #105D5B;
    transition: transform 0.2s ease;
}

.custom-dropdown.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-options {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #999;
    border-top: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    background: #fff;
    position: absolute;
    width: 100%;
    z-index: 49;
}

.custom-dropdown.open .dropdown-options {
    max-height: 300px;
    overflow: auto;
    padding: 9px;
    border-radius: 3px;
    border: 1px solid #C6C3B2;
    z-index: 50;
}

.dropdown-options li {
    padding: 10px;
    cursor: pointer;
    border-radius: 3px;
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2%;
    vertical-align: middle;
    color: #105D5B;
    border: 1px solid #C6C3B2;
    margin-bottom: 8px;
    height: 40px;

}

.dropdown-options li:hover,
.dropdown-options li.active {
    background-color: #105D5B;
    color: #fff;
}


/* FIN CUSTOM DRPDOWN */
.mls-filter-buscador {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 28px;
}

.mls-filter-buscador>p {
    margin-bottom: 0;
    font-size: 16px;
    font-family: 'NeueMontreal normal';
    color: #313131;
    line-height: 20px;    
    margin-top: 0px;
}

.mls-filter-buscador-input {
    width: 100%;
    display: flex;
    justify-content: space-between;
}



.mls-filter-buscador-button {
    height: 40px;
    width: 30%;
    background-color: #105D5B;
    border-radius: 3px;
    color: white;
    font-family: 'NeueMontreal normal';

}

.mls-filter-buscador-button:hover {
    background-color: #0A958E;
    cursor: pointer;
}


/*
*   VISTA DE LISTA MLS
*/

.list-mls {
    display: flex;
    flex-direction: column;
}

.list-mls .mls-property-list-card-link {
    text-decoration: none;
    color: black;
}

.list-mls .mls-property-list-card {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.list-mls .mls-property-list-image {
    width: 55%;
    height: 456px;
}

.list-mls .mls-property-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.list-mls .mls-property-list-content {
    border-top: 1px solid #C6C3B2;
    width: 100%;
    margin-right: 1%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 140px;
}

.list-mls .mls-property-list-content-title {
    color: #313131;
    font-size: 24px;
    font-family: 'NeueMontreal normal';
    margin-bottom: 0;
    margin-top: 0;
}

.list-mls .mls-property-list-content-price {
    color: #6E6E6E;
    margin-top: 0;
    margin-bottom: 40px;
    font-size: 24px;
    font-family: 'NeueMontreal normal';
}

.list-mls .mls-property-list-content-info-title {
    font-size: 24px;
    line-height: 24px;
    font-family: 'NeueMontreal normal';
    color: #313131;
    margin-bottom: 0;
    margin-top: 0;
}

.list-mls .mls-property-list-content-info-description {
    font-size: 16px;
    line-height: 20px;
    font-family: 'NeueMontreal normal';
    color: #6F6F6F;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    /* Número de líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mls-property-list-content-footer {
    display: flex;
    height: 20px;
    gap: 20px;
}

.mls-property-list-content-footer-item {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
    margin-top: 0;
    min-width: 37px;
    padding: 1.5px 0;
}

.mls-property-list-content-footer-item>p {
    margin: 0;
    font-family: 'NeueMontreal normal';
    font-size: 14px;
    white-space: nowrap;
}

/* VISTA DE GRID MLS
*/
.card-mls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.card-mls .mls-property-list-card-link {
    text-decoration: none;
    color: black;
    width: 32.6%;
}

.card-mls .mls-property-list-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}



.mls-property-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.swiper-pagination {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    font-family: sans-serif;
    z-index: 10;
}

.swiper-pagination-custom {
    left: inherit !important;
    width: auto !important;
}

.favorite-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
}

.favorite-alert {
    position: absolute;
    bottom: 0;
    background-color: #F3F2F0;
    color: black;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'NeueMontreal normal';
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.hover-hand {
    display: none;
    position: absolute;
    top: 0;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 24px;
    font-family: 'NeueMontreal normal';
    z-index: 9;
    color: #ffffffd1;
}

.card-mls .mls-property-list-image:hover .hover-hand {
    display: block;
}

.favorite-alert.show {
    opacity: 1;
}

.heart-icon {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.favorite-icon.active .heart-icon path {
    fill: red;
    /* cuando está activo, se rellena de rojo */
    stroke: white;
}

.mls-property-list-card>a {
    text-decoration: none;
    color: inherit
}

.card-mls .mls-property-list-image {
    width: 100%;
    height: 264px;
}

.card-mls .mls-property-list-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 6px;
}



.card-mls .mls-property-list-content-price {
    color: #6E6E6E;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-family: 'NeueMontreal normal';
    line-height: 24px;
    letter-spacing: -0.5px;
    font-weight: 500;
}

.card-mls .mls-property-list-content-title {
    color: #313131;
    font-size: 24px;
    font-family: 'NeueMontreal normal';
    margin-bottom: 6px;
    margin-top: 0;
    line-height: 24px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.card-mls .mls-property-list-content-info {
    display: none;
}

/*
* VISTA DE ordenacion MLS
*/
.ordenacion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 68px;
}

.ordenacion-left {
    display: flex;
    align-items: center;
}

.ordenacion-left p {
    margin: 0;
}

.ordenacion-right {
    display: flex;
    gap: 63px;
    align-items: center;
}

.ordenacion-right-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.vista-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #A7BFBE;

}

.vista-btn:hover {
    cursor: pointer;
}

.vista-btn-activo {
    color: #105D5B;
}

/* Contenedor opcional */
.custom-select-wrapper {
    position: relative;

}

/* Estilo del select */
.sort-select {
    appearance: none;
    /* quitar estilo nativo */
    -webkit-appearance: none;
    -moz-appearance: none;

    background: transparent;
    border: none;
    border-bottom: 1px solid #999;
    padding: 0.5rem 1.5rem 0.5rem 0;
    font-size: 14px;
    color: #004b49;
    width: 100%;
    cursor: pointer;
}

/* Icono de flecha personalizada */
.sort-select::after,
.custom-select-wrapper::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #105D5B;
}

/*ç
*   PAGINACION
*/
#pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-btn {
    border: 2px solid #005f5b;
    /* verde oscuro */
    background: transparent;
    color: #005f5b;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.pagination-btn:hover {
    background-color: #005f5b;
    color: white;
}

.pagination-btn.active {
    background-color: #005f5b;
    color: white;
    font-weight: bold;
}


/*Lo que buscas en nun click */
.quick-nav {
    margin: 2rem 0;
    padding: 0 2rem;
    margin-bottom: 140px;
}

.quick-nav-subtitle {
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.5%;
    vertical-align: middle;
    color: #6E6E6E;
    margin: 0;
}

.quick-nav-title {
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.5px;
    vertical-align: middle;
    color: #313131;
    margin: 12px 0 36px 0;

}

.quick-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-nav-buttons {
    align-items: center;
    display: flex;
    gap: 12px;
}

.quick-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-nav-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0.75rem;
    flex-grow: 1;
}

.quick-nav-scroll::-webkit-scrollbar {
    display: none;
}

.quick-nav-btn {
    white-space: nowrap;
    padding: 16px 24px;
    border: 1px solid #105D5B;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.28px;
    vertical-align: middle;
    color: #105D5B;

}

.quick-nav-btn:hover {
    background: #1b5c59;
    color: white;
}

.quick-nav-arrow {
    background: #d0e0de;
    border: none;
    color: #1b5c59;
    padding: 16px 24px 16px 24px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    transition: background 0.3s;
    line-height: 0;
}

.quick-nav-arrow.right {
    background: #1b5c59;
    color: white;
}

.quick-nav-arrow:hover {
    background: #15514d;
    color: white;
}

@media (max-width: 768px) {
    .quick-nav {
        margin: 0;
        padding: 0 1rem;
    }

}

/*TEXTOS SEO*/
.text-zone {
    display: flex;
    background-color: #F3F2F0;
    padding: 140px 2rem;
    margin-top: 140px;
}

.text-zone-header {
    width: 75%;
    margin-bottom: 40px;
}

.text-zone-description {
    width: 50%;
}

.text-zone-text {
    width: 75%;
    font-family: 'NeueMontreal normal';
}

.text-zone-text p {
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #6E6E6E;

}

.text-zone-text h4:nth-child(2) {
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.5px;
    vertical-align: middle;
    color: #313131;
    margin-top: 68px;
    margin-bottom: 12px;
}

.text-zone-text h4 {
    font-family: 'NeueMontreal normal';
    font-weight: 500;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -0.5px;
    vertical-align: middle;
    color: #313131;
    margin-top: 40px;
    margin-bottom: 12px;

}

.relacionadas-header {
    width: 33%;
    padding: 2rem 0;
}

.mobile {
    display: none;
}

.btn-extender {
    padding: 0 1rem;
    display: none;
    margin-bottom: 48px;
}

.btn-extender-open {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 12px;
    align-items: center;
    border: 1px solid #105D5B;
    padding: 16px 0px;
    border-radius: 3px;
    line-height: 16px;
    font-size: 14px;
    font-family: 'NeueMontreal normal';
    color: #105D5B;
}

@media (max-width: 768px) {
    .btn-extender {
        display: inherit;
    }

    .text-zone {
        padding: 60px 1rem;
    }

    .list-mls-header>h2 {
        width: 100%;
        font-size: 36px;
        line-height: 36px;
    }

    .mls-title {
        width: 85%;
        font-family: 'NeueMontreal normal';
        font-weight: 500;
        font-size: 36px;
        line-height: 36px;
        letter-spacing: -3%;
        vertical-align: middle;
        text-transform: uppercase;
        margin: 12px 0px 36px 0px;
        padding: 0 1rem;
    }

    .mls-filter {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 28px;
        padding:28px;
    }

    .mls-filter-section-item {
        width: 100%;
    }

    .card-mls .mls-property-list-card-link {
        width: 100%;
    }

    .ordenacion {
        display: none;
    }

    .quick-nav-buttons {
        display: none;
    }

    .mobile {
        display: flex;
    }

    .quick-nav-arrow {
        width: 50%;
    }

    .extra-filter {
        display: none;
    }



    .mls-filter-buscador>p {
        display: none;
    }

    .mls-filter-buscador-input>input {
        display: none;
    }

    .mls-filter-buscador-button {
        width: 100%;
    }

    .text-zone-description {
        width: 100%;
    }

    .text-zone-header {
        width: 100%;
    }

    .text-zone-text {
        width: 100%;
    }   
    
}

.mls-property-list-card-aviso {
    width: 59%;
    border-top: 1px solid #C6C3B2;
}

.mls-property-list-card-aviso-content-text {
    font-family: "Teodor Light";
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.5px;
    font-weight: 200;
    vertical-align: middle;
    color: #6E6E6E;
}

.mls-property-list-card-aviso-content-button {
    display: flex;
    height: 40px;
    padding: 16px 24px;
    width: fit-content;
    align-items: center;
    gap: 8px;
    background-color: #105D5B;
    color: white;
    font-family: "NeueMontreal normal";
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2%;
    vertical-align: middle;
    font-weight: 500;
    border-radius: 3px;
    text-decoration: none;
}
.mls-property-list-card-aviso-content-button:hover{
    background: #0A958E;
    color: white;
}

.mls-property-list-card-aviso-content-button p {
    margin-bottom: 0;
    margin-top: 0;
}