body {
    overflow-x: hidden;
}

.grid {
        position: relative;
        width: 99vw;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
      }

@media only screen and (max-width: 1450px) {
  .grid {
    left: 0;
    width: 100%;
  }
}


      /* Property Card Styles */
.card {
  background: #f5f3ef;
  border-radius: 0;
  overflow: hidden;
  max-width: 450px;
  margin: 0 auto;
  font-family: 'Arial', sans-serif;
}

/* Carousel/Image Container */
.carrusel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.card-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.card-media:first-of-type {
  opacity: 1;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#mainCarrusel {
  width: 100%;
  height: max(50vw, 400px);
  z-index: 10;
  display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        display: none;
}

@media (min-width: 1200px) {
  #mainCarrusel {
    width: 800px;
    height: 400px;
  }
}

.carruselTerrenoU2, .carruselTerrenoN, .carruselDepartamentoFlamboyant, .carruselVillaPlayaBrasil, .carruselDepartamentoCruzDelMar,
.carruselVillaJulieta, .carruselCasaArroyo, .carruselDeptFlamboyanes, .carruselResidenciaCuatunalco, .carruselVillaDelfines {
  opacity: 0;
}

.contenedorCheckboxCarrusel {
    display: flex;
    justify-content: center;
    align-items: center;
  flex-direction: column;
  gap: 20px;
}

#activadorTerrenoU2, #activadorTerrenoN,#activadorDepartamentoFlamboyant, #activadorVillaPlayaBrasil, #activadorDepartamentoCruzDelMar,
#activadorVillaJulieta, #activadorCasaArroyo, #activadorDeptFlamboyanes, #activadorResidenciaCuatunalco, #activadorVillaDelfines {
  display: none;
}

#activadorTerrenoU2:checked ~ .carruselTerrenoU2,
#activadorTerrenoN:checked ~ .carruselTerrenoN,
#activadorDepartamentoFlamboyant:checked ~ .carruselDepartamentoFlamboyant,
#activadorVillaPlayaBrasil:checked ~ .carruselVillaPlayaBrasil,
#activadorDepartamentoCruzDelMar:checked ~ .carruselDepartamentoCruzDelMar,
#activadorVillaJulieta:checked ~ .carruselVillaJulieta,
#activadorCasaArroyo:checked ~ .carruselCasaArroyo,
#activadorDeptFlamboyanes:checked ~ .carruselDeptFlamboyanes,
#activadorResidenciaCuatunalco:checked ~ .carruselResidenciaCuatunalco,
#activadorVillaDelfines:checked ~ .carruselVillaDelfines {
  opacity: 1;
  z-index: 1000;
  display: flex;
}

.carrusel::-webkit-scrollbar {
        width: 10px;
        height: 10px;
      }
      .carrusel::-webkit-scrollbar-thumb {
        background: #1e5a9f;
        border-radius: 10px;
      }
      .carrusel::-webkit-scrollbar-track {
        background: transparent;
      }

      .carrusel figure {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 10px;
        transform-origin: center center;
        transform: scale(1);
        transition: transform 0.5s;
        position: relative;
      }

      .carrusel img, .carrusel video {
        width: 100%;
        height: 100%;
        padding: 0;
        border-radius: 10px;
        object-fit: cover;
      }

/* Tag overlay on image */
.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  display: none; /* Hidden to match the photo */
}

/* Card Body */
.card-body {
  position: relative;
  padding: 40px 50px;
  text-align: left;
}

/* Meta Information with Icons */
.meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 20px;
  color: #4a5568;
}

.meta span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta span:before {
  content: '';
  width: 32px;
  height: 32px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(30%) sepia(15%) saturate(500%) hue-rotate(180deg);
}

.meta span:nth-child(1):before {
  /* Bed icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M3 9v6m0 0v4m0-4h18m0 0v4m0-4V9m-6-3a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.meta span:nth-child(2):before {
  /* Bath icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M4 12h16m-7-8v2m-5 6a2 2 0 014 0m7 0a2 2 0 01-2 2H7a2 2 0 01-2-2m0 0v4a2 2 0 002 2h10a2 2 0 002-2v-4'/%3E%3C/svg%3E");
}

.meta span:nth-child(3):before,
.meta span:nth-child(4):before {
  /* Home/Area icon */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z'/%3E%3C/svg%3E");
}

/* Location */
.meta span:nth-child(5) {
  font-size: 18px;
  color: #2d3748;
  margin-top: 10px;
}

.meta span:nth-child(5):before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Price */
.price {
  font-size: 28px;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 30px;
}

.price span[itemprop="priceCurrency"] {
  display: none;
}

/* Actions */
.card-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.btn {
  background: #1e5a9f;
  color: white;
  padding: 16px 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  transition: background 0.3s ease;
  display: inline-block;
}

.btn:hover {
  background: #164576;
}

.btn--ghost {
  color: #1e5a9f;
  background: #fff;
}

/* Title Overlay on Image */
.card-body h3 {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  z-index: 10;
  letter-spacing: 8px;
  text-shadow: 0px 0px 8px rgba(0, 0, 0);
  line-height: 1.3;
  width: 100%;
  text-wrap: balance;
}

    @media (max-width: 768px) {
      .card-body {
        padding: 30px 25px;
      }

      .meta {
        font-size: 16px;
      }

      .price {
        font-size: 24px;
      }

      .carrusel {
        height: 400px;
      }

      .carrusel::before {
        font-size: 32px;
        letter-spacing: 4px;
      }
    }
      
.wpcf7-form input {
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 5px; 
}

.wpcf7-form textarea {
    resize: none;
}

.wpcf7-form select {
    padding: 5px 15px;
    border: 2px dashed rgb(57, 125, 90); 
    border-radius: 5px;
  margin-left: 20%;
}

.wpcf7-form input[type="submit"] {
    background-color: rgb(57, 125, 90);;
    color: white; 
    padding: 12px 20px; 
    border: none; 
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
}

.wp-block-site-logo img {
    max-width: 100px;
}

.video-background-container {
            position: relative;
            left: 0vw;
            width: 100vw; /* Usaremos 100vw y 100vh para que ocupe toda la ventana */
            height: 100vh;
            overflow: hidden;
        }
        
        .video-background-container-contacto {
            position: relative;
            width: 40vw; /* Usaremos 100vw y 100vh para que ocupe toda la ventana */
            height: 500px;
            overflow: hidden;
          border-radius: 10px;
          box-shadow: 0 0 5px #000;
        }

        .myVideo {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: -1;
            /* Inicialmente ocultamos todos los videos */
            opacity: 0;
            transition: opacity 1s ease-in-out; /* Para una transición suave */
        }

        .myVideo.active {
            /* Solo el video 'active' será visible */
            opacity: 1;
        }

        .overlay-text {
            position: relative;
            z-index: 1;
            color: white;
            text-align: center;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 40px;
            letter-spacing: 1.3px;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.8),
                         0 0 20px rgba(0, 0, 0, 0.6),
                         0 0 30px rgba(0, 0, 0, 0.4);
        }

#wpcf7-f129-p8-o2 form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between
}

#wpcf7-f129-p8-o2 form p:nth-child(14), #wpcf7-f129-p8-o2 form textarea {
  width: 100%;
}

.has-color-1-background-color {
    background-color: transparent !important;
}

@media only screen and (max-width: 25050px) {
  body > div.wp-site-blocks > header > div > div {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-evenly;
      max-height: 130px;
  }

  #wp--skip-link--target > div > div.wp-block-group.alignfull.hostinger-ai-hero-1.hostinger-ai-fade-up.has-color-1-background-color.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained.aos-init.aos-animate,
  #wp--skip-link--target > div,
  #wp--skip-link--target > div > div.wp-block-group.alignfull.hostinger-ai-hero-1.hostinger-ai-fade-up.has-color-1-background-color.has-background.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained.aos-init.aos-animate > div {
    padding: 0;
    margin: 0;
  }
  
  .wpcf7-validates-as-email {
      width: 250px;
  }
  
  .video-background-container {
      left: 0;
      width: max(100%, 100vw);
  }
  
  #wp--skip-link--target > div > div,
  #wp--skip-link--target > div > div:nth-child(3) > div {
    padding: 0 20px;
  }

  body > div.wp-site-blocks > footer > div > div.wp-block-columns.alignwide.is-layout-flex.wp-container-core-columns-is-layout-28f84493.wp-block-columns-is-layout-flex > div:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body > div.wp-site-blocks > footer > div > div.wp-block-columns.alignwide.is-layout-flex.wp-container-core-columns-is-layout-28f84493.wp-block-columns-is-layout-flex > div.wp-block-column.has-light-color.is-layout-flow.wp-block-column-is-layout-flow > h3 {
    text-wrap: balance;
  }

  body > div.wp-site-blocks > footer > div > div.wp-block-columns.alignwide.is-layout-flex.wp-container-core-columns-is-layout-28f84493.wp-block-columns-is-layout-flex > div:nth-child(1),
  body > div.wp-site-blocks > footer > div > div.wp-block-columns.alignwide.is-layout-flex.wp-container-core-columns-is-layout-28f84493.wp-block-columns-is-layout-flex > div.wp-block-column.has-light-color.is-layout-flow.wp-block-column-is-layout-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media only screen and (min-width: 700px) and (max-width: 900px) {
  .wpcf7-validates-as-email {
      width: 220px;
  }
}
