/*
 Theme Name:   WPResidence Child Theme
 Theme URI:    https://themeforest.net/item/wp-residence-real-estate-wordpress-theme/7896392
 Description:  WPResidence child theme
 Author:       WpEstate
 Author URI:   http://wpestate.org
 Template:     wpresidence
 Version:      5.6.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


/* Ocultar mapa en página de búsqueda */
.gmap-controls {
    display: none !important;
}

#gmap {
    display: none !important;
}

.with_open_street {
    display: none !important;
}

.wpresidence_map_styles_wrapper {
    display: none !important;
}

#openmap,
#gmap-control,
#gmapzoomplus,
#gmapzoomminus {
    display: none !important;
}

.adv_handler {
    display: none !important;
}

.wpresidence_button,
input[type="submit"].wpresidence_button,
#advanced_submit_11 {
    background-color: #a49159 !important;
    border-color: #a49159 !important;
}

.wpresidence_button:hover,
input[type="submit"].wpresidence_button:hover,
#advanced_submit_11:hover {
    background-color: #8d7a47 !important;
    border-color: #8d7a47 !important;
}

.wpresidence_button:focus,
.wpresidence_button:active {
    background-color: #a49159 !important;
}

input[type="submit"].wpresidence_button {
    width: 100%;
}

/* Ocultar el párrafo explicativo de Search Results Page */
.single-content p {
    display: none !important;
}

/* Ocultar "Search Parameters" */
.search_unit_wrapper.advanced_search_notice {
    display: none !important;
}

/* Ocultar "Save this Search?" section */
.saved_search_wrapper {
    display: none !important;
}

/* Alternativa: si solo quieres ocultar el contenido específico */
.advanced_search_notice,
#save_search_notice,
#search_name,
#save_search_button {
    display: none !important;
}

/* Forzar posición del submenu justo debajo */
.wpresidence-navigation-menu ul.sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    display: none !important;
    min-width: 200px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999 !important;
}

/* Mostrar al hover */
.wpresidence-navigation-menu .menu-item-has-children:hover > ul.sub-menu {
    display: block !important;
}

/* Items del submenu */
.wpresidence-navigation-menu .sub-menu .menu-item {
    display: block !important;
    list-style: none !important;
}

.wpresidence-navigation-menu .sub-menu .menu-item-link {
    display: block;
    padding: 12px 20px !important;
    color: #333 !important;
    text-decoration: none;
    white-space: nowrap;
}

.wpresidence-navigation-menu .sub-menu .menu-item-link:hover {
    background-color: #f5f5f5 !important;
    color: #a49159 !important;
}

/* Elemento padre con posición relativa */
.wpresidence-navigation-menu .menu-item-has-children {
    position: relative !important;
}


/* Asegurar que el contenedor del carrusel tenga una altura fija */
.listing-unit-img-wrapper .carousel-item {
    height: 280px; 
    overflow: hidden;
}


.listing-unit-img-wrapper .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
}


.elementor-popup-modal .contact-box,
.elementor-popup-modal .backtop,
.search_wrapper.d-none {
    display: none !important;
}

body:has(.elementor-popup-modal) .contact-box,
body:has(.elementor-popup-modal) .backtop {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

[data-listid="13417"] {
	order: -1;
}
