/* ====== TABS ====== */
.gallery-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #5d2a1e;
    /* Dark Brown */
    font-weight: 300;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.tabs button {
    padding: 12px 24px;
    border: none;
    background: #efe5d7;
    /* Beige */
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    color: #5d2a1e;
    /* Dark Brown */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(93, 42, 30, 0.1);
}

.tabs button:hover {
    filter: brightness(0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 42, 30, 0.15);
}

.tabs button.active {
    background: #5d2a1e;
    /* Dark Brown */
    color: #ffffff;
    /* White */
    box-shadow: 0 4px 10px rgba(93, 42, 30, 0.4);
}

/* ====== GALERIA ====== */
.gallery {
    display: none;
    flex-direction: column;
    /* Organize layout vertically */
    gap: 30px;
}

.gallery.active {
    display: flex;
    /* Changed from grid to flex to handle sections */
    animation: fadeIn 0.6s ease;
}

/* ====== ROOM DETAILS ====== */
.room-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #faf9f6;
    /* Very light subtle background */
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #efe5d7;
    margin-bottom: 10px;
}

.room-description,
.room-amenities {
    flex: 1;
    min-width: 300px;
}

.room-description h3,
.room-amenities h3 {
    font-size: 1.4rem;
    color: #5d2a1e;
    margin-bottom: 15px;
    font-weight: 400;
    border-bottom: 2px solid #efe5d7;
    padding-bottom: 10px;
    display: inline-block;
}

.room-description p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.room-amenities ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Responsive grid for amenities */
    gap: 10px;
}

.room-amenities li {
    color: #585858;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.room-amenities li i {
    color: #5d2a1e;
    /* Icon color */
    font-size: 0.8rem;
}

/* ====== IMAGES GRID ====== */
.room-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.room-images-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 2px 5px rgba(93, 42, 30, 0.05);
    /* Softer shadow */
}

.room-images-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(93, 42, 30, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVO ====== */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2rem;
    }

    .room-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-images-grid img {
        height: 160px;
    }

    .room-details {
        flex-direction: column;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .room-images-grid {
        grid-template-columns: 1fr;
    }

    .room-images-grid img {
        height: 200px;
    }
}

/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(93, 42, 30, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 4px solid #ffffff;
}

.modal.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #efe5d7;
}