html {
  scroll-behavior: smooth;
}

/* Setting variables */
:root {
  --colorPrimary: #0093cb;
  --colorDefault: #333333;
  --colorLightContrast: #eaf8ff;
}

/* Google fonts */
.montserrat-raw {
  font-family: 'Montserrat', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.font-size-10 {
  font-size: 10px !important;
}
.font-size-11 {
  font-size: 11px !important;
}
.font-size-12 {
  font-size: 12px !important;
}
.font-size-13 {
  font-size: 13px !important;
}
.font-size-14 {
  font-size: 14px !important;
}
.font-size-15 {
  font-size: 15px !important;
}
.font-size-16 {
  font-size: 16px !important;
}
.font-size-17 {
  font-size: 17px !important;
}
.font-size-18 {
  font-size: 18px !important;
}
.font-size-19 {
  font-size: 19px !important;
}
.font-size-20 {
  font-size: 20px !important;
}
.font-size-21 {
  font-size: 21px !important;
}
.font-size-22 {
  font-size: 22px !important;
}
.font-size-24 {
  font-size: 24px !important;
}
.font-size-26 {
  font-size: 26px !important;
}
.font-size-32 {
  font-size: 32px !important;
}
.font-size-40 {
  font-size: 40px !important;
}
.font-size-42 {
  font-size: 42px !important;
}

@media (min-width: 768px) {
  .w-md-5 {
    width: 5% !important;
  }
  .w-md-10 {
    width: 10% !important;
  }
  .w-md-15 {
    width: 15% !important;
  }
  .w-md-20 {
    width: 20% !important;
  }
  .w-md-25 {
    width: 25% !important;
  }
  .w-md-30 {
    width: 30% !important;
  }
  .w-md-50 {
    width: 50% !important;
  }
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  min-width: 350px !important;
  color: var(--colorDefault);
}
body a:hover {
  text-decoration: none;
}
.font-weight-semibold {
  font-weight: 600 !important;
}

.border-1 {
  border-width: 1px !important;
}
.border-2 {
  border-width: 2px !important;
}
.border-3 {
  border-width: 3px !important;
}
.border-4 {
  border-width: 4px !important;
}
.border-5 {
  border-width: 5px !important;
}
.box {
  max-width: 1590px;
  margin: 0 auto;
}
.clickable {
  cursor: pointer !important;
}
.menu_nav a {
  color: var(--colorDefault) !important;
}
.menu_nav a:hover {
  color: var(--colorPrimary) !important;
}
.menu_btn {
  color: #ffffff !important;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  background-color: var(--colorPrimary) !important;
}
.buscador {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.img_fade {
  transition: opacity 0.3s;
  opacity: 0.9;
}
.img_fade:hover {
  opacity: 1;
}

.nav-link.inactive-tab {
  background-color: #eeeeee; /* Fondo gris claro */
  color: #6c757d; /* Color de texto gris */
}

.nav-link.active {
  background-color: #0093cb; /* Fondo azul para el botón activo */
  color: #fff; /* Color de texto blanco */
}
#menu_movil {
  position: absolute;
  width: 100%;
  max-width: 320px;
  display: none !important;
  margin-top: 49px !important;
}
#menu_movil.visible {
  display: none !important;
}
#menu_movil a {
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 1);
  margin-bottom: 1px;
}
#menu_movil a:hover {
  background-color: var(--colorPrimary) !important;
  color: var(--colorDefault) !important;
}

#menu_idioma {
  position: absolute;
  display: none !important;
  margin-top: 40px !important;
  border: 1px solid #cccccc;
}
#menu_idioma.visible {
  display: flex !important;
}

.buscador_cont {
  width: 600px;
}
.buscador_fecha_cont {
  border-left: 2px solid #cccccc;
  border-bottom-left-radius: 0 !important;
  border-top-left-radius: 0 !important;
}
.buscador_datepicker_anchor {
  width: auto;
}

.colder_vivienda {
  position: relative;
  right: 0;
  bottom: auto;
  z-index: 9;
}
.colder_vivienda div:first-child {
  box-shadow: none;
}
.d-oculto {
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

@media only screen and (max-width: 997px) {
  /* For mobile phones: */
  #menu_movil.visible {
    display: flex !important;
  }
  #menu_idioma.visible {
    display: none !important;
  }
  .buscador_cont {
    width: 100%;
  }
  .buscador_fecha_cont {
    border-left: 0;
    border-bottom-left-radius: 50rem !important;
    border-top-left-radius: 50rem !important;
  }
  .buscador_datepicker_anchor {
    width: 75%;
  }
}

@media only screen and (max-width: 1199px) {
  /* Less than XL: */
  .colder_vivienda {
    position: fixed;
    bottom: 0;
    z-index: 9;
  }
  /* .colder_vivienda div:first-child{
        box-shadow: 0 0 4px var(--colorPrimary);
    } */
}

/*Responsive de los formularios */
.form-responsive-signin {
  width: auto;
  height: auto;
}

@media (min-width: 992px) {
  .form-responsive-signin {
    width: 30%;
    height: 70%;
  }
}

@media (max-width: 991px) {
  .form-responsive-signup {
    width: 100% !important;
  }
  .form-fields {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .width-100 {
    width: 100% !important;
  }
}

.overlay {
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  backdrop-filter: blur(10px); /*Blur effect*/
  -webkit-backdrop-filter: blur(10px); /* Safari support */
}

.my_accommodationsContrast {
  background-color: var(--colorLightContrast);
}

.imgtable {
  width: 100px;
  object-fit: cover;
}

.short-input {
  width: 250px;
}

.swiper-home {
  width: 100%;
  height: 500px;
}

.swiper-button-next-home,
.swiper-button-prev-home {
  top: 45% !important; /* o cualquier valor que los suba */
  transform: translateY(-50%);
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  background-color: var(--colorPrimary) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--colorPrimary) !important;
  border-color: var(--colorPrimary) !important;
}

.swiper-button-next-home::after,
.swiper-button-prev-home::after {
  font-size: 20px !important;
  font-weight: bold !important;
  color: #ffffff !important;
}

.swiper-pagination-detail {
  top: 100% !important; /* o cualquier valor que los suba */
  transform: translateY(-50%);
}

.room {
  cursor: pointer;
}
/* Contenedor principal del buscador */
.buscador_cont {
  position: relative;
  overflow: visible;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Contenedor de selección de ciudad */
.cont_select_ciudad {
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cont_select_ciudad:hover {
  background-color: #f8f9fa;
}


.buscador_select {
  margin-top: 50px;
  left: 0;
  max-height: 0;
  overflow: hidden;  /* cambia esto */
  transition: max-height 0.3s ease;
  z-index: -1;
}

.buscador_select.active {
  max-height: 260px;
  overflow-y: auto; /* solo scroll cuando está abierto */
  z-index: 1100;
}

/* Dropdown de ciudades */
.buscador_select {
  /* z-index: 1050 !important; */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #dee2e6;
}

.buscador_select .select_ciudad {
  transition: all 0.2s ease;
  border-radius: 4px;
  white-space: normal;
  text-align: left;
}

.buscador_select .select_ciudad:hover {
  background-color: #e9ecef !important;
  transform: translateX(4px);
}

/* Estilos responsive para móvil */
@media (max-width: 767px) {
  .buscador_cont {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .cont_select_ciudad,
  .buscador_fecha_cont {
    padding: 1rem !important;
    min-height: 70px;
  }
}

/* Mejoras visuales generales */
.muestra_select_ciudad {
  cursor: pointer;
  user-select: none;
}

.busca_inmuebles {
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.busca_inmuebles:not(.disabled):hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Asegurar que los iconos estén bien alineados */
.bi {
  flex-shrink: 0;
}

/* Eliminar text-nowrap en móvil para permitir ajuste de texto */
@media (max-width: 767px) {
  .text-nowrap {
    white-space: normal !important;
  }
}

/* Estilos para el border en desktop */
@media (min-width: 768px) {
  .border-md-right {
    border-right: 1px solid #dee2e6 !important;
  }

  .border-md-bottom-0 {
    border-bottom: 0 !important;
  }
}

/* Overlay para cerrar el dropdown en móvil */
.buscador-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.buscador-overlay.active {
  display: block;
}

/* ===================================
   Estilos para Flatpickr (Calendario)
   =================================== */

/* Estilos personalizados para Flatpickr */
.flatpickr-calendar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: 8px !important;
  border: 1px solid #e0e0e0 !important;
  font-size: 13px !important;
}

/* Solo bordes exteriores redondeados */
.flatpickr-calendar .flatpickr-months {
  border-radius: 8px 8px 0 0 !important;
  background-color: #f8f9fa !important;
  padding: 10px 0 !important;
}

.flatpickr-calendar .flatpickr-innerContainer {
  border-radius: 0 0 8px 8px !important;
}

/* Encabezado de meses sin fondo azul - textos visibles */
.flatpickr-months .flatpickr-month {
  background-color: transparent !important;
  color: #333 !important;
}

.flatpickr-current-month {
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background-color: white !important;
  border: 1px solid #ddd !important;
}

.flatpickr-current-month .numInputWrapper input {
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  background-color: white !important;
  border: 1px solid #ccc !important;
  border-radius: 3px !important;
  padding: 2px 1px !important;
}

/* Flechas del input numérico del año */
.flatpickr-current-month .numInputWrapper span {
  border: 1px solid #ccc !important;
  background-color: white !important;
  opacity: 1 !important;
  width: 15px !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: #666 !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: #666 !important;
}

.flatpickr-current-month .numInputWrapper span:hover {
  background-color: #f5f5f5 !important;
}

.flatpickr-current-month .numInputWrapper span:active {
  background-color: #e8e8e8 !important;
}

/* Nombres de días SIN azul */
.flatpickr-weekdays {
  background-color: transparent !important;
}

.flatpickr-weekday {
  color: #666 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background-color: transparent !important;
}

span.flatpickr-weekday {
  color: #666 !important;
  background-color: transparent !important;
}

/* Días más pequeños */
.flatpickr-day {
  color: #333 !important;
  font-size: 13px !important;
  height: 34px !important;
  line-height: 34px !important;
  max-width: 34px !important;
}

/* Flechas de navegación */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: #333 !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  fill: #0093cb !important;
}

/* Solo detalles en azul - días seleccionados */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background-color: #0093cb !important;
  border-color: #0093cb !important;
  color: black !important;
}

/* Día actual con borde azul */
.flatpickr-day.today {
  background-color: #0093cb !important;
  border-color: #0093cb !important;
  color: #e7f3ff !important;
  font-weight: 600 !important;
}

.flatpickr-day.today:hover,
.flatpickr-day:hover {
  background-color: #e7f3ff !important;
  border-color: #0093cb !important;
  color: #0093cb !important;
}

.flatpickr-input[readonly] {
  cursor: pointer;
  background-color: white;
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  pointer-events: none;
}


#photo_label:hover {
  background-color: none !important;

}