@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Local font: Greenth (placed in src/assets) */
@font-face {
    font-family: 'Greenth';
    src: url('assets/Greenth_Personal_Use.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Font Variables - Change URLs here to update fonts site-wide */
:root {
    /* Use Greenth as primary with fallbacks to Cormorant and generic serif */
    --primary-font: 'Greenth', 'Cormorant Garamond', serif;
    --secondary-font: 'Greenth', 'Cormorant Garamond', serif;
    --body-font: 'Greenth', 'Cormorant Garamond', serif;
    /* Descriptions should use Poppins for better readability */
    --description-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: 16px;
}

/* Hide native scrollbars but keep scrolling functional */
/* Chrome, Edge, Safari */
/* Apply to html, body and the scrolling container */
html, body, .scrollElement {
    /* Firefox */
    scrollbar-width: none;
    /* IE 10+ and Edge */
    -ms-overflow-style: none;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.scrollElement::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Floating Glassmorphic Navbar */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    z-index: 2000;
    /* transition: all 0.4s ease; */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    position: relative;
}

/* Layout groups - logo on left, navigation on right */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo styling in navbar-left */
.navbar-brand {
    pointer-events: auto;
}

.navbar-brand .brand-text:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.navbar-brand .brand-logo {
    height: 32px;
    width: auto;
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-brand .brand-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

/* Navigation icons container */
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navigation text links container - for About/Contact text links */
.navbar-text-links {
    display: flex;
    align-items: center;
    gap: 2px; /* Reduced gap for closer spacing between About and Contact */
    flex-shrink: 0;
}

/* Social icons container - for Instagram/WhatsApp icons */
.navbar-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
    transition: filter 0.2s ease;
}

.nav-icon-link:hover .nav-icon {
    filter: brightness(0) saturate(50%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(150deg) brightness(104%) contrast(97%);
}

/* Text navigation links */
.nav-text-link {
    font-family: var(--description-font);
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}

.navbar-link {
    font-family: var(--description-font);
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 4rpx 6px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.navbar-link.active {
    color: #000;
    font-weight: 700;
}

.navbar-link:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger Menu Button - Mobile Only */
.navbar-hamburger {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 22px; /* Reduced from 28px */
    height: 18px; /* Reduced from 22px */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    z-index: 2001;
    transition: all 0.3s ease;
    order: 4; /* Place after join-tribe button */
    flex-shrink: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px; /* Reduced from 3px */
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center; /* Ensure rotation from center */
}

/* Hamburger animation when menu is open */
.navbar-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0); /* Smooth fade out */
}

.navbar-hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Match navbar background exactly */
    background: rgba(255, 255, 255, 0.08);
    border-top: none; /* Remove top border to blend with navbar */
    border-radius: 0 0 20px 20px;
    margin-top: 8px;
    overflow: hidden;
    z-index: 2000;
    animation: slideDown 0.3s ease;
    /* Prevent any potential rendering issues on iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, opacity;
}

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

.mobile-menu.active {
    display: flex;
    flex-direction: column;
}

.mobile-menu-link {
    font-family: var(--description-font);
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem; /* Reduced from 0.95rem */
    padding: 12px 16px; /* Reduced padding */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Changed to white with low opacity */
    transition: all 0.2s ease;
    background: transparent; /* Ensure transparent background */
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.08); /* Match navbar transparency */
    color: #000;
}

.mobile-menu-link.active {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: #000;
}

/* Responsive Design - Tablets and below */
@media (max-width: 768px) {
    .floating-navbar {
        width: 90%;
        padding: 12px 18px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.6rem;
    }
    
    .navbar-brand .brand-logo {
        height: 28px;
    }
    
    .main-logo {
        max-width: 250px;
    }

    /* Better mobile navbar organization */
    .navbar-container {
        gap: 8px;
        align-items: center;
        position: relative; /* For mobile menu positioning */
    }

    .navbar-left {
        gap: 8px;
        flex-shrink: 0;
    }

    .navbar-right {
        gap: 6px;
        flex-shrink: 1;
        overflow: visible; /* Changed from hidden to show hamburger */
        justify-content: flex-end;
    }

    /* Hide desktop navigation links on mobile */
    .navbar-text-links {
        display: none;
    }
    
    /* Show hamburger menu button on mobile */
    .navbar-hamburger {
        display: flex;
    }
    
    .navbar-social-icons {
        gap: 6px;
        order: 1;
    }
    
    .navbar-link.join-tribe {
        order: 2;
        font-size: 0.8rem !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .navbar-hamburger {
        order: 3; /* Ensure hamburger is after join-tribe button */
    }
    
    .nav-text-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    /* Hide Contact link on mobile - redundant now since text links are hidden */
    .nav-text-link[href="contact-us.html"] {
        display: none;
    }
    
    .nav-icon-link {
        padding: 4px;
    }
    
    .nav-icon {
        width: 18px;
        height: 18px;
    }

    /* Hide unused elements on mobile */
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: none;
    }

    /* make social icons slightly smaller on mobile */
    .navbar-social {
        margin-top: 8px;
        justify-content: center;
    }

    .social-link {
        width: 32px;
        height: 32px;
    }

    .social-icon {
        width: 18px;
    }
    
    .hero-title {
        font-size: clamp(4rem, 12vw, 8rem);
    }
    
    .hero-text-svg {
        font-size: 56px;
    }
    
    /* Move Tiri Tara text closer to Welcome text on mobile */
    .hero-text-svg {
        transform: translateY(-15px);
    }
    
    .hero-description-svg {
        font-size: 18px;
    }
    
    .story-text-svg {
        font-size: 24px;
    }
    
    .story-description-svg {
        font-size: 14px;
    }
    
    .story-subtitle-svg {
        font-size: 16px;
    }

    /* Escape cards for mobile devices */
    .escape-cards {
        gap: 0.8rem !important;
        padding: 0 0.8rem !important;
        margin-top: 2rem;
    }

    .escape-card {
        width: calc(33.333% - 0.6rem) !important;
        min-width: 100px !important;
        max-width: 120px !important;
        height: calc(33.333vw - 0.6rem) !important; /* Make mobile cards square too */
        min-height: 100px !important;
        max-height: 120px !important;
    }

    .card-title {
        font-size: 0.9rem !important;
    }

    .card-description {
        font-size: 0.7rem !important;
    }

    .card-overlay {
        padding: 0.8rem !important;
        height: 20% !important; /* Text overlay area */
        z-index: 3 !important; /* Ensure overlay is above full image */
        align-items: center !important; /* Center text horizontally */
        text-align: center !important; /* Center text alignment */
    }

    .card-image {
        height: 100% !important; /* Cover entire card including glassmorphic area */
    }

    .card-image img {
        object-fit: cover !important;
        object-position: center 20% !important; /* Shift image much further up on mobile */
    }

    /* Center content vertically on mobile */
    .checkpoint-content {
        top: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
    }
}



/* Navbar scroll effect */
.glassmorphic-navbar.scrolled {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wrapper {
    position: relative;
}

svg {
    display: block;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
}

.scrollElement {
    position: absolute;
    height: 6000px;
    width: 100%;
    top: 0;
    z-index: 4;
}

.btn {
    position: fixed;
    bottom: 5%;
    right: 0px;
    transform: translateX(-50%);
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 0.8rem;
    padding: 0.5rem 0.7em;
    background-color: transparent;
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    transition: all .3s;
    z-index: 11;
}

.btn_works {
    left: 100px;
    right: unset;
    text-decoration: none;
}

.btn:hover {
    background: #ffffff;
    color: #1B1734;
}

/* Checkpoint Content Styling */
.checkpoint-content {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* disable interactions by default - only active checkpoints should be clickable */
    pointer-events: none;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.checkpoint-content.active {
    opacity: 1;
    /* allow interaction with content only when the checkpoint is active */
    pointer-events: auto;
}

.checkpoint-header {
    /* Match hero SVG typography: use primary font and similar treatment */
    font-family: var(--primary-font);
    font-size: 2rem;
    font-weight: 500;
    margin: 0 0 0 0;
    /* stronger shadow to match SVG look */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: black;
    background-clip: text;
    /* use the same letter-spacing as the SVG title */
    letter-spacing: 0.05em;
    /* ensure checkpoint headers use the same case/appearance as the hero SVG */
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--primary-font);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1500;
    letter-spacing: 0.1em;
    line-height: 0.9;
    mix-blend-mode: screen;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff 20%, rgba(255,255,255,0.8) 50%, #fff 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6));
    }
}

/* SVG Hero Text - Integrated with SVG layers */
.hero-text-svg {
    font-family: var(--primary-font);
    font-size: 90px;
    font-weight: 400;
    fill: #000;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* SVG Hero Subheading - Welcome message */
.hero-subheading-svg {
    font-family: var(--description-font);
    font-size: 28px;
    font-weight: 300;
    fill: #696969;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

/* Desktop versions - show by default */
.hero-text-desktop,
.story-description-desktop,
.story-subtitle-desktop {
    display: block;
}

/* Mobile versions - hide by default */
.hero-text-mobile,
.story-description-mobile,
.story-subtitle-mobile,
#journeys-mobile {
    display: none;
}

/* Show SVG text when in first checkpoint */
body:has(#checkpoint-0.active) .hero-text-svg,
body:has(#checkpoint-0.active) .hero-subheading-svg {
    opacity: 1;
}

/* Alternative approach for better browser support */
.checkpoint-0-active .hero-text-svg,
.checkpoint-0-active .hero-subheading-svg {
    opacity: 1;
}

/* SVG Hero Description Text - Between Hills */
.hero-description-svg {
    font-family: var(--description-font);
    font-size: 10px;
    font-weight: 300;
    fill: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.08em;
    opacity: 0;
    transition: opacity 1s ease-in-out 0.3s; /* Delay the description slightly after title */
}

/* SVG Story Text Elements - Between Hills */
.story-text-svg {
    font-family: var(--primary-font);
    font-size: 24px;
    font-weight: 700;
    fill: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.story-description-svg {
    font-family: var(--description-font);
    font-size: 5px;
    font-weight: 400;
    fill: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 1s ease-in-out 0.2s;
}

.story-subtitle-svg {
    font-family: var(--secondary-font);
    font-size: 12px;
    font-weight: 300;
    fill: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 1s ease-in-out 0.4s;
}

/* Show story text when in checkpoint 1 */
body:has(#checkpoint-1.active) .story-text-svg,
body:has(#checkpoint-1.active) .story-description-svg,
body:has(#checkpoint-1.active) .story-subtitle-svg {
    opacity: 1;
}

/* Alternative approach for better browser support */
.checkpoint-1-active .story-text-svg,
.checkpoint-1-active .story-description-svg,
.checkpoint-1-active .story-subtitle-svg {
    opacity: 1;
}

/* Show SVG description when in first checkpoint */
body:has(#checkpoint-0.active) .hero-description-svg {
    opacity: 1;
}

/* Alternative approach for better browser support */
.checkpoint-0-active .hero-description-svg {
    opacity: 1;
}

.main-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    filter: brightness(1.1) drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    transition: all 0.5s ease;
}

.main-logo:hover {
    transform: scale(1.02);
    filter: brightness(1.2) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.navbar-link.join-tribe {
    font-family: var(--description-font);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffcc33 0%, #ffcc33 50%, #ffcc33 100%);
    color: #1b0f00;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 180, 50, 0.12);
    transition: none !important;
    transform: none !important;
    flex-shrink: 0;
    white-space: nowrap;
    /* transform-origin: center; */
}

/* Make sure the navbar-link default styles don't conflict */
.navbar-menu .navbar-link.join-tribe {
    text-decoration: none;
}

@media (max-width: 768px) {
    .navbar-link.join-tribe {
        padding: 10px 16px;
        font-size: 0.9rem !important;
    }
}

.checkpoint-text {
    font-family: var(--description-font);
    font-size: 1.8rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    opacity: 0.95;
}

/* Title font styling for "Our Journeys" text */
.title-font-text {
    font-family: var(--primary-font);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* B2B form styles */
.b2b-form-wrap {
    margin: 2.25rem auto 0 auto;
    max-width: 920px;
    background: rgba(255,255,255,0.92);
    color: #111;
    padding: 1.6rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(13,12,25,0.08);
    text-align: left;
}

.b2b-intro {
    margin-bottom: 0.6rem;
}

.b2b-title {
    font-family: var(--description-font);
    font-size: 1.6rem;
    margin: 0 0 0.25rem 0;
    color: #1b1734;
}

.b2b-sub {
    margin: 0 0 1rem 0;
    color: #fff;
    font-size: 0.98rem;
}

.b2b-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5rem;
}

.form-field.fullwidth { grid-column: 1 / -1; }

.label-title {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: var(--description-font);
}

.b2b-form input[type="text"],
.b2b-form input[type="email"],
.b2b-form input[type="tel"],
.b2b-form input[type="number"],
.b2b-form input[type="date"],
.b2b-form select,
.b2b-form textarea {
    border: 1px solid rgba(27,23,52,0.06);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-family: var(--description-font);
    font-size: 0.9rem;
    color: #111;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.12s ease;
    background: #fff;
}

.b2b-form input:focus,
.b2b-form select:focus,
.b2b-form textarea:focus {
    box-shadow: 0 6px 20px rgba(81, 63, 151, 0.06);
    border-color: rgba(81, 63, 151, 0.18);
}

.b2b-form .submit-btn {
    background: linear-gradient(90deg,#ffcc33 0%,#ffcc33 50%,#ffcc33 100%);
    color: #1b0f00;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(255,180,50,0.12);
}

.b2b-form .form-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-note {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.b2b-success {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg,#f6fff4,#f0fff0);
    border: 1px solid rgba(30,150,60,0.06);
    color: #0b3b17;
    border-radius: 10px;
    font-family: var(--description-font);
}

@media (max-width: 900px) {
    .b2b-form .form-grid { grid-template-columns: 1fr; }
    .b2b-form-wrap { padding: 1rem; }
}



.checkpoint-subtitle {
    font-family: var(--secondary-font);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 1rem 0 0 0;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Dark text styles for bright background checkpoints */
#checkpoint-1, #checkpoint-2, #checkpoint-3, #checkpoint-4 {
    color: #1a1a1a;
}

/* Special positioning for checkpoint-4 to accommodate video carousel */
#checkpoint-4.checkpoint-content {
    position: fixed;
    top: 15vh !important;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

#checkpoint-1 .checkpoint-header,
#checkpoint-2 .checkpoint-header,
#checkpoint-3 .checkpoint-header,
#checkpoint-4 .checkpoint-header {
    /* keep headings readable on bright backgrounds but inherit hero font styling */
    background-clip: text;
    /* keep a light highlight to pop on background */
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    /* prefer slightly larger, but inherit weight from .checkpoint-header */
    font-size: 5rem;
    font-weight: 500;
    color: #000;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#checkpoint-4 .checkpoint-header {
    position: relative;
}

#checkpoint-4 .checkpoint-header,
#checkpoint-5 .checkpoint-header {
    color: rgba(255, 255, 255, 0.779);
    text-shadow: none !important;
    font-size: 64px;
}

#checkpoint-1 .checkpoint-text,
#checkpoint-2 .checkpoint-text,
#checkpoint-3 .checkpoint-text,
#checkpoint-4 .checkpoint-text {
    color: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 600;
    width: 80vw;
    font-size: 22px;
}

#checkpoint-1 .checkpoint-text {
    text-align: justify;
}

#checkpoint-2 .checkpoint-text {
    text-align: justify;
}

#checkpoint-2 .checkpoint-text-center {
    text-align: center;
}

#checkpoint-3 .checkpoint-text{
    font-size: 20px !important;
}
#checkpoint-4 .checkpoint-text{
    color: #fff !important;
    font-weight: 200 !important;
    font-size: 20px !important;
}
#checkpoint-5 .checkpoint-text{
    font-size: 20px !important;
    letter-spacing: 0.05em;
}


#checkpoint-1 .checkpoint-subtitle,
#checkpoint-2 .checkpoint-subtitle,
#checkpoint-3 .checkpoint-subtitle,
#checkpoint-4 .checkpoint-subtitle {
    color: #4a4a4a;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Video Carousel Styles */
.video-carousel-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.video-carousel {
    position: relative;
    width: 100%;
    /* Portrait-first: narrower width, taller height to fit portrait images */
    max-width: 280px;
    height: 400px;
    aspect-ratio: 3 / 5; /* width : height = 3:5 (portrait) */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.video-item.active {
    opacity: 1;
    z-index: 2;
}

.tribe-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.tribe-story-image {
    width: 100%;
    height: 100%;
    /* Show the full image with no cropping or zoom */
    object-fit: fill;
    object-position: center;
    /* Disable any transitions or transforms so image appears unchanged */
    transform: none !important;
    transition: none !important;
    border-radius: 12px;
    background: #000000;
}

/* Ensure hovering or parent transitions do not scale or crop images */
.video-item:hover .tribe-story-image,
.video-item .tribe-story-image {
    transform: none !important;
    transition: none !important;
}

/* Video Play/Pause Button Overlay */
.video-play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    border-radius: 12px;
}

.video-play-button-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.video-play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.video-play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.video-play-button:active {
    transform: scale(0.95);
}

/* Play icon */
.video-play-button.play::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 16px solid #333;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

/* Pause icon */
.video-play-button.pause::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #333;
    box-shadow: 8px 0 0 #333;
    border-radius: 1px;
    margin-left: -6px;
}

/* Hide overlay when video is playing (unless hovering) */
.video-item.playing .video-play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Since this carousel will be used for static portrait images only,
   hide video-specific UI elements so they don't appear over images. */
.video-play-button-overlay,
.video-play-button,
.video-loading,
.video-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.video-item.playing:hover .video-play-button-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile-specific play button adjustments */
@media (max-width: 768px) {
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button.play::before {
        border-left: 12px solid #333;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        margin-left: 2px;
    }
    
    .video-play-button.pause::before {
        width: 3px;
        height: 16px;
        box-shadow: 8px 0 0 #333;
        margin-left: -6px;
    }
    
    /* Always show overlay on mobile for better touch interaction */
    .video-item.playing .video-play-button-overlay {
        opacity: 1;
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.05);
    }
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 25px 20px 20px;
    color: white;
    border-radius: 0 0 12px 12px;
}

.video-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.video-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.video-nav-controls {
    display: none; /* Hide the bottom navigation controls */
}

.video-nav-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

.video-nav-btn:hover {
    transform: scale(1.1);
}

.video-nav-btn img {
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.video-nav-btn:hover img {
    transform: scale(1.1);
}

.video-indicators {
    display: none; /* Hide the dots indicators */
}

.video-indicator {
    display: none; /* Hide individual indicators */
}

/* Video Loading Indicator */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    color: #F5C54E;
    font-size: 14px;
    font-weight: 500;
}

.video-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #F5C54E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#checkpoint-5 .checkpoint-subtitle {
    font-size: 14px;
}



/* Tablet responsive styles - 491px to 768px */
@media (min-width: 491px) and (max-width: 768px) {
    .escape-cards {
        gap: 1rem;
        margin-top: 2rem;
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        padding: 0 1rem;
    }

    .escape-card {
        width: calc(33.333% - 0.8rem);
        min-width: 160px;
        max-width: 200px;
        height: 180px;
        flex-shrink: 0;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.75rem;
    }

    .card-overlay {
        padding: 1.2rem;
    }

    /* Make text smaller for tablet */
    .checkpoint-header {
        font-size: 2.8rem !important;
    }

    .checkpoint-text {
        font-size: 1.3rem !important;
    }

    .checkpoint-subtitle {
        font-size: 1rem !important;
    }

    /* Checkpoint specific text sizes for tablet */
    #checkpoint-1 .checkpoint-header,
    #checkpoint-2 .checkpoint-header,
    #checkpoint-3 .checkpoint-header,
    #checkpoint-4 .checkpoint-header {
        font-size: 2.5rem !important;
    }

    #checkpoint-1 .checkpoint-text,
    #checkpoint-2 .checkpoint-text,
    #checkpoint-3 .checkpoint-text {
        font-size: 1.1rem !important;
    }

    #checkpoint-3 .checkpoint-text {
        font-size: 1rem !important;
    }

    #checkpoint-4 .checkpoint-text {
        font-size: 1.05rem !important;
    }

    #checkpoint-4 .checkpoint-header {
        font-size: 2.2rem !important;
    }

    /* Hero title for tablet */
    .hero-title {
        font-size: clamp(4rem, 13vw, 8rem) !important;
    }

    /* SVG text elements for tablet */
    .hero-text-svg {
        font-size: 68px !important;
        transform: translateY(-12px) !important;
    }

    .story-text-svg {
        font-size: 20px !important;
    }

    .story-description-svg {
        font-size: 4.5px !important;
    }

    .story-subtitle-svg {
        font-size: 10px !important;
    }
}

/* Escape Cards Styles */
.escape-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.checkpoint-content.active .escape-cards {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.escape-card {
    position: relative;
    width: 300px;
    height: 300px; /* Made square */
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Ensure cards maintain transparency when section is active */
.checkpoint-content.active .escape-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.escape-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.escape-card:hover .card-overlay {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top-color: rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cover entire card including glassmorphic area */
    z-index: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Shift image much further up to show top portion */
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.escape-card:hover .card-image img {
    opacity: 1 !important;
    transform: scale(1.02);
}

/* Maintain good image opacity when section is active */
.checkpoint-content.active .escape-card .card-image img {
    opacity: 1 !important;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%; /* Text overlay area */
    padding: 1rem;
    /* Glassmorphism effect for text area */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 0 20px 20px;
    z-index: 3; /* Higher z-index to ensure it's above the full image */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center text horizontally */
    text-align: center; /* Center text alignment */
}

.card-title {
    font-family: var(--description-font);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.1rem 0;
    color: #fff;
    line-height: 1.1;
}

.card-description {
    font-family: var(--description-font);
    font-size: 0.85rem;
    font-weight: 300;
    margin: 0;
    opacity: 0.95;
    color: #fff;
    line-height: 1.2;
}

/* Modal / dynamic description text */
#escape-modal-desc {
    font-family: var(--description-font);
}

/* Join Tribe Button Styles */
.tribe-join-btn {
    font-family: var(--description-font);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    text-transform: uppercase;
}

.checkpoint-content.active .tribe-join-btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
    pointer-events: auto;
}

.tribe-join-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.tribe-join-btn:active {
    transform: translateY(-2px);
}

/* Mobile responsive styles for button */

/* Explore All Trips Button Container */
.explore-trips-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.checkpoint-content.active .explore-trips-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s; /* Delay after journey cards appear */
}

.explore-trips-btn {
    margin-top: 0; /* Override default margin since container handles spacing */
}

/* Join Form Popup Styles */
.form-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,6,12,0.6);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    z-index: 25000; /* Higher than escape modal to prevent conflicts */
    justify-content: center;
    align-items: center;
    /* Reduced horizontal padding so the popup feels tighter on wide screens */
    padding: 12px;
    box-sizing: border-box;
}

.form-popup-container {
    background: linear-gradient(180deg, rgba(255,255,255), rgba(255,255,255));
    border: 1px solid rgba(255,255,255,0.04);
    width: 100%;
    max-width: 980px;
    height: min(90vh, 800px);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(3,6,25,0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 260ms cubic-bezier(.2,.9,.2,1);
    z-index: 25001; /* Ensure container is above backdrop */
    position: relative;
}

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

.form-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* allow absolute children (the centered title) to position relative to the header */
    position: relative;
    /* keep vertical padding but reduce left/right padding */
    padding: 0.9rem 0.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.form-popup-title {
    font-family: var(--description-font);
    /* absolutely center the title within the header so it stays centered even
       when there are buttons on the right */
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.form-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    /* keep the action buttons above the absolutely positioned title */
    position: relative;
    z-index: 2;
    /* ensure the buttons sit to the right in the flex header */
    margin-left: auto;
}

.form-share-btn {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.form-share-btn:hover {
    background: rgba(255,255,255,0.06);
    color: #000;
    transform: scale(1.05);
}

.form-share-btn svg {
    transition: transform 0.12s ease;
}

.form-share-btn:hover svg {
    transform: scale(1.1);
}

.form-close-btn {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    color: #000;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.12s ease, color 0.12s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-close-btn:hover {
    background: rgba(255,255,255,0.04);
    color: #000;
}

.form-popup-content {
    padding: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.google-form-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    display: block;
    pointer-events: auto; /* Ensure iframe can receive clicks */
    z-index: 25002; /* Highest z-index for iframe */
    position: relative;
}

/* Ensure escape cards are not clickable when join form is open */
.form-popup-overlay[aria-hidden="false"] ~ * .escape-card,
body:has(.form-popup-overlay[aria-hidden="false"]) .escape-card {
    pointer-events: none !important;
}



/* Small devices starting from 425px and smaller - Priority fixes */
@media (max-width: 490px) {
    /* Fix join form popup on mobile */
    .form-popup-overlay {
        z-index: 30000; /* Even higher on mobile to prevent conflicts */
        padding: 0;
        touch-action: none; /* Prevent unwanted touch behaviors */
    }
    
    .form-popup-container {
        z-index: 30001;
        border-radius: 0;
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        touch-action: auto; /* Allow touch interactions inside container */
    }
    
    .google-form-iframe {
        z-index: 30002;
        touch-action: auto; /* Allow touch interactions in iframe */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .form-popup-header {
        padding: 0.7rem 0.5rem;
        position: sticky;
        top: 0;
        z-index: 30003;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
    }

    .floating-navbar {
        width: 92%;
        padding: 8px 12px;
        top: 10px;
    }
    
    .navbar-container {
        gap: 6px;
        align-items: center;
        position: relative;
    }
    
    .navbar-left {
        gap: 6px;
        flex-shrink: 0;
    }
    
    .navbar-right {
        gap: 4px;
        flex-shrink: 1;
        overflow: visible;
        justify-content: flex-end;
    }
    
    .navbar-brand .brand-logo {
        height: 24px;
    }
    
    /* Hide desktop navigation on small mobile */
    .navbar-text-links {
        display: none;
    }
    
    /* Show hamburger on small mobile */
    .navbar-hamburger {
        display: flex;
        width: 18px; /* Even smaller for small screens */
        height: 14px;
        margin-left: 6px;
    }
    
    .hamburger-line {
        height: 2px;
        transform-origin: center;
    }
    
    /* Adjust animation for smaller hamburger */
    .navbar-hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .navbar-hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .navbar-hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .navbar-social-icons {
        gap: 4px;
        order: 1;
    }
    
    .navbar-link.join-tribe {
        order: 2;
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .navbar-hamburger {
        order: 3;
    }
    
    .nav-text-link {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    
    /* Hide Contact link on small mobile */
    .nav-text-link[href="contact-us.html"] {
        display: none;
    }
    
    .nav-icon-link {
        padding: 3px;
    }
    
    .nav-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Footer fixes for small screens - prevent overflow */
    .site-footer {
        width: 100vw;
        bottom: 0;
        left: 0;
        transform: none;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 8px;
        padding: 8px 12px;
        align-items: center;
        max-width: 100%;
        border-radius: 12px;
        margin: 0 8px;
    }
    
    .footer-top-row {
        flex-direction: row;
        gap: 8px;
        align-items: center;
        white-space: nowrap;
    }
    
    .footer-top-row p,
    .footer-contact p {
        font-size: 0.7rem !important;
        margin: 0;
        line-height: 1.3;
        font-weight: 500;
    }
    
    /* Make footer links wrap properly in multiple lines */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .footer-link {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        border-radius: 6px;
        flex-shrink: 1;
        min-width: 0;
        font-weight: 500;
    }
    
    /* Ensure the longest footer link doesn't overflow */
    .footer-link:nth-child(2) {
        /* "Refund and Cancellation Policies" - longest text */
        font-size: 0.6rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    /* Mobile Checkpoint Content Styles */
    .checkpoint-content {
        width: 100vw;
        top: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
    }

    .checkpoint-header {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }

    .checkpoint-text {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .checkpoint-subtitle {
        font-size: 0.9rem !important;
    }

    /* Checkpoint-specific text sizes for mobile */
    #checkpoint-1 .checkpoint-header,
    #checkpoint-2 .checkpoint-header,
    #checkpoint-3 .checkpoint-header,
    #checkpoint-4 .checkpoint-header {
        font-size: 1.5rem !important;
    }

    #checkpoint-5 .checkpoint-header {
        font-size: 1.5rem !important;
    }

    #checkpoint-1 .checkpoint-text,
    #checkpoint-2 .checkpoint-text,
    #checkpoint-3 .checkpoint-text,
    #checkpoint-4 .checkpoint-text,
    #checkpoint-5 .checkpoint-text {
        font-size: 0.6rem !important;
    }

    #checkpoint-4 .checkpoint-header {
        position: relative;
        font-size: 1.6rem !important;
    }

    /* Checkpoint-4 mobile positioning */
    #checkpoint-4.checkpoint-content {
        top: 50vh !important;
        width: 98%;
        gap: 25px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        height: auto;
    }

    .video-carousel-container {
        margin-top: 0;
        max-width: 500px;
        order: 2;
        gap: 12px;
        max-width: 100%;
        justify-content: center;
    }

    #checkpoint-4 .checkpoint-header,
    #checkpoint-4 .checkpoint-text {
        order: 1;
    }

    .video-carousel {
        /* Mobile: maintain same scale ratio as desktop (3:5 aspect ratio) */
        max-width: 230px;
        height: 333px;
        aspect-ratio: 3 / 5;
    }

    .video-overlay {
        padding: 15px 12px 12px;
    }

    .video-title {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .video-description {
        font-size: 12px;
    }

    .video-nav-btn {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .video-nav-btn img {
        width: 18px;
        height: 18px;
    }

    /* Hero title smaller for mobile */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4.5rem) !important;
    }

    /* SVG text elements for mobile */
    .hero-text-svg {
        font-size: 42px !important;
        transform: translateY(-20px) !important;
    }

    .hero-subheading-svg {
        font-size: 16px !important;
        letter-spacing: 0.15em !important;
    }

    .story-text-svg {
        font-size: 18px !important;
    }

    .story-description-svg {
        font-size: 12px !important;
    }

    .story-subtitle-svg {
        font-size: 14px !important;
    }

    /* Mobile text positioning adjustments */
    .hero-text-mobile {
        font-size: 22px !important;
    }

    .story-description-mobile {
        font-size: 11px !important;
    }

    .story-subtitle-mobile {
        font-size: 13px !important;
    }

    /* Switch to mobile versions of text */
    .hero-text-mobile,
    .story-description-mobile,
    .story-subtitle-mobile,
    #journeys-mobile {
        display: block !important;
    }

    /* Hide regular journeys text on mobile */
    #checkpoint-3 .checkpoint-text:first-of-type {
        display: none !important;
    }

    /* Navbar text smaller */
    .navbar-link {
        font-size: 0.85rem !important;
    }

    /* Escape cards for mobile */
    .escape-cards {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 0.5rem;
    }

    .escape-card {
        width: calc(33.333% - 0.5rem);
        min-width: 100px;
        max-width: 120px;
        height: calc(33.333vw - 0.5rem); /* Make mobile cards square */
        min-height: 100px;
        max-height: 120px;
        flex-shrink: 0;
    }

    .card-title {
        font-size: 0.8rem !important;
    }

    .card-description {
        font-size: 0.6rem !important;
    }

    .card-overlay {
        padding: 0.8rem !important;
        height: 20% !important; /* Text overlay area */
        z-index: 3 !important; /* Ensure overlay is above full image */
        align-items: center !important; /* Center text horizontally */
        text-align: center !important; /* Center text alignment */
    }

    .card-image {
        height: 100% !important; /* Cover entire card including glassmorphic area */
    }

    .card-image img {
        object-fit: cover !important;
        object-position: center 20% !important; /* Shift image much further up on mobile */
    }

    /* Button text for mobile */
    .tribe-join-btn {
        font-size: 1rem !important;
        padding: 0.7rem 1.6rem;
    }

    /* Form text for mobile */
    .form-popup-title {
        font-size: 1.2rem !important;
    }

    .form-title {
        font-size: 1.8rem !important;
    }

    .form-subtitle {
        font-size: 0.95rem !important;
    }

    /* Form popup mobile adjustments - Enhanced for small devices */
    .form-popup-overlay {
        padding: 8px !important;
    }

    .form-popup-container {
        max-width: 95% !important;
        width: 95% !important;
        max-height: 92vh !important;
        height: 92vh !important;
        border-radius: 8px !important;
        margin: 0 auto;
    }
    
    .form-popup-header {
        padding: 0.6rem 0.8rem !important;
        border-radius: 8px 8px 0 0;
    }
    
    .form-popup-title {
        font-size: 0.85rem !important;
        font-weight: 500;
    }
    
    .form-header-actions {
        gap: 4px !important;
    }

    .form-share-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 6px !important;
    }
    
    .form-close-btn {
        width: auto !important;
        height: auto !important;
        font-size: 0.85rem !important;
        padding: 4px 8px !important;
    }

    .form-popup-content {
        flex: 1 1 auto !important;
        overflow: hidden !important;
        height: calc(92vh - 60px) !important;
    }

    .google-form-iframe {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        background: transparent !important;
        display: block !important;
    }

    /* Modal mobile adjustments - Enhanced for small devices */
    .modal {
        padding: 6px !important;
    }
    
    .modal-content {
        max-width: 96% !important;
        max-height: 90vh !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
    }
    
    .modal-body {
        flex-direction: column !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .modal-media {
        flex: none !important;
        width: 100% !important;
        height: 200px !important;
        margin-bottom: 1rem !important;
    }
    
    .modal-media img {
        min-height: 200px !important;
        object-fit: cover !important;
    }

    .modal-close {
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
        padding: 0 !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .modal-header h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .modal-info {
        padding: 0 !important;
    }
    
    .journey-price {
        font-size: 0.85rem !important;
        margin: 0.5rem 0 !important;
    }
    
    .modal-description {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }

    .modal-details {
        gap: 0.5rem !important;
        margin-bottom: 1rem !important;
    }

    .modal-details p {
        font-size: 0.7rem !important;
        margin: 0.2rem 0 !important;
    }
    
    .book-now-btn {
        font-size: 0.8rem !important;
        padding: 0.6rem 1.2rem !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .btn-icon {
        font-size: 0.8rem !important;
    }

    .modal-actions {
        padding: 1rem !important;
        gap: 0.5rem !important;
        flex-direction: column !important;
    }

    /* SVG element scaling for mobile */
    #text,
    #arrow {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }

    #info2 {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }
}





/* Modal for escape card details */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20001; /* sit above most site elements */
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 20000; /* backdrop below modal content but above page */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #ffffff;
    color: #333;
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 2px #ffd700;
    z-index: 20002; /* above the backdrop */
    overflow: hidden;
    border: 2px solid #ffd700;
    font-family: var(--description-font);
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: #ffd700;
    border: none;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #ff8c00;
    transform: scale(1.1);
}

.modal-body {
    padding: 1.2rem;
    padding-top: 4rem;
    min-height: 400px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Top section with intro content */
.modal-top-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.modal-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
}

/* Details section below the top section */
.modal-details-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Compact layout for details in rows */
.details-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.details-row > div {
    flex: 1;
    min-width: 0;
}

.modal-details-section h4,
.modal-intro h3,
.trip-dates h4,
.trip-schedule h4,
.included-section h4,
.booking-section h4 {
    font-family: var(--description-font);
    color: #333;
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.modal-details-section p,
.trip-dates p,
.trip-schedule p,
.included-section p,
.booking-section p,
.schedule-item span {
    font-family: var(--description-font);
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Compact styles for schedule and availability */
.schedule-compact,
.availability-compact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.schedule-item,
.availability-item {
    font-size: 0.9rem;
    margin: 0;
}

.schedule-item strong,
.availability-item strong {
    color: #ff8c00;
    font-weight: 600;
}

/* Keep the old modal-info class for backward compatibility */
.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.modal-header {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-right: 3rem;
}

.modal-title-section {
    flex: 1;
}

.modal-header h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    font-family: var(--description-font);
}

.journey-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ff8c00;
    margin: 0 0 0.3rem 0;
    font-family: var(--description-font);
}

.journey-dates {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    font-family: var(--description-font);
}

.modal-description {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    font-family: var(--description-font);
}

.modal-details {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    font-family: var(--description-font);
}

.journey-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.journey-label {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.journey-data {
    font-size: 1rem;
    color: #dcdcdc;
    font-weight: 500;
}

/* Unified Modal Content Styles */
.modal-content-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 165, 0, 0.2);
}

.modal-unified-content {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    font-family: var(--description-font);
    white-space: pre-line;
}

.modal-actions {
    margin-top: auto;
}

/* Enhanced Book Now button */
.book-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00e676 0%, #00e676 50%, #00e676 100%);
    color: #062018;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--description-font);
}

.book-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.book-now-btn:hover::before {
    left: 100%;
}

.book-now-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 200, 83, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

/* Small version of Book Now button for modal header */
.book-now-btn-small {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00e676 0%, #00e676 50%, #00e676 100%);
    color: #062018;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--description-font);
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 120px;
}

.book-now-btn-small:hover {
    background: linear-gradient(135deg, #00c96a 0%, #00c96a 50%, #00c96a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
}

.book-now-btn-small:active {
    transform: translateY(0);
}

/* Enhanced Modal Detailed Sections */
.trip-dates,
.trip-schedule,
.accommodation-section,
.includes-section,
.availability-section,
.expectation-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fffbf0;
    border-radius: 12px;
    border: 1px solid #ffd700;
}

.trip-dates h4,
.trip-schedule h4,
.accommodation-section h4,
.includes-section h4,
.availability-section h4,
.expectation-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff8c00;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--description-font);
}

.trip-dates p,
.accommodation-section p,
.includes-section p,
.expectation-section p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    font-family: var(--description-font);
}

.schedule-item,
.availability-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.schedule-item:last-child,
.availability-item:last-child {
    margin-bottom: 0;
}

.schedule-item strong,
.availability-item strong {
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 60px;
}

.schedule-item span,
.availability-item span {
    color: #dcdcdc;
    text-align: right;
    flex-grow: 1;
}



/* Footer */
.site-footer {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    color: #ffffffaa;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    width: 100vw;
}
.site-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    flex-wrap: nowrap;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-inner p{
    font-family: var(--description-font);
}
.site-footer p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.footer-contact {
    font-family: var(--description-font);
    font-size: 0.9rem;
    white-space: nowrap;
}
.footer-contact p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}
.phone-link {
    color: #ffffffcc;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}
.phone-link:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateY(-1px);
}
.footer-top-row {
    display: flex;
    gap: 16px;
    align-items: center;
}
.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-link {
    font-family: var(--description-font);
    font-size: 0.9rem;
    color: #ffffffbb;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid transparent;
}
.footer-link:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.social-icons {
    display: flex;
    gap: 10px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #fff;
    background: transparent;
    border-radius: 0;
    transition: transform 0.15s ease;
}
.social-link:hover {
    transform: translateY(-2px);
}

/* Additional mobile font size optimizations */
@media (min-width: 491px) and (max-width: 768px) {
    .site-footer p {
        font-size: 0.8rem;
    }
    
    .footer-link {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .tribe-join-btn {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
}

@media (min-width: 491px) and (max-width: 768px) {
    /* Tablet range - improve footer layout */
    .footer-inner {
        flex-direction: column;
        gap: 6px;
        padding: 8px 16px;
    }
    
    .footer-top-row {
        gap: 12px;
        align-items: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .site-footer p {
        font-size: 0.8rem;
    }
    
    .footer-contact p {
        font-size: 0.8rem;
    }
}

/* This media query is now handled by the more specific ranges above */

/* Scroll Down Arrow Button */
.scroll-down-arrow {
    position: fixed;
    bottom: 30px;
    right: 30px;
    transform: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.scroll-down-arrow:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.scroll-down-arrow:active {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
}

.scroll-down-arrow img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Makes the icon white */
}

.scroll-down-arrow:hover img {
    transform: translateY(2px);
}

/* Scroll Up Arrow Button */
.scroll-up-arrow {
    position: fixed;
    bottom: 100px; /* Position above the down arrow with more spacing */
    right: 30px;
    transform: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.scroll-up-arrow:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.scroll-up-arrow:active {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.35);
}

.scroll-up-arrow img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Makes the icon white */
}

.scroll-up-arrow:hover img {
    transform: translateY(-2px);
}

.scroll-up-arrow.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Bounce animation for the scroll arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Bounce animation for the up arrow */
@keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(8px);
    }
    60% {
        transform: translateY(4px);
    }
}

/* Hide arrow when user has scrolled down significantly */
.scroll-down-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Mobile transform fixes - matches original working version */
@media (max-width: 490px) {
    svg {
        transform: none;
        transform-origin: center top;
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .scroll-down-arrow {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .scroll-up-arrow {
        bottom: 90px; /* Increased spacing for mobile */
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    /* Modal responsive adjustments */
    .modal {
        align-items: flex-start;
        padding: 20px 10px 40px 10px;
    }
    
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 0.8rem;
        padding-top: 3.5rem;
        max-height: calc(95vh - 120px);
        overflow-y: auto;
    }
    
    .modal-top-section {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.8rem;
    }
    
    .details-row {
        flex-direction: column;
        gap: 0.6rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-intro {
        gap: 0.75rem;
    }
    
    .modal-header h3 {
        font-size: 1.4rem;
    }
    
    .journey-price {
        font-size: 1rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
    }
    
    .modal-details-section h4 {
        font-size: 1rem;
    }
    
    .modal-details-section p,
    .schedule-item,
    .availability-item {
        font-size: 0.85rem;
    }
    
    .trip-dates,
    .trip-schedule,
    .accommodation-section,
    .includes-section,
    .availability-section,
    .expectation-section {
        padding: 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .modal-header {
        margin-bottom: 0.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-right: 2.5rem;
    }
    
    .modal-intro {
        gap: 0.5rem;
    }
    
    .book-now-btn-small {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        align-self: flex-start;
    }
    
    .schedule-item,
    .availability-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .schedule-item strong,
    .availability-item strong {
        min-width: auto;
    }
    
    .schedule-item span,
    .availability-item span {
        text-align: left;
    }
}

/* Extra small devices */
@media (max-width: 425px) {
    .modal {
        align-items: flex-start;
        padding: 0;
    }
    
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .modal-body {
        padding: 0.7rem;
        padding-top: 3rem;
        max-height: calc(100vh - 60px);
    }
    
    .modal-top-section {
        margin-bottom: 0.6rem;
        gap: 0.5rem;
    }
    
    .details-row {
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .journey-price {
        font-size: 0.9rem;
    }
    
    .modal-description {
        font-size: 0.8rem;
    }
    
    .modal-details-section h4 {
        font-size: 0.9rem;
    }
    
    .modal-details-section p,
    .schedule-item,
    .availability-item {
        font-size: 0.75rem;
    }
    
    .book-now-btn-small {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .modal-close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.6rem;
        margin-right: 50px; /* Space for close button */
    }
}