@media (max-width: 767.98px) {
  .property-carousel-container {
    height: 350px;
  }
}
  /* Property Card Styles */
  .property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.125);
  }
  
  .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .property-card .card-img-container {
    position: relative;
    height: auto;
    overflow: hidden;
  }
  
  .property-card .card-img-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .property-card .price-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
  }

  .property-card .type-tag {
    position: absolute;
    top: 0;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
  }
  
  .property-card .card-body {
    padding: 1rem;
  }

  .property-card .property-features {
    color: #6c757d;
    font-size: 0.9rem;
  }

  /* Modal Styles */
  .property-carousel-container {
    height: auto;
  }

  #propertyModalCarousel {
    height: 100%;
  }
  
  #propertyModalCarousel .carousel-inner {
    height: 100%;
  }

/*.carousel-inner {*/
/*  overflow: initial !important;*/
/*}*/
  
  #propertyModalCarousel .carousel-item {
    height: 100%;
  }
  
  #propertyModalCarousel .carousel-item img {
    object-fit: cover;
  }
  
  .property-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bs-primary);
  }
  
  /* Card Carousel Styles */
  .card-carousel {
    position: relative;
    height: 100%;
    overflow: hidden;
  }
  
  .card-carousel .carousel-inner {
    height: 100%;
  }
  
  .card-carousel .carousel-item {
    height: 100%;
  }
  
  .card-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .card-carousel .carousel-control-prev,
  .card-carousel .carousel-control-next {
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .card-carousel .carousel-control-prev {
    left: 10px;
  }
  
  .card-carousel .carousel-control-next {
    right: 10px;
  }
  
  .card-carousel .carousel-control-prev-icon,
  .card-carousel .carousel-control-next-icon {
    width: 15px;
    height: 15px;
  }
  
  /* Responsive adjustments */
  @media (max-width: 767.98px) {
    .property-carousel-container {
      height: 300px;
    }
  }


/**Segundo carussell*/
/** ==== CARRUSEL DE PROPIEDADES ==== */
.carousel-container {
    width: 100%;               /* ✅ se ajusta al ancho del dispositivo */
    max-width: 1400px;         /* mantiene límite en pantallas grandes */
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;    /* ✅ evita que padding/borde rompan el ancho */
    display: grid;
}

/* ✅ Ajuste extra para pantallas muy pequeñas */
@media (max-width: 576px) {
    .carousel-container {
        border-radius: 0;      /* elimina bordes redondeados para pantallas pequeñas */
        box-shadow: none;      /* simplifica en móvil */
        margin: 0;
    }
}

/* Sección principal: video + info */
.main-display {
    display: flex;
    flex-direction: row;
    min-height: 600px;
}

/* ==== VIDEO ==== */
.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    aspect-ratio: 9 / 16; /* Para reels verticales */
}

/* ==== INFORMACIÓN ==== */
.property-info {
    flex: 1;
    padding: 40px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.property-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.property-info .price {
    font-size: 30px;
    font-weight: 800;
    color: #3498db;
    margin-bottom: 20px;
}

.property-info .property-location {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.property-features .p-3 {
    transition: all 0.2s ease-in-out;
}

.property-features .p-3:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.property-info .agent {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-top: auto;
}

/* ==== THUMBNAILS ==== */
.thumbnails-container {
    padding: 20px;
    background: white;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    justify-content: center;
    scroll-behavior: smooth;
}

.thumbnail {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
    border-color: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* ==== RESPONSIVE ==== */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .main-display {
        flex-direction: column;
        min-height: auto;
    }

    .video-container iframe {
        aspect-ratio: 16 / 9;
    }

    .property-info {
        padding: 25px;
        text-align: center;
    }

    .thumbnails-container {
        justify-content: flex-start;
        padding: 15px;
    }
}

/* Móviles */
@media (max-width: 576px) {
    .thumbnail {
        width: 140px;
        height: 90px;
    }

    .property-info h2 {
        font-size: 22px;
    }

    .property-info .price {
        font-size: 24px;
    }

    .property-info {
        padding: 20px;
    }
}