
@font-face {
    font-family: 'Bangla MN';
    src: url('fonts/bangla-mn-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bangla MN';
    src: url('fonts/bangla-mn-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A7C7D;
    --primary-dark: #3D6768;
    --primary-light: #5A8C8D;
    --secondary: #1e3a5f;
    --accent: #c9a227;
    --dark: #1a1a2e;
    --light: #eef2f2;
    --cream: #e8f0f0;
    --white: #ffffff;
    --gray: #dce2e2;
    --text: #2d2d2d;
    --text-light: #6b6b6b;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;
}

body.dark {
    color-scheme: dark;
    --white:      #1a1a2e;
    --light:      #0f0f1a;
    --cream:      #1e2a3a;
    --gray:       #2d3748;
    --text:       #e8e8e8;
    --text-light: #9aabb8;
    --dark:       #f0f0f0;
}

html {
    scroll-behavior: smooth;
    background: #0f0f1a;
    scrollbar-width: none;
}

/* Offset for scroll-to targets so headings don't sit under the top edge */
section h2 {
    scroll-margin-top: 20px;
}


html::-webkit-scrollbar {
    display: none;
}

.scroll-thumb {
    position: fixed;
    right: 2px;
    width: 8px;
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 9999;
    pointer-events: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: transparent;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dark Mode Overrides */
body.dark .modal-content { background: var(--white); color: var(--text); }
body.dark .group-size-btn { background: var(--white); color: var(--primary); border-color: var(--primary); }

body.dark .contact { background: linear-gradient(135deg, #0f0f1a 0%, #0d1a2e 100%); }

body.dark .hero-content { color: #fff; }
body.dark .hero-below p { color: rgba(255,255,255,0.9); }
body.dark .hero-below .btn-primary { background: rgba(255,255,255,0.15); color: #fff; border: 2px solid rgba(255,255,255,0.6); }

body.dark .nav-links .btn-small { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

body.dark .pin-label { background: #0d1520; color: #e8e8e8; }
body.dark .pin-label::after { border-top-color: #0d1520; }

body.dark .destination-info-btn,
body.dark .map-info-btn { background: rgba(255,255,255,0.88); color: #1a1a2e; }

body.dark .tour-card { box-shadow: 0 10px 40px rgba(0,0,0,0.4); }
body.dark .tour-card.visible:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.55); }
body.dark .availability-calendar { box-shadow: 0 10px 40px rgba(0,0,0,0.4); }

body.dark .testimonial-card { border: 1px solid var(--gray); }

body.dark .form-group select { color-scheme: dark; }

body { transition: background-color 0.3s ease, color 0.3s ease; }
.tour-card, .availability-calendar, .modal-content, .contact-form, .stat, .testimonial-card {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle-btn { display: none; } /* dark mode disabled */
/* .theme-toggle-btn { background: none; border: none; cursor: pointer; color: #fff; padding: 6px; display: flex; align-items: center; border-radius: 50%; opacity: 0.85; transition: background 0.2s, opacity 0.2s; } */
.theme-toggle-btn:hover { background: rgba(255,255,255,0.15); opacity: 1; }
.icon-sun { display: none; }
.icon-moon { display: block; }
body.dark .icon-sun { display: block; }
body.dark .icon-moon { display: none; }

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.header.header-hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2.5rem;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.logo img {
    height: 80px;
    width: auto;
    margin-left: -15px;
}

.logo-text {
    font-family: 'Bangla MN', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 3px;
    white-space: nowrap;
    margin-left: 0.75rem;
    margin-top: 15px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.nav-links li:nth-child(-n+2) {
    margin-right: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.nav-icon {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: color 0.3s;
}

.nav-links a.nav-icon:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Tab Navigation System */
section[data-page-tab] {
    display: none;
}

section[data-page-tab].tab-active {
    display: block;
}

section[data-page-tab].tab-active.hero {
    display: flex;
}

section[data-page-tab].tab-active.features {
    display: block;
}

/* Hero-below: mobile-only teal strip with buttons (Option B layout) */
section.hero-below[data-page-tab].tab-active {
    display: none !important;
}

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

section[data-page-tab].tab-active {
    animation: tabFadeIn 0.3s ease-out;
}

.nav-tab-link {
    position: relative;
}

.nav-tab-underline {
    position: absolute;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    opacity: 0;
    transition: left 0.3s ease, width 0.3s ease, top 0.3s ease, opacity 0.2s ease;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--r-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 124, 125, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--primary);
}

.btn-small:hover {
    background: var(--cream);
    opacity: 1;
}

.nav-links .btn-small {
    color: var(--primary);
    border-radius: var(--r-md);
}

.nav-links .btn-small:hover {
    color: var(--primary-dark);
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0 40px;
    background: var(--primary);
    overflow: hidden;
}

/* Hero Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Photo Carousel */
.photo-carousel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.photo-track {
    display: flex;
    height: 100%;
    gap: 0;
    padding: 60px 0 0;
    justify-content: center;
}

.photo-slot {
    position: relative;
    flex: 0 0 20%;
    height: 100%;
    overflow: hidden;
}

.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.photo-slot.transitioning-out img {
    opacity: 0;
    transform: scale(0.95);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    padding: 40px 40px 0;
    max-width: none;
}

.hero-tagline {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    margin-bottom: 2.5rem;
    line-height: 1.3;
    font-weight: 400;
    white-space: nowrap;
    padding-bottom: 0.05em;
    /* gold gradient: background: linear-gradient(135deg, var(--white) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-box-decoration-break: clone; */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 2.5rem auto 4rem;
    line-height: 1.7;
    text-align: justify;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-below {
    background: var(--primary);
    padding: 22px 4vw;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-below p {
    font-size: 1.15rem;
    color: var(--white);
    line-height: 1.7;
    flex: 1;
}

.hero-below .hero-buttons {
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .hero-buttons .btn-primary {
    background: var(--white);
    color: #5a9e8f;
    padding: 16px 36px;
    font-size: 1.05rem;
    box-shadow: 0 0 0 2px #5a9e8f, 0 0 15px rgba(90, 158, 143, 0.4);
}

.hero .hero-buttons .btn-primary:hover {
    background: var(--cream);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Old transparent hero buttons — kept for easy revert */
/* .hero .hero-buttons .btn-secondary--transparent {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
    padding: 16px 36px;
    font-size: 1.05rem;
}
.hero .hero-buttons .btn-secondary--transparent:hover {
    background: rgba(255,255,255,0.15);
} */

.hero .hero-buttons .btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
    padding: 16px 36px;
    font-size: 1.05rem;
}

.hero .hero-buttons .btn-secondary:hover {
    background: var(--cream);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.hero .hero-buttons .btn-secondary:last-child {
    color: #2f5a5b;
}

.btn-arrows {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
    gap: 0;
    opacity: 1;
    transform: rotate(90deg) translateX(2px);
}

.btn-arrows-right {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    vertical-align: middle;
    margin-left: 8px;
    gap: 0;
    opacity: 1;
}

.btn-arrows-right svg {
    width: 10px;
    height: 14px;
    margin-left: -4px;
    position: relative;
    top: -1px;
    flex-shrink: 0;
}

.btn-arrows-right svg:first-child {
    margin-left: 0;
}

.btn-arrows svg {
    width: 10px;
    height: 14px;
    margin-left: -4px;
}

.btn-arrows svg:first-child {
    margin-left: 0;
}

/* Features Strip */
.features {
    padding: 40px 20px 20px;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.feature h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Alternating Section Backgrounds */
main > section:nth-child(even):not(.contact):not(.team-cta):not(.hero-below):not(.info-section) {
    background: var(--white);
}

main > section:nth-child(odd):not(.hero):not(.contact):not(.team-cta):not(.hero-below):not(.info-section) {
    background: var(--light);
}

/* Adventure Builder Section */
.adventure-builder {
    padding: 24px 0 100px;
    background: var(--white) !important;
}

.adventure-builder > .container {
    max-width: 1400px;
    padding: 0 32px;
}

.adventure-builder .section-subtitle {
    margin-bottom: 3rem;
}

.adventure-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.map-and-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.destinations-wrapper {
    flex: 1;
    position: relative;
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 0;
    position: relative;
    align-content: start;
}

@keyframes dest-tile-enter {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.destination-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.destination-card.entering {
    animation: dest-tile-enter 200ms ease-out both;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.destination-card.selected {
    box-shadow: 0 0 0 4px #ef4444, 0 15px 40px rgba(0, 0, 0, 0.2);
}

body.dest-info-open .destination-card.selected {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.45s ease;
}

.destination-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s;
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

/* Destination Category Tabs */
.destination-category-tabs {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    background: var(--cream);
    border-radius: var(--r-md);
    padding: 4px;
    margin-bottom: 0.5rem;
    position: relative;
}

.dest-cat-pill {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    border-radius: var(--r-sm);
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(74, 124, 125, 0.3);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    transition: transform 280ms cubic-bezier(0.65, 0, 0.35, 1);
}

.dest-cat-pill.pill-snap {
    transition: none !important;
}

.dest-cat-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.dest-cat-tab:hover:not(.active) {
    color: var(--primary);
}

.dest-cat-tab.active {
    color: white;
}

@media (max-width: 480px) {
    .dest-cat-tab {
        font-size: 0.78rem;
        padding: 9px 8px;
    }
}

/* Destination images are loaded via JS (loadDestinationImages in script.js)
   so the hero video can start streaming first. Images then load in parallel
   so switching Cairo / Nile / Red Sea tabs never shows empty tiles. */

.destination-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.4rem 0.75rem 0.6rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    overflow-wrap: break-word;
}

.destination-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.destination-card.selected .destination-check {
    opacity: 1;
    transform: scale(1);
}

/* Destination Info Button */
.destination-info-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
    cursor: pointer;
    z-index: 10;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.destination-card:hover .destination-info-btn {
    opacity: 1;
    transform: scale(1);
}

.destination-info-btn:hover {
    background: var(--primary);
    color: white;
}

/* Expanded Destination View */
.destination-expanded-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow: hidden;
    border-radius: var(--r-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease; /* closing: plain fade */
}

.destination-expanded-overlay.active {
    opacity: 1;
    pointer-events: auto;
    animation: destOverlayIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes destOverlayIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.destination-expanded {
    width: 100%;
    height: 100%;
    position: relative;
    max-width: 100%;
}



.destination-expanded-image {
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
}

.destination-expanded-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.destination-expanded-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.destination-expanded-content h3 {
    font-size: 2.25rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.destination-expanded-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.destination-expanded-content .destination-expanded-rec {
    font-style: italic;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.destination-expanded-highlights {
    list-style: none;
    margin-bottom: 1rem;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 2rem;
}

.destination-expanded-highlights li {
    padding-left: 1.25rem;
    position: relative;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.destination-expanded-highlights li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-size: 0.5rem;
    top: 0.37rem;
}

/* Destination Slideshow */
.destination-slideshow {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.slideshow-nav {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slideshow-prev::before,
.slideshow-next::before {
    content: '';
    width: 7px;
    height: 7px;
    border-style: solid;
    border-color: white;
    border-width: 0;
}

.slideshow-prev::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(45deg);
    margin-left: 2px;
}

.slideshow-next::before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg);
    margin-right: 2px;
}

.slideshow-nav:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slideshow-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
    margin: -4px;
    height: 89px; /* 81px thumb + 4px padding top + 4px padding bottom — fixed so modal never grows */
}

.slideshow-thumbnails::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.slideshow-thumb {
    flex: 0 0 auto;
    width: 108px;
    height: 81px;
    border-radius: var(--r-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.slideshow-thumb:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.slideshow-thumb.active {
    border-color: white;
}

.slideshow-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Lightbox - contained within info window */
.slideshow-lightbox {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-radius: var(--r-lg);
}

.slideshow-lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--r-sm);
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2px;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav::before {
    content: '';
    width: 10px;
    height: 10px;
    border-style: solid;
    border-color: white;
    border-width: 0;
}

.lightbox-nav.prev::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(45deg);
    margin-left: 3px;
}

.lightbox-nav.next::before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg);
    margin-right: 3px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
    left: 10px;
}

.lightbox-nav.next {
    right: 10px;
}

@media (max-width: 768px) {
    .slideshow-thumbnails {
        /* 3 thumbnails on mobile: 3 × 90px + 2 × 8px = 286px */
        width: 286px;
        max-width: 286px;
        gap: 8px;
        height: 76px; /* 68px thumb + 4px padding top + 4px padding bottom — fixed, no growth */
    }

    .slideshow-thumb {
        width: 90px;
        height: 68px;
    }

    .slideshow-lightbox {
        padding: 20px;
    }

    .lightbox-nav {
        width: 36px;
        height: 36px;
        font-size: 0;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
    }
}

.destination-expanded-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 2px;
    justify-content: center;
    z-index: 10;
}

.destination-expanded-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .destination-expanded-content {
        padding: 1.5rem;
    }

    .destination-expanded-content h3 {
        font-size: 1.5rem;
    }

    .destination-expanded-content p {
        font-size: 0.9rem;
    }

    .destination-expanded-highlights {
        grid-template-columns: 1fr;
    }

    .destination-info-btn {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        opacity: 0.7;
        transform: scale(1);
    }


    /* Floating modal on mobile — anchored below the header, then shifted
       down to visually centre it when there's room. max() ensures it never
       slides back up behind the sticky header for tall modals. */
    .destination-expanded-overlay {
        position: fixed;
        top: 72px; /* overridden by JS inline style with centred value */
        left: 14px;
        right: 14px;
        bottom: auto;
        max-height: calc(100dvh - 86px);
        height: auto;
        min-height: unset;
        border-radius: var(--r-lg);
        z-index: 1001;
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.2s ease; /* closing: plain fade */
        display: block !important;
    }

    .destination-expanded-overlay.active {
        opacity: 1;
        animation: destOverlayIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    /* Dark scrim around the modal */
    body.dest-info-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: scrimIn 0.2s ease-out; /* quick, subtle — panel takes longer so scrim never dominates */
    }

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

    /* Make the inner box the scroll container so sticky works */
    .destination-expanded {
        border-radius: var(--r-lg);
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100dvh - 86px);
    }

    .destination-expanded-content {
        overflow: visible;
        height: auto;
        padding: 1.25rem 1.5rem 0;
        box-sizing: border-box;
    }

    /* Carousel sticks to the bottom of the .destination-expanded scroll viewport */
    .destination-slideshow {
        position: sticky;
        bottom: 0;
        /* Break out of the content's 1.5rem horizontal padding so the gradient
           reaches the full modal width edge-to-edge */
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 0.75rem calc(1rem + 1.5rem) 2rem; /* reclaim the 1.5rem we took with margins */
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6) 28%);
        border-top: none;
        margin-top: 0;
    }

    .destination-expanded-content h3 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
        padding-right: 3.5rem; /* clear the × close button (36px btn + 12px gap + buffer) */
    }

    .destination-expanded-content p {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 0.9rem;
    }

    .destination-expanded-rec {
        font-size: 0.84rem !important;
        margin-bottom: 0.9rem !important;
    }

    .destination-expanded-highlights {
        margin-bottom: 0.75rem;
    }

    .destination-expanded-highlights li {
        font-size: 0.88rem;
    }
}

.adventure-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adventure-cta .cta-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0.75rem 1.1rem;
    background: var(--cream);
    border-radius: var(--r-lg);
}

.adventure-cta .btn-large {
    align-self: stretch;
    border-radius: var(--r-lg);
    white-space: nowrap;
    margin-top: 0;
}


.selected-count {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.selected-count #destinationCount {
    font-weight: 700;
    color: #ef4444;
}

.selected-count #destinationLabel {
    font-weight: 400;
    color: var(--text-light);
}


.price-estimate {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.price-estimate span {
    font-weight: 700;
    color: var(--primary);
}

.builder-subtitle {
    position: relative;
    text-align: center;
}

.builder-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 8px;
    margin-bottom: 3px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.builder-info-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.builder-info-tooltip {
    display: none;
    position: absolute;
    background: rgba(120, 120, 120, 0.92);
    color: white;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: var(--r-sm);
    width: 280px;
    z-index: 2100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    white-space: normal;
    text-align: left;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-weight: normal;
}

.builder-info-tooltip.visible {
    display: block;
}

.price-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    border: none;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 3px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.price-info-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

.price-estimate-wrap {
    position: relative;
}

.price-info-tooltip {
    display: none;
    position: absolute;
    background: rgba(120, 120, 120, 0.92);
    color: white;
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    width: 180px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    white-space: normal;
    bottom: -90px;
    right: 20px;
}

.price-info-tooltip.visible {
    display: block;
}

.tours-price-info {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.tours-price-info .price-info-btn {
    background: var(--gray);
    color: var(--primary);
    margin-left: 8px;
    margin-bottom: 6px;
}

.tours-price-info .price-info-btn:hover {
    background: var(--primary);
    color: white;
}

.tours-price-info .price-info-tooltip {
    width: 220px;
    bottom: calc(100% + 8px);
    top: auto;
    right: auto;
    left: -100px;
    transform: none;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Egypt Map */
.map-frame {
    position: relative;
}

.egypt-map-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    box-shadow: 0 0 0 3px var(--primary), 0 8px 30px rgba(0, 0, 0, 0.12);
    border: none;
}

.egypt-map-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* Map Info Button & Overlay */
.map-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    z-index: 15;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.map-info-btn:hover {
    background: var(--primary);
    color: white;
}

.map-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.map-info-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.map-info-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
}

.map-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    color: white;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-bottom: 2px;
    z-index: 10;
}

.map-info-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.map-info-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    padding-bottom: 5.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.map-info-content h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.map-info-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.map-info-content .map-info-attribution {
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    right: 2.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    text-shadow: none;
    margin-bottom: 0;
    text-decoration: none;
    display: block;
}

.map-info-content .map-info-attribution:hover {
    color: rgba(255, 255, 255, 0.6);
}

.map-pins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.map-pin {
    position: absolute;
    margin-left: -8px;
    margin-top: -8px;
    pointer-events: none;
    cursor: pointer;
}

.map-pin.active,
.map-pin.selected,
.map-pin.info-viewing {
    pointer-events: auto;
}

.map-pin .pin-dot {
    opacity: 0;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.map-pin.active .pin-dot,
.map-pin.selected .pin-dot,
.map-pin.info-viewing .pin-dot {
    opacity: 1;
}

.map-pin.active .pin-dot {
    animation: pinBounce 0.5s ease-out;
}

.map-pin.info-viewing .pin-dot {
    background: var(--primary);
    transform: scale(1.2);
}

.pin-dot {
    display: block;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, transform 0.3s;
}

.map-pin.selected .pin-dot {
    background: #ef4444;
    transform: scale(1.2);
}

.pin-label {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: var(--dark);
    color: white;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
}

.pin-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    /* Pull the arrow up by 1px so its solid top edge overlaps the label body,
       closing the sub-pixel seam that appears at fractional label heights on
       high-DPR (mobile) screens. The overlap sits at the label's flat centre,
       away from the rounded corners, so it stays invisible. */
    margin-top: -1px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark);
}

.map-pin.active .pin-label,
.map-pin.selected .pin-label,
.map-pin.info-viewing .pin-label {
    opacity: 1;
}

/* Hide labels when they overlap with nearby pins */
.map-pin.label-collapsed .pin-label {
    opacity: 0 !important;
}

.map-pin.label-collapsed:hover,
.map-pin.label-collapsed.label-reveal {
    z-index: auto;
}

.map-pin.label-collapsed:hover .pin-label,
.map-pin.label-collapsed.label-reveal .pin-label {
    opacity: 1 !important;
}

.egypt-map-container.info-open ~ .map-pins-overlay .pin-label {
    opacity: 0 !important;
    transition: none;
}

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

/* Shared modal panel animation */
@keyframes modalPanelIn {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Adventure Modal */
.adventure-modal {
    display: none;
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.adventure-modal.active {
    display: flex;
}

.adventure-modal.active .modal-content {
    animation: modalPanelIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.adventure-modal.tour-mode {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.adventure-modal.tour-mode .modal-content {
    width: 750px;
    max-width: calc(100vw - 40px);
    height: min(750px, 90vh);
    overflow-y: auto;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.25);
    animation: modalPanelIn 0.25s ease;
    padding: 2rem 2rem 1.5rem;
}

@media (max-width: 600px) {
    .adventure-modal.tour-mode {
        padding: 0;
        align-items: flex-end;
    }
    .adventure-modal.tour-mode .modal-content {
        width: 100%;
        max-width: 100%;
        height: 92dvh;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
    }
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: var(--r-lg);
    width: 100%;
    height: 100%;
    position: relative;
    text-align: center;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--text);
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.adventure-modal .modal-content h3 {
    font-size: 2.5rem;
}

.adventure-modal .modal-content p {
    font-size: 1.2rem;
}

.adventure-modal .modal-content .modal-cal-tip {
    font-size: 1rem;
    text-align: left;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content input[type="email"],
.modal-content input[type="text"],
.modal-content textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray);
    border-radius: var(--r-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
    resize: none;
    overflow: hidden;
}

.modal-content input[type="email"]:focus,
.modal-content input[type="text"]:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row-bottom {
    align-items: flex-end;
}

.form-row-bottom .form-group {
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-row-bottom .btn {
    padding: 16px 1.75rem;
    white-space: nowrap;
    font-size: 1.05rem;
}

.selected-destinations-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.selected-destinations-list li {
    background: var(--gray);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: var(--r-lg);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1.5px solid #ef4444;
}

.modal-content .form-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-content .form-row .form-group {
    margin-bottom: 0;
}

.modal-content .form-row .form-group:first-child {
    flex-shrink: 0;
}

.modal-content .form-row .form-group:last-child {
    flex: 1;
}

.modal-content .form-row .form-group:first-child .form-label {
    padding-left: 0.5rem;
}

.modal-content .form-row .form-group:last-child .form-label {
    text-align: center;
    padding-left: 0;
}

.modal-content .form-label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Travel date field with calendar button */
.travel-date-group {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}
.travel-date-group input {
    flex: 1;
    min-width: 0;
}
.cal-icon-btn {
    flex-shrink: 0;
    background: var(--light);
    border: 1.5px solid #ddd;
    border-radius: var(--r-sm);
    width: 52px; /* = adventure modal input height (14px×2 pad + 2px×2 border + ~20px line) */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cal-icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.tour-booking-body .cal-icon-btn {
    width: 56px; /* = tour booking input height (1rem×2 pad + 2px×2 border + ~20px line) */
}

/* Modal calendar overlay */
.modal-calendar-overlay {
    position: absolute;
    inset: 0;
    background: white;
    border-radius: inherit;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 2.75rem 5.5rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
}
.modal-calendar-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
.modal-cal-header {
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    z-index: 1;
}
.modal-cal-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.modal-cal-back:hover { opacity: 0.7; }
.modal-cal-tip {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
}

/* Strip card styling from the calendar when inside the modal overlay */
.modal-calendar-overlay .availability-calendar {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.modal-calendar-overlay .calendar-grid {
    flex: 1;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
}
.modal-calendar-overlay .calendar-days {
    flex: 1;
    grid-template-rows: repeat(6, 1fr);
    grid-auto-rows: 0;
}
.modal-calendar-overlay .calendar-day {
    aspect-ratio: auto;
}
.modal-calendar-overlay .calendar-day {
    font-size: 1.05rem;
}
.modal-calendar-overlay .calendar-month {
    font-size: 1.25rem;
}

.tour-info-panel .calendar-month {
    font-size: 2.5rem;
}
.modal-calendar-overlay .calendar-nav {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
}
.modal-calendar-overlay .calendar-legend {
    padding: 0 0.5rem;
    border-top: none;
}

/* Range selection highlighting in modal calendar */
.modal-calendar-overlay .calendar-day.range-start,
.modal-calendar-overlay .calendar-day.range-end {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700;
}
.modal-calendar-overlay .calendar-day.range-preview-end {
    background: var(--primary) !important;
    color: white !important;
    opacity: 0.6;
}
.modal-calendar-overlay .calendar-day.in-range {
    background: rgba(42, 157, 143, 0.35) !important;
}
.modal-calendar-overlay .calendar-day.in-range-preview {
    background: rgba(42, 157, 143, 0.35) !important;
}

.group-size-picker {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.group-size-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: white;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
    padding-bottom: 2px;
}

.group-size-btn:hover:not(.disabled) {
    background: var(--primary);
    color: white;
}

.group-size-btn.disabled {
    border-color: var(--gray);
    color: var(--gray);
    cursor: default;
    opacity: 0.5;
}

.group-size-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark);
    width: 2.5rem;
    text-align: center;
}

/* Email confirmation overlay */
.email-confirm-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10;
    align-items: center;
    justify-content: center;
}

/* Teal rounded border as pseudo-element so the flat white background
   covers the full form rectangle (hiding input borders at corners)
   while the visual border still has rounded corners */
.email-confirm-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--primary);
    border-radius: var(--r-lg);
    pointer-events: none;
}

.email-confirm-overlay.active {
    display: flex;
}

#adventureForm,
#tourBookingForm {
    position: relative;
    overflow: hidden;
}

.email-confirm-box,
.email-confirm-sent {
    text-align: center;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
}

.email-confirm-question {
    font-size: 28px !important;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.email-confirm-address {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--light);
    padding: 1rem 1.5rem;
    border-radius: var(--r-sm);
    margin-bottom: 1rem;
    word-break: break-all;
}

.email-confirm-note {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.email-confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.email-confirm-back {
    background: var(--light);
    color: var(--dark);
    border: none;
    padding: 14px 32px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.email-confirm-send {
    padding: 14px 32px;
    font-size: 1rem;
}

.email-confirm-sent {
    display: none;
}

.email-confirm-checkmark {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.25rem;
}

.email-confirm-sent-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.email-confirm-sent-text {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.email-confirm-done {
    padding: 14px 56px;
    font-size: 1rem;
}


.transport-options {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.4rem;
    justify-content: end;
    padding-left: 0;
}

.transport-option {
    padding: 6px 8px;
    border: 2px solid var(--gray);
    border-radius: var(--r-pill);
    background: white;
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.transport-option:hover {
    border-color: var(--primary);
}

.transport-option.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Section Titles */
h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* Tours Section */
main > section.tours {
    padding: 30px 0 20px;
    background: var(--light) !important;
}

.tours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 8px;
}

.tour-card-extra {
    display: none !important;
}

.tours-grid.tours-expanded .tour-card-extra {
    display: grid !important;
    animation: tourFadeIn 0.35s ease-out both;
}

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

.tours-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    transition: opacity 0.25s ease, margin-top 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.tours-show-more-wrap.hidden {
    opacity: 0;
    height: 0;
    margin-top: 0;
    pointer-events: none;
}

.tours-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-pill);
    transition: background 0.2s, color 0.2s;
}

@media (hover: hover) {
    .tours-show-more:hover {
        background: var(--primary);
        color: var(--white);
    }
}

.tours-show-more {
    touch-action: manipulation;
}

.tours-show-more > * {
    pointer-events: none;
}

.tours-show-more-chevron {
    width: 12px;
    height: 8px;
    transition: transform 0.2s ease;
}

.tours-show-more.expanded .tours-show-more-chevron {
    transform: rotate(180deg);
}

.tour-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@keyframes tourSelect {
    from { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); }
    to { box-shadow: 0 0 0 4px #ef4444, 0 15px 40px rgba(0, 0, 0, 0.2); }
}

.tour-card.selected {
    box-shadow: 0 0 0 4px #ef4444, 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: tourSelect 0.2s ease;
}

.tour-card:nth-child(4n+2),
.tour-card:nth-child(4n+3) {
    direction: rtl;
}

.tour-card:nth-child(4n+2) > *,
.tour-card:nth-child(4n+3) > * {
    direction: ltr;
}

.tour-image {
    min-height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.tour-card:hover .tour-image {
    /* no zoom when carousel is present */
}

.tour-image.ultimate-egypt-experience {
    background: linear-gradient(135deg, #1a5276 0%, #2a7a7b 40%, #c9a227 100%);
}

.tour-image.pyramids {
    background: linear-gradient(135deg, #d4a76a 0%, #c9a227 50%, #a8871e 100%);
}

.tour-image.nile {
    background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #1e3a5f 100%);
}

.tour-image.white-desert {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 50%, #d35400 100%);
}

.tour-image.dendera-daytrip {
    background: url('destinations/dendera.jpg') center/cover;
}

.tour-image.luxor-daytrip {
    background: linear-gradient(135deg, #8b4513 0%, #cd853f 50%, #8b4513 100%);
}

.tour-image.cairo-daytrip {
    background: linear-gradient(135deg, #4a3728 0%, #c9a227 50%, #4a3728 100%);
}

.tour-image.red-sea-boat {
    background: linear-gradient(135deg, #006994 0%, #00b4d8 50%, #006994 100%);
}

.tour-image.eastern-desert {
    background: linear-gradient(135deg, #a0522d 0%, #deb887 50%, #a0522d 100%);
}

.tour-image.aswan-weekend {
    background: linear-gradient(135deg, #2a7a7b 0%, #48c9b0 50%, #2a7a7b 100%);
}

.tour-image.four-days-cairo {
    background: linear-gradient(135deg, #1a5276 0%, #d4a76a 50%, #1a5276 100%);
}

.tour-image.red-sea-experience {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #2980b9 100%);
}

/* Tour Carousel */
.tour-carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.tour-carousel-img-back {
    z-index: 1;
}

.tour-carousel-img-front {
    z-index: 2;
}

.tour-carousel-prev,
.tour-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    /* Hide the literal ‹ / › text glyph (kept for a11y label fallback) and
       draw a geometric chevron instead — font glyphs sit off-centre in Inter's
       line box, a CSS border chevron is symmetric and always centres cleanly. */
    font-size: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-carousel-prev::before,
.tour-carousel-next::before {
    content: '';
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: white;
    border-width: 0;
}

.tour-carousel-prev::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(45deg);
    margin-left: 3px; /* optical-centre the "<" within the round button */
}

.tour-carousel-next::before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg);
    margin-right: 3px; /* optical-centre the ">" within the round button */
}

.tour-image:hover .tour-carousel-prev,
.tour-image:hover .tour-carousel-next {
    opacity: 1;
}

.tour-carousel-prev:hover,
.tour-carousel-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.tour-carousel-prev { left: 8px; }
.tour-carousel-next { right: 8px; }

.tour-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.tour-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.tour-carousel-dot.active {
    background: white;
    transform: scale(1.25);
}

.tour-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* RTL tour cards: reset direction on carousel buttons */
.tour-card:nth-child(4n+2) .tour-carousel-prev,
.tour-card:nth-child(4n+2) .tour-carousel-next,
.tour-card:nth-child(4n+2) .tour-carousel-dots,
.tour-card:nth-child(4n+3) .tour-carousel-prev,
.tour-card:nth-child(4n+3) .tour-carousel-next,
.tour-card:nth-child(4n+3) .tour-carousel-dots {
    direction: ltr;
}

.tour-content {
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tour-content h3 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 0.05rem;
    line-height: 1.15;
    padding-right: 0;
}

.tour-content > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tour-category,
.tour-content > p.tour-category {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.tour-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tour-price {
    opacity: 0.85;
    font-size: 0.85rem;
    font-weight: 400;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding-right: 0.75rem;
}

/* Tour Info Button */
.tour-content {
    position: relative;
}

.tour-info-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    border: 1.5px solid var(--gray);
    font-size: 0.95rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}

.tour-info-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Tour Info Overlay */
.tour-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.tour-info-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.tour-info-panel {
    position: relative;
    background: #1a1a2e;
    border-radius: var(--r-lg);
    width: 750px;
    max-width: calc(100vw - 40px);
    max-height: 93vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.25);
    animation: modalPanelIn 0.25s ease;
}

.tour-info-header {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 1.75rem 2rem 1.5rem;
    overflow: hidden;
}

.tour-info-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.tour-info-header-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: left;
}

.tour-info-header-content h2 {
    font-size: 2.9rem;
    font-weight: 400;
    color: white;
    margin: 0 0 0.35rem;
    line-height: 1.15;
    text-align: left;
}

.tour-info-duration {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.tour-info-close,
.tour-info-back {
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    padding: 0;
}

.tour-info-close { right: 14px; }
.tour-info-back  { left: 14px; display: none; }

.tour-info-close:hover,
.tour-info-back:hover {
    background: rgba(0, 0, 0, 0.6);
}

.tour-info-close svg,
.tour-info-back svg {
    display: block;
}

.tour-info-body {
    padding: 2rem;
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: var(--white);
}

.tour-info-desc {
    color: #444;
    line-height: 1.65;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Unified details panel — Highlights + What's Included share one light-teal box */
.tour-info-details {
    background: rgba(74, 124, 125, 0.08);
    border-radius: var(--r-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tour-info-section h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.tour-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
}

.tour-info-list li {
    font-size: 0.85rem;
    color: var(--text-light);
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.4;
}

.tour-info-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Highlights use a dot marker instead of a checkmark */
.tour-info-list--dot li::before {
    content: "•";
    font-size: 1rem;
    top: -3px;
}

.tour-info-footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid var(--gray);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: var(--white);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

/* Booking view — shown instead of body+footer when Inquire Now is clicked */
.tour-booking-body {
    display: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 2rem 0;
    background: var(--white);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    flex-direction: column;
}

.tour-booking-intro {
    color: var(--text-light);
    font-size: 1.08rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.tour-booking-body .form-group {
    margin-bottom: 0.85rem;
}

/* Bottom action row: group size on left, submit on right */
.tour-booking-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid var(--gray);
}

.tour-booking-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tour-booking-group .form-label {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    margin: 0;
}

.tour-booking-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tour-info-inquire {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.tour-info-inquire .tour-info-price {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.85;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding-right: 0.75rem;
}

/* Header backgrounds for each tour */
.tour-info-header.ultimate-egypt-experience { background: linear-gradient(135deg, #1a5276 0%, #2a7a7b 40%, #c9a227 100%); }
.tour-info-header.pyramids              { background: linear-gradient(135deg, #d4a76a 0%, #c9a227 50%, #a8871e 100%); }
.tour-info-header.nile                  { background: linear-gradient(135deg, #1e3a5f 0%, #2980b9 50%, #1e3a5f 100%); }
.tour-info-header.white-desert          { background: linear-gradient(135deg, #d35400 0%, #e67e22 50%, #d35400 100%); }
.tour-info-header.dendera-daytrip       { background: url('destinations/dendera.jpg') center/cover; }
.tour-info-header.luxor-daytrip         { background: linear-gradient(135deg, #8b4513 0%, #cd853f 50%, #8b4513 100%); }
.tour-info-header.cairo-daytrip         { background: linear-gradient(135deg, #4a3728 0%, #c9a227 50%, #4a3728 100%); }
.tour-info-header.red-sea-boat          { background: linear-gradient(135deg, #006994 0%, #00b4d8 50%, #006994 100%); }
.tour-info-header.eastern-desert        { background: linear-gradient(135deg, #a0522d 0%, #deb887 50%, #a0522d 100%); }
.tour-info-header.aswan-weekend         { background: linear-gradient(135deg, #2a7a7b 0%, #48c9b0 50%, #2a7a7b 100%); }
.tour-info-header.four-days-cairo       { background: linear-gradient(135deg, #1a5276 0%, #d4a76a 50%, #1a5276 100%); }
.tour-info-header.red-sea-experience    { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #2980b9 100%); }

/* Tour Info Slideshow */
.tour-info-slideshow {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tour-slideshow-nav {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.tour-slideshow-prev::before,
.tour-slideshow-next::before {
    content: '';
    width: 7px;
    height: 7px;
    border-style: solid;
    border-color: var(--text);
    border-width: 0;
}

.tour-slideshow-prev::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(45deg);
    margin-left: 2px;
}

.tour-slideshow-next::before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg);
    margin-right: 2px;
}

.tour-slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* Tour Info Lightbox — fills the overlay backdrop */
.tour-info-lightbox {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.tour-info-lightbox.active {
    display: flex;
}


/* About Section */
.about {
    padding: 100px 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.team-intro {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    max-width: 540px;
    text-align: justify;
}


.about-list {
    list-style: none;
}

.about-list li {
    padding: 0.7rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    font-size: 1rem;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: var(--r-lg);
    text-align: center;
    border-left: 4px solid var(--primary);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 0.3rem;
    display: block;
}

/* Team Section */
.team {
    padding: 100px 20px;
}

/* Sections that are first on their tab (non-hero) need extra top padding for fixed header */
.team[data-page-tab="our-team"] {
    padding-top: 120px;
}


.team-grid {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    gap: 0;
    margin: 0 auto;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: left;
    margin-top: -40px;
}

.team-card:first-child {
    margin-top: 0;
}

.team-card-reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.team-image {
    width: 235px;
    height: 235px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Circular background fill */
.team-image::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 0;
}

/* Teal border ring — sits above the image inside the circle so transparent
   edge pixels don't create gaps; overflow content (hand, pyramid) paints
   above this naturally because ::after only covers the 220px element bounds */
.team-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--primary);
    z-index: 2;
    pointer-events: none;
}

/* Romeo */
.team-card:nth-child(1) .team-image::before {
    background: linear-gradient(180deg, #b8cfe8 0%, #e8c4a0 60%, #d4a090 100%);
}

/* Hassan */
.team-card:nth-child(2) .team-image::before {
    background: linear-gradient(180deg, #b8cfe8 0%, #e8c4a0 60%, #d4a090 100%);
}

/* Jim */
.team-card:nth-child(3) .team-image::before {
    background: linear-gradient(180deg, #b8cfe8 0%, #e8c4a0 60%, #d4a090 100%);
}

.team-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: circle(50% at 50% 50%);
    z-index: 1;
}

/* Romeo — pokes above the circle */
.team-card:nth-child(1) .team-image img {
    clip-path: none;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
    bottom: 0;
    left: 0;
    z-index: 3;
    transform: translateX(-1%);
}

/* Hassan — waving hand pokes above the circle */
.team-card:nth-child(2) .team-image img {
    clip-path: none;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
    bottom: 0;
    left: 0;
    z-index: 3;
}

/* Jim — pyramid pokes above the circle */
.team-card:nth-child(3) .team-image img {
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: unset;
    clip-path: none;
    bottom: 0;
    left: 0;
    z-index: 3;
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.team-flags {
    display: inline;
}

.team-flags .flag {
    font-size: 0.85em;
}

.team-flags .flag + .flag {
    margin-left: 0.1rem;
}

/* Instagram Section */
.instagram {
    padding: 80px 0;
    text-align: center;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.instagram-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--r-sm);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-item.placeholder {
    background: linear-gradient(135deg,
        hsl(var(--hue), 40%, 50%) 0%,
        hsl(var(--hue), 50%, 40%) 100%);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 124, 125, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-overlay span {
    color: white;
    font-size: 2rem;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-btn {
    margin-top: 1rem;
}

.instagram-handle {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s;
}

.instagram-handle:hover {
    color: var(--primary);
}

.instagram-handle-name {
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}

/* Testimonials Section */
.testimonials {
    padding: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: var(--r-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.stars {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card > p {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: var(--dark);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Social Proof Row — Instagram + Testimonials side by side */
.social-proof {
    padding: 60px 20px;
    overflow: hidden;
    position: relative;
}

.social-proof::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: calc(50% - 20px - 3rem);
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--light));
    pointer-events: none;
    z-index: 1;
}

.social-proof-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.social-proof-col {
    min-width: 0;
}

.social-proof-col.instagram {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.social-proof-columns .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    align-content: start;
    margin-bottom: 0;
    overflow: hidden;
}

.social-proof-columns .instagram-item {
    aspect-ratio: auto;
    height: clamp(210px, 23vw, 260px);
    position: relative;
    min-width: 0;
}

.social-proof-columns .instagram-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--op-x, 50%) var(--op-y, 50%);
}

@media (max-width: 968px) {
    .social-proof-columns .instagram-item img {
        object-position: var(--op-x-mob, var(--op-x, 50%)) var(--op-y-mob, var(--op-y, 50%));
    }
}

.social-proof-col.testimonials {
    display: flex;
    flex-direction: column;
}

.social-proof-columns .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.social-proof-columns .testimonial-card {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.875rem 1.25rem;
}

.social-proof-columns .testimonial-card::before {
    display: none;
}

.social-proof-columns .testimonial-card .stars {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.social-proof-columns .testimonial-card > p {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.social-proof-columns .testimonial-author strong {
    font-size: 0.9rem;
}

.social-proof-columns .testimonial-author span {
    font-size: 0.8rem;
}

/* Availability Calendar Section */
.team .container {
    max-width: 1440px;
}

.team-availability-layout {
    display: flex;
    gap: 80px;
    align-items: stretch;
}

.team-side {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.team-side .section-subtitle {
    margin-bottom: 1.5rem;
}

.team-side h2 {
    margin-bottom: 0.5rem;
}

.team-side .team-grid {
    margin-top: 1.5rem;
}

.intro-video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 18px;
    align-self: center;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(90, 158, 143, 0.5);
    transition: text-decoration-color 0.2s, color 0.2s;
}

.intro-video-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.intro-video-link:hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary-dark);
}

.team-scroll-hint {
    display: none;
}

@media (max-width: 768px) {
    .team-scroll-hint {
        display: flex;
        justify-content: center;
        position: fixed;
        bottom: 28px;
        left: 0;
        right: 0;
        pointer-events: none;
        z-index: 100;
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .team-scroll-hint.hidden {
        opacity: 0;
    }

    .team-scroll-hint svg {
        width: 32px;
        height: 32px;
        color: var(--primary);
        filter: drop-shadow(0 2px 6px rgba(0,0,0,0.18));
        animation: scrollBounce 1.6s ease-in-out infinite;
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(6px); opacity: 1; }
}

.availability-side {
    flex: 0 0 520px;
    text-align: center;
}

.availability-side h2 {
    margin-bottom: 0.5rem;
}

.company-text-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.company-text-side h2 {
    margin-bottom: 0.25rem;
}

.about-text-panel {
    background: rgba(93, 137, 131, 0.1);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-read-more {
    display: none;
}

.about-text-extra {
    /* always visible on desktop */
}

.company-text-side p {
    color: var(--text);
    line-height: 1.6;
    font-size: 1.05rem;
}

.company-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    padding: 0;
}

.company-nav-buttons .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
}

.company-nav-buttons .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.company-nav-buttons .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.availability-section {
    padding: 64px 20px 30px;
    text-align: center;
}

.availability-section h2 {
    margin-bottom: 1.5rem;
}

.availability-section .availability-calendar {
    max-width: none;
    margin: 0 auto;
    margin-top: 0.5rem;
}

@media (max-width: 1000px) {
    .team-availability-layout {
        flex-direction: column;
        gap: 40px;
    }

    .availability-side {
        flex: none;
        width: 100%;
    }
}

.availability-calendar {
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: var(--light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn::before {
    content: '';
    width: 9px;
    height: 9px;
    border-style: solid;
    border-color: var(--primary);
    border-width: 0;
    transition: border-color 0.3s;
}

#prevMonth::before,
#modalPrevMonth::before {
    border-left-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(45deg);
    margin-left: 3px;
}

#nextMonth::before,
#modalNextMonth::before {
    border-right-width: 2px;
    border-bottom-width: 2px;
    transform: rotate(-45deg);
    margin-right: 3px;
}

.calendar-nav-btn:hover::before {
    border-color: var(--white);
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.calendar-month {
    font-size: 1.3rem;
    color: var(--dark);
    margin: 0;
}

.calendar-grid {
    margin-bottom: 1rem;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 0.5rem;
}

.calendar-header span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: var(--r-sm);
    transition: all 0.2s;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.past {
    color: var(--gray);
    background: transparent;
}

.calendar-day.available {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-weight: 500;
}

.calendar-day.available:hover {
    background: rgba(16, 185, 129, 0.3);
    cursor: pointer;
}

.calendar-day.limited {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    font-weight: 500;
}

.calendar-day.limited:hover {
    background: rgba(245, 158, 11, 0.3);
    cursor: pointer;
}

.calendar-day.booked {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    font-weight: 500;
    cursor: pointer;
}

.calendar-day.booked:hover {
    background: rgba(239, 68, 68, 0.3);
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.legend-item-limited {
    position: relative;
}

.legend-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    font-style: italic;
    font-family: Georgia, serif;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    margin-left: -0.1rem;
}

.legend-info-btn:hover {
    background: var(--primary);
}

.legend-info-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 60, 0.95);
    color: white;
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    width: 220px;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    white-space: normal;
    pointer-events: none;
}

.legend-info-tooltip.visible {
    display: block;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.available {
    background: #10b981;
}

.legend-dot.limited {
    background: #f59e0b;
}

.legend-dot.booked {
    background: #ef4444;
}

.availability-cta {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Availability + FAQ two-column layout */
.availability-faq-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    text-align: left;
    transform: translateY(-25px);
}

.availability-col {
    text-align: center;
    position: relative;
}

.availability-faq-columns .availability-calendar {
    max-width: none;
}

/* Range selection highlight for the main availability calendar */
.availability-col .calendar-day.range-start,
.availability-col .calendar-day.range-end {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 700;
}
.availability-col .calendar-day.range-preview-end {
    background: var(--primary) !important;
    color: white !important;
    opacity: 0.6;
}
.availability-col .calendar-day.in-range {
    background: rgba(42, 157, 143, 0.35) !important;
}
.availability-col .calendar-day.in-range-preview {
    background: rgba(42, 157, 143, 0.2) !important;
}

/* CTA button that appears once a date/range is selected */
.avail-contact-cta {
    margin-top: 1.25rem;
    display: none;
    justify-content: center;
}
.avail-contact-cta.visible {
    display: flex;
}

/* Enquiry overlay — positions over .availability-col like adventure-modal over the builder */
.avail-enquire-overlay {
    display: none;
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.avail-enquire-overlay.active {
    display: flex;
}
.avail-enquire-overlay .modal-content {
    height: 100%;
    overflow-y: auto;
}
.avail-enquire-dates {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: -0.75rem;
}

.faq-col {
    overflow: hidden;
    /* Prevent FAQ from affecting grid row height */
    height: 0;
    min-height: 100%;
}

.faq-col h2 {
    margin-bottom: 2.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item:first-child {
    border-top: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.15rem 2rem 1.15rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    line-height: 1.5;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.faq-open .faq-question::after {
    content: '−';
    transform: translateY(-50%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.faq-open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 1.25rem 0;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .availability-faq-columns {
        grid-template-columns: 1fr;
        gap: 0;
        transform: none;
    }

    /* Each col becomes its own alternating section on mobile */
    .availability-col {
        background: var(--light);
        margin: 0 -20px;
        padding: 36px 20px 40px;
    }


    /* Undo the desktop height:0/min-height:100% trick — on single-column layout
       the FAQ col must size itself naturally */
    .faq-col {
        height: auto;
        min-height: 0;
        overflow: visible;
        background: var(--white);
        margin: 0 -20px;
        padding: 40px 20px;
    }
}

.calendar-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.calendar-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .availability-calendar {
        padding: 1.5rem;
    }

    .calendar-legend {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .calendar-header span {
        font-size: 0.65rem;
    }
}

/* Team CTA */
.team-cta {
    background: var(--primary);
    padding: 80px 20px;
    text-align: center;
}

.team-cta-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.team-cta-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.team-cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    line-height: 1.15;
}

.team-cta-sub {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.contact-form-col {
    display: flex;
    flex-direction: column;
}

.contact-team-link {
    text-align: center;
    margin-top: 1.5rem;
}

.contact-team-link .btn {
    white-space: nowrap;
}

/* Contact Section */
.contact {
    padding: 60px 20px 100px;
    background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
}

.contact h2 {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info h2 {
    text-align: left;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='8' height='8' rx='1'/%3E%3Cpath d='M3 11V3h8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
}
.copy-btn:hover { opacity: 1; }
.copy-btn.copied {
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232a7a7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 8 6.5 12 13 4'/%3E%3C/svg%3E");
}

.contact-form {
    background: var(--white);
    padding: 2.5rem 2.5rem 3.5rem;
    border-radius: var(--r-lg);
    margin-top: 5.5rem;
    position: relative;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray);
    border-radius: var(--r-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%236b6b6b" d="M6 8L1 3h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: #0f0f1a;
    color: var(--white);
    padding: 12px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 280px;
}

.footer h4 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 0;
}

.footer-bottom {
    padding: 1rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    touch-action: manipulation;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
}

.lang-label {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lang-chevron {
    opacity: 0.7;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--primary);
    border-radius: var(--r-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    min-width: 140px;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lang-option.active {
    color: #fff;
    font-weight: 600;
}

/* Currency Switcher */
.currency-switcher {
    position: relative;
}

.currency-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.currency-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.currency-symbol {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.currency-chevron {
    opacity: 0.7;
    transition: transform 0.2s;
}

.currency-switcher.open .currency-chevron {
    transform: rotate(180deg);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--primary);
    border-radius: var(--r-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    width: max-content;
}

.currency-switcher.open .currency-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.currency-option:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.currency-option.active {
    color: #fff;
    font-weight: 600;
}

/* RTL Support for Arabic */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .logo {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    margin-left: 0;
    margin-right: 0.75rem;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .features-grid,
body.rtl .tours-grid,
body.rtl .team-grid,
body.rtl .testimonials-grid {
    direction: rtl;
}

body.rtl .tour-card {
    direction: rtl;
}

.tours .container {
    max-width: 1600px;
    padding: 0 12px;
}

body.rtl .about-list li::before {
    margin-right: 0;
    margin-left: 0.5rem;
}

body.rtl .tour-category {
    text-align: right;
}

body.rtl .contact-wrapper {
    direction: rtl;
}

body.rtl .footer-content {
    direction: rtl;
}

/* Mobile Responsive */
/* Compact nav between tablet and desktop so logo + links + toggles fit
   on one line (the hamburger only appears below 768px) */
@media (min-width: 769px) and (max-width: 968px) {
    .nav {
        padding: 0.5rem 1.25rem;
    }
    .logo img {
        height: 60px;
        margin-left: -10px;
    }
    .logo-text {
        font-size: 1.3rem;
        letter-spacing: 2px;
        margin-top: 10px;
    }
    .nav-links {
        gap: 0.75rem;
    }
    .nav-links li:nth-child(-n+2) {
        margin-right: 0.5rem;
    }
}

@media (max-width: 968px) {
    /* Teal html background on mobile: matches toolbar color and overscroll on iOS */
    html {
        background: var(--primary);
    }

    /* Flip alternating backgrounds on mobile — start with light (darker) instead of white */
    main > section:nth-child(even):not(.contact):not(.team-cta):not(.hero-below):not(.info-section) {
        background: var(--light);
    }
    main > section:nth-child(odd):not(.hero):not(.contact):not(.team-cta):not(.hero-below):not(.info-section) {
        background: var(--white);
    }

    .social-proof-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* On mobile each column becomes its own alternating section */
    .social-proof {
        padding: 0 !important;
        background: transparent !important;
    }

    .social-proof-col.instagram {
        background: var(--light);
        margin: 0 -20px;
        padding: 24px 20px 0;
    }

    /* Hide the desktop instagram fade overlay on mobile — causes artifact over testimonials */
    .social-proof::after {
        display: none;
    }

    .social-proof-col.testimonials {
        background: var(--white);
        margin: -44px -20px 0;
        padding: 40px 20px;
        position: relative;
        z-index: 1;
    }

    .tours-grid {
        grid-template-columns: 1fr;
    }

    .tour-card {
        grid-template-columns: 1fr;
    }

    .tour-card:nth-child(4n+2),
    .tour-card:nth-child(4n+3) {
        direction: ltr;
    }

    .tour-image {
        min-height: 180px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* About Us panel: remove card on mobile, full-width plain text */
    .about-text-panel {
        background: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .company-text-side p {
        font-size: 1rem;
    }

    .about-text-extra {
        display: none;
    }

    .about-text-extra.expanded {
        display: block;
    }

    .company-nav-buttons {
        display: none;
    }

    .about-read-more {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        background: none;
        border: none;
        color: var(--primary);
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
        padding: 0;
        margin-top: -0.5rem;
        -webkit-tap-highlight-color: transparent;
    }

    .about-read-more::after {
        content: '';
        display: inline-block;
        width: 7px;
        height: 7px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-top: -3px;
    }

    .availability-section {
        padding: 0 !important;
        background: transparent !important;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 90%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 90%);
    }

    /* Restore aspect ratio when columns stack — grid rows no longer derive
       height from a flex parent, so items would otherwise collapse to 0. */
    .social-proof-columns .instagram-grid {
        grid-template-rows: none;
    }
    .social-proof-columns .instagram-item {
        aspect-ratio: 3/4;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .adventure-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Tablet/medium widths: centered map with the CTA bar below it,
       not sticky — same pattern as mobile, just with a capped map size */
    .map-and-cta {
        order: -1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 0;
        height: auto;
    }

    .map-frame {
        width: min(100%, 420px);
        flex: 0 0 auto;
        margin: 0;
    }

    .egypt-map-container {
        position: relative;
        top: 0;
        overflow: hidden;
        height: auto !important;
        border: 3px solid var(--primary);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .egypt-map-img {
        height: auto;
        object-fit: unset;
    }

    .adventure-cta {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0;
    }

    .adventure-cta .cta-info {
        flex: 1;
        min-width: 0;
        padding: 0.45rem 0.75rem;
        background: var(--cream);
        border-radius: var(--r-md);
    }

    .adventure-cta .selected-count,
    .adventure-cta .price-estimate {
        font-size: 0.85rem;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .adventure-cta .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
        margin-top: 0;
        align-self: stretch;
        white-space: nowrap;
        border-radius: var(--r-md);
    }

    .destinations-grid {
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Hero height set by fitHeroMobile() in JS */

    h2 { font-size: 1.65rem; }

    .section-subtitle {
        font-size: 0.92rem;
        margin-bottom: 2rem;
    }

    /* Flip tours price tooltip to appear below the icon on mobile
       so it doesn't get clipped by the sticky header */
    .tours-price-info .price-info-tooltip {
        bottom: auto;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hide lone tiles for even 3-col grid on mobile */
    .destination-card[data-destination="abu-sir-pyramids"],
    .destination-card[data-destination="medinet-habu"] {
        display: none;
    }

    .hero h1 {
        white-space: normal;
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        text-align: center;
    }

    /* Disable hover effects and prevent double-tap zoom on destination cards */
    .destinations-grid {
        touch-action: manipulation;
        overflow: hidden;
    }
    .destination-card {
        transition: none;
        transform: none;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        border: 2px solid transparent;
    }
    .destination-card:hover {
        transform: none;
        box-shadow: none;
    }
    .destination-card.selected,
    .destination-card.selected:hover {
        border-color: #ef4444;
        box-shadow: none;
        outline: none;
        transform: none;
    }
    .destination-card .destination-image {
        transition: none;
        transform: none !important;
    }

    /* Hide in-video buttons on mobile */
    .hero .hero-buttons {
        display: none !important;
    }

    /* Show hero-below teal strip on mobile (Option B layout) */
    section[data-page-tab].tab-active.hero-below {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px 20px;
        background: var(--primary);
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .hero-below .btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        border-radius: var(--r-md);
        cursor: pointer;
        margin: 0 !important;
    }

    .hero-below .btn-primary {
        width: 100%;
        padding: 16px 20px !important;
        font-size: 1rem !important;
        background: var(--white) !important;
        color: #5a9e8f !important;
        box-shadow: 0 0 0 2px #5a9e8f, 0 0 12px rgba(90,158,143,0.3) !important;
        border: none !important;
    }

    .hero-below .hero-below-secondary {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .hero-below .hero-below-secondary .btn {
        flex: 1;
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
        background: var(--white) !important;
        color: var(--primary) !important;
        border: 2px solid var(--white) !important;
        box-shadow: none !important;
    }

    .hero-below .hero-below-secondary .btn:last-child {
        color: #2f5a5b !important;
    }

    /* Arrow overrides for hero-below to match preview exactly */
    .hero-below .btn-arrows {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        align-self: center !important;
        transform: none !important;
        gap: 0 !important;
        margin-left: 8px !important;
        line-height: 0 !important;
    }

    .hero-below .btn-arrows svg {
        display: block !important;
        width: 12px !important;
        height: 10px !important;
        margin-left: 0 !important;
    }

    .hero-below .btn-arrows svg + svg {
        margin-top: -4px;
    }


    /* Map/CTA — don't stick on mobile, it covers the cards */
    .map-and-cta {
        position: static !important;
        flex-direction: column;
        padding: 0 !important;
        gap: 0 !important;
        overflow: visible !important;
        overflow-x: clip !important;
        height: auto !important;
    }

    .map-frame {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    .egypt-map-container {
        overflow: visible !important;
        overflow-x: clip !important;
        border: 3px solid var(--primary);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .egypt-map-img {
        height: auto;
        object-fit: unset;
        box-shadow: none;
        border-radius: var(--r-lg);
    }

    .map-info-content {
        padding: 1.5rem;
        padding-bottom: 3.5rem;
    }

    .map-info-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .map-info-content p {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .map-info-content .map-info-attribution {
        font-size: 0.6rem;
        bottom: 1rem;
        left: 1.5rem;
        right: 1.5rem;
    }

    .adventure-cta {
        flex: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.5rem 0;
        gap: 0.5rem !important;
        margin-top: 0 !important;
    }

    .adventure-cta .cta-info {
        flex: 1;
        min-width: 0;
        text-align: left;
        padding: 0.6rem 0.9rem;
        background: var(--cream);
        border-radius: var(--r-lg);
    }

    .adventure-cta .selected-count {
        font-size: 0.95rem;
        margin-bottom: -0.35rem;
        white-space: nowrap;
    }

    .adventure-cta .price-estimate {
        font-size: 0.88rem;
        margin-bottom: 0;
        white-space: nowrap;
        min-height: 1.2em;
    }

    .adventure-cta .btn-large {
        flex: 0 0 auto;
        align-self: stretch;
        padding: 0 22px;
        font-size: 1.05rem;
        white-space: nowrap;
        border-radius: var(--r-lg);
    }

    /* Contact overflow */
    .contact-item p {
        flex-wrap: wrap;
        word-break: break-word;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: static;
    }

    .logo-text {
        position: absolute;
        left: 0;
        right: 0;
        top: 58%;
        transform: translateY(-50%);
        margin: 0;
        font-size: 1rem;
        text-align: center;
        pointer-events: none;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: auto;
        right: 0;
        width: fit-content;
        background: var(--primary);
        flex-direction: column;
        align-items: stretch;
        display: flex;
        padding: 0 0.75rem;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        border-radius: 0 0 0 var(--r-lg);
        box-shadow: -4px 10px 30px rgba(0, 0, 0, 0.2);
        transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    padding 0.32s ease,
                    overflow 0s 0.32s;
    }

    .nav-links a {
        color: var(--white);
    }

    .nav-links li {
        padding: 0.65rem 0;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        padding: 0.25rem 0.75rem 0.75rem;
        overflow: visible;
    }

    .nav-tab-underline {
        display: none;
    }

    .lang-dropdown {
        min-width: 110px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
    }

    .lang-switcher.open .lang-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .currency-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        padding-left: 5px;
        padding-right: 5px;
    }

    .currency-switcher.open .currency-dropdown {
        transform: translateX(-50%) translateY(0);
    }

    .nav {
        padding: 0.25rem 1rem 0.25rem 0.5rem;
    }

    .logo img {
        height: 50px;
        margin-left: 4px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .adventure-builder {
        padding: 2rem 4px;
    }

    .adventure-builder > .container {
        padding: 0 16px; /* reduce from 32px to give destinations grid more room */
    }

    .adventure-builder .section-subtitle {
        margin-bottom: 1.5rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 2px;
        contain: layout style;
    }

    .destination-name {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }

    .destination-check {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }

    .pin-label {
        font-size: 8px;
    }

    .adventure-modal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.5);
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .adventure-modal .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .adventure-modal .modal-content h3 {
        font-size: 1.6rem;
    }

    .adventure-modal .modal-content p {
        font-size: 0.95rem;
    }

    .adventure-modal .form-row-bottom {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .adventure-modal .form-row-bottom .form-group {
        align-items: center;
    }

    .adventure-modal .form-row-bottom .btn {
        padding: 14px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
        width: 100%;
    }

    .adventure-modal .group-size-btn {
        touch-action: manipulation;
    }

    .modal-calendar-overlay {
        padding: 3rem 1rem 1rem;
        overflow-y: auto;
    }

    .modal-calendar-overlay .calendar-day {
        font-size: 0.9rem;
    }

    .modal-cal-tip {
        font-size: 0.75rem;
    }

    .team-grid {
        gap: 0.5rem;
        overflow: visible;
    }

    .team-card,
    .team-card.team-card-reverse {
        gap: 0.8rem;
        margin-top: -40px;
    }

    .team-card {
        margin-left: -40px;
    }

    .team-card.team-card-reverse {
        margin-left: 0;
        margin-right: -40px;
    }

    .team-image {
        width: 185px;
        height: 185px;
    }

    .team-card h3 {
        font-size: 1.2rem;
    }

    .team-role {
        font-size: 0.82rem;
    }

    .team-intro {
        font-size: 0.95rem;
        padding: 0;
    }

    /* On mobile, team section becomes two alternating sections like social-proof */
    .team[data-page-tab="our-team"] {
        padding: 0 !important;
        background: transparent !important;
        overflow: visible;
    }

    .team .container {
        padding: 0;
    }

    .team .team-availability-layout {
        gap: 0;
    }

    .team .team-side {
        background: var(--light);
        padding: 80px 20px 40px;
        overflow-x: clip;
    }

    .team .company-text-side {
        background: var(--white);
        padding: 40px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    /* Compact contact section on mobile */
    .contact {
        padding: 24px 16px 36px;
    }

    .contact-team-link {
        padding: 0;
    }

    .contact-info > p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        gap: 1rem;
    }

    .contact-item strong {
        font-size: 0.75rem;
        margin-bottom: 0.15rem;
    }

    .contact-item p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 1.5rem 1.5rem 2rem;
        margin-top: 0.25rem;
    }

    .contact-form-col {
        width: 100%;
        min-width: 0;
    }

    .contact-wrapper {
        margin-top: 1rem;
        gap: 2rem;
    }

    /* Compact tour cards on mobile */
    .tour-content {
        padding: 1rem 1.2rem 1.2rem;
    }

    .tour-content h3 {
        font-size: 1.15rem;
        margin-bottom: 0;
        padding-right: 44px; /* clear the absolutely-positioned i info button */
    }

    .tour-content > p {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 0.7rem;
    }

    .tour-booking-intro {
        font-size: 0.88rem;
        margin-bottom: 0.75rem;
    }

    /* Cap the notes textarea so it doesn't swallow the whole form */
    #tourBookingNotes {
        height: 80px;
        min-height: 60px;
        max-height: 120px;
        resize: vertical;
    }

    /* Reduce spacing between fields */
    .tour-booking-body .form-group {
        margin-bottom: 0.55rem;
    }

    /* Group-size + send button: sticky at bottom, stacked so button gets full width */
    .tour-booking-actions {
        position: sticky;
        bottom: 0;
        background: var(--white);
        margin-top: 0.5rem;
        padding: 0.65rem 0 0.75rem;
        padding-bottom: max(0.75rem, calc(0.4rem + env(safe-area-inset-bottom)));
        flex-direction: column;
        align-items: stretch;
        gap: 0.6rem;
    }

    .tour-booking-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .tour-category,
    .tour-content > p.tour-category {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
    }

    .tour-btn {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }

    .tour-price {
        font-size: 0.78rem;
    }

    .tours-grid {
        gap: 1rem;
    }

    main > section.tours {
        padding: 20px 0 20px;
    }

    /* ── Tour info panel — fullscreen (same style as adventure modal) ─────── */
    .tour-info-overlay {
        padding: 0;
        align-items: stretch;
    }

    .tour-info-panel {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        animation: none;
    }

    /* Shrink the decorative header image strip */
    .tour-info-header {
        min-height: 110px;
        padding: 1rem 1.25rem 0.875rem;
    }

    .tour-info-header-content h2 {
        font-size: 1.75rem;
    }

    /* Compact body and footer padding */
    .tour-info-body {
        padding: 1.1rem 1.25rem;
    }

    .tour-info-footer {
        padding: 0.75rem 1.25rem;
        padding-bottom: max(0.75rem, calc(0.35rem + env(safe-area-inset-bottom)));
    }

    /* Booking view padding */
    .tour-booking-body {
        padding: 1rem 1.25rem 0;
    }
}

@media (max-width: 480px) {

    .hero h1 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

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


    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tour-info-header-content h2 {
        font-size: 1.55rem; /* a touch smaller on narrow phones */
    }
}

@media (max-width: 968px) {
    .photo-slot {
        flex: 0 0 33.333%;
    }

    .photo-slot:nth-child(4),
    .photo-slot:nth-child(5) {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tour-card,
.team-card,
.testimonial-card,
.stat {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.tour-card.visible,
.team-card.visible,
.testimonial-card.visible,
.stat.visible {
    opacity: 1;
    transform: translateY(0);
}

.tour-card.visible:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .scroll-thumb {
        display: none !important;
    }

    /* Restore native scrollbar behaviour on mobile */
    html {
        scrollbar-width: thin;
    }

    html::-webkit-scrollbar {
        display: block; width: 4px;
    }

    .footer {
        background: var(--primary);
    }

    .info-section {
        padding: 40px 0 60px; /* reduce 140px desktop top-padding to something sane on mobile */
    }
}



/* ============================================
   Info / Blog Section
   ============================================ */

main > section.info-section {
    padding: 140px 0 80px;
    display: none;
    background: var(--primary);
    min-height: 100vh;
}

.info-section.tab-active {
    display: block;
}

.info-section .info-header h2,
.info-section .info-subtitle {
    color: #fff;
}

.info-section .info-subtitle {
    opacity: 0.85;
}

.info-section .post-card-title {
    color: var(--primary);
}

.info-section .post-card {
    background: #fdfdfb;
}

.info-header {
    text-align: center;
    margin-bottom: 50px;
}

.info-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.info-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.posts-empty {
    text-align: center;
    color: var(--text-light);
    padding: 60px 0;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #fff);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.post-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.04);
}

.post-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.post-card-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Detail view */

.info-detail-view {
    max-width: 720px;
    margin: 0 auto;
}

.post-back-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    margin-bottom: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.post-back-btn:hover {
    color: var(--primary-dark);
}

.info-detail-view .post-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.info-detail-view h1 {
    font-size: 2.25rem;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 32px;
}

.post-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
}

.post-body h1,
.post-body h2,
.post-body h3 {
    color: var(--primary);
    margin: 1.6em 0 0.6em;
    line-height: 1.3;
}

.post-body h1 { font-size: 1.6rem; }
.post-body h2 { font-size: 1.35rem; }
.post-body h3 { font-size: 1.15rem; }

.post-body p {
    margin: 0 0 1.1em;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.1em;
    padding-left: 1.4em;
}

.post-body li {
    margin-bottom: 0.4em;
}

.post-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body blockquote {
    border-left: 3px solid var(--primary);
    padding: 0.2em 0 0.2em 1.2em;
    margin: 1.2em 0;
    color: var(--text-light);
    font-style: italic;
}

.post-body code {
    background: rgba(0,0,0,0.06);
    padding: 0.1em 0.4em;
    border-radius: var(--r-sm);
    font-size: 0.92em;
}

@media (max-width: 600px) {
    .info-section { padding: 40px 0 60px; }
    .info-header h2 { font-size: 2rem; }
    .info-detail-view h1 { font-size: 1.6rem; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }
}
