/* 
    Estilos para a nova página de Suítes (Galeria & Carrossel 3D)
    Cantinho de Portugal - Campos do Jordão
*/

/* --- CONTAINER & GERAL --- */
.suites-page-container {
    padding: 40px 0 60px 0;
    background-color: #ffffff;
}

.suites-section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    color: #27854c;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.suites-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #d22b26;
}

.suites-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
    padding: 0 15px;
}

/* --- SWIPER CARROSSEL 3D COVERFLOW --- */
.swiper-container-wrapper {
    position: relative;
    padding: 20px 0 50px 0;
    margin-bottom: 50px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.suites-swiper {
    width: 100%;
    padding-top: 30px;
    padding-bottom: 60px;
}

.suites-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 200px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .suites-swiper .swiper-slide {
        width: 550px;
        height: 360px;
    }
}

.suites-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Swiper custom buttons & pagination */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #27854c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: #27854c;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.swiper-button-prev-custom {
    left: 20px;
}

.swiper-button-next-custom {
    right: 20px;
}

.suites-swiper-pagination.swiper-pagination-bullets {
    bottom: 15px;
    z-index: 10;
}

.suites-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #888888;
    opacity: 0.6;
    margin: 0 8px !important;
    transition: all 0.3s ease;
}

.suites-swiper-pagination .swiper-pagination-bullet-active {
    background: #27854c;
    width: 28px;
    opacity: 1;
}

/* --- GRADE DE FOTOS E VÍDEOS --- */
.media-grid-container {
    padding: 0 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 480px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Card de Mídia */
.media-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: #f5f5f5;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover img {
    transform: scale(1.08);
}

/* Overlay & Efeitos Hover */
.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 133, 76, 0.0); /* Inicialmente transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.media-card:hover .media-overlay {
    background-color: rgba(39, 133, 76, 0.85); /* Overlay verde no hover */
}

/* Ícones de ação no overlay */
.media-icon-wrapper {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #27854c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.media-card:hover .media-icon-wrapper {
    opacity: 1;
    transform: scale(1);
}

.media-icon-wrapper i {
    transition: transform 0.3s ease;
}

.media-card:hover .media-icon-wrapper:hover i {
    transform: scale(1.2);
}

/* Estilo para Cartão de Vídeo */
.media-card.type-video .media-overlay {
    background-color: rgba(0, 0, 0, 0.15); /* Overlay escuro sutil padrão para vídeo */
}

.media-card.type-video .media-icon-wrapper-always {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: rgba(210, 43, 38, 0.95); /* Vermelho premium para o play do vídeo */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: all 0.3s ease;
}

/* Ajuste do ícone play para ficar centralizado perfeitamente */
.media-card.type-video .media-icon-wrapper-always i {
    margin-left: 4px;
}

.media-card.type-video:hover .media-icon-wrapper-always {
    background-color: #ffffff;
    color: #d22b26;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Badge indicativo de vídeo */
.video-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #d22b26;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* --- MODAL PARA PLAY DE VÍDEO --- */
.video-player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-player-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-player-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
    .video-modal-close {
        top: 10px;
        right: 10px;
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.5);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 20px;
    }
}

.video-modal-close:hover {
    color: #d22b26;
    transform: rotate(90deg);
}

/* Detalhes de Conforto */
.suites-comfort-badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.suites-comfort-badge {
    background-color: #f7f9fb;
    border: 1px solid #e1e8ed;
    color: #333333;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.suites-comfort-badge i {
    color: #27854c;
}
