/* ==========================================================================
   WES | CAPE GUIDE - CENTRAL DESIGN SYSTEM MASTER SHEET (2026 AUDIT)
   ========================================================================== */

/* --- Global Variables & Reset --- */
:root {
    --primary-green: #4a5d4e;
    --accent-gold: #c5a059;
    --dark-blue: #1a2b3c;
    --white: #ffffff;
    
    /* Premium Contrast: Rich charcoal to increase screen elegance */
    --text-main: #2d3142; 
    --text-muted: #64748b;
    --light-gray: #fcfcfc;
    --border-gray: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --peninsula-wide-max: 1440px;
    --peninsula-wide-gutter: clamp(16px, 3vw, 48px);

    /* Typography Strategy Tokens */
    --font-branding: 'Orbitron', sans-serif;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--light-gray);
    -webkit-font-smoothing: antialiased;
}

/* --- Shared Layout Helpers --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-flush {
    padding: 0;
}

.text-center {
    text-align: center;
}

.section-divider {
    border: 0; 
    border-top: 1px solid var(--border-gray); 
    margin: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center; 
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-top: 0;
    margin-bottom: 40px;
    color: var(--text-main);
}

.section-space-bottom {
    margin-bottom: 40px;
}

/* --- Global Brand Typography Utilities --- */
.eyebrow {
    font-family: var(--font-branding);
    font-size: 1.00rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 12px;
    text-align: center;
}

.text-content-block {
    max-width: 800px; 
    margin: 80px auto 20px auto; 
    text-align: center;
}

.text-green-title {
    font-family: var(--font-heading);
    color: var(--primary-green); 
    font-size: 2.5rem; 
    margin-bottom: 24px;
}

.lead-paragraph {
    font-family: var(--font-body);
    font-size: 1.15rem; 
    line-height: 1.8; 
    color: #334155; 
    margin-bottom: 20px;
}

.paragraph-flush-bottom { margin-bottom: 0; }
.paragraph-spacing-top { margin-top: 8px; }
.accent-gold-text { color: #f3c653 !important; }

/* --- Shared Navigation --- */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px; 
    text-decoration: none;
}

.logo-img, .logo-icon {
    height: 20px; 
    width: auto;   
    display: block;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo-icon { height: 30px; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo:hover .logo-icon { transform: scale(1.1); }

/* Navigation Drawer Base Wrapper */
.nav-menu {
    display: flex;
    align-items: center;
}

/* Premium Mobile Menu Toggle Trigger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 2000;
}

.nav-toggle .hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: background 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    left: 0;
    transition: transform 0.3s ease;
}

.nav-toggle .hamburger::before { top: -8px; }
.nav-toggle .hamburger::after { bottom: -8px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-family: var(--font-body);
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.current {
    color: var(--white); 
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* Dropdown Layout Architecture */
.dropdown {
    position: relative;
}

.dropdown-toggle .arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .arrow {
    transform: rotate(180deg);
}

/* Isolated Dropdown Glass Box - Re-engineered for Alignment & Unity */
.dropdown-menu {
    position: absolute;
    top: 100%;
    
    /* Perfect Alignment: snaps container left, offsets exactly by the link item padding */
    left: -22px; 
    transform: translateY(4px); /* Tighter anchor gap to look unified */
    
    /* Integrated Visual Material */
    background-color: rgba(0, 0, 0, 0.55); /* Balanced color matching the nav box density */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 210px; /* Slightly wider to guarantee no text wrapping on multi-day tour names */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1010;
}

/* Reveal Dropdown cleanly on Hover with an integrated upward flow */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px); /* Slides smoothly into position just below the nav box */
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 22px; /* This 22px padding is what lines up with the left: -22px above */
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    text-decoration: none !important;
    transition: color 0.2s, background-color 0.2s;
}

/* Dropdown Items Hover Shimmer */
.dropdown-menu a:hover {
    color: var(--accent-gold) !important; /* Changes the text to your brand gold on hover */
    background-color: rgba(255, 255, 255, 0.08); /* Keeps the subtle glass block glow */
}

.dropdown-menu a.current {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

/* --- Unified Premium Hero Engine (Decoupled Parallax Mechanics) --- */
.hero-parallax-wrapper {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-attachment: fixed;
    z-index: 1;
}

.hero {
    position: relative;
    height: 100%;
    display: flex;
    color: var(--white);
    padding: 0 20px;
    z-index: 2;
    
    /* Global Core Default: Center Alignment for Structural Base Pages */
    align-items: center;      
    justify-content: center;    
    text-align: center;
}

.hero-content {
    padding: 0 8px;
    transform: translateY(clamp(-250px, -27vh, -120px));
}

.hero-home .hero-content {
    transform: translateY(clamp(-250px, -23vh, -120px));
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4); 
    margin-top: -5px;
    line-height: 1.2;
}

.hero p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4); 
    font-weight: 400;
}

.hero-eyebrow {
    font-family: var(--font-branding);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: block;
    margin: 0 0 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 620px;
}

/* --- Premium Tour Hero Structural Modifiers (Left Asymmetric Snapping) --- */
.city-hero, .peninsula-hero, .winelands-hero, .hero-west-coast, .hero-garden-route, .overberg-hero {
    justify-content: flex-start !important; 
    align-items: flex-end !important;         
    text-align: left !important;            
    padding-left: clamp(20px, 8vw, 10%) !important; 
    padding-bottom: 12vh !important;        
    padding-top: 0 !important;
}

/* Forces identical glass panels across all tour landing locations */
.city-hero .hero-content, 
.peninsula-hero .hero-content, 
.winelands-hero .hero-content, 
.hero-west-coast .hero-content, 
.hero-garden-route .hero-content,
.overberg-hero .hero-content {
    max-width: 580px !important;            
    padding: 35px !important;
    background-color: rgba(0, 0, 0, 0.35) !important; 
    border-radius: 8px !important;
    backdrop-filter: blur(4px) !important;   
    -webkit-backdrop-filter: blur(4px) !important; 
    transform: none !important;            
    margin: 0 !important;
}

.city-hero .hero-content p, 
.peninsula-hero .hero-content p, 
.winelands-hero .hero-content p, 
.hero-west-coast .hero-content p, 
.hero-garden-route .hero-content p,
.overberg-hero .hero-content p {
    margin: 0 !important; 
}

/* --- Hero Image Asset Vectors (Assigned cleanly to canvas layers) --- */
.hero-home-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%), url('images/table-mountain-hero.webp'); background-position: 50% 13%; }
.hero-about-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 20%), url('images/table-mountain-national-park.webp'); background-position: center 90%; }
.hero-tours-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 20%), url('images/postberg-flowers.webp'); background-position: center 10%; }
.hero-contact-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 20%), url('images/chapmans-peak-drive.webp'); background-position: 50% 53%; }
.city-hero-bg { background-image: linear-gradient(rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 20%), url('images/cape-town-city.webp'); background-position: center 35%; }
.peninsula-hero-bg { background-image: linear-gradient(rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 20%), url('images/cape-point-walk.webp'); background-position: center 65%; }
.winelands-hero-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%), url('images/delaire-graff-wine-estate.webp'); background-position: center 65%; background-color: #2c3a2e; }
.hero-west-coast-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 30%), url('images/postberg-nature-reserve-flowers-and-rock-fromations.webp'); background-position: center 70%; }
.hero-garden-route-bg { background-image: linear-gradient(rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 20%), url('images/ebb-and-flow-restcamp-hike.webp'); background-position: center 50%; }
.overberg-hero-bg { background-image: linear-gradient(rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 20%), url('images/r44-and-beach.webp'); background-position: center 65%; }

/* --- Profile Split Layouts (Home & About Ecosystem) --- */
.profile-split-block {
    display: grid; 
    grid-template-columns: 1fr;
    gap: 2rem; 
    align-items: center; 
    margin-bottom: 100px; 
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

@media (min-width: 768px) {
    .profile-split-block { grid-template-columns: 1.2fr 0.8fr; gap: 0; }
    .profile-split-block.about-profile-card { grid-template-columns: 1fr 580px; }
    .profile-split-block.home-profile-card { height: auto; align-items: stretch; grid-template-columns: 2fr 1fr; }
}

.profile-split-text { padding: 40px; }
.profile-split-title { font-family: var(--font-heading); color: var(--primary-green); font-size: 2.2rem; margin-top: 0; margin-bottom: 20px; }
.profile-split-media { width: 100%; height: 100%; display: flex; }
.profile-split-image { width: 100%; height: 100%; object-fit: cover; border: none; display: block; }
.profile-split-image.home-profile-crop { object-position: 50% 22%; }
.pos-crop-waterline { object-position: center 88% !important; }

/* --- Central Highlights System (Multi-Tour & Values Grids) --- */
.highlights-section { padding-top: 0; margin-bottom: 80px; }

.highlights-grid, .values-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    align-items: stretch; /* Enforces equal container vertical limits natively */
}

.highlights-item-card, .values-card-item {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}
.values-card-item { padding: 40px; }
.values-card-item h4 { font-family: var(--font-heading); color: var(--primary-green); font-size: 1.5rem; margin-top: 0; margin-bottom: 15px; }

/* Global Standard Image Layout Rule */
.highlights-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Contextual Photographic Override Rule for West Coast Wildflowers Portrait Mode */
.hero-west-coast + main .highlights-card-image {
    height: auto;
    aspect-ratio: 2 / 3;
}

.highlights-card-image--lighthouse { object-position: center top; }
.image-crop-penguins { object-position: center 30%; }

.highlight-card-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.highlight-card-info h3 {
    font-family: var(--font-heading);
    margin: 0 0 15px 0;
    color: var(--primary-green);
    font-size: 1.3rem;
}

.highlight-card-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   MISSION & VALUES CUSTOM ABOUT COMPONENT
   ========================================================================== */
.about-mv-section { 
    padding-top: 0; 
    margin-bottom: 80px; 
}

.about-mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
    align-items: stretch;
}

.about-mv-item-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: left;
}

/* Forces images to render natively at 100% full frame width with zero layout cropping */
.about-mv-card-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 600px) {
    .about-mv-grid { 
        grid-template-columns: 1fr; 
    }
}

/* --- Accordions & Itinerary Timelines --- */
.tour-info-section { max-width: 900px; margin: 0 auto 80px auto; }
.tour-info-accordion details { background: var(--white); border: 1px solid var(--border-gray); border-radius: 8px; margin-bottom: 16px; overflow: hidden; transition: box-shadow 0.3s ease; }
.tour-info-accordion details[open] { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.tour-info-accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px; font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; background-color: var(--white); color: var(--dark-blue); }
.tour-info-accordion summary::-webkit-details-marker { display: none; }
.tour-info-label { font-size: 1.1rem; font-weight: 600; }
.tour-info-icon::before { content: '+'; font-weight: bold; }
.tour-info-item[open] .tour-info-icon::before { content: '−'; }
.tour-info-panel { padding: 28px; border-top: 1px solid var(--border-gray); background-color: #fafbfc; }
.tour-info-panel ul.standard-panel-list { margin: 0; padding-left: 20px; }
.tour-info-panel ul.standard-panel-list li { margin-bottom: 10px; line-height: 1.6; color: #334155; }

.timeline { position: relative; padding-left: 30px; margin: 10px 0; border-left: 2px solid var(--border-gray); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker { position: absolute; left: -37px; top: 4px; background: var(--accent-gold); width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); }
.timeline-time { font-family: var(--font-branding); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.timeline-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--dark-blue); margin: 0 0 6px 0; }
.timeline-desc { font-size: 0.95rem; line-height: 1.5; color: #475569; margin: 0; }
.itinerary-disclaimer { margin-top: 0; margin-bottom: 25px; font-style: italic; color: #475569; }
.timeline-highlights { list-style: none !important; padding-left: 0 !important; margin: 12px 0 0 0 !important; }
.timeline-highlights li { font-size: 0.9rem !important; margin-bottom: 6px !important; color: #475569 !important; position: relative; padding-left: 15px; }
.timeline-highlights li::before { content: "•"; color: var(--accent-gold); position: absolute; left: 0; font-weight: bold; }

/* --- Logistics & Multi-Day Overlays --- */
.logistics-split-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.logistics-card { background: var(--white); border: 1px solid var(--border-gray); border-radius: 6px; padding: 24px; }
.logistics-card h4 { font-family: var(--font-heading); margin-top: 0; margin-bottom: 16px; font-size: 1.1rem; font-weight: 600; color: var(--dark-blue); border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.logistics-list { list-style: none !important; padding-left: 0 !important; margin: 0; }
.logistics-list li { position: relative; padding-left: 24px; margin-bottom: 12px !important; font-size: 0.95rem; color: #334155; line-height: 1.5; }
.logistics-list li::before { position: absolute; left: 0; top: 1px; font-weight: bold; }
.included-list li::before { content: "✓"; color: var(--accent-gold); }
.excluded-list li::before { content: "•"; color: #94a3b8; font-size: 1.2rem; left: 4px; }

.accommodation-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 15px; }
.accommodation-box { background: #f8fafc; border: 1px dashed #cbd5e1; padding: 20px; border-radius: 6px; }
.accommodation-box h5 { font-family: var(--font-heading); margin: 0 0 10px 0; font-size: 1rem; color: var(--dark-blue); font-weight: 600; }
.accommodation-box p { font-size: 0.9rem; line-height: 1.5; margin: 0; color: #475569; }

/* --- Contact Components --- */
.contact-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 60px; align-items: stretch; }
.contact-section-title { font-family: var(--font-heading); color: var(--primary-green); margin-top: 0; margin-bottom: 25px; }
.contact-lead-text { line-height: 1.8; }
.contact-methods-wrapper { margin-top: 40px; border-top: 1px solid #eee; padding-top: 30px; }
.contact-link { color: var(--accent-gold); text-decoration: none; font-weight: bold; }
.contact-link:hover { text-decoration: underline; }
.contact-link-static { color: var(--accent-gold); font-weight: bold; }
.consultation-card { background-color: var(--white); padding: 40px; border-radius: 20px; border: 1px solid #eee; height: 100%; display: flex; flex-direction: column; }
.consultation-card h3 { font-family: var(--font-heading); color: var(--primary-green); margin-top: 0; margin-bottom: 20px; }
.consultation-lead-meta { font-size: 0.95rem; color: #666; margin-bottom: 25px; }
.consultation-guide-list { list-style: none; padding: 0; line-height: 2.2; color: #444; }
.consultation-guide-list li { position: relative; padding-left: 25px; }
.consultation-guide-list li::before { content: "➔"; color: var(--accent-gold); position: absolute; left: 0; }
.consultation-badge-footer { margin-top: 30px; font-size: 0.85rem; font-style: italic; color: #888; }

/* --- Unified Master Call To Action Framework --- */
.peninsula-enquire, .winelands-enquire {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.container-enquire { max-width: 800px; margin: 0 auto; }
.peninsula-enquire-text, .winelands-enquire-text { font-size: 1.25rem; line-height: 1.7; margin-bottom: 35px; color: #e2e8f0; }

.btn, .btn-enquire {
    font-family: var(--font-branding);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

/* Gold Global Buttons */
.btn-enquire {
    background-color: var(--accent-gold);
    color: var(--dark-blue);
    padding: 15px 35px;
    font-size: 0.9rem;
}
.btn-enquire:hover { background-color: #f3c653; transform: translateY(-2px); }

/* Ghost Buttons (Heros) */
.btn {
    padding: 12px 30px;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 0.85rem;
    border: 1px solid var(--white);
    margin-top: 20px;
}
.btn:hover { background: var(--dark-blue); color: var(--white); transform: translateY(-2px); }

/* --- Index Grid System Cards --- */
.tour-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px; }
.tour-card { background: var(--white); border: 1px solid #eee; border-radius: 12px; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; height: 100%; }
.profile-card-link { transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.tour-card:hover, .profile-card-link:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
a.tour-card-link, .profile-card-link { text-decoration: none; color: inherit; display: block; border-radius: 12px; }
a.tour-card-link:focus-visible, .btn:focus-visible, .btn-enquire:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 3px; }
.tour-image { width: 100%; height: 250px; object-fit: cover; display: block; }
.tour-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; text-align: left; }
.tour-info h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; margin: 0 0 12px 0; color: var(--primary-green); }
.tour-info p { color: var(--text-muted); font-size: 1.0rem; line-height: 1.6; margin-bottom: 20px; }
.tour-category { font-family: var(--font-branding); color: var(--accent-gold); letter-spacing: 5px; text-transform: uppercase; font-size: 0.75rem; font-weight: bold; display: block; margin-bottom: 5px; }
.tour-link-text { font-family: var(--font-body); margin-top: auto; padding-top: 20px; display: inline-block; color: var(--primary-green); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; }

/* Image Framing Helper Alignments */
.pos-top { object-position: center top; }
.pos-top-8 { object-position: center 8%; }
.pos-top-20 { object-position: center 20%; }
.pos-top-30 { object-position: center 30%; }
.pos-top-40 { object-position: center 40%; }
.pos-center { object-position: center; }
.pos-bottom { object-position: center bottom; }
.pos-bottom-10 { object-position: center 10%; }
.pos-bottom-30 { object-position: center 30%; }
.pos-right-90 { object-position: 90% 50%; }

/* ==========================================
   MOSAIC GALLERY COMPONENT
   ========================================== */
.mosaic-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; grid-auto-flow: dense; gap: 20px; margin-top: 40px; }
.mosaic-item { margin: 0; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.mosaic-item:hover img { transform: scale(1.03); }
.mosaic-item figcaption { font-family: var(--font-body); position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 15px 15px; background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%); color: var(--white); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.5px; transform: translateY(100%); transition: transform 0.3s ease-in-out; box-sizing: border-box; }
.mosaic-item:hover figcaption { transform: translateY(0); }
.mosaic-item.span-2 { grid-column: span 2; }
.mosaic-item.span-3 { grid-column: span 3; }
.mosaic-item.row-span-2 { grid-row: span 2; }

/* ==========================================
   TESTIMONIAL SECTION COMPONENT
   ========================================== */
.testimonial-section-v2 { background-color: #fcfbfa; padding: 90px 20px; margin: 40px 0px; border-top: 1px solid #f0eee9; border-bottom: 1px solid #f0eee9; }
.testimonial-container-v2 { max-width: 680px; margin: 0 auto; border-left: 3px solid var(--primary-green); padding-left: 40px; }
.testimonial-text-v2 { font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.45rem); line-height: 1.7; color: #2c2c2c; font-style: italic; margin: 0 0 30px 0; font-weight: 400; letter-spacing: -0.2px; }
.testimonial-profile-v2 { display: flex; align-items: center; gap: 16px; }
.testimonial-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background-color: #eaeaea; flex-shrink: 0; }
.testimonial-author-v2 { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.author-name-v2 { font-family: var(--font-body); font-weight: 600; color: #111; text-transform: uppercase; letter-spacing: 1px; }
.author-location-v2 { font-family: var(--font-body); color: #767676; position: relative; padding-left: 12px; }
.author-location-v2::before { content: "•"; position: absolute; left: -2px; color: #ccc; }

/* ==========================================
   EDITORIAL STANDARD FOOTER COMPONENT
   ========================================== */
.editorial-footer { background-color: #111111; color: #f5f5f5; padding: 80px 40px 30px 40px; }
.footer-top-row { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.footer-hero-block { flex: 1.5; max-width: 600px; text-align: left; }
.editorial-logo { font-family: var(--font-branding); display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 6px; color: var(--white); }
.editorial-snippet { font-family: var(--font-body); font-size: 0.8rem; color: #777777; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 40px; }
.footer-big-prompt { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.3; margin-bottom: 30px; color: #ffffff; }
.no-wrap { white-space: nowrap; }
.editorial-btn { font-family: var(--font-body); display: inline-block; color: #ffffff; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; font-size: 0.9rem; font-weight: 600; border-bottom: 2px solid #ffffff; padding-bottom: 5px; transition: transform 0.2s ease, color 0.2s ease; }
.editorial-btn:hover { transform: translateX(5px); color: var(--accent-gold); border-color: var(--accent-gold); }
.footer-links-block { flex: 1; display: flex; gap: 40px; margin-left: auto; max-width: 400px; }
.links-sub-col { display: flex; flex-direction: column; min-width: 160px; text-align: left; }
.links-sub-col h4 { font-family: var(--font-branding); font-size: 0.8rem; color: var(--white); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; text-align: left; }
.links-sub-col a { font-family: var(--font-body); color: #aaaaaa; text-decoration: none; font-size: 0.9rem; margin-bottom: 14px; transition: color 0.2s ease; }
.links-sub-col a:hover { color: #ffffff; }
.editorial-bottom { max-width: 1200px; margin: 60px auto 0 auto; padding-top: 30px; border-top: 1px solid #222222; display: flex; justify-content: space-between; font-size: 0.8rem; color: #555555; }
.editorial-legal a { color: #555555; text-decoration: none; }
.editorial-legal a:hover { color: #999999; }
.editorial-legal .sep { margin: 0 6px; color: #333333; }

/* ==========================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================== */
@media (max-width: 900px) {
    .logistics-split-grid { grid-template-columns: 1fr; gap: 20px; }
    .mosaic-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .mosaic-item.span-2, .mosaic-item.span-3 { grid-column: span 2; }
    .footer-top-row { flex-direction: column; gap: 50px; }
    .footer-links-block { margin-left: 0; max-width: 100%; justify-content: flex-start; width: 100%; }
}

@media (max-width: 768px) {
    /* --- Pinned Mobile Header & Branding --- */
    header { 
        position: fixed; 
        background-color: rgba(26, 43, 60, 0.95); 
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 5%; 
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        text-align: left;
    }
    
    .logo-img, .logo-icon { height: 18px; }
    .logo-icon { height: 26px; }

    /* --- Hamburger Button UI States --- */
    .nav-toggle { display: block; }
    
    .nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
    .nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateY(8px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .hamburger::after { transform: translateY(-8px) rotate(-45deg); }

    /* --- Mobile Full-Screen Overlay Navigation Panel --- */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 80px 20px 40px 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 1500;
        overflow-y: auto;
    }

    .nav-menu.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav-links { flex-direction: column; align-items: center; width: 100%; gap: 2rem; wrap: nowrap; }
    .nav-links a { font-size: 1.25rem; }

    /* --- Touch-Friendly Mobile Accordion Dropdowns --- */
    .dropdown { width: 100%; text-align: center; }
    .dropdown-toggle .arrow { display: inline-block; margin-left: 6px; transition: transform 0.3s ease; }
    .dropdown.is-open .dropdown-toggle .arrow { transform: rotate(180deg); }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: none !important;
        background-color: rgba(255, 255, 255, 0.03);
        border: none;
        border-radius: 6px;
        box-shadow: none;
        min-width: 100%;
        padding: 0;
        margin-top: 10px;
    }
    .dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; display: block; }
    .dropdown-menu a { text-align: center; padding: 12px 20px !important; font-size: 0.95rem !important; color: rgba(255, 255, 255, 0.7) !important; }

    /* --- Mobile Parallax Engine Reset --- */
    .hero-parallax-wrapper {
        height: 100vh;
        min-height: 520px;
        clip-path: inset(0 0 0 0); 
    }

    .hero-parallax-bg {
        background-attachment: scroll !important; 
        background-size: cover !important;
        position: fixed;
        height: 100vh;
        top: 0;
        z-index: 1;
        transform: translateZ(0); 
    }

    /* --- Layout & Vertical Pacing Safety Adapters --- */
    .hero { 
        min-height: 520px; 
        padding-top: 100px !important; /* Added safe breathing room below your fixed nav menu */
        
        /* Flexbox configuration modified to cleanly anchor content boxes to the top */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding-bottom: 32px !important; 
        box-sizing: border-box !important;
        background: transparent !important;
    }

    /* Neutralize asymmetric desktop rules on individual tour pages for a consistent mobile experience */
    .city-hero, .peninsula-hero, .winelands-hero, .hero-west-coast, .hero-garden-route, .overberg-hero {
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 100px !important;
    }

    /* Targeted mobile cropping configuration variants */
    .hero-home-bg {
        background-position: 50% 13% !important; /* Retains precise landscape framing rules */
    }

    /* Unified Content Boxes: Forces uniformity across structural pages, sub-tours, and legal pages */
    .hero-content,
    .city-hero .hero-content, 
    .peninsula-hero .hero-content, 
    .winelands-hero .hero-content, 
    .hero-west-coast .hero-content, 
    .hero-garden-route .hero-content,
    .overberg-hero .hero-content,
    .hero section + div, 
    .hero [style*="transform"] { /* Smart fallback: neutralizes inline layout shifts on terms/privacy pages */
        width: 92% !important;
        max-width: 440px !important; 
        background-color: rgba(0, 0, 0, 0.6) !important; /* Darkened slightly to maintain high contrast text readability over mobile image focal points */
        padding: 25px !important; 
        border-radius: 8px !important; 
        margin: 0 auto !important;
        transform: none !important; /* Erases desktop translations and inline transforms completely on mobile */
    }

    .profile-split-block { grid-template-columns: 1fr; gap: 0; }
    .profile-split-text { padding: 30px 20px; }
    .profile-split-media { height: 320px; }
}

@media (max-width: 600px) {
    .testimonial-section-v2 { padding: 60px 20px; }
    .testimonial-container-v2 { padding-left: 20px; }
    .testimonial-text-v2 { font-size: 1.2rem; margin-bottom: 20px; }
    .testimonial-author-v2 { flex-direction: column; align-items: flex-start; gap: 4px; }
    .author-location-v2 { padding-left: 0; }
    .author-location-v2::before { display: none; }
    .testimonial-profile-v2 { flex-direction: column; align-items: flex-start; gap: 12px; }
    .testimonial-avatar { width: 80px; height: 80px; }
    .accommodation-options-grid, .highlights-grid, .values-card-grid { grid-template-columns: 1fr; }
    .mosaic-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .mosaic-item.span-2, .mosaic-item.span-3, .mosaic-item.row-span-2 { grid-column: span 1 !important; grid-row: span 1 !important; }
    .mosaic-item figcaption { transform: translateY(0); background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.1) 100%); }
}

@media (max-width: 480px) {
    .editorial-footer { padding: 50px 20px 20px 20px; }
    .footer-links-block { flex-direction: column; gap: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .tour-card, .btn-enquire, .mosaic-item, .highlights-item-card { transition: none; }
    .btn:hover, .tour-card:hover, .btn-enquire:hover, .mosaic-item:hover, .highlights-item-card:hover { transform: none; }
}