/*
Theme Name: Inicianet Child Theme
Theme URI: https://inicianet.com/
Author: Inicianet
Author URI: https://inicianet.com/
Description: Un theme hijo de Inicianet Exclusive Theme, creado para personalizar y extender las funcionalidades del theme principal.
Template: inicianet
Version: 1.0
Text Domain: inicianet-child
*/

/* PERSONALIZACIÓN ESTÁTIK */
.es-listing * {
    font-family: 'Plus Jakarta Sans' !important;
}

/* Buscador Simple */
.es-search--simple.es-search--collapsed.es-search--simple form {
    gap: 50px;
}

@media screen and (max-width: 1024px) {
    .es-search--simple.es-search--collapsed.es-search--simple form {
        gap: 25px;
    }
}


body .es-field {
    color: #666;
}

.es-search--simple form {
    margin: 0;
}

.es-search--simple.es-search--collapsed.es-search--simple form {
    display: flex;
    align-items: center;
}

.es-search--simple form>*,
.widget .es-search--simple form>* {
    margin: 0;
}

.es-search--simple form,
.widget .es-search--simple form {
    display: flex;
    margin: -6px;
    align-items: center;
    gap: 10px;
}

a.js-es-search__collapse-link.es-search__collapse-link.es-leave-border,
body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
    margin: 0 50px;
}

.es-properties__search a.js-es-search__collapse-link.es-search__collapse-link.es-leave-border,
body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
    margin: 0;
}

body .es-field input[type=text]:not(.es-ignore-style),
a.js-es-search__collapse-link.es-search__collapse-link.es-leave-border,
body .es-field .select2-container .select2-selection--single .select2-selection__rendered,
select#es-field-sort,
body .es-field input[type=number]:not(.es-ignore-style),
body .es-field input[type=email]:not(.es-ignore-style),
body .es-field input[type=password]:not(.es-ignore-style) {
    padding: 10px 23px !important;
    border-radius: 43px !important;
    border-bottom-right-radius: 43px !important;
    border-top-right-radius: 43px !important;
    border: 1px solid rgba(153, 153, 153, 0.36) !important;
    box-shadow: 0 1px 2px 0 var(--Colors-Effects-Shadows-shadow-xs, rgba(10, 13, 18, 0.05)) !important;
    background-color: #FFF !important;
    height: 47px !important;

    color: #999;
    font-family: "Plus Jakarta Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    max-width: 250px;
}

@media screen and (min-width: 760px) {

    li.js-es-search-nav__single-item.js-es-search-nav__item,
    .es-search--simple .es-search-nav.es-search-nav--dropdowns>li {
        padding: 10px 23px !important;
        border-radius: 43px !important;
        border-bottom-right-radius: 43px !important;
        border-top-right-radius: 43px !important;
        border: 1px solid rgba(153, 153, 153, 0.36) !important;
        box-shadow: 0 1px 2px 0 var(--Colors-Effects-Shadows-shadow-xs, rgba(10, 13, 18, 0.05)) !important;
        background-color: #FFF !important;
        height: 47px !important;

        color: #999;
        font-family: "Plus Jakarta Sans";
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 26px;
    }
}

@media screen and (max-width: 1024px) {
    .es-search--simple form {
        flex-direction: column;
    }

    body .es-field .select2-container .select2-selection--single {
        height: 47px;
    }
}

body .es-field.es-field--radio-item-bordered label .es-field__label {
    line-height: 16px !important;
}

.es-search__inline-field.es-search__property-es_type {
    height: 47px;
}

li.js-es-search-nav__single-item.js-es-search-nav__item span.es-icon.es-icon_chevron-bottom.js-es-search-nav__open {
    display: none;
}

.js-es-search-nav__label,
.es-search--simple .es-search-nav.es-search-nav--dropdowns>li a,
body .es-field.es-field--checkbox-item-bordered label .es-field__label,
body .es-field.es-field--radio-item-bordered label .es-field__label,
body .es-field.es-field--checkbox .es-field__label,
select#es-field-sort {
    color: var(--GRIS-MEDIO, #999);
    font-family: "Plus Jakarta Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

select#es-field-sort {
    background: none;
}

.es-listings-filter .es-total,
.es-listings-filter .es-additional_currencies label .es-field__label,
.es-listings-filter .es-field__sort label .es-field__label {
    color: var(--GRIS-MEDIO, #666);
}

.es-listings-filter .es-listings-filter__selects {
    align-items: center;
}

.es-icon.es-icon_check-mark {
    font-size: 16px !important;
}

body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
    gap: 15px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    /*margin-top: -10px;*/
}

body .es-field .select2-container .select2-selection--single {
    background: inherit;
    border: inherit;
}

body .es-search__inline-field .es-field .es-field__label {
    display: none;
}

.es-field-row span.es-field__label,
.js-search-field-container span.es-field__label {
    display: block;
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

span.select2-selection__arrow {
    display: none;
}

body .es-field input[type="text"]:not(.es-ignore-style)::placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999 !important;
}

.es-btn.es-btn--primary:not(.es-btn--bordered) {
    text-transform: none !important;
    padding: 20px 40px;
    height: auto;
    margin: 0;
    font-size: 16px;
}

span.select2-search.select2-search--dropdown {
    display: none;
}

body .es-field input[type=radio]+label,
body .es-field label {
    height: auto !important;
}

.es-search--main.es-search--collapsed.es-search--simple .es-search-nav.es-search-nav--show,
.es-search--simple.es-search--collapsed.es-search--simple .es-search-nav.es-search-nav--show,
.widget .es-search--main.es-search--collapsed.es-search--simple .es-search-nav.es-search-nav--show,
.widget .es-search--simple.es-search--collapsed.es-search--simple .es-search-nav.es-search-nav--show {
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 50px;
}

span.select2-dropdown.es-select2__dropdown.es-select2__dropdown--positioning.select2-dropdown--below {
    background: none;
    border: none;
    padding-top: 10px;
}

body .es-field .select2-container .select2-results__options {
    border-radius: 15px;
    background-color: #FFF;
}

body .es-field .select2-container .select2-results__options .select2-results__option {
    padding: 10px;
}

body .es-field .select2-container .select2-results__options .select2-results__option:before {
    display: none;
}

@media screen and (max-width: 1024px) {
    .es-search--simple.es-search--collapsed.es-search--simple form {
        flex-direction: column;
        /*gap: 25px;*/
    }

    body .es-field input[type=text]:not(.es-ignore-style),
    a.js-es-search__collapse-link.es-search__collapse-link.es-leave-border,
    body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
        width: 250px;
        text-align: center;
    }

    a.js-es-search__collapse-link.es-search__collapse-link.es-leave-border,
    body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
        margin: 0;
    }

    body .es-field .select2-container .select2-selection--single .select2-selection__rendered {
        justify-content: center;
    }
}


/* Card Propiedad Listado Cuadricula */
.es-listing .es-listing__image .es-badges .es-badge,
.es-single .es-gallery .es-gallery__image .es-badges .es-badge {
    color: #fff;
    padding: 3px 15px !important;
    border-radius: 30px;
    box-shadow: 0 9px 63.6px 8px rgba(0, 0, 0, 0.43);
    background-color: rgb(176, 201, 190, .7) !important;
}

.es-listing .es-listing__image .es-badges .es-badge a,
.es-single .es-gallery .es-gallery__image .es-badges .es-badge a {
    color: #000;

    font-family: "Plus Jakarta Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.es-listing .es-listing__image .es-listing__image__slider .es-slick-dots li:before {
    display: none;
}

.es-listing .es-listing__image .es-listing__image__slider .es-slick-dots li {
    padding: 0 !important;
}

.js-es-listing.es-listing {
    border-radius: 15px;
    overflow: hidden;
}

.es-listing .es-listing__image .es-listing__image__slider .es-slick-dots li button {
    margin: 10px !important;
}

/* Ficha individual de propiedad */
.es-property-section__content {
    padding: 20px 0 !important;
}

.es-listing__meta span {
    font-size: 16px;
    color: #333;
}

.es-address.es-listing--hide-on-list {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.es-badges.es-listing--hide-on-list span.es-price {
    font-size: 18px !important;
    color: #333;
    font-weight: 600;
}

.es-listing .es-listing__title a {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.es-listing__meta path {
    fill: #333 !important;
}

.es-listings-filter.js-es-listings-filter span.es-title {
    display: none;
}

.es-properties {
    gap: 35px;
}

body .es-field .select2-container .select2-selection--single .select2-selection__rendered,
body .es-field input[type=number]:not(.es-ignore-style) {
    max-width: 250px;
    text-align: center;
    color: #666 !important
}

body .es-field .select2-container .select2-selection--single .select2-selection__rendered,
body .es-field input[type=number]:not(.es-ignore-style) {
    color: #999 !important;
}

.es-field.es-field__terms_conditions.es-field--checkbox {
    display: flex;
    flex-direction: row;
}

.js-es-field.es-field.es-field__code.es-field--select {
    display: none;
}

body .es-field textarea:not(.es-ignore-style) {
    background-color: #fff;
    border: 1px solid rgba(153, 153, 153, 0.36) !important;
    box-sizing: border-box;
    border-radius: 25px;
    font-size: 16px;
    line-height: 26px;
    width: 100%;
    color: #999;
    max-width: unset;
}

@media screen and (max-width: 1024px) {
    .es-search--simple.es-search--collapsed.es-search--simple .es-search-nav.es-search-nav--show {
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 50px;
        grid-row-gap: 10px;
    }

    span.select2-selection.select2-selection--single {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .es-search--simple.es-search--collapsed .es-btn--search,
    .es-search--simple.es-search--collapsed form>.es-btn--saved-search,
    .widget .es-search--simple.es-search--collapsed .es-btn--search,
    .widget .es-search--simple.es-search--collapsed form>.es-btn--saved-search {
        order: 4;
    }
}

/* Gesiton de propiedades */
.es-property-management #location .es-tabs__content-inner>.es-field-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
}

.es-property-management #location .es-tabs__content-inner>.es-field-row .es-col-5 {
    width: 100%;
    flex: 1;
}

.es-property-management #location .es-tabs__content-inner>.es-field-row .es-col-5 .es-field__es_neighborhood {
    width: 100%;
}

.es-property-management h3.heading-font.es-tabs__title {
    margin-top: 0;
}

.es-property-management .mce-toolbar button {
    background: none;
}

/* =====================================================
   WPML – Selector de idioma como dropdown
   Shortcode:
   [wpml_language_selector_widget flags=0 translated=0]
   ===================================================== */
.lang-header .wpml-ls-legacy-list-horizontal {
    padding: 0;
}

.lang-header .wpml-ls-current-language>a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    background-color: var(--e-global-color-secondary);
    color: #ffffff;

    font-weight: 500;
    font-size: 16px;
    line-height: 24px;

    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;

    transition: background-color .2s ease;
}

.lang-header .wpml-ls-current-language>a:hover {
    background-color: var(--e-global-color-secondary);
    color: #FFF;
}

/* Flecha */
.lang-header .wpml-ls-current-language>a::after {
    content: "\f0d7";
    font-family: "Font Awesome 5 Free";
    font-size: 16px;
    margin-top: 0;
    color: #ffffff;
    font-weight: 600;
}


/* ======================
   COMPORTAMIENTO DROPDOWN
   ====================== */

/* Wrapper WPML (crea "puente" dentro del área hover) */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
    /* <-- clave */
}

/* UL base */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul {
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

/* Todos los LI */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Idioma activo */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li.wpml-ls-current-language {
    position: relative;
    z-index: 2;
}

/* Idiomas NO activos: ocultos y reposicionados */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li:not(.wpml-ls-current-language) {
    display: none;
    position: absolute;
    top: 100%;
    /* <-- sin +6 */
    left: 0;
    min-width: 100%;
    z-index: 9999;
    transform: translateY(6px);
    /* <-- gap visual */
}

/* Mostrar dropdown al hover del wrapper (y mantenerlo al hover del item) */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls:hover>ul>li:not(.wpml-ls-current-language),
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li:not(.wpml-ls-current-language):hover {
    display: block;
}



/* ======================
   ESTILO ITEM DESPLEGABLE
   ====================== */

.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li:not(.wpml-ls-current-language)>a {
    display: block;

    padding: 10px 16px;
    background-color: var(--e-global-color-secondary);
    color: #ffffff;

    font-weight: 500;
    font-size: 16px;
    line-height: 24px;

    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
    opacity: 1;

    transition: background-color .2s ease;
}


/* Hover → fondo al 50% */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls>ul>li:not(.wpml-ls-current-language)>a:hover {
    background-color: color-mix(in srgb,
            var(--e-global-color-secondary) 50%,
            transparent);
}