/* --- Base Variables & Reset --- */
:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --light-gray: #f7f7f7;
    --border-gray: #dddddd;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    overscroll-behavior: none; /* stops the rubber-band bounce on both axes — does not affect normal scrolling */
    margin: 0;
    padding: 0;
}

.page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

.site-logo {
    height: 52px;
    width: auto;
    display: block;
}
 
.footer-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

img {
    max-width: 100%;
    display: block;
}

.bg-light {
    background-color: var(--light-gray);
}

/* --- Typography --- */
h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 1rem; color: var(--primary-black); }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--primary-black); }
p { font-size: 1rem; color: var(--text-light); margin-bottom: 1.5rem; }
.eyebrow { display: block; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--primary-black); }

/* --- Buttons --- */
.btn {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.btn-black { background-color: var(--primary-black); color: var(--primary-white); border: 1px solid var(--primary-black); }
.btn-black:hover { background-color: #333; }
.btn-white { background-color: var(--primary-white); color: var(--primary-black); border: 1px solid var(--primary-white); }
.btn-white:hover { background-color: #eee; }
.btn-transparent { background-color: transparent; color: var(--primary-white); border: 1px solid var(--primary-white); }
.btn-transparent:hover { background-color: rgba(255,255,255,0.1); }
.btn-outline { background-color: transparent; color: var(--primary-black); border: 1px solid var(--primary-black); }
.btn-outline:hover { background-color: var(--primary-black); color: var(--primary-white); }
.btn-text { background-color: transparent; color: var(--primary-black); padding: 12px 0; }
.btn-text:hover { text-decoration: underline; }

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

/* This forces the logo to be dead-center */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* --- Mobile nav panel logo --- */
.mobile-nav-logo {
    display: none;
}

.nav-links {
    display: flex; /* Keeps links on the left */
}

.nav-action {
    z-index: 1; /* Ensures the book button stays on top */
}

#navbar.scrolled {
    background-color: var(--primary-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#navbar a { text-decoration: none; color: var(--primary-white); font-weight: 600; margin-right: 20px; transition: color 0.3s ease; }
#navbar.scrolled a { color: var(--primary-black); }
#navbar.scrolled .btn-black { color: var(--primary-white); } /* Keep button text white */
.logo h2 { font-size: 1.5rem; margin: 0; color: var(--primary-white); font-style: italic; }
#navbar.scrolled .logo h2 { color: var(--primary-black); }

/* --- Hero Section --- */
.hero {
    position: relative;
    z-index: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-white);
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.hero-content p { color: var(--primary-white); font-size: 1.125rem; }
.hero-buttons { margin-top: 2rem; display: flex; gap: 15px; justify-content: center; }

/* --- Shared Layout Classes --- */
section { padding: 100px 5%; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-header.left-align { text-align: left; margin: 0 0 40px 0; }

/* --- Location Section --- */
.location-section {
    padding: 100px 5%;
    background-color: var(--primary-white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Container */
.location-images { 
    position: relative; 
    width: 100%; 
    height: 500px; 
}

/* Main Image*/
.img-main { 
    width: 85%; 
    height: 90%; 
    object-fit: cover; 
    display: block;
}

/* Sub Image */
.img-sub { 
    position: absolute;
    bottom: 0; 
    right: 0; 
    width: 50%; 
    height: 300px; 
    object-fit: cover;
    border: 12px solid var(--primary-white); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

/* Text Formatting */
.location-text {
    padding-right: 20px;
}

.location-text h2 {
    font-size: 2.8rem; 
    margin-bottom: 20px;
    line-height: 1.2;
}

.location-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.location-buttons { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}

/* --- Comfort Section --- */
.comfort-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}
.comfort-grid img { width: 100%; height: 250px; object-fit: cover; margin-bottom: 20px; }
.comfort-grid h3 { text-align: center; }
.comfort-grid p { text-align: center; }
.center-buttons { display: flex; justify-content: center; gap: 20px; align-items: center; }

/* --- Experiences Section --- */
.experiences-section {
    padding: 100px 5%;
}

.experiences-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch; 
}

.exp-card {
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    padding: 32px 32px 0 32px; 
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; 
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

/* Subtly lift the card up on hover */
.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.exp-card .eyebrow {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.exp-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.exp-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-light);
    flex-grow: 1; 
    margin-bottom: 20px;
}

.exp-card .btn-text {
    align-self: flex-start;
    padding: 0;
    margin-bottom: 30px;
}

/* --- The Custom Hover Image Container --- */
.img-placeholder {
    width: calc(100% + 64px); 
    margin-left: -32px; 
    margin-right: -32px; 
    margin-bottom: 0;
    height: 100px; 
    background-color: #e5e5e5; 
    position: relative;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
}

/* When the user hovers over the entire card, expand the image container */
.exp-card:hover .img-placeholder {
    height: 180px; 
}

/* Formatting for when you replace the gray divs with actual images later */
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Subtle image zoom effect on hover for extra polish */
.exp-card:hover .img-placeholder img {
    transform: scale(1.05);
}

/* --- Responsive Layout for Mobile --- */
@media (max-width: 1024px) {
    .experiences-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .experiences-grid { grid-template-columns: 1fr; }
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.test-card {
    border: 1px solid var(--border-gray);
    padding: 40px 30px;
}
.stars { color: var(--primary-black); font-size: 1.2rem; margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.avatar { width: 40px; height: 40px; background: #eee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #888; }
.author-info strong { display: block; font-size: 0.9rem; color: var(--primary-black); }
.author-info span { font-size: 0.8rem; color: var(--text-light); }

/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: 120px 5%;
    text-align: center;
    color: var(--primary-white);
}
.cta-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    
    z-index: -2;
}
.cta-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6); 
    z-index: -1;
}
.cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-content h2 { color: var(--primary-white); margin-bottom: 15px; }
.cta-content p { color: var(--primary-white); margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; }

/* --- Footer --- */
footer { padding: 80px 5% 40px 5%; border-top: 1px solid var(--border-gray); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; border-bottom: 1px solid var(--border-gray); padding-bottom: 40px; }
.subscribe-form { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.subscribe-form input { padding: 12px 15px; border: 1px solid var(--border-gray); width: 300px; max-width: 100%; outline: none; }
.disclaimer { width: 100%; font-size: 0.75rem; margin-top: 5px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 60px; }
.link-column h4 { font-size: 0.9rem; margin-bottom: 20px; }
.link-column a { display: block; color: var(--text-light); text-decoration: none; font-size: 0.9rem; margin-bottom: 10px; transition: color 0.2s; }
.link-column a:hover { color: var(--primary-black); }

.footer-phone-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.footer-phone-entry a {
    margin-bottom: 0;
}
.footer-phone-entry .whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-gray); padding-top: 30px; }
.footer-logo { font-size: 1.5rem; font-style: italic; font-weight: bold; }
.copyright { font-size: 0.875rem; color: var(--text-light); }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .experiences-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .location-grid, .comfort-grid, .testimonials-grid, .footer-top { grid-template-columns: 1fr; gap: 40px; }
    .experiences-grid { grid-template-columns: 1fr; }
    .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
    #navbar .nav-links { display: none;}
}

/* Turn off fixed background on mobile for iOS compatibility */
@media (max-width: 768px) {
    .cta-background {
        background-attachment: scroll; 
    }
}

/* --- Professional Dropdown --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.7); /* Transparent white */
    backdrop-filter: blur(15px); /* This creates the "glass" look */
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 2px;
    padding: 0; 
    overflow: hidden; 
}

.dropdown-content a {
    color: var(--primary-black) !important; 
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
    margin-right: 0 !important;
}

.dropdown-content a:hover {
    background-color: var(--light-gray);
}

/* Show the dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Professional Arrow */
.dropbtn span {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    margin-left: 5px;
}
.dropdown:hover .dropbtn span {
    transform: rotate(180deg);
}

/* --- Native Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Page Hero (image-based hero for interior pages) --- */
.page-hero {
    position: relative;
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-white);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}
.page-hero-content { max-width: 700px; padding: 0 20px; }
.page-hero-content h1 { color: var(--primary-white); }
.page-hero-content p { color: var(--primary-white); font-size: 1.125rem; margin-bottom: 0; }

/* --- Intro Section (icon + centered copy, e.g. "Designed to Blend with Nature") --- */
.intro-section { padding: 100px 5% 60px 5%; }
.intro-block {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.intro-icon { display: flex; justify-content: center; margin-bottom: 20px; color: var(--primary-black); }
.intro-block h2 { font-size: 2.5rem; }
.intro-block p { font-size: 1.05rem; }

/* --- Banner image between sections (contained, not edge-to-edge) --- */
.banner-section { padding: 0 5% 100px 5%; }
.full-banner {
    max-width: 1200px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
}
.full-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .full-banner { height: 240px; }
}

/* --- Split Section (image left / text right, e.g. "Blending with the Forest") --- */
.split-section { padding: 100px 5%; }
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.split-image img { width: 100%; height: 420px; object-fit: cover; }
.split-text .intro-icon { justify-content: flex-start; }

@media (max-width: 768px) {
    .split-grid { grid-template-columns: 1fr; gap: 30px; }
    .split-image img { height: 280px; }
}

/* --- Values Section (dark cards, e.g. "What we believe in") --- */
.values-section { padding: 100px 5%; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.value-card {
    position: relative;
    background-color: #6b6b6b; /* fallback shown if no background-image is set */
    background-size: cover;
    background-position: center;
    padding: 40px 32px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); }

/* Dark overlay so text stays readable over any background photo */
.value-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

/* Lift all direct content above the overlay */
.value-card > * {
    position: relative;
    z-index: 1;
}

.value-number {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}
.value-card h3 { color: var(--primary-white); font-size: 1.4rem; margin-bottom: 12px; }
.value-card p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }

@media (max-width: 1024px) {
    .values-grid { grid-template-columns: 1fr; }
}

/* --- White-on-dark button variants, used inside .value-card --- */
.btn-outline-white {
    background-color: transparent;
    color: var(--primary-white);
    border: 1px solid var(--primary-white);
}
.btn-outline-white:hover { background-color: var(--primary-white); color: var(--primary-black); }

.btn-text-white {
    background-color: transparent;
    color: var(--primary-white);
    padding: 12px 0;
}
.btn-text-white:hover { text-decoration: underline; }

/*ACCOMMODATION PAGE ADDITIONS*/

/* --- Auto-playing crossfade room slider --- */
.room-slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.slide-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}
.slide-caption h4 { color: var(--primary-white); font-size: 1.1rem; margin-bottom: 6px; }
.slide-caption p { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 768px) {
    .room-slider { height: 320px; }
}

/* --- Manual back/forth arrows on the room slider --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2; /* sits above the slides */
    transition: background 0.2s ease;
}
.slider-arrow:hover { background: rgba(255, 255, 255, 0.45); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

/* --- Details / Comforts icon grid --- */
.details-section { padding: 100px 5%; }
.icon-circle {
    width: 64px;
    height: 64px;
    border: 1px solid var(--border-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: var(--primary-black);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    text-align: center;
}
.feature-item h3 { font-size: 1.1rem; }
.feature-item p { font-size: 0.9rem; }

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* --- Lodge Gallery (3 independent columns, fixed image heights — no CSS Grid span math involved) --- */
.gallery-section { padding: 100px 5%; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}
.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.gallery-col img {
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-col img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 2;
}

@media (max-width: 900px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-col img { height: 200px !important; } /* consistent height on phones */
}

/* --- Lightbox for the Lodge Gallery --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* translucent so the page stays visible behind it */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.lightbox.active { display: flex; }

.lightbox-image {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-white);
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-white);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }

@media (max-width: 768px) {
    .lightbox-image { max-width: 90vw; max-height: 70vh; }
    .lightbox-arrow { width: 36px; height: 36px; font-size: 1rem; }
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 40px;
    align-items: center;
}
 
.subscribe-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 480px;
    margin-left: auto; /* aligns the whole form neatly to the right edge of its column */
}
.subscribe-form input {
    flex: 1;
    min-width: 200px;
    padding: 14px 16px;
    border: 1px solid var(--border-gray);
    outline: none;
    font-size: 0.95rem;
}
.subscribe-form input:focus {
    border-color: var(--primary-black);
}
.subscribe-form .btn {
    flex-shrink: 0;
}
.disclaimer {
    width: 100%;
    font-size: 0.75rem;
    margin-top: 8px;
    color: var(--text-light);
}
 
@media (max-width: 1024px) {
    .subscribe-form { margin-left: 0; max-width: 100%; }
}
 

.site-logo,
.footer-logo-img {
    background: transparent !important;
    border: none;
    box-shadow: none;
}

/* EXPERIENCES PAGE ADDITIONS */

/* --- Bento grid for "Activities Around Bwindi" (1 large card + 4 small) --- */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}
.exp-card.large {
    grid-row: span 2;
    padding-bottom: 0;
}
.exp-card.large h3 { font-size: 1.8rem; }

/* On the large card, stop the paragraph from stretching to fill the extra
   height (that's what was pushing the image down and leaving a big gap
   above it) — let the image itself grow to fill the space instead. */
.exp-card.large p {
    flex-grow: 0;
}
.exp-card.large .img-placeholder {
    flex-grow: 1;
    height: auto;   /* size is now controlled by flex-grow, not a fixed px value */
    min-height: 220px;
}

/* Two buttons side by side on the large card (Learn + Book) */
.card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}
/* .exp-card .btn-text has "align-self: flex-start" in the base CSS, which
   overrides align-items:center above for this specific child — cancel
   that out so Learn and Book line up on the same baseline. */
.card-actions .btn-text {
    align-self: center;
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .exp-card.large { grid-row: span 1; }
}
@media (max-width: 600px) {
    .activities-grid { grid-template-columns: 1fr; }
    .exp-card.large { grid-row: span 1; }
}

/* --- Icon feature grid (2 columns, used inside a split-section) --- */
.icon-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    margin-bottom: 40px;
}
.icon-feature svg { color: var(--primary-black); margin-bottom: 12px; }
.icon-feature h4 { font-size: 1.05rem; margin-bottom: 6px; }
.icon-feature p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

@media (max-width: 600px) {
    .icon-feature-grid { grid-template-columns: 1fr; }
}

/* --- FAQ accordion --- */
.faq-section { padding: 100px 5%; }
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-gray);
    padding: 24px 0;
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question h3 { font-size: 1.05rem; margin-bottom: 0; }
.faq-toggle-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 20px;
    transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle-icon { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
    padding-top: 14px;
    color: var(--text-light);
    margin-bottom: 0;
}

/* GORILLA TREKKING PAGE ADDITIONS */

.video-slider {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #000;
}
.video-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.video-slide.active {
    opacity: 1;
    z-index: 1;
}
.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Reuses the same .slider-arrow look from the room slider on the Accommodation page */
.video-slider .slider-arrow { z-index: 2; }

@media (max-width: 768px) {
    .video-slider { height: 280px; }
}

/* --- Safari package cards ("Choose Your Safari") --- */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.package-card {
    display: flex;
    flex-direction: column;
    background: var(--primary-white);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Photo on top, expands slightly on hover — same feel as the homepage exp-cards */
.package-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    transition: height 0.4s ease;
}
.package-card:hover .package-image { height: 220px; }
.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.package-card:hover .package-image img { transform: scale(1.08); }

/* Duration badge overlaid on the photo instead of a plain box above the heading */
.package-duration {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary-white);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
}

.package-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}
.package-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.package-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 18px;
}
.package-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.package-price em {
    font-style: normal;
    font-weight: 400;
    color: var(--text-light);
}
.package-card .btn-text { padding: 0; align-self: flex-start; margin-bottom: 0; }

@media (max-width: 1024px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .packages-grid { grid-template-columns: 1fr; }
}

.cta-background {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* CONTACT PAGE ADDITIONS */

/* --- Contact info strip (Email / Phone / Office) --- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.contact-info-item svg { color: var(--primary-black); margin-bottom: 16px; }
.contact-info-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; }
.contact-info-item a {
    color: var(--primary-black);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-info-item a:hover { color: var(--text-light); }

.phone-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}
.phone-entry + .phone-entry {
    margin-top: 8px;
}
.phone-entry .phone-link {
    white-space: nowrap;
}
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
}
.whatsapp-link:hover {
    background-color: #1ebe57;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .contact-info-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-info-item { text-align: center; }
    .contact-info-item svg { margin-left: auto; margin-right: auto; }
    .phone-entry { justify-content: center; }
}

/* --- Contact form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}
.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 16px;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    border: 1px solid var(--border-gray);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-black);
}
.contact-form .checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 0.85rem;
    cursor: pointer;
}
.contact-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.contact-form button[type="submit"] {
    margin-top: 24px;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* --- Getting Here: directions cards --- */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.direction-card { display: flex; flex-direction: column; }
.direction-image {
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
}
.direction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.direction-card:hover .direction-image img { transform: scale(1.05); }
.direction-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.direction-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }

@media (max-width: 768px) {
    .directions-grid { grid-template-columns: 1fr; }
}

/* --- Find Us: interactive Google Map embed --- */
.map-section { padding: 0 5% 100px 5%; }
.map-embed {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--border-gray);
    overflow: hidden;
}
.map-embed iframe {
    width: 100%;
    height: 450px;
    display: block;
}

@media (max-width: 768px) {
    .map-embed iframe { height: 320px; }
}


/* BOOK NOW PAGE ADDITIONS */

/* --- "How to book your stay" signup banner (same background pattern as .cta-section) --- */
.signup-banner {
    position: relative;
    padding: 120px 5%;
    text-align: center;
    overflow: hidden;
}
.signup-banner .cta-content h2,
.signup-banner .cta-content p {
    color: var(--primary-white);
}
.inline-signup-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 24px auto 12px auto;
    flex-wrap: wrap;
}
.inline-signup-form input {
    flex: 1;
    min-width: 220px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-white);
    outline: none;
    font-size: 0.95rem;
}
.inline-signup-form input::placeholder { color: rgba(255, 255, 255, 0.7); }
.inline-signup-form input:focus { border-color: var(--primary-white); }
.signup-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .inline-signup-form { flex-direction: column; }
}

/* --- "Why book direct" feature carousel: tabs + auto-crossfading slides --- */
.feature-slider-section { padding: 80px 5% 100px 5%; }

.feature-tabs {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--border-gray);
    border-bottom: 1px solid var(--border-gray);
}
.feature-tab {
    position: relative;
    flex: 1;
    background: none;
    border: none;
    border-right: 1px solid var(--border-gray);
    padding: 18px 12px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s ease;
    overflow: hidden;
}
.feature-tab:last-child { border-right: none; }
.feature-tab.active { color: var(--primary-black); }
.feature-tab .num { margin-right: 6px; }

/* Progress-fill underline */
.feature-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--primary-black);
    transform: scaleX(0);
    transform-origin: left;
}
.feature-tab.active::after {
    animation: featureTabProgress 6s linear;
}
@keyframes featureTabProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 700px) {
    .feature-tabs { flex-wrap: wrap; }
    .feature-tab { flex: 1 1 50%; border-bottom: 1px solid var(--border-gray); }
}

.feature-slider {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 60px;
    overflow: hidden; /* keeps the directional slide-in from spilling outside the box */
}
.feature-slide { display: none; }
.feature-slide.active {
    display: block;
    animation: featureSlideIn 0.6s ease;
}
@keyframes featureSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.feature-slide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-slide-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002; /* Keeps it above the sliding panel */
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Make lines black when scrolling */
#navbar.scrolled .hamburger .bar {
    background-color: var(--primary-black);
}

/* Force the X to be black when the white panel is open */
.hamburger.active .bar {
    background-color: var(--primary-black) !important; 
}

/* Hamburger 'X' animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .feature-slide-grid { grid-template-columns: 1fr; gap: 30px; }
    .feature-slide-image img { height: 240px; }
}

@media (max-width: 768px) {
    .nav-action {
        display: none;
    }
    
    #navbar {
        padding-top: 45px; 
    }

    /* Fix the "Stay Connected" newsletter form from overflowing */
    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 15px;
    }
    .subscribe-form input {
        width: 100%;
        min-width: 100%;
    }
    .subscribe-form .btn {
        width: 100%; 
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .exp-card .img-placeholder {
        height: 250px;
    }

    /* Center-align the footer links with equal space left and right */
    .footer-links-grid {
        grid-template-columns: 1fr; /* Stacks all links into one perfectly centered column */
        text-align: center;
        gap: 30px;
    }

    .footer-top {
        grid-template-columns: 1fr; /* Overrides the rogue 2-column rule */
        text-align: center;
        gap: 20px;
    }

    .footer-phone-entry {
        justify-content: center;
    }
    
    .newsletter {
        text-align: center;
    }
    
    /* Position the hamburger on the top left */
    .hamburger {
        display: flex;
        position: absolute;
        left: 5%;
        top: 30px; 
    }

    /* Convert nav-links into a sliding side panel */
    #navbar .nav-links {
        display: flex !important; /* Overrides the old display: none */
        flex-direction: column;
        position: fixed;
        left: -100%; /* Hides the panel off-screen to the left initially */
        top: 0;
        width: 75%; /* Covers 75% of the phone screen */
        max-width: 300px;
        height: 100vh;
        background-color: var(--primary-white);
        padding-top: 30px;
        padding-left: 10%;
        transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        z-index: 1001;
    }

    /* JavaScript will add this class to slide the panel in */
    #navbar .nav-links.active {
        left: 0;
    }

    /* Logo shown at the top of the mobile nav panel */
    .mobile-nav-logo {
        display: block;
        margin-left: 45px;
        margin-bottom: 40px;
    }
    .mobile-nav-logo img {
        height: 40px;
        width: auto;
    }

    /* Style the links inside the mobile panel */
    #navbar .nav-links a {
        color: var(--primary-black) !important;
        font-size: 1.3rem;
        margin-bottom: 25px;
        margin-right: 0;
    }

/* Kill the sticky hover effect on touchscreens */
    .dropdown:hover .dropdown-content {
        display: none; 
    }

    /* Hide the About dropdown by default on mobile */
    .dropdown-content {
        display: none; 
        position: static; 
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px; 
        margin-top: 10px;
    }
    
    /* The JS toggle will add this class to open the menu */
    .dropdown-content.show {
        display: flex !important; /* The !important ensures the JS wins */
        flex-direction: column;
    }

    .dropdown-content a {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    /* un-cut video on mobile */
    .hero {
        background-color: #000; 
    }

    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;  /* This magically fills the screen without cutting off weirdly */
        z-index: -2;
    }


}