/* ============================================
   Charme Hotel Slider - Premium Design
   Inspiré par le design hôtel luxe
   ============================================ */

* {
    box-sizing: border-box;
}

:root {
    --primary-dark: #4a4a4a;
    --primary-blue: #5a5a5a;
    --accent-gold: #d4af37;
    --accent-yellow: #daa520;
    --light-bg: #f9f7f3;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-light: #e8e3dd;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

.charme-hotel-slider-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.08);
    font-family: inherit;
}

/* ============= HEADER ============= */
.charme-hotel-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #f9f7f3 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-light);
}

.charme-hotel-slider-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.charme-hotel-slider-counter {
    font-size: 15px;
    color: var(--text-gray);
    font-weight: 600;
}

.charme-hotel-slider-current {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 18px;
}

/* ============= ROOM FILTER ============= */
.charme-hotel-room-filter {
    padding: 16px 30px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #fefdfb 100%);
    border-bottom: 1px solid var(--border-light);
}

.charme-hotel-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.charme-hotel-filter-btn {
    padding: 11px 22px;
    border: 1.5px solid #d4ccc4;
    background: var(--white);
    border-radius: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.06);
}

.charme-hotel-filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.charme-hotel-filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    font-weight: 700;
}

/* ============= CONTAINER ============= */
.charme-hotel-slider-container {
    padding: 24px 30px;
    background: var(--white);
}

/* ============= MAIN SLIDER ============= */
.charme-hotel-main-slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f2ed 0%, #efe9e1 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.charme-hotel-slide {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f2ed 0%, #efe9e1 100%);
}

.charme-hotel-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.charme-hotel-main-image.charme-hotel-zoomable:hover {
    transform: scale(1.04);
}

/* ============= NAVIGATION BUTTONS ============= */
.charme-hotel-button-prev,
.charme-hotel-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-dark);
    padding: 0;
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.15);
}

.charme-hotel-button-prev:hover,
.charme-hotel-button-next:hover {
    color: var(--primary-dark);
    transform: translateY(-50%);
    box-shadow: 0 4px 16px rgba(26, 58, 82, 0.15);
}

.charme-hotel-button-prev {
    left: 24px;
}

.charme-hotel-button-next {
    right: 24px;
}

.charme-hotel-button-prev svg,
.charme-hotel-button-next svg {
    width: 24px;
    height: 24px;
}

/* ============= THUMBNAILS ============= */
.charme-hotel-thumbs-slider {
    width: 100%;
    margin-top: 18px;
}

.charme-hotel-thumb {
    width: 85px !important;
    height: 85px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26, 58, 82, 0.1);
    background: var(--light-bg);
}

.charme-hotel-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.charme-hotel-thumb:hover .charme-hotel-thumb-image {
    transform: scale(1.1);
}

.charme-hotel-thumb.swiper-slide-thumb-active {
    border-color: var(--accent-gold);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}

/* ============= LIGHTBOX ============= */
.charme-hotel-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(80, 80, 80, 0.85);
    animation: fadeInDark 0.35s ease;
    flex-direction: column;
    backdrop-filter: blur(2px);
}

.charme-hotel-lightbox.active {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

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

/* ============= LIGHTBOX HEADER ============= */
.charme-hotel-lightbox-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(80, 80, 80, 0.9) 0%, rgba(70, 70, 70, 0.85) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.charme-hotel-lightbox-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.charme-hotel-lightbox-filter-btn {
    padding: 11px 22px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    border-radius: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.charme-hotel-lightbox-filter-btn:hover {
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.charme-hotel-lightbox-filter-btn.active {
    background: white;
    border-color: white;
    color: var(--primary-dark);
    box-shadow: none;
    font-weight: 700;
}

/* ============= LIGHTBOX BODY ============= */
.charme-hotel-lightbox-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px;
    pointer-events: auto;
    overflow-y: auto;
}

/* ============= MOSAIC VIEW ============= */
.charme-hotel-lightbox-mosaic {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.charme-hotel-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 32px;
    width: 100%;
    max-width: 100%;
}

.charme-hotel-mosaic-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    border: 2px solid transparent;
}

.charme-hotel-mosaic-item:hover {
    transform: translateY(-8px);
    box-shadow: none;
    border-color: white;
}

.charme-hotel-mosaic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.charme-hotel-mosaic-item:hover .charme-hotel-mosaic-image {
    transform: scale(1.12);
}

.charme-hotel-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    font-size: 32px;
    color: white;
    border-radius: 10px;
    pointer-events: none;
}

.charme-hotel-mosaic-item:hover .charme-hotel-mosaic-overlay {
    opacity: 1;
}

/* ============= FULLSCREEN VIEW ============= */
.charme-hotel-lightbox-fullscreen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.charme-hotel-lightbox-content {
    width: 90%;
    max-width: 85vh;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    animation: zoomInSmooth 0.35s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes zoomInSmooth {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============= LIGHTBOX CONTROLS ============= */
.charme-hotel-lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 1001;
}

.charme-hotel-lightbox-close:hover {
    transform: scale(1.15) rotate(90deg);
    color: white;
}

.charme-hotel-lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 10;
    pointer-events: none;
}

.charme-hotel-lightbox-nav button {
    background: rgba(80, 80, 80, 0.85);
    border: 2px solid white;
    color: white;
    width: 54px;
    height: 54px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: none;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charme-hotel-lightbox-nav button:hover {
    background: white;
    color: var(--primary-dark);
    transform: scale(1.06);
    box-shadow: none;
}

/* ============= BACK BUTTON ============= */
.charme-hotel-lightbox-back {
    position: absolute;
    top: 24px;
    left: 30px;
    background: rgba(80, 80, 80, 0.85) !important;
    border: 2px solid white !important;
    color: white !important;
    padding: 10px 18px !important;
    cursor: pointer;
    border-radius: 24px;
    font-size: 12px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: none;
}

.charme-hotel-lightbox-back:hover {
    background: white !important;
    border-color: white !important;
    color: var(--primary-dark) !important;
    transform: scale(1.06) translateY(-2px);
    box-shadow: none;
}

/* ============= NO IMAGES ============= */
.charme-hotel-no-images {
    text-align: center;
    padding: 100px 20px;
    color: var(--text-gray);
}

.charme-hotel-no-images p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1024px) {
    .charme-hotel-slider-header {
        padding: 28px 32px;
    }

    .charme-hotel-slider-container {
        padding: 28px 32px;
    }

    .charme-hotel-slide {
        height: 450px;
    }

    .charme-hotel-mosaic-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .charme-hotel-slider-wrapper {
        border-radius: 12px;
        margin: 20px 12px;
        box-shadow: 0 4px 16px rgba(26, 58, 82, 0.1);
    }

    .charme-hotel-slider-header {
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .charme-hotel-slider-title {
        font-size: 24px;
    }

    .charme-hotel-slider-container {
        padding: 24px;
    }

    .charme-hotel-slide {
        height: 380px;
    }

    .charme-hotel-button-prev,
    .charme-hotel-button-next {
        width: 44px;
        height: 44px;
        box-shadow: 0 2px 8px rgba(26, 58, 82, 0.15);
    }

    .charme-hotel-button-prev {
        left: 16px;
    }

    .charme-hotel-button-next {
        right: 16px;
    }

    .charme-hotel-thumb {
        width: 80px !important;
        height: 80px;
    }

    .charme-hotel-room-filter {
        padding: 18px 24px;
    }

    .charme-hotel-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .charme-hotel-lightbox-header {
        padding: 20px 24px;
    }

    .charme-hotel-lightbox-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .charme-hotel-mosaic-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 24px;
    }

    .charme-hotel-lightbox-content {
        width: 95%;
        max-width: 100%;
    }

    .charme-hotel-lightbox-close {
        top: 24px;
        right: 24px;
        font-size: 36px;
    }

    .charme-hotel-lightbox-back {
        top: 24px !important;
        left: 24px !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
    }

    .charme-hotel-lightbox-nav {
        padding: 0 18px;
    }

    .charme-hotel-lightbox-nav button {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .charme-hotel-filter-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .charme-hotel-slide {
        height: 300px;
    }

    .charme-hotel-slider-header {
        padding: 18px;
    }

    .charme-hotel-slider-title {
        font-size: 20px;
    }

    .charme-hotel-slider-container {
        padding: 16px;
    }

    .charme-hotel-thumb {
        width: 70px !important;
        height: 70px;
    }

    .charme-hotel-mosaic-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        padding: 16px;
    }

    .charme-hotel-button-prev,
    .charme-hotel-button-next {
        width: 40px;
        height: 40px;
    }

    .charme-hotel-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
