@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --cabecera: #195fa9;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  background-color: #f3f3f3;
  user-select: none;
  -webkit-user-select: none;
}

/*------------------------------------------------------------------------MAIN------------------------------------------------------------------*/
.main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(https://s1.1zoom.me/b4640/175/Roads_Houses_Evening_Madrid_Spain_From_above_532163_1920x1080.jpg);
}

.main::before {
  content: "";
  position: absolute;
  left: 0;
  width: 110%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.buscador {
  position: absolute;
  z-index: 95;
  width: 85%;
  height: 100px;
  top: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.buscador h1 {
  margin: 0;
  font-size: 1.2em;
}

.buscador p {
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
}

.buscador-barra {
  width: 1px;
  height: 80%;
  background-color: gray;
}

.buscador-destino {
  width: 25%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s;
  gap: 10%;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.buscador-destino>h1 {
  margin-top: -1.5%;
  margin-bottom: 1%;
}

.buscador-destino:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.3);
}

/*AQUI VA¿¿¿¿*/

.buscador-fecha {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buscador-fecha-adicional {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 100%;
  left: 25%;
  width: 40%;
  height: 350px;
  background-color: #f9f9f9;
  border-top: 2px solid black;
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
    rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.buscador-fecha-entrada {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s;
  text-align: center;
}

.buscador-fecha-entrada>h1 {
  margin-left: -5%;
}

.buscador-fecha-entrada:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.3);
}

.buscador-fecha-salida {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s;
  text-align: center;
}

.buscador-fecha-salida>h1 {
  margin-left: -5%;
}

.buscador-fecha-salida:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.3);
}

.buscador-viajeros {
  width: 25%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s;
  text-align: center;
}

.buscador-viajeros>h1 {
  margin-left: -5%;
}

.buscador-viajeros:hover {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.3);
}

.buscador-viajeros-adicional {
  display: none;
  position: absolute;
  top: 100%;
  left: 65%;
  width: 25%;
  height: 300px;
  background-color: #f9f9f9;
  border-top: 2px solid black;
  border-radius: 0 0 5px 5px;
  box-sizing: border-box;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
    rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.buscador-viajeros-adicional>h1 {
  margin: 5%;
}

.buscador-lupa {
  width: 10%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.lupa-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 70px;
  background-color: var(--cabecera);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  transition: 0.5s;
}

.lupa-container>img {
  width: 70%;
}

.lupa-container:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.buscador-destino-adicional {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 25%;
  min-height: 50px;
  max-height: 300px;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-top: 2px solid black;
  border-radius: 0 0 10px 10px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px,
    rgba(0, 0, 0, 0.05) 0px 5px 10px;
}

.destino-container {
  width: 100%;
  min-height: 50px;
  max-height: 300px;
  /*display: flex;*/
  align-items: center;
  flex-direction: column;
  overflow: auto;
  background-color: white;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Estilo para la barra de desplazamiento */
.destino-container::-webkit-scrollbar {
  width: 10px;
  /* Ancho de la barra de desplazamiento */
  height: 10px;
  border-radius: 5px;
  /* Radio del borde para la barra de desplazamiento */
}

/* Estilo para el riel de la barra de desplazamiento */
.destino-container::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  /* Color de fondo del riel */
  border-radius: 5px;
  /* Radio del borde para el riel de la barra de desplazamiento */
}

/* Estilo para el mango (thumb) de la barra de desplazamiento */
.destino-container::-webkit-scrollbar-thumb {
  background-color: #888;
  /* Color del mango */
  border-radius: 5px;
  /* Radio del borde para el mango de la barra de desplazamiento */
}

/* Estilo para el mango (thumb) de la barra de desplazamiento cuando se desplaza */
.destino-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
  /* Color del mango cuando se desplaza */
}

.destino {
  width: 95%;
  height: 50px;
  margin-left: 2.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  text-align: center;
  border-bottom: 1px solid #222222;
}

.destino:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.1);
}

.destino>img {
  width: 7%;
  transition: 0.3s;
}

.grid {
  width: 100%;
  height: 90%;
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
  text-transform: uppercase;
  font-weight: bold;
}

calendar-range {
  svg {
    height: 16px;
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
  }

  path {
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  &::part(button) {
    border: 1px solid #adb5bd;
    background-color: #fff;
    border-radius: 3px;
    width: 26px;
    height: 26px;
  }

  &::part(button):focus-visible {
    outline: 2px solid #7048e8;
  }
}

calendar-month {
  --color-accent: rgba(25, 95, 169);
  --color-text-on-accent: #ffffff;

  &::part(button) {
    border-radius: 3px;
  }

  &::part(range-inner) {
    border-radius: 0;
    background-color: rgba(25, 95, 169);
  }

  &::part(range-start) {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  &::part(range-end) {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
  }

  &::part(range-start range-end) {
    border-radius: 3px;
  }
}

.day[data-date="2024-05-08"] {
  background-color: #ADD8E6;
  /* Color de fondo azul claro */
}

.focused-date {
  background-color: #0a6bff;
}

.ocupantes-container {
  width: 90%;
  height: 15%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  margin-left: 5%;
}

.persona {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
}

.botones {
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
}

.ocupantes-container>div>p {
  font-weight: 500;
  font-size: 1em;
}

.ocupantes-pgris {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.1em;
  margin-left: 5%;
}

.ocupantes-button {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid slategrey;
  border-radius: 50px;
  outline: 0;
  font-size: 1.5em;
  cursor: pointer;
}

.ocupantes-button>img {
  width: 70%;
}

.ocupantes-button:hover {
  border: 1px solid black;
  background-color: white;
}

.ocupantes-bar {
  width: 90%;
  height: 1px;
  margin-left: 5%;
  margin-top: 2%;
  margin-bottom: 1.5%;
  background-color: rgba(0, 0, 0, 0.5);
}

#inputDestino {
  width: 100%;
  outline: none;
  text-align: center;
  border: none;
  color: rgba(0, 0, 0, 0.75);
  background-color: transparent;
  margin-top: -2%;
  font-size: 1em;
  text-align: center;
}

#pAdultos {
  font-size: 1.2em;
}

#pBebe {
  font-size: 1.2em;
}

#pNinos {
  font-size: 1.2em;
}

#pMascotas {
  font-size: 1.2em;
}

/*-------------------------------------------------------------------RECOMENDADOS-------------------------------------------------------------*/
.recomendados {
  width: 100%;
  height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.recomendados>h1 {
  text-align: center;

  font-size: 3em;
  margin-top: 3%;
  margin-left: -5%;
}

/*----------------------------------------CARRUSEL DE TARJETAS PARA LOS INMUEBLES RECOMENDADOS------------------------------------------------*/
.wrapper {
  max-width: 70%;
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: none;
  position: relative;
}

.wrapper i {
  top: 45%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}

i {
  display: flex;
  align-items: center;
  justify-content: center;
}

i>img {
  width: 50%;
}

.wrapper i:active {
  transform: translateY(-50%) scale(0.85);
}

.wrapper i:first-child {
  left: -22px;
}

.wrapper i:last-child {
  right: -22px;
}

.carousel {
  height: 80%;
}

.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  align-items: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 50px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel .card {
  scroll-snap-align: center;
  height: 400px;
  width: 90%;
  list-style: none;
  background: #fff;
  flex-direction: column;
  border-radius: 8px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.vermas {
  transition: 0.3s;
}

.vermas:hover {
  cursor: pointer;
  color: var(--cabecera);
  text-decoration: 2px var(--cabecera) underline;
}

.contenedor-inmueble {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  background-color: white;
  border-radius: 10px;
}

.contenedor-inmueble-foto {
  width: 100%;
  height: 70%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  overflow: hidden;
  /* Esto es importante para recortar la imagen */
}

.contenedor-inmueble-foto>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Esto ajustará la imagen para que llene completamente el contenedor sin distorsionarla */
}

.contenedor-inmueble-desc {
  width: 100%;
  height: 30%;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding-left: 15px;
}

.contenedor-inmueble-desc>p>img {
  width: 7%;
}

.contenedor-inmueble-desc>p {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 3%;
}

.contenedor-inmueble-desc>p,
h1 {
  margin: 0;
  margin-top: 1%;
}

.contenedor-inmueble-desc-val {
  width: 100%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: left;
  flex-direction: row;
  gap: 3%;
}

.contenedor-inmueble-desc-val-square {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7em;
  background-color: var(--cabecera);
}

/*------------------------------------------------------------------SUSCRIBIRSE----------------------------------------------------------------*/
.suscribirse-container {
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suscribirse {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
}

.suscribirse>h1 {
  margin: 0;
  margin-left: -5%;
  font-size: 1.3em;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.input-group {
  width: 80%;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.input {
  width: 100%;
  height: 45px;
  background-color: #05060f0a;
  border-radius: 0.5rem;
  padding: 0 1rem;
  border: 2px solid transparent;
  font-size: 1em;
  font-weight: 600;
  overflow: hidden;
  transition: border-color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
    color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
    background 0.2s cubic-bezier(0.25, 0.01, 0.25, 1) 0s;
}

.label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.2em;
  font-weight: bold;
  color: #05060f99;
  overflow: hidden;
  transition: color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s;
}

.input:hover,
.input:focus,
.input-group:hover .input {
  outline: none;
  border-color: var(--cabecera);
}

.input-group:hover .label,
.input:focus {
  color: black;
}

textarea {
  background-color: #05060f0a;
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  padding: 10px;
  border: 2px solid transparent;
  font-size: 1.2em;
  color: #05060fc2;
  transition: border-color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
    color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
    background 0.2s cubic-bezier(0.25, 0.01, 0.25, 1) 0s;
}

textarea:hover {
  outline: none;
  border-color: var(--cabecera);
}

textarea:focus {
  outline: none;
  border-color: var(--cabecera);
}

textarea {
  resize: none;
  font-size: 1.3em;
  font-weight: 600;
}

.button-EnviarMail,
input[type="submit"] {
  background-color: #0a6bff;
  width: 200px;
  height: 50px;
  border-radius: 4px;
  border: 0;
  box-shadow: rgba(1, 60, 136, 0.5) 0 -1px 3px 0 inset,
    rgba(0, 44, 97, 0.1) 0 3px 6px 0;
  color: #fff;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 24px;
  margin: 1em 0px 0px 0px;
  position: relative;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.button-EnviarMail:hover,
input[type="submit"]:hover {
  background-color: var(--cabecera);
  transform: translateY(-2px);
}

/*-----------------------------------------------------------------RESPONSIVE-----------------------------------------------------------------*/
@media screen and (max-width: 1600px) {
  #month2 {
    display: none;
  }
}

@media screen and (max-width: 1450px) {
  .ocupantes-container {
    text-align: center;
  }

  .ocupantes-container>div>p {
    font-size: 0.9em;
  }

  .ocupantes-pgris {
    font-size: 0.7em;
  }

  .buscador-viajeros-adicional {
    text-align: center;
  }

  .buscador-viajeros-adicional>h1 {
    margin: 0;
    padding: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1em;
  }

}

@media screen and (max-width: 1300px) {
  .wrapper .carousel {
    grid-auto-columns: calc((70% / 2) + 70px);
  }

  .carousel .card {
    width: 100%;
  }

  .recomendados>h1 {
    margin-left: 3%;
    margin-right: 3%;
  }

  .buscador-destino>h1 {
    font-size: 1em;
  }

  #inputDestino {
    font-size: 0.9em;
  }

  .buscador-fecha-entrada>h1 {
    font-size: 1em;
  }

  .buscador-fecha-entrada>p {
    font-size: 0.9em;
  }

  .buscador-fecha-salida>h1 {
    font-size: 1em;
  }

  .buscador-fecha-salida>p {
    font-size: 0.9em;
  }

  .buscador-viajeros>h1 {
    font-size: 1em;
  }

  .buscador-viajeros>p {
    font-size: 0.9em;
  }

  .destino>p {
    font-size: 0.9em;
  }

  .destino>img {
    width: 25px;
  }
}

@media screen and (max-width: 1050px) {
  .suscribirse-container {
    height: 600px;
    text-align: center;
  }

  .botones {
    margin-left: 12%;
  }
}

@media screen and (max-width: 900px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }

  .destino>img {
    width: 20px;
  }

  .buscador {
    flex-direction: column;
    height: 30%;
    width: 60%;
    margin-top: -10%;
    border: 2px solid black;
  }

  #barrasesconder {
    width: 90%;
    height: 2px;
  }

  .buscador-destino {
    width: 100%;
  }

  .buscador-viajeros {
    width: 100%;
  }

  .buscador-fecha {
    width: 100%;
  }

  .buscador-lupa {
    width: 100%;

  }

  .buscador-destino-adicional {
    width: 100%;
    border: 2px solid black;

  }

  .buscador-fecha-adicional {
    width: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    border: 2px solid black;

  }

  .buscador-viajeros-adicional {
    width: 100%;
    left: 0;
    border-radius: 0 0 10px 10px;
    border: 2px solid black;

  }

  .ocupantes-container {
    justify-content: center;
    align-items: center;
    margin-left: 15%;
  }

  .buscador-destino>h1 {
    font-size: 1.1em;
  }

  #inputDestino {
    font-size: 1em;
  }

  .buscador-fecha-entrada>h1 {
    font-size: 1.1em;
  }

  .buscador-fecha-entrada>p {
    font-size: 1em;
  }

  .buscador-fecha-salida>h1 {
    font-size: 1.1em;
  }

  .buscador-fecha-salida>p {
    font-size: 1em;
  }

  .buscador-viajeros>h1 {
    font-size: 1.1em;
  }

  .buscador-viajeros>p {
    font-size: 1em;
  }

  .destino>p {
    font-size: 1em;
  }
}

@media screen and (max-width: 800px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 1) - 9px);
  }

  .carousel .card {
    width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .suscribirse-container {
    height: 650px;
  }

  .recomendados>h1 {
    font-size: 2em;
    margin-left: 3%;
    margin-right: 3%;
    margin-bottom: -10%;
  }

  .wrapper .carousel {
    grid-auto-columns: 100%;
  }

  .buscador {
    width: 80%;
    margin-top: -20%;
  }


  .buscador-destino>h1 {
    font-size: 1em;
  }

  #inputDestino {
    font-size: 0.9em;
  }

  .buscador-fecha-entrada>h1 {
    font-size: 1em;
  }

  .buscador-fecha-entrada>p {
    font-size: 0.9em;
  }

  .buscador-fecha-salida>h1 {
    font-size: 1em;
  }

  .buscador-fecha-salida>p {
    font-size: 0.9em;
  }

  .buscador-viajeros>h1 {
    font-size: 1em;
  }

  .buscador-viajeros>p {
    font-size: 0.9em;
  }

  .destino>p {
    font-size: 0.9em;
  }
}