* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

@font-face {
    font-family: 'Nunito';
    src: url('/assets/fonts/Nunito.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #333;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

[data-animated="true"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    will-change: opacity, transform;
}

[data-animated="true"].visible {
    opacity: 1;
    transform: translateY(0);
    animation: slideIn 0.5s ease-in-out forwards;
}

[data-animated="true"].hidden {
    opacity: 0;
    transform: translateY(30px);
    animation: slideOut 0.5s ease-in-out forwards;
}


img, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    margin: 0;
    font-weight: bold;
}

h1 {
    font-size: 2.5em;
    line-height: 1.2;
}

h2 {
    font-size: 2em;
    line-height: 1.3;
}

h3 {
    font-size: 1.5em;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: #007aff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0057b8;
}


header {
    position: relative;
    height: 100vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: #fff; 
    background: url('/assets/backgrounds/Bogolyubovo_Pokrova_on_Nerl.png') no-repeat center center/cover; 
    background-size: cover; 
    box-sizing: border-box;
    padding: 20px; 
}

header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}


header .content {
    position: relative;
    z-index: 2; 
    text-align: center; 
    padding: 20px;
}


header p {
    font-size: 1.5rem; 
    line-height: 1.8; 
    font-weight: 400; 
}


.content {
    padding: 20px;
    max-width: 900px; 
    width: 100%; 
    margin: 0 auto; 
}


button, .toggle-btn {
    background-color: #007aff; 
    color: white;
    border: none;
    border-radius: 12px; 
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


button:hover, .toggle-btn:hover {
    background-color: #0057b8; 
    transform: scale(1.05); 
}


button a, .toggle-btn a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}


a, button, .toggle-btn {
    transition: transform 0.3s ease-in-out;
}


a:active, button:active, .toggle-btn:active {
    background-color: #e0e0e0;
    transform: scale(0.98); 
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 150px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.highlight {
    color: #007aff;
    font-weight: bold;
}

.menu {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; 
    z-index: 1000;
    transform: translateX(-100%); 
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    border-radius: 16px; 
}


.menu.active {
    transform: translateX(0); 
}


.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle:hover {
    transform: scale(1.1); 
}


.hamburger-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before {
    top: -6px;
}

.hamburger-icon::after {
    top: 6px;
}


.menu.active .hamburger-icon {
    background: transparent;
}

.menu.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.menu li {
    border-bottom: 1px solid #ddd; 
    margin: 10px 0; 
}


.menu a {
    display: block;
    padding: 15px 20px;
    width: 80%; 
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    text-decoration: none;
    border-radius: 12px; 
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease-in-out;
    margin: 0 auto; 
}

.menu a:hover {
    background: #f0f0f0; 
}

.menu a:active {
    background: #e0e0e0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15); 
}


.arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}


.submenu {
    display: none; 
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    background-color: #f8f8f8; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;
}


.submenu li a {
    padding: 15px;
    font-size: 1rem;
    text-align: left;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background: #e8e8e8;
    color: #007aff; 
}


.has-submenu.open .submenu {
    display: block; 
    margin-top: 10px; 
}


.arrow {
    transition: transform 0.3s ease;
}


.has-submenu.open .arrow {
    transform: rotate(180deg); 
}


.submenu {
    display: none; 
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;
    background-color: #f8f8f8; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: left;
}


.submenu li a {
    padding: 15px;
    font-size: 1rem;
    text-align: left;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background: #e8e8e8;
    color: #007aff; 
}


.has-submenu.open .submenu {
    display: block; 
    margin-top: 10px; 
}


.arrow {
    transition: transform 0.3s ease;
}


.has-submenu.open .arrow {
    transform: rotate(180deg); 
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden; 
    background: rgba(0, 0, 0, 0.95); 
    color: #fff;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: height 0.5s ease; 
    box-sizing: border-box; 
    padding: 0 20px; 
}

nav.active {
    height: 70vh; 
    overflow: auto; 
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%; 
    text-align: center;
}

nav ul li {
    margin: 15px 0;
}

nav ul li a {
    color: #fff;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
    word-wrap: break-word; 
}

nav ul li a:hover {
    color: #ccc;
}


.section {
    padding: 60px 20px; 
    background-color: #f9f9f9; 
    border-radius: 20px; 
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); 
    max-width: 1200px; 
    margin: 40px auto; 
}


.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    text-transform: uppercase;
}

.tiles-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 800px;
    justify-content: center;
    align-items: center;
}

.tile-card {
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратная форма */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.tile-number {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    text-align: center;
    transition: opacity 0.3s ease;
}

.tile-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    color: #333;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    text-align: center;
    border-radius: 10px;
}

.tile-card.open .tile-content {
    transform: translateY(0);
}

.tile-card.open .tile-number {
    opacity: 0;
}

.tile-content h2 {
    font-size: 2em;
    margin-bottom: 8px;
}

.tile-content p {
    font-size: 12px;
    line-height: 1.2;
}

.tile-close-button {
    position: absolute;
    top: 4px;
    right: 4px;
    color: #007BFF;
    font-size: 16px !important;
    border: none;
    background: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease !important;
}

.tile-close-button:hover {
    transform: scale(1.2) !important;
    color: #0056b3 !important; 
    background: none !important;
}

.tile-close-button:focus {
    outline: none;
    box-shadow: none;
}

#tile.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#tile h2 {
    text-align: center;
    margin: 20px;
    font-size: 2.5em;
}

.section-description {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-title {
    width: 20%;
    vertical-align: top;
    padding: 10px;
}

.history-content {
    width: 80%;
    vertical-align: top;
    padding: 10px;
}


.attractions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.justify-text {
    text-align: justify;
}



.attraction-card {
    position: relative;
    width: 250px; 
    height: 187.5px; 
    background-size: cover; 
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease; 
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.attraction-card:hover {
    transform: scale(1.05); 
}


.attraction-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit; 
    filter: blur(0); 
    transition: filter 0.3s ease; 
    z-index: 1; 
}

.attraction-card:hover::before {
    filter: blur(2px); 
}


.card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3); 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    z-index: 2; 
    color: white;
    text-align: center;
    border-radius: 10px;
}

.attraction-card:hover .card-content {
    opacity: 1; 
}


.card-content h3 {
    margin: 0 0 10px;
    font-size: 16px;
}


.card-content p {
    font-size: 12px;
    margin: 0 0 10px;
}


.card-content a {
    font-size: 14px;
    color: #ffd700; 
    text-decoration: none;
    font-weight: bold;
}

.card-content a:hover {
    text-decoration: underline; 
}

.attraction-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.routes-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease;
}

.routes-section h2 {
    text-align: center;
}


.route-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    flex-direction: column;
}

.timeline-container {
    display: block; 
    max-height: none; 
    overflow: visible; 
}

.timeline-item {
    display: flex; 
    justify-content: flex-start; 
    margin-bottom: 20px; 
    position: relative;
    width: 100%;
}


.route-title {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}


.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: 100%;
    height: 120px; 
    position: relative;
}


.timeline-item:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
}


.timeline-item .content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 10px;
    font-size: 1rem;
}


.timeline-item .content .city {
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-item .content .description {
    font-size: 0.9em;
    color: #555;
    line-height: 1.4; 
    overflow: hidden;
    text-overflow: ellipsis; 
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; 
    height: auto; 
}


.line {
    height: 1px;
    background-color: #ddd;
    margin-left: 15px;
}


.dots-container {
    text-align: center;
    margin-top: 20px;
    position: relative;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 8px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: #007aff;
}


.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

.carousel-controls button {
    background-color: #007aff;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

.carousel-controls button:hover {
    background-color: #005bb5;
}


.info-cards {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 280px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: scale(1.05);
}

.info-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.info-card ul {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.info {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}


.info h3 {
    font-size: 1.8em;
    color: #000; 
    margin-bottom: 10px;
}


.toggle-btn {
    background-color: transparent;
    color: #000; 
    border: 2px solid #000; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 10px 0;
    display: inline-block;
    text-align: center;
}

.toggle-btn:hover {
    background-color: #000; 
    color: #fff; 
    transform: scale(1.1); 
}

.toggle-btn:focus {
    outline: none;
}


.info-list {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin-top: 20px;
    text-align: left;
}


.info-list.open {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}


.info-list {
    display: none;
    list-style-type: none;
    padding-left: 20px;
    margin-top: 20px;
    text-align: left;
}


.info-list.open {
    display: block;
    animation: slideDown 0.3s ease-in-out;
}


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

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 75%;
    margin: auto;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#modal-img {
    width: 45%;
    height: auto;
    border-radius: 10px;
}

#modal-caption {
    margin-top: 15px;
}

#modal-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: white;
}

#modal-description {
    color: white;
}

#modal-text {
    font-size: 1.1em;
    color: #ffffff;
}

.prev, .next {
    position: absolute;
    top: 50%;
    color: white;
    border: none;
    font-size: 40px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: transparent !important;
    border: none !important;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

body.modal-open {
    overflow: hidden;
}

#map {
    height: 70vh; 
    width: 95%; 
    margin-top: 10px; 
}

#map-section {
    padding: 40px 20px;
    background-color: #f9f9f9; 
    border-radius: 20px; 
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1); 
    text-align: center;
    max-width: 1200px;
    margin: 40px auto;
}


#controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}


.category {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #333;
}


.category-name {
    font-weight: bold;
    font-size: 1.2rem;
}


.prices {
    display: flex;
    gap: 10px;
}

.prices label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.prices input[type="radio"] {
    cursor: pointer;
    transform: scale(1.2);
}


input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.no-price .category-name {
    font-style: italic;
    color: #888;
}

.filter-table th {
    text-align: center;
    font-size: 1rem;
    color: #555;
    font-weight: bold;
    padding: 10px;
    background-color: #f1f1f1;
    border-bottom: 2px solid #ddd;
}


.filter-table td {
    text-align: center;
}


.filter-table td:first-child {
    text-align: left;
    font-weight: bold;
    color: #333;
}

.navigation-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation-button:hover {
    background-color: #005bb5;
    transform: scale(1.1);
}

.location-icon .pulse {
    width: 25px; 
    height: 25px;
    background: red; 
    border: 3px solid white; 
    border-radius: 50%; 
    position: relative;
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1); 
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6); 
}


#location-checkbox:checked {
    border: 2px solid green; 
    background-color: #d4edda; 
}

#location-checkbox:not(:checked) {
    border: 2px solid red; 
    background-color: #f8d7da; 
}

#location-checkbox:disabled {
    background-color: #e2e3e5; 
    border: 2px solid #d6d8db; 
}



@keyframes pulse {
    0% {
        transform: scale(1); 
        opacity: 1;
    }
    50% {
        transform: scale(1.3); 
        opacity: 1;
    }
    100% {
        transform: scale(1); 
        opacity: 1;
    }
}






.no-radio {
    text-align: center;
    font-style: italic;
    color: #888;
}

  .popup {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333333;
    font-family: Arial, sans-serif;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0);
    opacity: 0;
  }

  .popup.open {
    transform: scale(1);
    opacity: 1;
  }

  .popup h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: bold;
    color: #333333;
  }

  .popup p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
  }

footer {
    text-align: center;
    padding: 20px 0;
    background: #f5f5f5;
    color: #000;
}

.gastronomic,
.touristic,
.souvenir,
.museum,
.hotel,
.cultural,
.natural,
.mythical {
    font-weight: 500; 
    padding-left: 24px; 
    position: relative;
    display: inline-block;
    color: #333; 
    transition: color 0.3s ease; 
    cursor: pointer;
    font-size: 1rem; 
}


.gastronomic::before,
.touristic::before,
.souvenir::before,
.museum::before,
.hotel::before,
.cultural::before,
.natural::before,
.mythical::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: transparent; 
    border-radius: 50%; 
    transition: background-color 0.3s ease; 
}


.gastronomic {
    color: #FF6347; 
}

.touristic {
    color: #1E90FF; 
}

.souvenir {
    color: #FFA500; 
}

.museum {
    color: #800020; 
}

.hotel {
    color: #FFD700; 
}

.cultural {
    color: #8B4513; 
}

.natural {
    color: #228B22; 
}

.mythical {
    color: #9400D3; 
}


.gastronomic,
.touristic,
.souvenir,
.museum,
.hotel,
.cultural,
.natural,
.mythical {
    font-weight: 500;
    padding-left: 24px; 
    position: relative;
    display: inline-block;
    color: #333; 
    transition: color 0.3s ease; 
    font-size: 1rem; 
}


.gastronomic:hover,
.touristic:hover,
.souvenir:hover,
.museum:hover,
.hotel:hover,
.cultural:hover,
.natural:hover,
.mythical:hover {
    color: #007aff; 
}


.gastronomic:hover::before {
    background-color: #FF6347; 
}

.touristic:hover::before {
    background-color: #1E90FF; 
}

.souvenir:hover::before {
    background-color: #FFA500; 
}

.museum:hover::before {
    background-color: #800020; 
}

.hotel:hover::before {
    background-color: #FFD700; 
}

.cultural:hover::before {
    background-color: #8B4513; 
}

.natural:hover::before {
    background-color: #228B22; 
}

.mythical:hover::before {
    background-color: #9400D3; 
}

.price {
    font-weight: bold; 
    font-size: 1.2em; 
    margin-right: 10px; 
    color: #333; 
    transition: color 0.3s ease; 
}


.price:nth-child(1) {
    color: #FF6347; 
}

.price:nth-child(2) {
    color: #FFA500; 
}

.price:nth-child(3) {
    color: #FFD700; 
}


.price:hover {
    color: #007aff; 
    cursor: pointer; 
}


.divider {
    border-top: 2px solid #000; 
    margin: 10px 0;
}


@media (min-width: 1280px) {
    nav {
        height: 0; 
    }

    nav.active {
        height: 100vh; 
    }
}

@media (max-width: 1024px) {
    .header h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 40px 15px;
    }
}


@media (min-width: 769px) {
    .has-submenu {
        position: relative;
    }

    .has-submenu .submenu {
        position: absolute; 
        top: 100%; 
        left: 0; 
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        width: 200px; 
        z-index: 1000; 
    }

    
    .has-submenu:hover .submenu {
        display: block;
        max-height: 500px; 
        opacity: 1;
    }

    
    .has-submenu:hover .arrow {
        transform: rotate(180deg);
    }

    
    .submenu li a {
        padding: 10px 15px;
        color: #000;
        background-color: #fff;
    }

    .submenu li a:hover {
        background-color: #f0f0f0;
        color: #007BFF;
    }
}



@media (max-width: 768px) {
    .section h1 {
        font-size: 1.8em; 
    }

    .section h2 {
        font-size: 1.6em; 
    }

    .section h3 {
        font-size: 1.4em; 
    }
    .menu {
        z-index: 9999;
        width: 100%;
        height: 100vh; 
        background-color: #ffffff; 
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        padding: 20px 0;
        overflow-y: auto;
    }

    
    .menu.active {
        transform: translateX(0);
        height: 100vh;
    }
  
    .menu a {
        display: block;
        width: 90%; 
        padding: 18px;
        margin: 10px 0;
        font-size: 1.2rem;
        font-weight: 600;
        text-align: center;
        color: #333;
        text-decoration: none;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
        margin: 0 auto; 
    }

    .menu a:hover {
        background: #f0f0f0;
    }

    
    .arrow {
        transition: transform 0.3s ease;
    }

    
    .submenu li a {
        padding: 12px;
        font-size: 1rem;
    }

    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 360px;
    }

    
    .has-submenu.open .submenu {
        display: block; 
        margin-top: 10px;
    }

    .has-submenu .arrow {
        transform: rotate(0);
    }

    .has-submenu.open .arrow {
        transform: rotate(180deg); 
    }

    
    #map {
        height: 50vh; 
        width: 90%; 
        max-width: 600px; 
        margin: 0 auto; 
        border-radius: 12px; 
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    }

    #controls {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; 
        gap: 10px; 
        padding: 10px;
        width: 90%; 
        max-width: 600px; 
        margin: 0 auto; 
    
    
    }

    #controls label {
        font-size: 12px;
        line-height: 1.5;
        flex: 1 1 calc(50% - 10px);
        display: flex;
        align-items: center;
        gap: 5px;
        white-space: nowrap; 
    }
    

    #controls label input {
        margin-right: 5px;
    }

    header p {
        font-size: 1.2rem;
    }

    .menu-toggle {
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .content h1 {
        font-size: 2.2rem;
    }

    .tiles-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #tile h2 {
        font-size: 2em;
        line-height: 1.3;
        font-weight: bold;
        text-align: center;
    }

    .tile-card {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .history table {
        width: 95%; 
        border-spacing: 10px; 
    }

    .history td {
        display: block; 
        width: 95%; 
        margin-bottom: 20px; 
    }

    .history h3 {
        font-size: 1.2rem; 
    }

    .history p {
        font-size: 1rem; 
        line-height: 1.6; 
    }

    .history td:nth-child(1) {
        width: 95%; 
        padding-right: 0; 
    }

    .history td:nth-child(2) {
        width: 95%; 
    }
    .card-content p { 
        font-size: 1.2em; 
        margin: 0; 
    } 
    .card-content h3 { 
        font-size: 1.4em;
    }
    
    .card-content a { 
        font-size: 1.2em; 
        margin-top: 5px;
    }

    .attractions {
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }

    .attraction-card {
        height: 180px; 
        font-size: 0.7rem;
        padding-bottom: 75%; 
    }

    .routes-section {
        padding: 20px 10px;
    }

    .timeline-container {
        flex-direction: column; 
        align-items: center; 
    }

    .timeline-item {
        flex-direction: column; 
        height: auto; 
        padding: 10px; 
    }

    .timeline-item .content {
        text-align: center; 
        padding: 0; 
    }

    .carousel-controls button {
        font-size: 0.9rem; 
        padding: 8px 12px; 
    }

    .dots-container {
        margin-top: 15px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 5px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    #modal-img {
        width: 70%;
    }

    .modal-content {
        max-width: 90%;
        padding: 10px;
    }

    #modal-title {
        font-size: 1.2em;
    }

    #modal-description {
        font-size: 0.9em;
    }

    .prev, .next {
        font-size: 30px;
        width: 25px;
        height: 25px;
    }

    .gallery-item img {
        transition: transform 0.2s ease;
    }

    .section h2 {
        font-size: 2em;
    }

    .info {
        padding: 15px;
    }

    .info h3 {
        font-size: 1.5em;
    }

    .toggle-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
    }

    .gastronomic::before,
    .touristic::before,
    .historical::before,
    .hotel::before,
    .natural::before,
    .mythical::before {
        background-color: inherit; 
    }
    .modal-content {
        width: 90%;  
        height: 70%; 
    }

    
    .modal-content img {
        max-height: 60%;  
    }

    
    #modal-caption {
        font-size: 1rem;  
    }

    
    .modal-nav {
        font-size: 28px; 
        width: 35px;
        height: 35px;
    }

    
    .close-btn {
        font-size: 1.5rem; 
        top: 15px;
        right: 15px;
    }

    
    .modal-nav-container {
        padding: 0 10%;  
    }
}

@media (max-width: 480px) {
    #map {
        height: 40vh;
        width: 40vh;
        width: 90%; 
    }

    #controls {
        flex-direction: column;
        gap: 5px;
        width: 90%; 
    }

    #controls label {
        flex: 1 1 100%; 
    }
    .header h1 {
        font-size: 1.6rem; 
    }

    .attraction-card {
        height: 120px; 
    }

    header p {
        font-size: 1rem;
    }

    .menu-toggle {
        right: 10px; 
        padding: 8px 12px; 
        font-size: 0.9rem; 
    }

    nav ul li a {
        font-size: 1.2rem; 
    }

    .section h2 {
        font-size: 1.8rem;
    }

    .attractions {
        grid-template-columns: repeat(2, 1fr);
    }
}
