
.residencesHero {
    position: relative;
    height: 640px;
}

.residencesHero .hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.residencesHero .hero-overlay {
    position: absolute;
    left: 40px;
    top: 112px;
    width: 500px;
    height: 80%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* text-align: center; */
}

.residencesHero .villa-title {
    
    color: #997b68 !important;
    margin-bottom: 10px;
    
}

.residencesHero .villa-price {
    color: #997b68 !important;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 22px;
}

.residencesHero .villa-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.residencesHero .detail-item {
    display: flex;
    align-items: center;
  
}

.residencesHero .detail-icon {
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #a68a72;
}
.residencesHero .detail-icon img{
    width: 100%;
    height: auto;
}
.residencesHero .detail-text {
    margin-left: 10px;
    color: #555;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
}

.residencesHero .villa-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 30px;
    max-width: 400px;
    font-weight: 500;
   
}

.residencesHero .btn-decouvrir {
    display: inline-block;
    border: 1px solid #a68a72;
    color: #a68a72;
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s;
    width: fit-content;
}

.residencesHero .btn-decouvrir:hover {
    background-color: #a68a72;
    color: #fff;
}

/* Galería */
.residencesGallery {
    padding: 60px 0;
    background-color: #fcf8f3 !important;
}

.residencesGallery .gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
}

.residencesGallery .gallery-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 20px;
    width: 33%;
    justify-content: center;
}

.residencesGallery .gallery-item {
   
    position: relative;
    overflow: hidden;
    /* border-radius: 6px; */
    aspect-ratio: 16/9;
}
.residencesGallery .room-card{
    position: relative;
    overflow: hidden;
    /* border-radius: 6px; */
    aspect-ratio: 16/9;
    border: #997b68 8px solid;
}

.residencesGallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    max-height: 240px;
}

.residencesGallery .gallery-item img:hover {
    transform: scale(1.05);
}

.residencesGallery .info-box {
    background-color: #997b68;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.residencesGallery .info-box h2 {
    color: white;
    margin-bottom: 10px;
}

.residencesGallery .info-box p {
    font-size: 14px;
    color: white;
}

.residencesGallery .full-width {
    margin-top: 20px;
}

.residencesGallery .full-width .gallery-item {
    aspect-ratio: 3/1;
}

.amenityContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.amenityContainer .title-container {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.amenityContainer .title-bg {
    position: absolute;
    left: 50%;
    top: 20%;
    transform: translate(-50%, -50%);
    width: 75%;
    max-width: 400px;
    height: 48px;
    background-color: var(--color-beige);
    z-index: -1;
}

.amenityContainer .title-bg img{
    width: 100%;
   
}

/* .amenityContainer .amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
} */




.amenityContainer .amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.amenityContainer .amenity-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 0.75rem;
}

.amenityContainer .amenity-name {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.aboutBg{
    background-color: #fcf8f3 !important;
    justify-items: center;
    padding: 100px 0;
}

.aboutResidence{
    max-width: 1200px;
    padding: 0 20px;
}
.aboutResidence h1{
    margin-bottom: 60px;
}
.aboutResidence .aboutContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.aboutResidence .left-column {
    flex: 1;
    min-width: 300px;
}

.aboutResidence .right-column {
    flex: 1;
    min-width: 300px;
    gap: 16px;
    display: flex;
    flex-direction: column;
    align-items: center
}

.aboutResidence .right-column p{
    font-size: 14px;
}
.aboutResidence .right-column .text-container {
    display: flex;
    flex-direction: column;
    gap: 12px;

}
.aboutResidence .info-card {
    background-color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.aboutResidence .info-section {
    margin-bottom: 30px;
}

.aboutResidence .info-section h3 {
    display: flex;
    align-items: center;
  
    margin-bottom: 15px;
}
.aboutResidence .info-section p {
    font-size: 14px;
}

.aboutResidence .info-section h3 img {
    margin-right: 10px;
    width: 24px;
    height: 24px;
}

.aboutResidence .bus-line {
    margin-bottom: 10px;
    /* border-bottom: 1px solid #f0f0f0; */
}

.aboutResidence .bus-line-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    font-weight: 600;
}

.aboutResidence .bus-line-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}

.aboutResidence .bus-line-content.active {
    max-height: 200px;
    padding-bottom: 15px;
}

.aboutResidence .divider {
    border-top: 1px solid #eee;
    margin: 20px 0;
}

.aboutResidence .toggle-btn {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #997b68;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aboutResidence .material-symbols-outlined {
    color: #ffffff;
    font-size: 14px;
}

.aboutResidence .location-image {
    width: 70%;
    height: auto;
    border: #ffffff 20px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
}

.aboutResidence .map-container {
    width: 100%;
    height: 450px;
    margin-top: 30px;
    border: 1px solid #ddd;
}

.aboutResidence .map-container iframe{
    width: 100%;
    height: 100%;
    
}

.aboutResidence .map-controls {
    background-color: #f8f8f8;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.aboutResidence .map-controls button {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-right: 5px;
    cursor: pointer;
}

.aboutResidence .map-controls button.active {
    background-color: #e7e7e7;
}

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }
  
  .gallery-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
  }
  
  .gallery-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .gallery-controls {
    text-align: center;
    margin-top: 10px;
  }
  
  .gallery-controls button {
    margin: 0 10px;
    padding: 5px 10px;
    font-size: 18px;
  }
  
  .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
  }

  .modal-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}
.slide { 
    display:none; 
}
.slide img { 
    width:100%; 
    height:auto; 
}
.thumbnail.active { 
    outline:2px solid #fff; 
}
.residencesGallery .gallery-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1;
}

.modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-content img {
    width: 100%;
    height: auto;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.gallery-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
  
/* @media (min-width: 640px) {
    .amenityContainer .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .amenityContainer .amenities-grid {
        grid-template-columns: repeat(5, 1fr);
    }
} */

/* Responsive */
@media (max-width: 992px) {
  
    
    .residencesGallery .gallery-column {
        flex-wrap: wrap;
    }
    
    .residencesGallery .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .residencesGallery .full-width .gallery-item {
        flex: 0 0 100%;
    }
    .residencesHero .hero-overlay {
        width: 400px;
        padding: 30px;
    }
    
    .residencesGallery .gallery-column {
        flex-wrap: wrap;
    }
    
    .residencesGallery .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .residencesGallery .full-width .gallery-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
   .residencesHero{
    height: auto;
   }
   .residencesHero .villa-price{
    font-size: 14px;
   }
    .amenityContainer .amenity-icon{
        width: 56px;
        height: 56px;
    }
    .residencesHero .hero-overlay {
        width: 90%;
        background-color: rgba(255, 255, 255, 0.95);
        /* position: relative; */
        left: 50%;
        transform: translateX(-50%);
    }
    
    .residencesGallery .gallery-item {
        flex: 0 0 100%;
    }
    .residencesHero .hero-image{
        height: 100vh;
    }
    .residencesHero .hero-overlay {
        
        background-color: rgba(255, 255, 255, 0.95);
    }
    
    .residencesGallery .gallery-item {
        /* flex: 0 0 100%; */
        flex: unset;
    }
    .residencesGallery .gallery-column{
        display: none;
    }
    .residencesGallery .gallery-column.mobile{
        display: flex;
        width: 100%;
    }
    .amenityContainer .amenities-grid {
        gap: 2.2rem !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .amenityContainer .amenity-name {
        font-size: 12px;
        line-height: 1.5em;
    }
    .residencesGallery .hide-on-mobile {
        display: none !important;        
    }

    
}

@media (max-width: 576px) {
    .residencesHero .hero {
        height: auto;
    } 
  
}
