html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --gold: #c9a646;
    --emerald: #0f3d36;
    --sand: #f7f4ef;
    --charcoal: #121212;
}

/* Tour header green background – match Kandy/Home */
.tour-header {
    background: rgba(15, 61, 54, 0.95) !important;
    border-bottom: 1px solid rgba(201, 166, 70, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tour-header .logo-name,
.tour-header .main-nav a:not(.nav-book-btn) {
    color: #fff !important;
}

.tour-header .logo-tagline {
    color: rgba(201, 166, 70, 0.9) !important;
}

.tour-header .menu-toggle {
    color: #fff;
}

@media (max-width: 992px) {
    .tour-header .menu-toggle {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1002;
        color: #fff;
        background: rgba(201, 166, 70, 0.2) !important;
        border: 1px solid rgba(201, 166, 70, 0.5) !important;
    }

    .tour-header .main-nav {
        background: rgba(15, 61, 54, 0.98);
    }

    .tour-header .main-nav a:not(.mobile-logo):not(.nav-book-btn) {
        color: #fff;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growX {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.fade-up {
    animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.grow-x {
    transform-origin: left;
    animation: growX 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Hero section */
.colombo-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0;
    margin-top: 0;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

@media (min-width: 640px) {
    .colombo-hero {
        min-height: 38vh;
    }
}

@media (min-width: 768px) {
    .colombo-hero {
        min-height: 42vh;
    }
}

/* Hero background image */
.colombo-hero .hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 100vw;
    height: 100%;
    min-height: 100%;
    background-image: linear-gradient(to bottom,
            rgba(247, 244, 239, 0) 54%,
            rgba(247, 244, 239, 1) 100%),
        var(--hero-bg-image, url("image/Day%20Tours/colombo/Colombo%201%20History%20Cultural/national-museum-colombo-sri-lanka%204.jpg"));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1 !important;
    animation: none !important;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.colombo-hero .hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(247, 244, 239, 1) 0%,
            rgba(247, 244, 239, 0.95) 25%,
            rgba(247, 244, 239, 0.8) 50%,
            rgba(247, 244, 239, 0.5) 70%,
            rgba(247, 244, 239, 0.25) 85%,
            rgba(247, 244, 239, 0.1) 95%,
            transparent 100%);
    z-index: 1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .colombo-hero .hero-bg {
        width: 66.666vw;
        right: 0;
    }

    .colombo-hero .hero-bg::after {
        width: 35%;
        background: linear-gradient(to right,
                rgba(247, 244, 239, 1) 0%,
                rgba(247, 244, 239, 0.95) 20%,
                rgba(247, 244, 239, 0.85) 40%,
                rgba(247, 244, 239, 0.6) 60%,
                rgba(247, 244, 239, 0.3) 80%,
                transparent 100%);
    }
}

.hero-gradient-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 50vw);
    width: 50vw;
    height: 100%;
    background: linear-gradient(to right,
            rgba(247, 244, 239, 1) 0%,
            rgba(247, 244, 239, 0.9) 30%,
            rgba(247, 244, 239, 0.6) 60%,
            rgba(247, 244, 239, 0.3) 80%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-gradient-overlay {
        width: 35vw;
        background: linear-gradient(to right,
                rgba(247, 244, 239, 1) 0%,
                rgba(247, 244, 239, 0.9) 25%,
                rgba(247, 244, 239, 0.7) 50%,
                rgba(247, 244, 239, 0.4) 70%,
                transparent 100%);
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0;
}

.colombo-hero-inner {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .colombo-hero-inner {
        padding-top: 80px;
        padding-bottom: 1.25rem;
    }
}

@media (min-width: 768px) {
    .colombo-hero-inner {
        padding-top: 90px;
        padding-bottom: 1.5rem;
    }
}

.colombo-hero-panel {
    width: 100%;
    max-width: 42rem;
}

/* Tighter spacing */
.colombo-hero-panel .mt-3 {
    margin-top: 0.75rem !important;
}

.colombo-hero-panel .mt-2 {
    margin-top: 0.5rem !important;
}

.colombo-hero-panel .mt-5 {
    margin-top: 1rem !important;
}

.colombo-hero-panel .mt-7 {
    margin-top: 1.25rem !important;
}

/* Mobile hero refinements - matching Kandy "flush" look */
/* Mobile hero refinements - matching Kandy "perfectly" */
@media (max-width: 639px) {
    body {
        margin: 0;
        padding: 0;
    }

    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .colombo-hero {
        margin: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        position: relative;
        background: transparent !important;
        display: block;
        overflow: visible;
        padding-top: 0.75rem !important;
    }

    /* Completely hide background image on mobile to match Kandy clean look */
    .colombo-hero .hero-bg,
    .colombo-hero .hero-bg::after,
    .hero-gradient-overlay {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    .hero-content-wrapper {
        margin: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1rem !important;
        background: #f7f4ef;
        position: relative;
        top: 0;
        transform: translateY(0);
    }

    .colombo-hero-inner {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
        height: auto;
    }

    .colombo-hero-panel {
        background: rgba(247, 244, 239, 0.86);
        border: 1px solid rgba(18, 18, 18, 0.08);
        border-radius: 16px;
        padding: 0.95rem 1rem;
        backdrop-filter: blur(10px);
        margin: 0 !important;
    }

    .colombo-hero-panel h1 {
        font-size: 1.85rem !important;
        line-height: 1.12 !important;
        margin-top: 0.5rem !important;
    }

    .colombo-hero-panel p {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        margin-top: 0.75rem !important;
    }

    /* Hide breadcrumb nav on mobile to remove gap */
    .colombo-hero-panel nav {
        display: none !important;
    }

    /* Remove spacing since breadcrumb is hidden */
    .colombo-hero-panel .mt-3,
    .colombo-hero-panel .mt-2,
    .colombo-hero-panel .mt-5,
    .colombo-hero-panel .mt-7 {
        margin-top: 0 !important;
    }

    /* Tighten stat pills on mobile */
    .hero-stat-pill {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.82rem !important;
    }

    .flex.flex-wrap.gap-3.mt-7 {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }
}

/* Tab styling from Kandy */
[data-tabs] [data-tab] {
    background: rgba(247, 244, 239, 0.9) !important;
    color: rgba(18, 18, 18, 0.8) !important;
    border-color: rgba(18, 18, 18, 0.12) !important;
}

[data-tabs] [data-tab][aria-selected="true"] {
    background: #ffffff !important;
    color: rgba(18, 18, 18, 1) !important;
    border-color: rgba(18, 18, 18, 0.18) !important;
}

.itinerary-card {
    transition: all 0.3s ease;
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 61, 54, 0.08);
}

@media (max-width: 640px) {
    .itinerary-card {
        padding: 0.75rem !important;
    }

    .itinerary-body {
        max-height: none !important;
        display: block;
        margin-top: 0.5rem !important;
    }

    /* Hide booking section on mobile */
    #booking {
        display: none !important;
    }
}

/* Koalendar Modal Overlay */
.koalendar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.koalendar-modal-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 90vh;
    max-height: 700px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.koalendar-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.koalendar-modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.koalendar-modal-close svg {
    color: #121212;
}

@media (max-width: 640px) {
    .koalendar-modal-container {
        height: 95vh;
        max-height: none;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
    }

    .koalendar-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }
}