body {
    height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;
}


.media-preview {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.media-preview img, .media-preview video {
    max-width: 100px;
    height: auto;
    margin-right: 15px;
}

.media-preview .info {
    flex-grow: 1;
}

.media-preview .main-media {
    background: yellow;
    padding: 5px;
    cursor: pointer;
}

.media-preview.main {
    border: 2px solid red;
}

.captcha-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 1px solid #ced4da;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    gap: 10px;
}

.captcha-container input {
    justify-self: center;
    width: 100%;
    max-width: 150px;
}

.captcha-container .captcha-image {
    justify-self: center;
    display: flex;
    align-items: center;
}

.fixed-size-img {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: none;
}

/* Карточка отеля */
.card {
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Название отеля */
.hotel-name {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    font-size: 1.25rem;
}

.hotel-name:hover {
    text-decoration: underline;
}

/* Изображение отеля */
.img-fluid {
    border-radius: 10px;
    object-fit: cover;
    height: 100%;
    width: 100%;
    max-height: 220px;
    transition: transform 0.3s ease;
}

/* файл: static/css/style.css */
#countries-container .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 20px;
    border-radius: 12px; /* Закругляем углы самой карточки */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1); /* Более глубокая тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавная анимация при наведении */
    background-color: #fff;
    height: 100%; /* Устанавливаем высоту карточки для выравнивания */
}

#countries-container .card:hover {
    transform: translateY(-10px); /* Поднимаем карточку при наведении */
    box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.15); /* Увеличиваем тень при наведении */
}

#countries-container .card-img-top {
    width: 70%; /* Уменьшенный размер изображения для белого пространства */
    height: auto;
    margin: 0 auto 15px; /* Центрируем изображение и добавляем отступ снизу */
    padding-top: 15px; /* Отступ сверху */
    object-fit: contain; /* Сохраняем полное изображение внутри блока */
    border-radius: 12px 12px 0 0; /* Скругляем верхние углы изображения */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая тень для изображения */
}

#countries-container .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#countries-container .card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

#countries-container .btn {
    margin-top: auto;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#countries-container .btn:hover {
    background-color: #0056b3;
    transform: scale(1.05); /* Легкое увеличение кнопки при наведении */
}

/* Выравниваем карточки по центрам в ряду */
#countries-container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Выровнять все карточки по высоте */
}

#countries-container .col-md-4 {
    display: flex;
    align-items: stretch;
}


/* Стили для поиска в навбаре */
#hotel-search-input {
    width: 300px;
    border-radius: 0.375rem;
}

/* Стили для выпадающего списка */
#search-results {
    max-height: 300px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
}

/* Элементы выпадающего списка */
.dropdown-item {
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}


/* Custom styles for the website */

/* Carousel indicators and controls */
.carousel-indicators button {
    background-color: #000;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Benefits section */
.icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* About Us section */
.logo {
    max-width: 150px;
    object-fit: contain;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Partners Carousel */
.partner-img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.benefit-icon {
    font-size: 3rem;
    color: #007bff; /* Цвет можно изменить на любой другой */
}

/*?дальше новые стили*/

#benefits-container {
    margin-top: 50px;
}

.benefit-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    font-size: 40px;
    color: #007bff;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #343a40;
}

.benefit-text {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 0;
}

/*тут css для главной галереи*/

#mainCarousel .carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#mainCarousel img {
    object-fit: cover;
    height: 500px;
    filter: brightness(0.85);
    transition: filter 0.5s ease;
}

#mainCarousel img:hover {
    filter: brightness(1);
}

#custom-caption {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease-out;
}

#custom-caption h5 {
    font-size: 2rem;
    font-weight: bold;
    color: #f8f9fa;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 15px;
}

#custom-caption p {
    font-size: 1.2rem;
    color: #e9ecef;
    line-height: 1.7;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

#custom-caption a {
    font-size: 1.2rem;
    padding: 12px 25px;
    background-color: #007bff;
    border: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

#custom-caption a:hover {
    background-color: #0056b3;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    #custom-caption {
        padding: 15px;
    }

    #custom-caption h5 {
        font-size: 1.5rem;
    }

    #custom-caption p {
        font-size: 1rem;
    }

    #custom-caption a {
        font-size: 1rem;
        padding: 10px 20px;
    }
}


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

/*теперь css для карточек сотрудников*/

#team-section h2 {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 30px;
}

#team-section .team-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

#team-section .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

#team-section .team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #007bff;
}

@media (min-width: 768px) {
    #team-section .team-img {
        width: 200px;
        height: 200px;
        border: 5px solid #007bff;
    }
}

#team-section h5 {
    font-weight: 600;
    color: #343a40;
}

#team-section p {
    color: #6c757d;
    margin-bottom: 0;
}

#team-section .btn {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
}

#team-section .btn:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}


/*ну а здесь пунктик с отзывами*/

#reviews-banner {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#reviews-banner h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

#reviews-banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

#reviews-banner .btn {
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

#reviews-banner .btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* тут будет о компании */

#about-us-banner {
    background-color: #f8f9fa;
    padding: 60px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

#about-us-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

/* Увеличение логотипа на больших экранах */
@media (min-width: 768px) {
    #about-us-logo {
        width: 200px;
    }
}

#about-us-content {
    max-width: 800px;
}

#about-us-content h2:first-child {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

#about-us-content h2.display-4 {
    font-weight: bold;
    margin-bottom: 20px;
}

#about-us-content p.lead {
    margin-bottom: 15px;
}

#about-us-content a.btn {
    margin-top: 20px;
    border-radius: 50px;
    padding: 15px 30px;
    font-size: 1.25rem;
}

/*тут каруселька партнёров*/

#partnersCarousel {
    height: 140px; /* Высота карусели для больших экранов */
    margin-bottom: 20px; /* Отступ снизу для десктопов */
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 767px) {
    #partnersCarousel {
        margin-bottom: 180px; /* Отступ снизу для мобильных устройств */
    }
}


#partnersCarousel .partner-img {
    max-height: 100px;
    transition: transform 0.3s ease-in-out;
}

#partnersCarousel .partner-img:hover {
    transform: scale(1.1);
}

#partnersCarousel .carousel-control-prev-icon,
#partnersCarousel .carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

#partnersCarousel .custom-carousel-control {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* Медиазапрос для небольших экранов (смартфоны) */
@media (max-width: 576px) {
    #partnersCarousel {
        height: 100px; /* Уменьшенная высота карусели на мобильных устройствах */
    }

    #partnersCarousel .partner-img {
        max-height: 70px; /* Уменьшенная высота изображений на мобильных устройствах */
    }

    #partnersCarousel .carousel-control-prev-icon,
    #partnersCarousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}


#ourPartnersTitle {
    font-weight: 700;
    color: #343a40;
    margin-bottom: 30px;
}

/*страница о нас*/

#about-container {
    font-family: 'Arial', sans-serif;
}

#header-image img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#about-description h2 {
    font-size: 2rem;
    color: #343a40;
    margin-bottom: 20px;
}

#about-description p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

#about-description ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

#reviews-link p {
    font-size: 1.1rem;
    color: #343a40;
}

.reviews-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.reviews-link:hover {
    text-decoration: underline;
}

/*это страница политики конфиденциальности*/

#policy-header {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header {
    color: #2980b9;
    font-size: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.policy-text {
    color: #34495e;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 1rem;
}

#consent-section {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

#data-policy-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

/* Styles for Certificates Page */
/* Стили для изображения с ID cert-img-1 */
#cert-img-1 {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Стили для изображения с ID cert-img-2 */
#cert-img-2 {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Стили для изображения с ID cert-img-3 */
#cert-img-3 {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

/* Стили для текста в карточке с ID cert-text-1 */
#cert-text-1 {
    font-weight: bold;
    color: #333;
}

/* Стили для текста в карточке с ID cert-text-2 */
#cert-text-2 {
    font-weight: bold;
    color: #333;
}

/* Стили для текста в карточке с ID cert-text-3 */
#cert-text-3 {
    font-weight: bold;
    color: #333;
}

/* Стили для модального окна с ID modal-body-1 */
#modal-body-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
    height: 100%;
}

/* Стили для изображения в модальном окне */
#modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 10px;
}

/* Стили для кнопки загрузки */
#download-btn {
    font-size: 16px;
    padding: 10px 20px;
}


/*страница страхования (insurance)*/

#hero-image img {
    max-height: 500px;
    object-fit: cover;
}

#insurance-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

#insurance-title {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

#insurance-types-title {
    font-size: 2rem;
    color: #343a40;
    margin-top: 30px;
    margin-bottom: 15px;
}

#medical-insurance-title,
#trip-cancellation-title {
    font-size: 1.75rem;
    color: #495057;
    margin-top: 20px;
}

#medical-insurance-cover-title,
#trip-cancellation-cover-title {
    font-size: 1.5rem;
    color: #6c757d;
    margin-top: 10px;
    margin-bottom: 10px;
}

#insurance-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

#medical-insurance-cover-list,
#trip-cancellation-cover-list {
    margin-top: 10px;
    margin-bottom: 20px;
}

#medical-insurance-cover-list li,
#trip-cancellation-cover-list li {
    margin-bottom: 10px;
}

#warning-note {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 5px;
}

#trip-cancellation-note,
#relatives-note {
    font-size: 0.9rem;
    margin-top: 15px;
}

/*ну и страница для оплаты*/

#payment-image img {
    border-radius: 10px;
}

#payment-description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

#payment-description h2 {
    color: #343a40;
}

#payment-description h4 {
    color: #495057;
}

#payment-description p, #payment-description li {
    color: #6c757d;
}

#payment-description a {
    color: #007bff;
}

/* Стили для QR-кодов */
#payment-description .payment-qr {
    margin-top: 10px;
    width: 100%;
    max-width: 300px; /* Установка максимальной ширины */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    border-radius: 5px;
    object-fit: contain; /* Контент изображения будет вписываться в контейнер без обрезки */
}

/* Стили для изображения платежных систем */
#payment-description .payment-systems {
    margin-top: 10px;
    width: 100%;
    max-width: 250px; /* Установка максимальной ширины */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    border-radius: 5px;
    object-fit: contain; /* Контент изображения будет вписываться в контейнер без обрезки */
}

.wide-hotel-label {
    font-weight: bold; /* Делаем шрифт жирным */
    font-size: 1.2em;  /* Увеличиваем размер шрифта, если нужно */
}
/* Основной контейнер для названия и кнопок */
.btn-container {
    display: flex;
    justify-content: space-between; /* Разделяет название и кнопки */
    align-items: center;
    gap: 8px; /* Отступ между названием и кнопками */
}

/* Левый блок для названия отеля */
.btn-container .left {
    flex: 0 0 auto; /* Фиксированная ширина для названия */
}

/* Правый блок для кнопок */
.btn-container .right {
    display: flex;
    gap: 4px; /* Отступы между кнопками */
    flex-wrap: nowrap;
}

/* Универсальный класс для кнопок и псевдо-кнопки названия отеля */
.btn-uniform {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    white-space: nowrap; /* Запрещает перенос текста */
    padding: 0 10px; /* Добавляет отступы для красивого отображения */
}



/* Псевдо-кнопка с названием отеля */
.hotel-name-link {
    background-color: #e0e0e0;
    color: #0D0D0D;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}
.hotel-name-link:hover,
.hotel-name-link:focus {
    color: #333333;
    text-decoration: underline;
}

/* Цветовые стили для каждой кнопки остаются прежними */


/* Цветовые стили для каждой кнопки остаются прежними */


/* Кнопка "Подробнее" */
.custom-more-btn {
    background-color: #FFDAB9;
    color: #000;
    border: none;
    width: 100%; /* Занимает всю доступную ширину */
}
.custom-more-btn:hover,
.custom-more-btn:focus,
.custom-more-btn:active {
    background-color: #FFC8A1;
    color: #000;
}

/* Кнопка "Добавить" */
.add-btn {
    background-color: #87CEFA;
    color: #000;
    border: none;
    width: 100%;
}
.add-btn:hover,
.add-btn:focus,
.add-btn:active {
    background-color: #7BBEE4;
    color: #000;
}

/* Кнопка "Удалить" */
.btn-danger-custom {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    width: 100%;
}
.btn-danger-custom:hover,
.btn-danger-custom:focus,
.btn-danger-custom:active {
    background-color: #e63939;
    color: #fff;
}

/* Активная кнопка "Отзывы на TopHotel" */
.top-hotels-active {
    background-color: #F0E68C;
    color: #000;
    border: none;
    width: 100%;
}
.top-hotels-active:hover,
.top-hotels-active:focus,
.top-hotels-active:active {
    background-color: #E3D57B;
    color: #000;
}

/* Активная кнопка "Отзывы на TripAdvisor" */
.trip-advisor-active {
    background-color: #3CB371;
    color: #fff;
    border: none;
    width: 100%;
}
.trip-advisor-active:hover,
.trip-advisor-active:focus,
.trip-advisor-active:active {
    background-color: #2E8B57;
    color: #fff;
}

/* Неактивные кнопки "Отзывы на TopHotel" и "TripAdvisor" */
.top-hotels-inactive,
.trip-advisor-inactive {
    background-color: #7C7B7B;
    color: #fff;
    border: none;
    width: 100%;
}
.top-hotels-inactive:hover,
.trip-advisor-inactive:hover,
.top-hotels-inactive:focus,
.trip-advisor-inactive:focus,
.top-hotels-inactive:active,
.trip-advisor-inactive:active {
    background-color: #6A6A6A;
    color: #fff;
}


.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
