/* Global Reset & Typography */
:root {
    --primary-color: #ffffff; /* White */
    --hover-color: #8B4513; /* Saddle Brown */
    --text-color: #ffffff;
    --bg-color: #000000;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --font-main: 'Montserrat', sans-serif;
    --h1-scale: 1.15;
    --h2-scale: 1.15;
    --base-font-size-desktop: 17px;
    --base-font-size-mobile: 16px;
    --customize-icon-size-desktop: 1.2rem;
    --customize-icon-size-mobile: 1.05rem;
    --customize-icon-size-small: 1rem;
    --hero-heading-offset-desktop: 350px;
    --hero-heading-offset-mobile: 450px;
    --hero-heading-offset-small: 200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--base-font-size-desktop);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

.logo {
    display: flex;
    align-items: center;
    height: 60px; /* Constrain height to keep navbar size consistent */
}

.logo img {
    height: 250px; /* Increased size from 60px */
    width: auto;
    object-fit: contain;
}

.main-header nav ul {
    display: flex;
    gap: 30px;
}

.main-header nav a {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 1px;
}

.main-header nav a:hover,
.main-header nav a.active {
    opacity: 1;
    color: var(--hover-color); /* Optional hover effect */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.book-now-btn-nav {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 1px; /* Matching sharp style requested */
    letter-spacing: 1px;
    transition: all 0.3s;
}

.book-now-btn-nav:hover {
    background-color: var(--hover-color);
    color: #fff;
    border-color: var(--hover-color);
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background: url('Mukuvisi.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
}

/* Dark overlay for hero to make text pop and blend into next section */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Smoother gradient at bottom to merge with black section below */
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 60%, #000000 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-top: var(--hero-heading-offset-desktop); /* Offset for header */
}

.hero h1 {
    font-size: calc(3.9rem * var(--h2-scale));
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-description {
    max-width: 600px;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px; /* Reduced from 80px to accommodate button */
    opacity: 0.9;
}

.hero-customize-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 1px;
    transition: all 0.3s;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.hero-customize-btn:hover {
    background-color: var(--hover-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.hero-customize-btn i {
    margin-left: 10px;
    font-size: 0.9rem;
}

.hero-features {
    display: flex;
    gap: 40px;
    margin-top: auto;
    padding-bottom: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.feature-item {
    flex: 1;
    display: flex;
    gap: 15px;
}

.feature-icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #ccc;
}

.more-detailed {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

.more-detailed i {
    font-size: 0.6rem;
}

/* Slider Controls (Right side) */
.slider-controls {
    position: absolute;
    right: 50px;
    top: 30%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    z-index: 10;
}

.slide-number {
    font-size: 0.9rem;
    opacity: 0.5;
    cursor: pointer;
    transition: color 0.3s, opacity 0.3s;
}

.slide-number:hover {
    color: var(--hover-color);
    opacity: 1;
}

.slide-number.active {
    opacity: 1;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

/* Indicating line next to active number */
.slide-number.active::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
}

/* Popular Tours */
.popular-tours {
    background-color: #000;
    padding: 80px 0 100px; /* Reduced from 250px to decrease gap before Gallery section */
    text-align: center;
    overflow: hidden; /* Hide overflow for the infinite scroll */
}

.section-header {
    margin-bottom: 120px; /* Increased from 50px for more gap between heading and tours */
    padding: 0 50px;
}

.section-header h2 {
    font-size: calc(1.5rem * var(--h2-scale));
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.popular-tours .section-header h2 {
    font-size: calc(3.9rem * var(--h2-scale));
}

.gallery-container .section-header h2 {
    font-size: calc(3.9rem * var(--h2-scale));
}

.section-header p {
    font-size: 0.9rem;
    color: #888;
}

.popular-tours .section-header p {
    font-size: 1.2rem;
}

.gallery-container .section-header p {
    font-size: 1.2rem;
}

/* Scroll Container */
.tours-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.tours-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
    padding: 0 20px; /* Small side padding to start */
}

/* Pauses animation on hover so user can look closer */
.tours-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 
           Moves left by exactly the width of one set of items.
           Calculation: (Card Width 300px + Gap 20px) * 5 items = 1600px
           This ensures a seamless loop without glitches.
        */
        transform: translateX(-1600px);
    }
}

.tour-card {
    position: relative;
    height: 400px;
    width: 300px; /* Fixed width for smoother scrolling animation */
    flex-shrink: 0; /* Prevent shrinking in flex container */
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.tour-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.tour-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.tour-info h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tour-info p {
    font-size: 0.8rem;
    color: #ccc;
}

/* Active state styling for second card (border effect) */
.tour-card.active {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Discover Section */
.discover {
    /* Changed from solid color to background image */
    background: url('mana.jpeg') no-repeat center center/cover;
    padding: 150px 50px 100px; /* Increased top padding to account for fade from previous section */
    position: relative; /* For the overlay */
    width: 100%;
}

/* Gradient overlay from top (Gallery black) to transparent/bottom */
.discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Extended transparent area in middle to avoid sharp lines */
    background: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

.discover-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    position: relative; /* Sit above the overlay */
    z-index: 2;
}

.discover-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.discover-content h2 {
    font-size: calc(2.5rem * var(--h2-scale));
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.discover-content h2 span.highlight {
    color: var(--primary-color); /* Kept same as main text per design, or use white if desired */
}

.watch-video {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    cursor: pointer;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.watch-video:hover .play-btn {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    color: #fff;
}

.discover-desc {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 40px;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.discover-gallery {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Changed back to two columns for side-by-side layout */
    gap: 20px;
    align-content: center; /* Center vertically if height differs */
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 450px; /* Adjusted height slightly for side-by-side balance */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2); /* Brown glow */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .play-overlay {
    opacity: 1;
}

/* =======================
   Gallery Page Styles
   ======================= */

.gallery-hero {
    height: 50vh;
    background: url('Ngomakurira.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.gallery-hero h1 {
    position: relative;
    z-index: 1;
    color: var(--primary-color);
    font-size: calc(3rem * var(--h1-scale));
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.gallery-hero p {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.gallery-container {
    padding: 80px 50px;
    background-color: #000;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    grid-auto-flow: dense; /* Ensures tighter packing for masonry effect */
}

.photo-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Creating a masonry-like effect with vertical items */
.photo-item.vertical {
    grid-row: span 2;
    height: 620px; /* 300 + 300 + 20 gap */
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.15);
    z-index: 2; /* Bring to front */
}

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

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.photo-overlay span {
    border: 1px solid var(--primary-color);
    padding: 10px 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.6);
}

/* View All Button */
.view-all-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 1px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background-color: var(--hover-color);
    color: #fff;
    border-color: var(--hover-color);
}

/* Reviews Section */
.reviews {
    background-color: #000000; /* Ensure solid black background */
    padding: 100px 50px;
    position: relative;
    z-index: 2; /* Ensure reviews sit above gradients */
}

/* Top Gradient - extending upwards from Reviews to overlay previous section */
.reviews::before {
    content: '';
    position: absolute;
    top: -200px; /* Increased offset for smoother blend */
    left: 0;
    width: 100%;
    height: 200px; /* Increased height for smoother fade */
    background: linear-gradient(to bottom, transparent 0%, #000000 100%);
    z-index: 1;
    pointer-events: none;
}

/* Bottom Gradient - extending downwards from Reviews to overlay next section */
.reviews::after {
    content: '';
    position: absolute;
    bottom: -200px; /* Increased offset for smoother blend */
    left: 0;
    width: 100%;
    height: 200px; /* Increased height for smoother fade */
    background: linear-gradient(to bottom, #000000 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.reviews-grid {
    position: relative;
    z-index: 3; /* Ensure content is above gradients and background */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.review-card {
    background-color: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--hover-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.reviewer-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.stars {
    color: #FFD700; /* Gold */
    font-size: 0.8rem;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    font-style: italic;
}

/* =======================
   Contact Page Styles
   ======================= */

.contact-hero {
    height: 100vh;
    background: url('gone.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
}

/* Gradient overlay for Contact Section - blending from black (top) to dark overlay */
.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #000000 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0.8) 100%);
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-text h1 {
    font-size: calc(3.5rem * var(--h1-scale));
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
}

.contact-text p {
    font-size: 1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.detail-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #ccc;
}

.contact-form-container {
    background-color: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.contact-form h2 {
    font-size: calc(1.8rem * var(--h2-scale));
    margin-bottom: 30px;
    text-align: center;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.with-icon {
    position: relative;
}

.form-group.with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.3s;
}

.customize-form .form-group.with-icon i {
    font-size: var(--customize-icon-size-desktop);
}

.form-group.with-icon input:focus ~ i,
.form-group.with-icon select:focus ~ i {
    color: var(--primary-color);
}

.form-group.with-icon input,
.form-group.with-icon select {
    padding-left: 45px;
}

.checkbox-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.form-group input,
.form-group textarea,
.form-group select { /* Added select for customize page */
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

/* Style for select dropdown options (often tricky in dark mode) */
.form-group select option {
    background-color: #000;
    color: #fff;
}

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

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--hover-color);
    color: #fff;
}

/* Rate Us Section */
.rate-us-container {
    max-width: 600px;
    margin: 80px auto 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rate-us-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.star-rating {
    font-size: 2rem;
    color: #FFD700; /* Gold */
    margin-bottom: 25px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star-rating i {
    transition: transform 0.2s;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.review-input {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-main);
    margin-bottom: 20px;
    min-height: 100px;
    resize: vertical;
}

.review-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-review-btn {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    border-radius: 5px;
}

.submit-review-btn:hover {
    background-color: var(--hover-color);
    color: #fff;
}

/* =======================
   Customize Page Styles
   ======================= */
   
/* Customize Section */
/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('gone.jpeg') no-repeat center center/cover;
}

/* Darken the backdrop image */
.modal-backdrop::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 700px; /* Narrower to match image */
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hide scrollbar */
.modal-content::-webkit-scrollbar {
    display: none;
}
.modal-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s;
    line-height: 1;
}

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

.customize-hero {
    min-height: auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for the form container */
    backdrop-filter: blur(10px);
}

/* Remove any existing overlay if it interferes */
.customize-hero .contact-overlay {
    display: none;
}

/* Gradient overlay for Customize Section - blending from Info section */
.customize-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.customize-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
}

.customize-content.centered-form {
    display: flex;
    justify-content: center;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.form-header h2 {
    margin-bottom: 0;
    font-size: calc(1.5rem * var(--h2-scale));
}

.view-info-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-info-link:hover {
    opacity: 1;
    color: var(--hover-color);
}

/* Information Card Section */
.customize-info-section {
    padding: 100px 50px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.customize-text-card {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.customize-text-card h1 {
    font-size: calc(3rem * var(--h1-scale));
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.customize-text-card p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.6;
}

.customize-text-card .contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.customize-text-card .detail-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.customize-text-card .detail-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-action {
    margin-top: 20px;
}

.start-customizing-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: #000;
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 1px;
    transition: all 0.3s;
}

.start-customizing-btn:hover {
    background-color: var(--hover-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

.customize-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ddd;
}

.checkbox-group input[type="checkbox"] {
    width: auto; /* Reset width from global input style */
    margin: 0;
    cursor: pointer;
    accent-color: var(--hover-color);
}


/* Footer */
footer {
    background-color: #000;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 30px;
}

.social-icons a {
    color: var(--primary-color); /* Or white/blue based on preference */
    font-size: 1.8rem;
    opacity: 0.7;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--hover-color);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: calc(3.5rem * var(--h1-scale));
    }
    
    .contact-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: var(--base-font-size-mobile);
    }
    .main-header {
        padding: 10px 20px;
        height: auto;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo img {
        height: 120px; /* Smaller logo for mobile */
    }
    
    .main-header nav {
        display: none; /* Hide nav on mobile for simple layout */
    }

    .header-actions {
        gap: 15px;
    }

    .book-now-btn-nav {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 0 20px;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        margin-top: var(--hero-heading-offset-mobile);
    }
    
    .hero h1 {
        font-size: 2.4rem;
        margin-top: 40px;
    }

    .hero-description {
        margin: 0 auto 30px;
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding-bottom: 30px;
    }

    .feature-item {
        text-align: left;
    }

    .feature-icon {
        font-size: 1rem;
    }

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

    .more-detailed {
        font-size: 1rem;
    }
    
    .slider-controls {
        display: none;
    }

    .popular-tours {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 60px;
        padding: 0 20px;
    }

    .popular-tours .section-header h2 {
        font-size: 2.4rem;
    }

    .popular-tours .section-header p {
        font-size: 1rem;
    }

    .gallery-container .section-header h2 {
        font-size: 2.4rem;
    }

    .gallery-container .section-header p {
        font-size: 1rem;
    }
    
    .discover {
        padding: 80px 20px;
    }

    .discover-content {
        text-align: center;
        align-items: center;
    }

    .discover-content h2 {
        font-size: calc(2rem * var(--h2-scale));
    }

    .discover-desc {
        margin: 0 auto 30px;
    }
    
    .discover-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 350px;
    }
    
    /* Gallery mobile adj */
    .gallery-hero {
        height: 40vh;
    }

    .gallery-hero h1 {
        font-size: calc(2rem * var(--h1-scale));
    }

    .gallery-container {
        padding: 40px 20px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .photo-item {
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.35);
        transform: none;
    }

    .photo-item.vertical {
        grid-row: auto;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .photo-item img {
        transform: none;
    }

    .photo-overlay {
        opacity: 1;
        justify-content: flex-start;
        align-items: flex-end;
        padding: 16px;
        background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0));
    }

    .photo-overlay span {
        border: none;
        padding: 0;
        background: transparent;
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .reviews {
        padding: 60px 20px;
    }

    .reviews-grid {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .reviews-grid::-webkit-scrollbar {
        height: 6px;
    }

    .reviews-grid::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.2);
        border-radius: 999px;
    }

    .review-card {
        min-width: 100%;
        scroll-snap-align: start;
    }
    
    /* Contact & Customize Mobile */
    .contact-hero {
        padding: 80px 20px;
        height: auto;
        min-height: 100vh;
    }

    .contact-content {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 40px;
    }

    .contact-text {
        text-align: center;
    }
    
    .contact-text h1 {
        font-size: calc(2.5rem * var(--h1-scale));
    }

    .contact-details {
        align-items: center;
    }

    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-form-container {
        padding: 25px;
    }
    
    .customize-info-section {
        padding: 60px 20px;
    }

    .customize-text-card {
        padding: 30px 20px;
    }

    .customize-text-card h1 {
        font-size: calc(2rem * var(--h1-scale));
    }

    .customize-text-card .contact-details {
        grid-template-columns: 1fr;
    }
    
    .customize-form .form-row {
        grid-template-columns: 1fr; /* Stack inputs on mobile */
        gap: 0;
    }

    .form-header h2 {
        font-size: calc(1.2rem * var(--h2-scale));
    }

    .customize-form .form-group.with-icon i {
        font-size: var(--customize-icon-size-mobile);
    }

    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .rate-us-container {
        padding: 30px 15px;
        margin: 40px 15px 0;
    }

    .star-rating {
        font-size: 1.5rem;
    }

    .customize-hero {
        padding: 30px 20px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    footer {
        padding: 20px;
    }
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 3000;
    display: none;
    justify-content: center;
    padding-top: 15vh;
    transition: all 0.3s ease;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    width: 90%;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.close-search {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

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

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    transition: border-color 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary-color);
}

.search-box i {
    font-size: 1.5rem;
    margin-right: 20px;
    opacity: 0.5;
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-main);
    outline: none;
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 10px;
}

.search-results::-webkit-scrollbar {
    width: 5px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.result-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.result-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.result-info p {
    font-size: 0.85rem;
    color: #aaa;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

@media (max-width: 768px) {
    .search-box input {
        font-size: 1.2rem;
    }
    
    .search-container {
        padding-top: 20px;
    }
    
    .close-search {
        top: -40px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content {
        margin-top: var(--hero-heading-offset-small);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 0.95rem;
    }

    .feature-text p {
        font-size: 0.95rem;
    }

    .more-detailed {
        font-size: 0.95rem;
    }

    .customize-form .form-group.with-icon i {
        font-size: var(--customize-icon-size-small);
    }

    .popular-tours .section-header h2 {
        font-size: 2rem;
    }

    .popular-tours .section-header p {
        font-size: 0.95rem;
    }

    .gallery-container .section-header h2 {
        font-size: 2rem;
    }

    .gallery-container .section-header p {
        font-size: 0.95rem;
    }

    .hero-customize-btn {
        padding: 12px 25px;
        font-size: 0.8rem;
    }

    .logo img {
        height: 100px;
    }
}
