a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-size: 26px;
}

h2 {
    font-size: 22px;
}

header {
    background-color: #0abab5;
    padding: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#header-title {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}
#header-after-title {
    font-size: 17px;
    margin-bottom: 10px;
}

.container.hero {
    flex: 1;
    padding: 50px 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tv-search-form {
    position: relative;
    min-height: 400px;
}

.tv-search-form::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 256px;
    height: 256px;
    background-image: url('/assets/loading-air.gif');
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.8;
    z-index: 10;
    display: block;
}
.tv-search-form.tv-loaded::before {
    background-image: none;
}

.content {
    margin: 0 auto;
    text-align: left;
    padding: 50px 20px
}

.content h1 {
    text-align: center;
}

footer {
    background-color: #0abab5;
    padding: 20px;
    color: white;
    text-align: center;
    margin-top: auto;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 5px 0;
}

footer .small {
    font-size: 10px;
    margin: 20px 0 0 0;
}

a.button {
    background-color: #fff;
    color: #11a6a2;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.button:hover {
    background-color: #0abab5;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    color: #555;
}

.container a {
    color: #0abab5;
}

.tourvisor {
    max-width: 100%;
    margin: 0 0 40px 0;
    padding: 0 20px;
}

.gallery {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-left {
    flex: 1;
    min-width: 280px;
    max-width: 40%;
}

.gallery-left .main-image {
    width: 100%;
    cursor: zoom-in;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.thumbnails {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.thumbnails img:hover {
    border-color: #0077cc;
}

.gallery-right {
    flex: 2;
    min-width: 280px;
    vertical-align: text-top;
    padding: 0 15px;
}

.gallery-right p:first-child {
    margin-top: 0;
}

.gallery-right h2 {
    margin-top: 0;
}

a.book-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    /*border: 1px solid #e05500;*/
}

a.book-button:hover {
    background-color: #e05500;
}

/* Модальное окно */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-out;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    border: 5px solid white;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}



.gallery {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-left {
    flex: 1;
    min-width: 280px;
    max-width: 40%;
}

.gallery-left .main-image {
    width: 100%;
    cursor: zoom-in;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.thumbnails {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnails img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.thumbnails img:hover {
    border-color: #0077cc;
}

.gallery-right {
    flex: 2;
    min-width: 280px;
    vertical-align: text-top;
    padding: 0 15px;
}
.gallery-right p:first-child {
    margin-top: 0;
}
.gallery-right h2 {
    margin-top: 0;
}

a.book-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /*border: 1px solid #e05500;*/
}

a.book-button:hover {
    background-color: #e05500;
}

/* Модальное окно */
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    cursor: zoom-out;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    border: 5px solid white;
}

#close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Menu */

/* Шапка */
.navbar {
    background-color: #0abab5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем всё по горизонтали */
    padding: 0.5em 1em;
    position: relative;
    z-index: 1000;
}

/* Десктоп меню */
.desktop-menu {
    display: flex;
    gap: 1em;
    justify-content: center;
}

.desktop-menu li {
    list-style: none;
}

.desktop-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5em 1em;
    transition: background 0.3s;
    border-radius: 4px;
}

.desktop-menu a:hover {
    background-color: #11A6A2FF;
}

/* Бургер кнопка */
.menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-btn div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease;
}

/* Активная бургер-кнопка */
.menu-btn.toggle div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-btn.toggle div:nth-child(2) {
    opacity: 0;
}
.menu-btn.toggle div:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Мобильное меню */
.mobile-menu {
    position: absolute;
    top: 33px;
    left: 0;
    width: 100%;
    background-color: #0abab5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
}

.mobile-menu li {
    list-style: none;
}

.mobile-menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1em;
    transition: background 0.3s;
}

.mobile-menu a:hover {
    background-color: #11A6A2FF;
}

.mobile-menu.active {
    max-height: 300px; /* высота зависит от количества пунктов */
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 998;
}

@media (max-width: 768px) {
    .gallery {
        flex-direction: column;
    }

    .gallery-left,
    .gallery-right {
        max-width: 100%;
        padding: 0;
    }

    .thumbnails img {
        width: 50px;
        height: 40px;
    }

    /* Menu */
    .desktop-menu {
        display: none;
    }

    .menu-btn {
        display: flex;
    }
    .navbar {
        justify-content: left;
    }
}

@media (max-width: 480px) {
    .book-button {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
    }

    .thumbnails img {
        width: 45px;
        height: 35px;
    }
}
