/* Общие стили для страниц Room и Gallery_style */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Manrope', sans-serif;
    scroll-behavior: smooth;
}

.hero-bg {
    background-size: cover;
    background-position: center;
}

/* Отступы для модуля Travelline */
.tl-container {
    padding: 0 2rem !important;  /* 32px отступы */
}

.transition-all {
    transition: all 0.3s ease;
}

.btn-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Стили для галереи */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.gallery-slide {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

.gallery-thumbnails {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #14b8a6;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
}

.gallery-btn {
    background-color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.gallery-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Стили для кнопки "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #14b8a6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0d9488;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для мобильного меню - фиксированное позиционирование и анимация */
.mobile-menu {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    padding: 0 !important; /* Переопределяем padding из Stile.css */
}

.mobile-menu.active {
    left: 0 !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивные стили для мобильных устройств и планшетов */
@media (max-width: 1024px) {
    .gallery-container {
        height: 400px !important;
    }

    .gallery-thumbnails {
        gap: 8px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 16px;
    }

    .back-to-top i {
        width: 20px;
        height: 20px;
    }

    .gallery-container {
        height: 350px !important;
    }

    .gallery-controls {
        padding: 0 10px;
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .thumbnail {
        width: 45px;
        height: 45px;
    }

    .gallery-indicators {
        bottom: 10px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* Добавляем отступ для Rooms section в мобильной версии */
    #rooms {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 12px;
        right: 12px;
    }

    .back-to-top i {
        width: 18px;
        height: 18px;
    }

    .gallery-container {
        height: 300px !important;
    }

    .gallery-controls {
        padding: 0 8px;
    }

    .gallery-btn {
        width: 32px;
        height: 32px;
    }

    .gallery-thumbnails {
        gap: 4px;
    }

    .thumbnail {
        width: 40px;
        height: 40px;
    }

    .gallery-indicators {
        bottom: 8px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }

    /* Добавляем отступ для Rooms section в мобильной версии */
    #rooms {
        padding-top: 80px;
    }
}

/* Стили для TravelLine */
#block-search,
#block-search * {
    box-sizing: border-box;
}

#block-search {
    position: relative;

    max-width: 400px;
    border-radius: 0;



    width: 100%;
    margin: 0 auto;
}

.tl-container {
    padding: 0 30px;
    max-width: 1440px;
    margin: 0 auto;
}

@media (max-width: 1700px) {
    #block-search {
        position: relative;
        right: 0;
        transform: none;
        max-width: 400px;
        border-radius: 0;
    }

    .tl-container {
        max-width: 1440px;
        margin: 0 auto;
    }
}
