/* ═══════════════════════ VIDEO WRAPPER ═══════════════════════ */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 10;
    object-fit: cover;
}

.video-wrapper.is-playing video {
    opacity: 1;
    pointer-events: auto;
}

.video-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    transition: opacity 0.5s ease, transform 1s ease;
}

.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

.video-wrapper:hover .video-cover img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    padding-left: 6px; /* visually center the play triangle */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.video-wrapper:hover .play-button {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-wrapper.is-playing .video-cover {
    opacity: 0;
    pointer-events: none;
}

/* ═══════════════════════ FACILITIES GRID ═══════════════════════ */
.facility-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.facility-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ═══════════════════════ PHOTO GALLERY ═══════════════════════ */
.photo-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px 320px;
    gap: 10px;
}

.photo-gallery-item {
    overflow: hidden;
    border-radius: 16px;
    cursor: zoom-in;
    position: relative;
}

.photo-gallery-item:first-child {
    grid-row: 1 / 3;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

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

.photo-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    border-radius: 16px;
}

.photo-gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 767px) {
    .photo-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px 200px;
    }
    .photo-gallery-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1;
    }
}

/* ── Lightbox ── */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
    cursor: zoom-out;
}

.photo-lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.photo-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform: scale(0.92);
}

.photo-lightbox.open img {
    transform: scale(1);
}

.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    background: none;
    border: none;
    padding: 4px 8px;
}

.photo-lightbox-close:hover {
    color: #fff;
    transform: scale(1.1);
}

