/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

.image-switcher-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 1200px;
}

/* Menú de ubicaciones */
.menu-locations {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    font-size: 16px;
    overflow: hidden;
    box-sizing: border-box;
}

.menu-locations h3 {
    margin-bottom: 5px !important;
}

.image-switcher-button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    column-gap: 20px;
    row-gap: 10px;
}

/* Botones de cambio de ubicación */
.image-switcher-buttons {
    flex: 0 0 35%;
    max-width: 28%;
    text-align: left;
    flex-direction: column;
    display: flex;
    gap: 20px;
}

.image-switcher-buttons::before {
    content: "¿CUÁL SERÁ TU DESTINO?";
    font-family: 'Lexend Deca', sans-serif;
    font-size: 50px;
    color: #FF5559;
    margin-bottom: 20px;
    display: block;
    font-weight: 600;
    text-align: left;
    width: 90%;
    line-height: 1.2;
    word-wrap: break-word;
}

.image-switcher-buttons h1 {
    white-space: normal !important;
    word-break: break-word;
    line-height: 1.2 !important;
}

.image-switcher-button {
    display: inline-flex;
    align-items: center;
    min-width: fit-content;
    border: none;
    background: none !important;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: black;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    text-align: left;
    transition: color 0.2s ease;
    flex: 1 1 calc(60% - 20px);
    max-width: calc(60% - 20px);
    width: auto;
    padding-right: 20px
}

.image-switcher-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: #FF5559;
    transition: width 0.2s ease;
}

.image-switcher-button::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background-image: url('https://fikastays.kinsta.cloud/wp-content/uploads/2025/01/chevron.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-switcher-button:not(.active):not(:hover) {
    color: black;
}

.image-switcher-button.active,
.image-switcher-button:hover {
    color: #FF5559 !important;
}

.image-switcher-button:hover::before {
    opacity: 1;
    right: -10px !important;
}

.image-switcher-button.active::after,
.image-switcher-button:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #FF5559;
    transition: width 0.2s ease;
}

.image-switcher-button:hover::after {
    width: 100%;
}

/* Contenedor del mapa */
#map-container {
    flex: 0 0 50%;
    max-width: 50%;
    text-align: center;
    position: relative;
    align-self: flex-start;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

#map-container svg {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
}

#properties-section {
    flex: 0 0 30%;
    max-width: 30%;
    height: 500px;
    overflow-y: auto;
    box-sizing: border-box;
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

#properties-section h3 {
    font-size: 20px;
    font-weight: bold;
    color: #ff5559;
    margin: 0 0 10px;
    height: 50px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#properties-section::-webkit-scrollbar {
    width: 8px;
}

#properties-section::-webkit-scrollbar-thumb {
    background: #FF5559;
    border-radius: 10px;
}

#properties-section::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

.properties-results {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    min-width: 25% !important;
    height: 600px !important;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    box-sizing: border-box;
}

.properties-results h3 {
    font-size: 20px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.1);
    margin: 0 0 10px;
    height: 50px !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.properties-results {
    order: 1;
}

.properties-section {
    background-color: #f8f8f8;
}

/* Estilo individual para cada propiedad */
.property-item {
    font-family: 'Lexend Deca', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    border-radius: 8px;
    text-align: left;
    transition: all 0.3s ease-in-out;
    font-size: 12px;
    color: black;
    font-weight: 500;
    margin-bottom: 10px;
}

.property-item h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #ff5559;
    text-align: center;
}

.property-item img {
    width: 100%;
    height: 110px !important;
    object-fit: cover;
    border-radius: 8px;
}

.property-item:hover img {
    filter: saturate(1.7);
}

/*AQUI*/
.property-item a {
    display: flex;
    flex-direction: column;
    color: #FF5559;
    font-size: 20px;
    font-weight: 500;
}

/* Scrollbar Customization */
#properties-container {
    display: flex;
    flex-direction: column;
    max-height: 550px;
    overflow-y: auto;
}

#properties-container::-webkit-scrollbar {
    width: 8px;
}

#properties-container::-webkit-scrollbar-thumb {
    background-color: #FF5559;
    border-radius: 4px;
}

#properties-container::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

#properties-container {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

/* Contenedor principal del formulario */
.fikastays-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 15px;
}

.fikastays-form>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 25%;
    margin: 0 10px;
}

.fikastays-form label {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.fikastays-form select {
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
    border: none;
    border-bottom: 2px solid black;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    background-color: transparent;
    outline: none;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.fikastays-form input {
    width: 100%;
    padding: 5px 0;
    border: none;
    border-bottom: 2px solid black;
    border-radius: 0;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    outline: none;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    box-shadow: none;
}

.fikastays-form button {
    flex: 0 0 15%;
    padding: 8px 15px;
    background-color: #FF5559;
    color: black;
    border: none;
    border-radius: 25px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 85, 89, 0.3);
}

.fikastays-form button:hover {
    background-color: #e04a4e;
    box-shadow: 0 6px 10px rgba(255, 85, 89, 0.5);
}

.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #FF5559;
    color: black;
    border: none;
    border-radius: 25px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 85, 89, 0.3);
}

.custom-button:hover {
    background-color: #e04a4e;
    box-shadow: 0 6px 10px rgba(255, 85, 89, 0.5);
}

.button-text {
    margin-right: 10px;
}

.button-icon svg {
    width: 18px;
    height: 18px;
    fill: black;
    transition: transform 0.2s ease-in-out;
}

.custom-button:hover .button-icon svg {
    transform: translateX(3px);
}

.filtros-aplicados {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.6;
    color: black;
}

.filtros-aplicados h3 {
    font-size: 20px;
    font-weight: bold;
    color: #ff5559;
    margin-bottom: 10px;
}

.filtros-aplicados span {
    font-weight: bold;
    color: #ff5559;
}

.filtros-aplicados p {
    margin: 0;
    padding: 5px 0;
}

.filtros-aplicados p:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
}

.acf-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.acf-gallery-main {
    width: 100%;
    /* margin-left: 25px; */
}

.acf-gallery-main img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    display: block;
}

.acf-gallery-carousel {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    max-width: 600px;
}

.acf-gallery-thumb {
    position: relative;
    cursor: pointer;
    transition: all 0.5s ease-out;
    /* Transición más suave */
}

.acf-gallery-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.acf-gallery-thumb.active img {
    filter: brightness(0.6);
}

.acf-gallery-thumb:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.acf-servicios-container {
    position: relative;
    transition: max-height 0.5s ease-in-out;
}

.acf-servicios-wrapper {
    position: relative;
}

.acf-servicios-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 6.5em;
    /* Mantiene visible la tercera línea parcialmente */
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    position: relative;
}

.acf-servicios-wrapper.expanded .acf-servicios-tags {
    max-height: none;
}

.servicio-tag {
    display: inline-block;
    background-color: #e0e0e0;
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ver-mas-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none !important;
    color: black !important;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease-in-out, font-size 0.2s ease-in-out;
    width: max-content;
    box-shadow: none !important;
    padding: 0 !important;
    text-decoration: none;
}

.ver-mas-btn:hover span,
.ver-mas-btn:focus span,
.ver-mas-btn:active span {
    text-decoration: underline !important;
}

.ver-mas-btn::after {
    content: ">";
    font-size: 14px;
    font-weight: normal;
    transition: transform 0.2s ease-in-out;
}

.ver-mas-btn:focus,
.ver-mas-btn:active {
    outline: none !important;
    color: black !important;
    background: none !important;
    box-shadow: none !important;
}

#mensaje-no-propiedades {
    display: none;
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff5f5;
    border: 1px solid #ff4d4d;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#mensaje-no-propiedades h2 {
    color: #ff4d4d;
    font-size: 24px;
    font-weight: bold;
}

#mensaje-no-propiedades p {
    font-size: 16px;
    color: #333;
}

.boton-volver-busqueda {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: #ff4d4d;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.boton-volver-busqueda:hover {
    background-color: #d43f3f;
    color: black;
    /* Cambia el color del texto a negro en hover */
}

@media screen and (max-width: 768px) {
    .image-switcher-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: flex-start;
    }

    #map-container {
        flex: 0 0 auto;
        width: 85%;
        max-width: 100%;
        margin: 0;
    }

    #map-container svg {
        width: 90%;
        height: auto;
    }

    .image-switcher-buttons {
        margin: 0;
        margin-left: 40px;
        padding: 0;
        text-align: left;
        width: 100%;
        max-width: 90%;
    }

    .image-switcher-buttons::before {
        margin: 0;
        padding: 0;
        text-align: left;
        display: block;
        width: 100%;
        font-size: 40px;
    }

    .image-switcher-button {
        font-size: 18px;
        width: 100%;
    }

    .acf-gallery-main {
        margin-left: 15px;
    }

    #properties-section {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow-y: visible;
    }

    #properties-section h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .property-item {
        padding: 5px;
        margin-bottom: 10px;
    }

    .property-item img {
        height: 150px;
        width: 80%;
        margin-left: 40px;
    }

    .property-item a {
        font-size: 14px;
    }

    .fikastays-form {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 10px;
        border-radius: 15px;
        width: 60%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .fikastays-form>div {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .fikastays-form label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .fikastays-form select,
    .fikastays-form input {
        width: 100%;
        font-size: 12px;
        padding: 10px;
        border-bottom: 2px solid black;
        text-align: center;
    }

    .fikastays-form button {
        width: 100%;
        padding: 10px;
        font-size: 12px;
        border-radius: 15px;
    }

    .button-icon svg {
        width: 18px;
        height: 18px;
    }

    .servicio-tag {
        font-size: 12px;
        padding: 6px 10px;
    }
}