/*
Theme Name: NewHome Child
Theme URI: https://newhome.qodeinteractive.com
Description: A child theme of NewHome
Author: Edge Themes
Author URI: https://qodeinteractive.com
Version: 1.0
Text Domain: newhome
Template: newhome
*/

/*Personalizados*/

/* Opcion Contactar - menú 
.qodef-header-navigation > .menu > li.menu-item-8370 > a .qodef-menu-item-text {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-transform: capitalize;
}

.qodef-header-navigation > .menu > li.menu-item-8370 > a .qodef-menu-item-text:hover {
  background: #ffcc00;
  color: #000;
}
*/

.qodef-header-navigation>ul>li>a .qodef-menu-item-text {
  background-image: linear-gradient(#ffcc00, #ffcc00);
}

.qodef-header-navigation>ul>li.current-menu-item>a .qodef-menu-item-text {
  background-size: calc(100% - 0em) 4px;
}

.qodef-drop-down-second,
.qodef-drop-down-second-inner {
  background-color: transparent !important;
  border: 0;
}
/* No hay submenú
.sub-menu {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.sub-menu li a {
  text-transform: none !important;
  color: #1d1d1d !important;
}
*/

.wp-element-button {
  color: #fff !important;
  font-size: 18px !important;
  border-radius: 0 !important;
  border: 0 !important;
}

/* contact-form submit button text */
.qodef-contact-form-7 button[type=submit], .rs-layer button[type=submit] {
  color: #000;
}

.qodef-layout--filled.qodef-html--link {
  text-align: center;
}

article .asociaciones .swiper-wrapper {
  display: flex;
  align-items: center;
}

article .asociaciones img {
  max-height: 90px;
  margin: auto;
}

.home-process-steps .qodef-e-number {
  display: none;
}

.qodef-single-image.qodef-drop-shadow--enabled .qodef-m-image:after {
  width: 530px;
}

.qodef-process-item .qodef-e-content .qodef-e-text-wrapper {
  padding-bottom: 30px;
}

/* Footer */
#qodef-page-footer #menu-links .menu-item {
  margin-bottom: 27px !important;
}

#qodef-page-footer p,
#qodef-page-footer a {
  color: white !important;
}

#qodef-page-footer a:hover {
  color: #e8e8e8 !important;
}

#qodef-page-footer .qodef-grid>.qodef-grid-inner {
  grid-template-columns: 2fr 1fr 1fr;
}

#qodef-page-footer .widget .qodef--underline-on-hover a {
  background-position: 0 100%;
}
#qodef-page-footer #qodef-page-footer-bottom-area .qodef-grid>.qodef-grid-inner 
{
  grid-template-columns: 1fr 1fr;
}
  #qodef-page-footer .qodef-grid.qodef-layout--columns.qodef-col-num--2 {
    display: flex;
    justify-content: center;
  }
#qodef-page-header .qodef-header-logo-link {
	height: 90px !important;
}
#menu-main-menu-1 > li {
	margin: 0 16px !important;
}
#menu-main-menu-1 li a:not(.sub-menu li a) {
	padding-top: 40px;
	color: #1d1d1d;
}
#menu-main-menu-1 .current-menu-item > a > span, #menu-main-menu-1 .current-menu-parent > a > span {
	font-weight: bold;
}
.qodef-header-navigation>ul>li>a .qodef-menu-item-text {
  	background-image: linear-gradient(#ffcc00, #ffcc00);
}
.qodef-header-navigation>ul>li.current-menu-item>a .qodef-menu-item-text {
  background-size: calc(100% - 0em) 4px;
}
.qodef-drop-down-second, .qodef-drop-down-second-inner {
	background-color: transparent !important;
	border: 0;
}
.sub-menu {
	background-color: rgba(255, 255, 255, 0.7) !important;
	border-bottom-left-radius: 10px;
  	border-bottom-right-radius: 10px;
}
.sub-menu li a {
	text-transform: none !important;
	color: #1d1d1d !important;
}
.wp-element-button {
	color: #fff !important;
	font-size: 18px!important;
	border-radius: 0!important;
	border: 0 !important;
}
article .asociaciones .swiper-wrapper {
	display: flex;
	align-items: center;
}
article .asociaciones img {
	max-height: 90px;
	margin: auto;
}
.home-process-steps .qodef-e-number {
	display: none;
}

#qodef-page-footer #menu-links .menu-item {
	margin-bottom: 27px !important;
}
#qodef-page-footer p, #qodef-page-footer a {
	color: white !important;
}
#qodef-page-footer a:hover {
	color: #e8e8e8 !important;
}
#qodef-page-footer .qodef-grid > .qodef-grid-inner {
  	grid-template-columns: 2fr 1fr 1fr;
}
#qodef-page-footer .widget .qodef--underline-on-hover a {
	background-position: 0 100%;
}

/*Personalizados*/
/*.qodef-m-form-row.qodef--amenities {
	display: none;
}*/

/*.qodef-m-form-wrapper h6:nth-of-type(4) {
	display: none;
}*/
.qodef-property-list .qodef-m-filter-wrapper .qodef-e-filter-item.qodef--search .qodef-e-filter--advanced-opener
{
	display: none;
}
/*Detalles - Descomentar para hacer estas secciones usables mediante el plugin*/
.qodef-m-video, .qodef-m-floor-plans, .qodef-m-virtual-tour, .qodef-m-virtual-tour, .qodef-m-nearby
{
	display: none;
}

/* Seccion de calificacion energetica */
.energy-bar .bar-container, .energy-bar2 .bar-container 
{
    display: flex;
    align-items: center;
    position: relative;
    width: 100%; /* Ensure the bar container takes full width */
    height: 22px;
}

.energy-bar .bar, .energy-bar2 .bar 
{
    padding: 0 10px;
    color: #fff;
    margin-bottom: 2px;
    font-weight: bold;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    max-width: 95%; /* Ensure the bar does not exceed 95% width */
    height: 20px; /* Set a fixed height */
}

.energy-bar .bar.A, .energy-bar2 .bar.A { width: 20%; }
.energy-bar .bar.B, .energy-bar2 .bar.B { width: 30%; }
.energy-bar .bar.C, .energy-bar2 .bar.C { width: 40%; }
.energy-bar .bar.D, .energy-bar2 .bar.D { width: 55%; }
.energy-bar .bar.E, .energy-bar2 .bar.E { width: 70%; }
.energy-bar .bar.F, .energy-bar2 .bar.F { width: 85%; }
.energy-bar .bar.G, .energy-bar2 .bar.G { width: 100%; }

.energy-bar .bar-container .caret, .energy-bar2 .bar-container .caret 
{
    visibility: hidden; /* Hide caret by default */
    font-size: 1.5em; /* Adjust size as needed */
    color: #000; /* Adjust color as needed */
    margin-left: 5px; /* Adjust spacing as needed */
}
.container-bars
{
	display: flex;
	flex-wrap: wrap;
  justify-content: space-between;
}
.energy-ratings {
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  margin-top: 20px;
}

.energy-ratings h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.energy-ratings .rating-value {
  font-weight: bold;
}

.energy-ratings .calificacion-energetica .energy-bar, .energy-ratings .calificacion-energetica .energy-bar2 {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  width: 200px;
  margin-top: 20px;
}

.energy-ratings .calificacion-energetica .bar 
{
    padding: 0 10px;
    color: #fff;
    margin-bottom: 2px;
    font-weight: bold;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
    height: 20px; /* Set a fixed height */
    display: flex;
    align-items: center;
}

.energy-ratings .calificacion-energetica .bar.G 
{ 
    background-color: #f44336; /* Red */
    width: 100%; /* Maximum width */
}
.energy-ratings .calificacion-energetica .bar.F 
{ 
    background-color: #ff9800; /* Orange */
    width: 75%; /* Adjust width as needed */
}
.energy-ratings .calificacion-energetica .bar.E 
{ 
    background-color: #ffc107; /* Amber */
    width: 65%; /* Adjust width as needed */
}
.energy-ratings .calificacion-energetica .bar.D 
{ 
    background-color: #ffd700; /* Yellow */
    width: 55%; /* Adjust width as needed */
}
.energy-ratings .calificacion-energetica .bar.C 
{ 
    background-color: #cddc39; /* Lime */
    width: 40%; /* Adjust width as needed */
}
.energy-ratings .calificacion-energetica .bar.B 
{ 
    background-color: #8bc34a; /* Light Green */
    width: 30%; /* Adjust width as needed */
}
.energy-ratings .calificacion-energetica .bar.A 
{ 
    background-color: #4caf50; /* Green */
    width: 20%; /* Minimum width */
}

.energy-ratings .consumo-energetico .rating-value {
  color: #4caf50; /* Green */
}

.energy-ratings .emisiones .rating-value {
  color: #f44336; /* Red */
}

/*Fin de Seccion de calificacion energetica */

.note-section
{
  margin-top: 3rem;
}
.note-section p
{
  font-size: 0.9rem;
}
.addtoany_content
{
  margin: 0 0 0 20px!important;
}
.qodef-m-description-title, .qodef-m-features-title
{
  display: none;
}
.map-section
{
  margin-top: 1rem;
}
.qodef-m-schedule-tour
{
  background-color: #f9f9f9!important;
}
.qodef-m-author
{
  display: none;
}
.privacy-policy-checkbox input
{
  zoom: 1.5;
}
.privacy-policy-checkbox
{
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.privacy-policy-checkbox a
{
  font-weight: bold;
}
.privacy-policy-checkbox label
{
  margin-bottom: 0;
}
.qodef-m-features h4 + .qodef-m-features-content ~ .qodef-m-features-content:nth-of-type(2),
.qodef-m-features h4 + .qodef-m-features-content ~ .qodef-m-features-content:nth-of-type(3)
{
    display: none;
}

.qodef-m-features-item.qodef--predefined-order
{
  display: none!important;
}
.qodef-m-features-item
{
    position: relative; /* Ensure the parent is positioned */
}
.qodef-m-features-item-label
{
  padding-left: 26px;
}
.qodef-m-features-item::before
{
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    background: url('img/feature-icon.png') no-repeat center center;
    background-size: contain; /* Ensure the icon scales correctly */
}
.property-estado
{
  display: inline-block;
  background-color: #ffcc00;
  padding: 0.5rem 1rem 0.7rem 1rem;
}
.property-estado-container
{
  margin-top: 1rem;
  display: flex;
  justify-content: end;
}
/*Fin de Detalles*/
/*Listado de propiedades*/
.swiper-slide img
{
  width: 100%!important;
  height: 100%!important;
  object-fit: cover!important;
}
.estado-ficha-label
{
  position: absolute;
    top: 1rem;
    right: 0;
    font-size: 1rem;
    background-color: #ffcc00;
    padding: 0.5rem 1rem 0.7rem 1rem;
}
.qodef-e-actions{
	display: none!important;
}
.referencia-listado{
	font-size: 1rem;
	font-family: 'Poppins', sans-serif;
}
.qodef-e-price-amount {
  visibility: hidden; /* Oculta los elementos inicialmente */
}
/*Fin de Listado de propiedades*/

/*Busqueda*/
.qodef-property-search-form .qodef-m-form-row
{
   flex-wrap: wrap; 
}
.qodef-property-search-form .qodef-m-form-row div
{
  flex:1;
}
.qodef-property-search-form .qodef-m-form-row div:last-child
{
  flex:2;
}
.qodef-property-search-form.qodef-m-form.qodef--secondary .qodef-m-form-row div
{
  flex: 1;
}
.qodef-property-search-form.qodef-m-form.qodef--secondary .qodef-m-form-row div:last-child
{
  flex: 2;
}
.qodef-property-search-form.qodef-m-form.qodef--secondary .qodef-m-text--size input
{
   min-width: 200px;
}
.qodef-m-filter-wrapper .qodef--size div, .qodef-m-filter-wrapper .qodef--size input
{
  width: 160px!important;
}
.qodef-property-list .qodef-m-filter-wrapper .qodef-e-filter-item.qodef--size
{
  justify-content: left!important;
}
/*.reference-filter
{
  flex-basis: 100%!important;
}*/
/* Ocultar todos los nodos div dentro de .qodef-m-checkbox-items */
.qodef-m-checkbox-items .qodef-m-checkbox-item
{
    display: none !important;
}

/* Mostrar solo los nodos div con checkbox de id elevator y security */
.qodef-m-checkbox-items .qodef-m-checkbox-item:has(input#elevator),
.qodef-m-checkbox-items .qodef-m-checkbox-item:has(input#security)
{
    display: flex !important;
}
/*Fin de Busqueda*/
.videos-section
{
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 2rem;
}
.videos-section>div
{
    height: 300px;
    flex-grow: 1;
}
.videos-section iframe
{
    width: 100%;
    height: 100%;
}
.qodef-m-features-content, .qodef-m-description
{
  margin-top: 15px!important;
}
.aceptar-politicas-formulario
{
  display:flex;
}
.aceptar-politicas-formulario input
{
  zoom: 1.4;
}
.aceptar-politicas-formulario a
{
  font-weight: bold;
  cursor: pointer;
}
.qodef-m-price-title
{
  font-weight: bold;
}
.swiper-slide
{
  height: 300px!important;
  overflow: hidden;
}
/*Fin de Personalizados*/


@media (max-width: 768px) 
{
  .qodef-property-search .qodef--primary .qodef-m-form-row
  {
    flex-direction: column;
  }
  footer .qodef-grid > .qodef-grid-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }
  footer .qodef-grid > .qodef-grid-inner > :nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  footer .qodef-grid > .qodef-grid-inner > :nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2; 
  }
  footer .qodef-grid > .qodef-grid-inner > :nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  footer #qodef-page-footer-top-area-inner {
    padding: 40px !important;
  }
  footer #qodef-page-footer-top-area-inner {
    padding: 40px !important;
  }
  .has-text-align-right {
    text-align: left;
  }
}
@media (max-width: 480px) 
{
  .elementor-2116 .elementor-element.elementor-element-666973a {
    padding-left: 0% !important;
  }
  footer .qodef-grid>.qodef-grid-inner {
    grid-template-columns: 1fr;
  }

  footer .qodef-grid>.qodef-grid-inner> :nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  footer #qodef-page-footer-top-area-inner {
    padding: 5% !important;
  }

  #qodef-page-footer #qodef-page-footer-bottom-area .qodef-grid>.qodef-grid-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .has-text-align-right {
    text-align: left;
  }

}