/* popup.css */

.hotel-sevan-room-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 100000; display: none; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}
.hotel-sevan-room-popup.active { display: flex; }
.room-popup-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0); transition: background 0.6s ease;
}
.hotel-sevan-room-popup.active .room-popup-overlay { background: rgba(0, 0, 0, 0.85); }

/* Fenêtre blanche centrale */
.room-popup-content {
    position: relative; z-index: 1; background: #F8F3E3; 
    width: 100%; max-width: 900px; max-height: 90vh; border-radius: 8px; overflow-y: auto;
    transform: translateY(30px) scale(0.95); opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.hotel-sevan-room-popup.active .room-popup-content { transform: translateY(0) scale(1); opacity: 1; }

/* Entête et fermeture */
.room-popup-header {
    display: flex; justify-content: flex-end; align-items: center;
    padding: 15px 25px; position: sticky; top: 0; background: #F8F3E3; z-index: 20;
    border-bottom: 1px solid rgba(139, 86, 61, 0.2);
}
.room-popup-close { background: transparent; border: none; font-size: 28px; cursor: pointer; color: #6C7B58; }
.room-popup-body { padding: 30px; }

/* =======================================
   CARROUSEL STYLES
======================================= */
.room-popup-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 40px; /* Espace propre avec les textes en dessous */
}
.room-popup-carousel-container {
    overflow: hidden;
    border-radius: 8px; 
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* Ombre douce sur les photos */
}
.room-popup-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.room-popup-carousel-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 450px; /* Hauteur généreuse des photos */
}
.room-popup-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Flèches du carrousel */
.room-popup-carousel-arrow {
    position: absolute;
    top: calc(50% - 15px);
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #6C7B58;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.room-popup-carousel-arrow:hover { background: #6C7B58; color: white; transform: translateY(-50%) scale(1.1); }
.room-popup-carousel-arrow.prev { left: 15px; }
.room-popup-carousel-arrow.next { right: 15px; }

/* Petits points (dots) */
.room-popup-carousel-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 15px;
}
.room-popup-carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(108, 123, 88, 0.3); cursor: pointer; transition: background 0.3s;
}
.room-popup-carousel-dot.active { background: #6C7B58; }


/* =======================================
   TEXTES EN DESSOUS (INFO)
======================================= */
.room-popup-info { margin-top: 20px; }
.room-popup-title { font-size: 32px; font-weight: 400; text-transform: uppercase; margin: 0 0 20px 0; text-align: center; color: #6C7B58; letter-spacing: 1.5px; }
.room-popup-description { line-height: 1.7; color: #5D554D; font-size: 17px; margin-bottom: 30px; text-align: center; font-weight: 300; }
.room-popup-description p { margin-bottom: 15px; } /* Marge entre les paragraphes si wpautop les génère */
.room-equipments-title { font-size: 20px; margin: 40px 0 20px 0; text-align: center; color: #6C7B58; text-transform: uppercase; font-weight: 400;}
.room-equipments-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.room-equipment-item { padding: 10px; position: relative; text-align: center; color: #5D554D; border-bottom: 1px solid rgba(139, 86, 61, 0.2); }

@media (max-width: 768px) {
    .room-popup-carousel-slide { height: 280px; } /* Moins haut sur mobile */
    .room-popup-content { width: 95%; }
    .room-popup-body { padding: 20px; }
    .room-popup-title { font-size: 26px; }
}
