:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-bg: #f0f7ff;
    --secondary-text: #4b5563;
    --accent-blue: #0056b3;
    --light-blue: #e3f2fd;
    --dark-footer-bg: #111827;
    --dark-footer-text: #f9fafb;
    --button-color: #0056b3;
    --button-text: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--primary-text);
    background-color: var(--primary-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease-in-out;
}

a:hover,
a:focus {
    text-decoration: none;
    color: var(--accent-blue);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-speed) ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input,
select,
textarea {
    font-family: inherit;
}

.btn-primary {
    background-color: var(--button-color);
    color: var(--button-text);
    border-radius: 0.375rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: calc(1.3rem + 1vw);
    }

    h3 {
        font-size: calc(1.1rem + 0.5vw);
    }

    .mobile-text-break {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
}

/* ===== header ===== */
#header {
    width: 100%;
    position: relative;
    z-index: 1000;
}

.nav-link:hover {
    color: var(--accent-blue) !important;
}

.js-mobile-menu-overlay {
    transition: opacity 0.3s ease;
}

/* ===== hero_section ===== */
.hero-section {
    color: var(--primary-bg);
}

.transition-all {
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.transition-all:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.opacity-90 {
    opacity: 0.9;
}

#hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#hero .badge {
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== about_company ===== */
.about-section {
    width: 100%;
    overflow: hidden;
}

.about-section img {
    transition: transform 0.5s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

.about-section .btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ===== destination_info ===== */
.js-destination-content {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.js-destination-content.visible {
    opacity: 1;
    transform: translateX(0);
}

#destination img {
    width: 100%;
    height: 100%;
}

/* ===== ticket_catalog ===== */
.js-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.js-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.js-date-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.1);
}

/* ===== price_includes ===== */
#inclusions {
    width: 100%;
}

.inclusion-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inclusion-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cartAddBtn:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* ===== trip_program ===== */
#itinerary {
    width: 100%;
    overflow: hidden;
}

.itinerary-line {
    width: 4px;
}

.js-timeline-item {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.js-timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 767.98px) {
    .js-timeline-item {
        transform: translateY(20px);
    }

    .js-timeline-item.show {
        transform: translateY(0);
    }

    .itinerary-line {
        left: 19px;
    }
}

/* ===== purchase_benefits ===== */
#advantages {
    width: 100%
}

#advantages .js-benefit-card {
    transition: all .3s ease;
    border: 1px solid transparent
}

#advantages .js-benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--light-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .05)
}

#advantages svg {
    width: 100%;
    height: 100%
}

/* ===== route_map ===== */
#map .route-map-wrapper {
    transition: transform 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#map .route-map-wrapper img {
    object-fit: cover;
}

#map .rounded-circle {
    transition: background-color 0.3s ease;
}

/* ===== train_schedule ===== */
#schedule {
    background-color: var(--primary-bg);
}

#schedule .table-responsive {
    width: 100%;
    border-radius: 0.5rem;
}

#schedule table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

#schedule th {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    font-weight: 600;
    border-bottom: 2px solid var(--light-blue);
}

#schedule td {
    color: var(--secondary-text);
    border-bottom: 1px solid var(--light-blue);
}

#schedule .cartAddBtn {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#schedule .cartAddBtn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* ===== target_audience ===== */
#audience .js-audience-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 86, 179, 0.05);
}

#audience .js-audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.075) !important;
}

/* ===== photo_gallery ===== */
.js-gallery-container {
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    position: relative;
}

.js-gallery-img {
    width: 100%;
    height: auto;
    min-height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== faq_section ===== */
#faq .accordion-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1)
}

#faq .accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center
}

#faq .accordion-button::after {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    transform: rotate(45deg);
    transition: transform 0.3s;
    background-image: none
}

#faq .accordion-button:not(.collapsed) {
    color: var(--accent-blue) !important;
    background-color: var(--light-blue) !important
}

#faq .accordion-button:not(.collapsed)::after {
    transform: rotate(-135deg)
}

#faq .accordion-body {
    padding: 1.25rem;
    line-height: 1.6;
    border-top: 1px solid var(--light-blue)
}

/* ===== client_reviews ===== */
#reviews .review-card {
    transition: transform 0.3s ease-in-out;
    border: none;
}

#reviews .review-card:hover {
    transform: translateY(-8px);
}

#reviews .star-icon {
    flex-shrink: 0;
}

/* ===== shopping_cart ===== */
#cart {
    width: 100%;
}

.js-cart-items-list {
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.js-cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.js-cart-items-list::-webkit-scrollbar-thumb {
    background-color: var(--light-blue);
    border-radius: 10px;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.form-control:focus {
    background-color: var(--light-blue);
    border-color: var(--accent-blue);
    box-shadow: none;
}

/* ===== footer ===== */
#footer .footer-link {
    color: var(--dark-footer-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

#footer .footer-link:hover {
    opacity: 1;
    color: var(--accent-blue);
    padding-left: 4px;
}

#footer hr {
    opacity: 0.1;
}

@media (max-width: 767px){
    #itinerary{
        .position-relative.ps-4.ps-md-5{
            padding-left: 40px !important;
        }
    }
}