/* Основные стили навигации */

/* Гамбургер меню */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #d4af37;
    z-index: 1001;
    position: absolute; /* Для фиксации по правому краю */
    left: 19px; /* Вертикальное выравнивание */

}

.burger-links {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 1001;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
    
}

.burger-links.active {
    max-height: 500px;
    opacity: 1;
}

.burger-links li {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.burger-links a {
    color: #d4af37;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.burger-links a:hover {
    color: #ffffff;
}

/* Навигация */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 3rem;
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s ease, background-color 0.4s ease;
}





.nav-links {
    display: flex;
    gap: 4vw;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    margin-left: 5rem;
    margin-right: 5rem;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    overflow-y: auto;
    z-index: 1001;
}

.nav-links a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
    font-size: 1vw;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* Анимация скрытия при прокрутке */
.navbar.hide {
    transform: translateY(-100%);
}
.navbar.show {
    transform: translateY(0);
}

.navbar-left,
.navbar-right {
    flex: 1;
}

.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Логотип в навигации */
.navbar-center .logo {
    height: 6rem;
    transition: transform 0.3s ease;
}

.navbar-center .logo:hover {
    transform: scale(1.1);
}

/* Кнопка "Book Now" */
.book-now {
    display: inline-block;
    padding: 10px 20px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(90deg, #d4af37, #ffd700, #b8860b);
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    cursor: pointer;
    background-size: 200% auto;
    transition: 0.4s;
    text-decoration: none;
    box-shadow: 0 1px 5px rgba(212, 175, 55, 0);
    position: absolute; /* Для фиксации по правому краю */
    right: 1rem; /* Отступ от правого края */
    top: 50%; /* Вертикальное выравнивание */
    transform: translateY(-50%); /* Центрирование по вертикали */
}

.book-now:hover {
    background-position: right center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.7);
}

.social-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* Стили для элементов выпадающего меню */
.dropdown-menu li {
    padding: 10px 20px;
}

.dropdown-menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.dropdown-menu a:hover {
    color: #d4af37;
}

/* Показ меню при наведении или клике */
.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Выпадающее меню */
.dropdown {
    position: relative;
    display: inline-block;
    
}

.dropdown-menu {
    position: fixed;
    top: var(--dropdown-top-distance);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 1124px) {
    .nav-links {
        display: none; /* Скрываем обычные ссылки */
    }

    .hamburger-menu {
        display: block; /* Показываем бургер-меню */
    }
   .social-icon img {
   display: none;
}
    .burger-links {
        top: 60px; /* Сохраняем корректное положение для бургер-меню */
    }
}
@media (min-width: 771px) {
    .burger-links {
        top: 116px; /* Корректируем положение бургер-меню */
    }
}
@media (max-width: 770px) {
    .burger-links {
        top: 68px; /* Корректируем положение бургер-меню */
    }
}

@media (max-width: 768px) {
    .navbar-center .logo {
        height: 4rem;
    }

    .book-now {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .social-icon img {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .navbar-center .logo {
        height: 3rem;
    }

    .book-now {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .social-icon img {
        width: 30px;
        height: 30px;
    }
}

/* Ограничение высоты для бургер-меню */
.burger-links.scrollable {
    max-height: 80vh;
    overflow-y: auto;
}

@media (max-height: 600px) {
    .burger-links {
        max-height: 60vh;
    }

    .burger-links li {
        margin-bottom: 10px;
        padding: 8px 0;
    }

    .burger-links a {
        font-size: 16px;
    }
}
