:root {
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-accent: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-main);
    background-color: #F2EBE0; /* Stone Pale */
    color: #2A1E14; /* Ink Dark */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.serif {
    font-family: var(--font-accent);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(13, 27, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F2EBE0;
}
::-webkit-scrollbar-thumb {
    background: #C8B098;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9A8470;
}

/* Base Components */
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

button:active {
    transform: translateY(0);
}

/* Specific Layouts */
.mtn-div {
    line-height: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: 100%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Expedition Stays Layout */
.stays-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.stay-card {
    border-radius: 12px;
    padding: 16px;
    border-top: 2px solid rgba(245, 158, 11, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    min-height: 110px;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stay-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
    .stays-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Gallery Horizontal Scroll */
.gallery-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.4) transparent;
}

.gallery-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 10px;
}

.gallery-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.6);
}

.gallery-card {
    flex: 0 0 320px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255,255,255,0.02);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.scroll-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background: var(--ochre-light, #F59E0B);
    border-color: #F59E0B;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.scroll-btn:active {
    transform: scale(0.95);
}

@media (max-width: 640px) {
    .gallery-card {
        flex: 0 0 280px;
    }
    .scroll-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE SYSTEM
   Mobile: ≤480px | Tablet: ≤768px | Wide: ≥1200px
   ============================================ */

/* --- Navigation --- */
@media (max-width: 480px) {
    nav {
        padding: 12px 16px !important;
    }
    nav button {
        padding: 7px 12px !important;
        font-size: 11px !important;
    }
}

/* --- Hero Section --- */
@media (max-width: 768px) {
    header {
        padding: 80px 16px 32px !important;
    }
    header p {
        font-size: 15px !important;
        padding: 0 8px;
    }
    header > div > div:last-child > button {
        padding: 13px 22px !important;
        font-size: 14px !important;
    }
}

/* --- Stats Grid --- */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid > div {
        padding: 20px 10px !important;
    }
    .stats-grid .serif {
        font-size: 26px !important;
    }
}

/* --- Itinerary Day Buttons --- */
.day-tabs-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
@media (max-width: 480px) {
    .day-tabs-wrap button {
        padding: 6px 13px !important;
        font-size: 12px !important;
    }
}

/* --- Exclusives / Feature Cards Grid --- */
@media (max-width: 600px) {
    .exclusives-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Registration Form --- */
.form-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .form-two-col {
        grid-template-columns: 1fr !important;
    }
    .form-body {
        padding: 16px !important;
    }
}

/* --- Q&A Grid --- */
@media (max-width: 480px) {
    .qa-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Gallery Section --- */
@media (max-width: 480px) {
    .gallery-card {
        flex: 0 0 260px !important;
    }
    .gallery-nav {
        gap: 8px !important;
    }
}

/* --- Stays Grid (already handled, but reinforce) --- */
@media (max-width: 480px) {
    .stays-grid {
        grid-template-columns: 1fr !important;
    }
    .stay-card {
        min-height: auto !important;
    }
}

/* --- Footer / Section Padding reduction on mobile --- */
@media (max-width: 480px) {
    section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    section > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* --- Day Card responsive --- */
@media (max-width: 600px) {
    .day-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- Wide Desktop Max-Width Centering --- */
@media (min-width: 1400px) {
    .site-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* --- Touch-friendly button minimum heights on mobile --- */
@media (max-width: 768px) {
    button {
        min-height: 40px;
    }
    input, select, textarea {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        min-height: 44px;
    }
}

/* --- Prevent horizontal overflow everywhere --- */
* {
    max-width: 100vw;
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* --- New Added Responsive Classes --- */
.day-card-images {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2px;
    background: #DEDAD4;
    height: 260px;
}

.route-highlight-grid {
    display: grid;
    grid-template-columns: 36px 200px 1fr;
    gap: 16px;
    align-items: center;
}

@media (max-width: 640px) {
    .day-card-images {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 180px;
        height: auto;
    }
    
    .route-highlight-grid {
        grid-template-columns: 36px 1fr;
    }
    .route-highlight-grid > div:nth-child(2) {
        grid-column: 2;
    }
    .route-highlight-grid > div:nth-child(3) {
        grid-column: 1 / -1;
        padding-left: 52px; /* aligns with text */
    }
}

/* --- Admin Panel Responsive Enhancement --- */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column !important;
        overflow-x: hidden;
    }
    .admin-sidebar {
        width: 100% !important;
        height: auto !important;
        position: sticky !important;
        top: 0;
        left: 0;
        flex-direction: column !important;
        border-right: none !important;
        border-bottom: 1px solid #E5E7EB;
        background: #fff;
        z-index: 101;
    }
    .admin-content {
        padding: 24px 16px !important;
    }
    .admin-brand {
        padding: 10px 16px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid #F3F4F6 !important;
    }
    .admin-brand > div:last-child {
        display: none; /* Hide subtitle on tiny mobile header */
    }
    .admin-nav {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 6px 10px !important;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex !important;
    }
    .admin-nav::-webkit-scrollbar {
        display: none;
    }
    .admin-nav button {
        width: auto !important;
        white-space: nowrap;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }
    .admin-nav button > span:last-child {
        margin-left: 4px; 
    }
    .admin-logout-wrap {
        display: none; /* Hide on mobile top nav to save space, rely on brand click or similar */
    }
    .admin-content > div > .serif {
        font-size: 24px !important;
    }
    .admin-card-body {
        padding: 16px 12px !important;
    }
}

.hide-desktop {
    display: none;
}
@media (max-width: 768px) {
    .hide-desktop {
        display: block;
    }
}
