/* General Reset & Typography */
:root {
    --brand-blue: #003399;
    --brand-yellow: #ffea00;
    --brand-red: #d32f2f;
    --text-dark: #333;
    --text-light: #fff;
    --nav-link-hover: #001a4d; /* A darker shade of blue for hover effect */
    scroll-behavior: smooth;
    scroll-timeline-name: --page;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600&display=swap');

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    background-color: #f7f8fb;
}

a { text-decoration: none; color: inherit; }
ul { list-style-type: disc; padding-left: 20px; }

/* Header & Navigation */
header {
    background-color: var(--brand-yellow);
    padding: 10px 0;
    text-align: center; /* This centers the .container */
    position: relative; /* Establish stacking context */
    z-index: 2; /* Ensure header is on top of the nav bar */
}

.top-bar {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--brand-blue);
    display: flex;
    justify-content: center; /* Default center for desktop */
    align-items: center;
    gap: 8px; /* Space between links and text */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    padding: 0 20px; /* Add horizontal padding directly to top-bar, instead of inherited from .container */
}

.top-bar .top-bar-content {
    /* For desktop, it should just be part of the centered content */
    /* No specific styles needed here for desktop, it will just flex naturally */
}

nav.site-nav {
    background-color: var(--brand-blue);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative; /* Needed for z-index and absolute positioning of children */
    z-index: 1; /* Ensure nav is below the header */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover { color: var(--brand-yellow); }

.nav-toggle {
    display: none; /* Hidden by default for desktop */
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--brand-yellow); /* Change border color to yellow */
    border-radius: 12px;
    padding: 8px 10px;
    cursor: pointer;
    z-index: 101; /* Ensure toggle is above the menu */
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--brand-blue);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition */
}

/* Morph to 'X' when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .top-bar {
        position: relative; /* Establish a positioning context */
        justify-content: center; /* Center the text content */
        padding: 10px 20px; /* Consistent padding for mobile top bar */
    }

    .top-bar .top-bar-content {
        flex-grow: 0; /* Reset flex-grow */
        text-align: center; /* Ensure text is centered */
    }

    .nav-toggle {
        display: inline-flex; /* Show on mobile */
        position: absolute; /* Position it relative to the top-bar */
        right: 20px; /* Align to the right */
        top: 50%; /* Vertically center */
        transform: translateY(-50%); /* Fine-tune vertical centering */
    }

    nav.site-nav {
        display: none;
    }
}

/* Hero Section */
.hero {
    background-color: var(--brand-blue);
    color: white;
    padding: 60px 20px 140px;
    text-align: center;
}

.hero h1 {
    color: var(--brand-yellow);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.hero h2 { font-size: 1.5rem; font-weight: normal; }

.hero-seo-copy {
    max-width: 820px;
    margin: 35px auto 0;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.95);
}

.hero-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-banner {
    width: 100%;
    height: min(85vh, 780px);
    min-height: 520px;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(180deg, rgba(0,51,153,0.95), rgba(0,51,153,0));
    z-index: 3;
    pointer-events: none;
}

.hero-banner-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s linear;
    z-index: 1;
    transform: scale(1) translate(0, 0);
}

.hero-banner-layer.is-hidden {
    opacity: 0;
}

.hero-banner-layer.pan-down-right {
    animation: hero-pan-down-right 40s linear infinite;
}

.hero-banner-layer.pan-up-right {
    animation: hero-pan-up-right 40s linear infinite;
}

.hero-banner-layer.pan-down-left {
    animation: hero-pan-down-left 40s linear infinite;
}

.hero-banner-layer.pan-up-left {
    animation: hero-pan-up-left 40s linear infinite;
}

@keyframes hero-pan-down-right {
    0% { transform: scale(1.1) translate(-30px, -20px); }
    100% { transform: scale(1.3) translate(40px, 30px); }
}

@keyframes hero-pan-up-right {
    0% { transform: scale(1.1) translate(-30px, 20px); }
    100% { transform: scale(1.3) translate(40px, -30px); }
}

@keyframes hero-pan-down-left {
    0% { transform: scale(1.1) translate(30px, -20px); }
    100% { transform: scale(1.3) translate(-40px, 30px); }
}

@keyframes hero-pan-up-left {
    0% { transform: scale(1.1) translate(30px, 20px); }
    100% { transform: scale(1.3) translate(-40px, -30px); }
}

/* Common Containers */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 10px 20px;
    font-weight: bold;
    border: 2px dashed var(--brand-blue);
    margin: 10px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-hero {
    background-color: transparent;
    color: var(--brand-yellow);
    border-color: var(--brand-yellow);
}

.btn-hero:hover {
    background-color: var(--brand-yellow);
    color: var(--brand-blue);
}
.inclusions {
    background-color: #333;
    color: white;
    padding: 40px 20px;
}

.inclusions h3 { color: var(--brand-yellow); }
.inclusions li { margin-bottom: 8px; }

/* Tour Cards (Homepage) */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.tour-card {
    border: none;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: white;
    color: var(--text-dark);
    position: relative;
}

.tour-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

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

.tour-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

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

.tour-card-content { padding: 20px; }
.tour-card h3 { color: var(--brand-blue); margin-top: 0; }
.tour-card .btn {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.tour-card-title-link {
    color: inherit;
}
.tour-card-title-link:hover {
    color: #4a8ae8;
}
.tour-highlight { color: var(--brand-yellow); background: var(--brand-blue); padding: 2px 5px; font-size: 0.8rem; }

.contact-banner {
    width: 100vw;
    height: clamp(560px, 80vh, 900px);
    margin: 0;
    margin-left: calc(50% - 50vw);
    background-image: var(--banner-image, url('https://placehold.co/1600x500/003399/ffffff?text=Hoian+Aodai+Ridertour'));
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.contact-banner::before,
.contact-banner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 1;
    pointer-events: none;
}

.contact-banner::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0,51,153,0.95), rgba(0,51,153,0));
}

.contact-banner::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,51,153,0.95), rgba(0,51,153,0));
}

.contact-info {
    text-align: center;
    margin: 0 auto;
}

.contact-info-home {
    color: var(--text-light);
    padding: 20px 0 40px;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.blue-band {
    background-color: var(--brand-blue);
    color: var(--text-light);
    width: 100vw;
    margin: 0;
    margin-left: calc(50% - 50vw);
    padding: 60px 0 80px;
}

.blue-band--tours {
    padding: 80px 0 110px;
}

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

.tours-heading {
    color: var(--brand-yellow);
    text-align: center;
    margin: 0 0 40px;
    letter-spacing: 0.08em;
}

.contact-card {
    background-color: var(--brand-yellow);
    border: 3px dashed var(--brand-blue);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1 1 360px;
    max-width: 480px;
    box-sizing: border-box;
}

.contact-card h3 {
    margin-top: 0;
    color: var(--brand-blue);
}

.contact-card p {
    margin: 6px 0;
    color: var(--brand-blue);
}

.contact-card a {
    color: var(--brand-blue);
    font-weight: bold;
}

.contact-card-logos {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
}

.logo-whatsapp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.logo-whatsapp-row a {
    color: var(--brand-blue);
}

.contact-card-logos img {
    width: 160px;
    height: auto;
    object-fit: contain;
}

.contact-card-logos .logo-whatsapp {
    width: 40px;
    height: 40px;
}

.map-embed {
    margin-top: 16px;
    border: 2px solid var(--brand-blue);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.map-embed iframe {
    width: 100%;
    height: 240px;
    border: 0;
    display: block;
}

.booking-form {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 25px;
    max-width: 420px;
    flex: 1 1 420px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.booking-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.4);
    background-color: rgba(255,255,255,0.15);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.booking-form select {
    color: var(--text-dark);
    background-color: #fff;
    border-color: transparent;
}

.booking-form textarea {
    resize: vertical;
}

.booking-form .booking-submit {
    width: 100%;
    margin: auto 0 0;
    cursor: pointer;
}

/* Tour Detail Page Specifics */
.tour-header {
    background-color: var(--brand-blue);
    color: var(--brand-yellow);
    padding: 30px;
    text-align: center;
}

.tour-page-banner {
    width: 100vw;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-left: calc(50% - 50vw);
}

.tour-page-banner::before,
.tour-page-banner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
    pointer-events: none;
}

.tour-page-banner::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0,51,153,0.9), rgba(0,51,153,0));
}

.tour-page-banner::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,51,153,0.9), rgba(0,51,153,0));
}

.tour-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.price-bar {
    background-color: var(--brand-blue);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

.hearts {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.hearts span {
    color: var(--brand-yellow);
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Contact & Footer */
.contact-section {
    background-color: white;
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    border-radius: 26px;
    border: none;
    max-width: 650px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

footer {
    background-color: var(--brand-blue);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.home-footer {
    background-color: #333333;
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin-top: 0;
}

.testimonials {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    position: relative;
}

.testimonials-on-blue {
    color: var(--text-light);
}

.testimonials-on-blue .social-icon svg {
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 30px 0;
}

.social-icon svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.2));
}

.testimonial-rotator {
    position: relative;
    min-height: 140px;
}

.testimonial-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 760px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.testimonial-item blockquote {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.testimonial-item figcaption {
    font-style: normal;
    font-weight: 600;
}

.testimonial-item.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.testimonial-rotator:not(.has-js) .testimonial-item {
    position: static;
    opacity: 1;
}

/* Tour Page Specific Body Style */
.tour-page-body {
    background-color: var(--brand-blue);
    color: var(--text-light);
}

.tour-page-body h3 {
    color: var(--brand-yellow);
}

.tour-page-body .tour-card h3 {
    color: var(--brand-blue);
}

.tour-highlight-box {
    background-color: #0c4fb0;
    border: none;
    padding: 36px 30px;
    border-radius: 26px;
    color: var(--text-light);
    box-shadow: 0 20px 40px rgba(0,0,0,0.22);
    position: relative;
    z-index: 3;
    margin-bottom: 40px;
}

.tour-highlight-box h3 {
    color: var(--brand-yellow);
}

.tour-highlight-box p,
.tour-highlight-box li {
    color: var(--text-light);
}

.tour-highlight-box .price-bar {
    background-color: var(--brand-yellow);
    color: var(--brand-blue);
    border-radius: 18px;
}

.tour-inclusions-box {
    background-color: #0040ab;
    border: none;
    padding: 24px;
    border-radius: 26px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.tour-inclusions-box h3 {
    color: var(--brand-yellow);
}

.tour-inclusions-box li {
    color: var(--text-light);
}

.tour-experience-banner {
    border-radius: 0;
    margin-top: -120px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    aspect-ratio: 16 / 9;
    background-image: var(--banner-image, url('https://placehold.co/1600x900?text=Hoian+Aodai+Ridertour'));
    background-size: cover;
    background-position: center;
}

.tour-experience-banner::before,
.tour-experience-banner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

.tour-experience-banner::before {
    top: 0;
    background: linear-gradient(180deg, rgba(0,51,153,0.9), rgba(0,51,153,0));
}

.tour-experience-banner::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,51,153,0.9), rgba(0,51,153,0));
}

.tour-banner-quote {
    margin: 0 auto;
    padding: 30px 20px;
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    font-style: italic;
    max-width: 900px;
}

.tour-banner-quote span {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    color: var(--brand-yellow);
}

.circle-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 25px 45px rgba(0,0,0,0.35);
}

.tour-page-body .price-bar {
    background-color: var(--brand-yellow);
    color: var(--brand-blue);
}

#more-tours h2 {
    color: var(--brand-yellow);
    text-align: center;
    margin-top: 40px;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .tour-details-grid {
        grid-template-columns: 1fr;
    }

    .tour-highlight-box {
        margin-bottom: 20px;
        z-index: 3;
    }

    .tour-inclusions-box {
        z-index: 3;
    }

    .tour-experience-banner {
        margin-top: 20px;
        aspect-ratio: 16 / 9;
        overflow: visible;
    }

    .tour-banner-quote {
        position: static;
        transform: none;
        background-color: white;
        color: var(--text-dark);
        border-radius: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        font-size: 1rem;
        max-width: 100%;
        margin: 20px auto 0;
        width: calc(100% - 40px);
        padding: 20px;
    }

    .tour-banner-quote span {
        color: var(--brand-blue);
    }

    .contact-banner {
        height: 260px;
    }

    .hero-banner {
        height: 520px;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2rem; /* Make h1 smaller on mobile */
    }

    .hero h1 .mobile-line-break {
        display: block;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero h2 .mobile-line-break-2,
    .hero h2 .mobile-line-break-3 {
        display: block;
    }

    .tour-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
.tour-grid--related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.tour-grid--related .tour-card img {
    height: 200px;
}
:root {
    --brand-blue: #003399;
    --brand-yellow: #ffea00;
    --brand-red: #d32f2f;
    --text-dark: #333;
    --text-light: #fff;
:root {
    scroll-behavior: smooth;
}





.people-row {
    display: flex;
    flex-direction: column;
}

.people-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.people-counter input {
    width: 70px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.people-btn {
    padding: 8px 14px;
    font-size: 20px;
    background: #C6484E;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.people-btn:hover {
    opacity: 0.85;
}


















/* Fix whitespace on all screens */
.hero-banner-layer {
    transform-origin: center;
}

/* Stronger zoom on mobile to cover large translates */
@media (max-width: 768px) {
    .hero-banner-layer {
        transform: scale(1.4) !important;
    }
}

/* For animations, increase minimum scale */
@keyframes hero-pan-down-right {
    0% { transform: scale(1.25) translate(-30px, -20px); }
    100% { transform: scale(1.45) translate(40px, 30px); }
}

@keyframes hero-pan-up-right {
    0% { transform: scale(1.25) translate(-30px, 20px); }
    100% { transform: scale(1.45) translate(40px, -30px); }
}

@keyframes hero-pan-down-left {
    0% { transform: scale(1.25) translate(30px, -20px); }
    100% { transform: scale(1.45) translate(-40px, 30px); }
}

@keyframes hero-pan-up-left {
    0% { transform: scale(1.25) translate(30px, 20px); }
    100% { transform: scale(1.45) translate(-40px, -30px); }
}
