/* Accommodation Page */

.page-hero .hotel-name {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--grey);
}

.accommodation-section {
    padding: 0 2rem 5rem 2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.photo-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.room-cards {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-items: center;
}

.room-card {
    background: var(--white);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    max-width: 800px;
}

.room-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.30);
}

.room-header {
    background: #f5f3ef79; 
    color: var(--white);
    padding: 2rem;
}

.room-header h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--azul);
}

.occupancy {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
    color: var(--text);
}


/* Room Photos Grid */
.room-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
}

.room-photo-item {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.room-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-photo-item:hover img {
    transform: scale(1.1);
}

.room-body {
    padding: 2.5rem;
}

.bed-info {
    font-weight: 600;
    color: var(--azul);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.room-features {
    list-style: none;
    margin: 1.5rem 0;
}

.room-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.room-features li:last-child {
    border-bottom: none;
}

.room-features li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--terracotta);
    border-radius: 50%;
}

.pricing-btn {
    display: inline-block; 
    padding: 1rem 2.5rem;
    border-radius: 40px;
    background: var(--terracotta);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accommodation-type-section {
    margin-top: 5rem;
}

.accommodation-type-section:first-of-type {
    margin-top: 4rem;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .page-hero .hotel-name {
        font-size: 1.75rem;
    }
    
    .room-cards {
        grid-template-columns: 1fr;
    }

    .photo-grid, .room-photos {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .room-photo-item {
        height: 250px;
    }

    .accommodation-section {
    padding: 0 1rem 5rem 1rem;
}
}

/* Clickable photo cursor */
.clickable-photo {
    cursor: pointer;
}


/* ---- LIGHTBOX ----*/
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

.lightbox[style*="display: block"] {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--terracotta);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--white);
    padding: 20px 0;
    font-size: 1.1rem;
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--grey);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 85%;
        max-height: 80vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}