/* Основные стили */
:root {
    --primary-color: #005f73;   /* Глубокий бирюзовый */
    --secondary-color: #ee9b00; /* Теплый золотой */
    --accent-color: #ca6702;    /* Насыщенный оранжевый */
    --text-dark: #0f172a;
    --text-light: #475569;
    --bg-light: #f8f9fa;
    --border-radius: 12px;
    --box-shadow: 0 12px 24px rgba(0, 95, 115, 0.1);
    --soft-shadow: 0 6px 12px rgba(0, 95, 115, 0.07);
    --body-font: "Manrope", "Segoe UI", sans-serif;
    --heading-font: "Playfair Display", "Georgia", serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    padding-top: 76px; /* Для фиксированной навигации */
    background-color: #fdfdfd;
    background-image: 
        radial-gradient(circle at 1% 1%, rgba(0, 95, 115, 0.04), transparent 35%),
        radial-gradient(circle at 99% 99%, rgba(238, 155, 0, 0.04), transparent 35%);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    letter-spacing: 0.2px;
}

/* Навигация */
.navbar {
    background: linear-gradient(120deg, #005f73, #00798c);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand { 
    font-weight: 700;
    color: white !important;
    font-size: 1.6rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: white !important;
    opacity: 0.92;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.2px;
    transition: all 0.3s ease;
}

.nav-link.active {
    opacity: 1;
    text-decoration: none;
    border-bottom-color: var(--secondary-color);
}

.nav-link:hover {
    opacity: 1;
    text-decoration: none;
    border-bottom-color: rgba(238, 155, 0, 0.5);
}

/* Герой-секция */
.hero-section {
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1));
}

.hero-section > .container {
    position: relative;
    z-index: 1;
}

.hero-home {
    background-image: url('../img/bg-header.jpeg');
}

.hero-tours {
    background-image: url('../img/bg-header.jpeg');
}

.hero-home .hero-title,
.hero-home .hero-subtitle,
.hero-home .lead,
.hero-tours .hero-title,
.hero-tours .hero-subtitle,
.hero-tours .lead,
.hero-about .hero-title,
.hero-about .hero-subtitle,
.hero-about .lead,
.hero-news .hero-title,
.hero-news .hero-subtitle,
.hero-news .lead,
.hero-contact .hero-title,
.hero-contact .hero-subtitle,
.hero-contact .lead,
.newsletter-section,
.newsletter-section .lead{
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.hero-about {
    background-image: url('../img/bg-header.jpeg');
}

.hero-news {
    background-image: url('../img/bg-header.jpeg');
}


.hero-contact {
    background-image: url('../img/bg-header.jpeg');
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: rise 0.8s ease both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: rise 0.8s ease 0.1s both;
}

.hero-section .lead {
    animation: rise 0.8s ease 0.2s both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Кнопки */
.btn-primary {
    background: var(--secondary-color);
    border-color: transparent;
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 15px rgba(238, 155, 0, 0.25);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(202, 103, 2, 0.3);
}

.btn-outline {
    border: 2px solid rgba(11, 61, 145, 0.4);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 25px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Карточки */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 30px;
    overflow: hidden;
    background: white;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.card-animation-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card-animation-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}


.card-link-image {
    display: block;
}

.card-body a.text-decoration-none {
    text-decoration: none;
    color: inherit;
}

.card-body a.text-decoration-none:hover {
    color: var(--accent-color);
}

.card-body {
    display: flex;
    flex-direction: column;
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Стили для кнопок в карточках */
.card-body .btn {
    align-self: flex-start; /* По умолчанию кнопка слева и не растянута */
}

/* Tour Detail Gallery */
.tour-gallery-thumbnails {
    display: flex;
    gap: 8px;
}

.tour-gallery-thumbnails button {
    background: none;
    border: 2px solid transparent;
    padding: 2px;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.tour-gallery-thumbnails button.active {
    border-color: var(--primary-color);
}

.tour-gallery-image {
    height: 450px;
    object-fit: cover;
}


/* Заглушка для изображений */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 95, 115, 0.1), rgba(238, 155, 0, 0.1));
    color: #0b3d91;
    text-align: center;
    font-weight: 600;
}
.img-placeholder.placeholder-lg {
    height: 300px;
}
.img-placeholder.placeholder-md {
    width: 80px;
    height: 80px;
}
.img-placeholder.placeholder-sm {
    width: 60px;
    height: 60px;
}

.contact-map iframe {
    border: 0;
}

.contact-map {
    height: 400px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.contact-info-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--soft-shadow);
}

.business-hours {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-tag {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    /* margin-top: 10px; */
}

/* Новости и предложения */
.news-item, .offer-item {
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--soft-shadow);
    position: relative;
    padding-left: 50px;
}

.news-item::before, .offer-item::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 25px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.news-item {
    background: #ffffff;
}

.offer-item {
    background: #ffffff;
}

.news-item::before {
    content: "\f1ea"; /* fa-newspaper */
}

.offer-item::before {
    content: "\f06b"; /* fa-gift */
}

.news-title, .offer-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Форма подписки */
.newsletter-section {
    background-image: linear-gradient(120deg, rgba(0, 95, 115, 0.85), rgba(0, 95, 115, 0.7)), url('../img/bg-header.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0; 
    color: #ffffff;
}

.newsletter-section .form-control {
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 2px solid #ddd;
    max-width: 400px;
    flex: 1;
}

.newsletter-section form {
    justify-content: center;
}

.newsletter-section .lead.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.newsletter-section button {
    white-space: nowrap;
}

.team-section .team-photo {
    height: 240px;
    object-fit: cover;
}

/* Футер */
footer {
    background: #ffffff;
    color: var(--text-light);
    padding: 60px 0 20px;
    margin-top: 60px;
}

footer a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 95, 115, 0.3);
    transition: all 0.3s ease;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(202, 103, 2, 0.4);
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 38px;
    height: 38px;
    background: #e9ecef;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    margin-right: 10px;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.contact-item .contact-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.contact-icon.phone {
    background: var(--primary-color);
}

.contact-icon.whatsapp {
    background: #25D366;
}

.contact-icon.email {
    background: var(--accent-color);
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Переключатель языка */
.language-switcher {
    margin-left: 20px;
}

/* Desktop Dropdown */
.language-switcher.dropdown .dropdown-toggle {
    color: white;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.language-switcher.dropdown .dropdown-toggle:hover {
    border-color: white;
}

.language-switcher.dropdown .dropdown-menu {
    min-width: auto;
    background-color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-switcher.dropdown .dropdown-item {
    color: #ffffff;
    border: none;
}

.language-switcher.dropdown .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-switcher.dropdown .dropdown-toggle:focus,
.language-switcher.dropdown .dropdown-toggle:focus-visible,
.language-switcher.dropdown .dropdown-toggle:active,
.language-switcher.dropdown .dropdown-item:focus,
.language-switcher.dropdown .dropdown-item:focus-visible,
.language-switcher.dropdown .dropdown-item:active {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

/* Mobile Buttons & Common styles */
.language-switcher button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 10px;
    margin: 0 2px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.language-switcher .dropdown-item.active {
    background-color: var(--accent-color);
    color: white !important;
}

.language-switcher button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white; 
}

/* Адаптивность */

/* Планшеты (640px - 991px) */
@media (min-width: 640px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }

    .qr-code {
        width: 130px;
        height: 130px;
    }

    #bookingModal .modal-body {
        padding: 1.5rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Мобильные устройства (до 639px) */
@media (max-width: 639px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-top: 10px;
    }
    
    .navbar-collapse .nav-link {
        color: var(--text-dark) !important;
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: 10px;
    }

    .language-switcher button {
        color: var(--text-dark);
        border-color: #ccc;
    }

    .language-switcher button.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
    }

    #newsletter-form {
        flex-direction: column;
    }

    #newsletter-form .form-control {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 1.5rem;
    }

    #newsletter-form .btn {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .card-body .btn {
        width: 100%; /* На мобильных кнопка занимает всю ширину */
    }

    .qr-code {
        width: 160px;
        height: 160px;
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Модальное окно бронирования */
#bookingModal .modal-header,
#reviewModal .modal-header {
    padding: 1.75rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#bookingModal .modal-body,
#reviewModal .modal-body {
    padding: 2rem 2rem 2.5rem;
}

#bookingModal .modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

#bookingModal .form-label,
#reviewModal .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#bookingModal .form-control,
#bookingModal .form-select,
#reviewModal .form-control,
#reviewModal .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

#bookingModal .btn-primary,
#reviewModal .btn-primary {
    padding: 0.875rem 1.5rem;
    margin-top: 0.5rem;
}

/* Стили для тегов/бейджей */
.badge {
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px; /* Делает их похожими на "таблетки" */
    align-self: flex-start; /* Предотвращает растягивание тега на всю ширину */
}

/* Секция отзывов */
.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--soft-shadow);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-author strong {
    font-weight: 600;
}

.review-stars {
    color: var(--secondary-color);
}

.review-text {
    color: var(--text-light);
}

/* Боковое меню с залипанием */
.news-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Пагинация */
.pagination {
    margin-top: 3rem;
}

.pagination .page-link {
    border: 1px solid #ddd;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    border-color: #ddd;
    cursor: not-allowed;
}

/* Скрыть кнопки "Предыдущая" и "Следующая" */
.pagination .page-item:first-child,
.pagination .page-item:last-child {
    display: none;
}