/* ==================== FACILITY VIDEO SECTION STYLES - ULTRA PREMIUM ==================== */

.facility-box {
    /* No changes to main layout */
}

/* Premium Image Card */
.facility-image {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12),
                0 5px 15px rgba(246, 101, 55, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.8);
}

.facility-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18),
                0 10px 25px rgba(246, 101, 55, 0.25);
}

.facility-image img {
    transition: transform 0.6s ease;
}

.facility-image:hover img {
    transform: scale(1.08);
}

/* Premium Play Button */
.facility-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(246, 101, 55, 0.3),
                0 0 0 8px rgba(246, 101, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.facility-image:hover .facility-play-overlay {
    background: #f66537;
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 15px 40px rgba(246, 101, 55, 0.4),
                0 0 0 12px rgba(246, 101, 55, 0.2);
}

.facility-play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 18px solid #f66537;
    margin-left: 6px;
    transition: all 0.3s ease;
}

.facility-image:hover .facility-play-overlay::after {
    border-left-color: white;
}

/* ====================== ULTRA PREMIUM VIDEO MODAL ====================== */
.facility-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(246, 101, 55, 0.15);   /* Soft brand tint */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(12px);
}

.facility-modal-content {
    max-width: 68%;
    width: 100%;
    max-height: 88vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25),
                0 10px 30px rgba(246, 101, 55, 0.18);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.75) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.facility-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: linear-gradient(135deg, #f66537, #e04e2a);
    color: white;
    box-shadow: 0 4px 15px rgba(246, 101, 55, 0.3);
}

.facility-modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.facility-close-modal {
    font-size: 34px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.facility-close-modal:hover {
    opacity: 1;
    transform: rotate(90deg);
    color: #fff;
}

.facility-modal-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #0f172a;
    overflow: hidden;
}

.facility-modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .facility-modal-content {
        max-width: 78%;
    }
}

@media (max-width: 768px) {
    .facility-modal-content {
        max-width: 92%;
        border-radius: 16px;
    }
    
    .facility-image {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .facility-modal-content {
        max-width: 96%;
    }
}