/* ==========================================================================
   THE TRAVEL MAVERICK SA
   Palette taken from the logo: terracotta, charcoal, umber on warm ivory.
   Type: Cormorant Garamond (display) + Jost (text).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    /* Brand */
    --primary-color: #9C5535;      /* terracotta, text-safe on ivory */
    --primary-dark: #7E4227;
    --on-primary: #ffffff;
    --secondary-color: #C48B68;    /* logo tan */
    --accent-color: #5E7A63;       /* sage, success */
    --danger-color: #B23A3A;
    --tan: #C48B68;
    --tan-light: #F0CBA8;

    /* Surfaces */
    --bg-primary: #FBF8F4;         /* ivory */
    --bg-secondary: #F3EEE7;       /* sand */
    --bg-tertiary: #EAE2D7;
    --surface: #ffffff;
    --bg-overlay: rgba(20, 12, 10, 0.72);

    /* Deep sections (concierge, contact panel, footer) */
    --deep: #2A1614;               /* umber */
    --deep-2: #3A211E;
    --footer-bg: #1B2121;
    --on-deep: #F3EBDD;
    --on-deep-soft: #C9BBAA;

    /* Text */
    --text-primary: #232B2B;
    --text-secondary: #5A6363;
    --text-light: #676F6D;

    /* Lines */
    --border-color: #E4DBCF;
    --border-dark: #CFC2B0;

    /* Shadows (warm) */
    --shadow-sm: 0 1px 2px rgba(42, 22, 20, 0.06);
    --shadow-md: 0 8px 24px -12px rgba(42, 22, 20, 0.22);
    --shadow-lg: 0 18px 40px -18px rgba(42, 22, 20, 0.30);
    --shadow-xl: 0 30px 60px -28px rgba(42, 22, 20, 0.38);

    /* Type */
    --font-primary: 'Jost', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* Motion + shape */
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s ease;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --radius: 4px;
    --nav-h: 76px;
    --focus-ring: rgba(156, 85, 53, 0.22);
}

[data-theme="dark"] {
    --primary-color: #D9A07C;
    --primary-dark: #E8B592;
    --on-primary: #1C1411;
    --accent-color: #86A88B;

    --bg-primary: #141918;
    --bg-secondary: #1A2120;
    --bg-tertiary: #242C2B;
    --surface: #1E2524;
    --bg-overlay: rgba(0, 0, 0, 0.82);

    --deep: #100D0C;
    --deep-2: #1A1413;
    --footer-bg: #0B0E0E;

    --text-primary: #F3EEE7;
    --text-secondary: #B9C0BC;
    --text-light: #8B938F;

    --border-color: #2C3634;
    --border-dark: #3B4744;

    --shadow-md: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
    --shadow-xl: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
    --focus-ring: rgba(217, 160, 124, 0.28);
}

/* ---------- Reset + base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    transition: all var(--transition-fast);
}

:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }

input, textarea, select {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

input::placeholder, textarea::placeholder { color: var(--text-light); }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: background-color var(--transition-base), color var(--transition-base),
                box-shadow var(--transition-base), transform var(--transition-base);
}

.btn-lg { padding: 1.15rem 2.5rem; }

.btn-primary { background-color: var(--primary-color); color: var(--on-primary); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--text-primary);
}
.btn-secondary:hover { background-color: var(--text-primary); color: var(--bg-primary); }

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover { background-color: #fff; color: #2A1614; }

.btn-block { width: 100%; }

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background-color: rgba(251, 248, 244, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: box-shadow var(--transition-base), background-color var(--transition-base);
}
[data-theme="dark"] .navbar { background-color: rgba(20, 25, 24, 0.92); }
.navbar.scrolled { box-shadow: 0 10px 30px -20px rgba(42, 22, 20, 0.45); }

.navbar .container {
    max-width: 1360px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-pin { height: 44px; width: auto; flex-shrink: 0; }
.brand-name {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.1;
    white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--primary-color); }

.nav-menu { display: flex; align-items: center; gap: 2.1rem; }

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background-color: var(--primary-color);
    transition: width 0.4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link i { margin-right: 0.35rem; }

.nav-link#userBtn {
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--text-primary);
    border-radius: var(--radius);
    color: var(--text-primary);
}
.nav-link#userBtn::after { display: none; }
.nav-link#userBtn:hover { background-color: var(--text-primary); color: var(--bg-primary); }

/* Hamburger menu on larger screens: dropdown with My Account, Dashboard and the theme switch */
.nav-more { position: relative; }
.nav-more-toggle {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    font-size: 1.05rem;
    color: var(--text-primary);
}
.nav-more-toggle:hover, .nav-more.open .nav-more-toggle { border-color: var(--primary-color); color: var(--primary-color); }

.nav-more-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1100;
    min-width: 250px;
    padding: 0.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-more.open .nav-more-panel { opacity: 1; visibility: visible; transform: none; }

.menu-greeting {
    margin: 0;
    padding: 0.75rem 0.85rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere;
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    color: var(--text-primary);
    border-radius: 2px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}
.menu-item i { width: 1.1rem; text-align: center; color: var(--primary-color); }
.menu-item:hover, .menu-item:focus-visible { background-color: var(--bg-secondary); }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    font-size: 1.35rem;
    color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 9.5rem;
    background: #2A1614 url('https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=2200&q=80') center 42% / cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(24, 12, 10, 0.05) 0%, rgba(24, 12, 10, 0.45) 100%),
        linear-gradient(180deg, rgba(24, 12, 10, 0.55) 0%, rgba(24, 12, 10, 0.2) 40%, rgba(24, 12, 10, 0.75) 100%);
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 940px; }

.hero-eyebrow {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.75rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(3.1rem, 8.2vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: -0.015em;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}
.hero-title em { font-style: italic; color: var(--tan-light); }

.hero-subtitle {
    max-width: 36rem;
    margin: 0 auto 2.6rem;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

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

.hero-services {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    background: rgba(24, 12, 10, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-services .container { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 2rem; }
.hero-service {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.6rem 1.75rem;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transition: background-color var(--transition-base);
}
.hero-service:first-child { border-left: 0; padding-left: 0; }
.hero-service:hover { background: rgba(255, 255, 255, 0.07); }
.hero-service-num { font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; color: var(--tan-light); line-height: 1; }
.hero-service-name { flex: 1; font-size: 0.76rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-service i { font-size: 0.8rem; transition: transform var(--transition-base); }
.hero-service:hover i { transform: translateX(5px); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 4.5rem; }

.eyebrow {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.section-head .eyebrow::before {
    content: '';
    display: block;
    width: 1px; height: 40px;
    margin: 0 auto 1.2rem;
    background: var(--tan);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(2.5rem, 4.8vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--text-primary);
    margin: 0.9rem 0 1rem;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin: 0 auto; }

/* ---------- Intro ---------- */
.intro-section { padding: 8rem 0; background-color: var(--bg-primary); }
.intro-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5.5rem; align-items: start; }
.intro-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(2.7rem, 5.2vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin: 1.1rem 0 1.6rem;
}
.intro-title em { font-style: italic; color: var(--primary-color); }
.intro-text { font-size: 1.12rem; color: var(--text-secondary); max-width: 34rem; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-dark); }
.pillar { padding: 2.25rem 2.25rem 2.25rem 0; border-bottom: 1px solid var(--border-color); }
.pillar:nth-child(even) { padding-left: 2.25rem; padding-right: 0; border-left: 1px solid var(--border-color); }
.pillar i { display: block; margin-bottom: 1.2rem; font-size: 1.35rem; color: var(--primary-color); }
.pillar h3 { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; line-height: 1.1; margin-bottom: 0.45rem; }
.pillar p { color: var(--text-secondary); font-size: 1rem; }

/* ---------- Trips + shuttles ---------- */
.trips-section, .shuttles-section { padding: 8rem 0; }
.trips-section { background-color: var(--bg-secondary); }
.shuttles-section { background-color: var(--bg-primary); }

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2.5rem 2rem;
}

.trip-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.trip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.trip-image { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; background-color: var(--bg-tertiary); }
.trip-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.trip-card:hover .trip-image img { transform: scale(1.06); }
.trip-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 10, 8, 0) 55%, rgba(20, 10, 8, 0.32) 100%);
    pointer-events: none;
}

.trip-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 1;
    padding: 0.4rem 0.85rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 2px;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.trip-content { display: flex; flex-direction: column; flex: 1; padding: 1.85rem 1.85rem 2rem; }

.trip-location {
    order: -1;
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.trip-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.trip-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trip-details {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1.15rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.trip-duration { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.92rem; }
.trip-duration i { color: var(--primary-color); }
.trip-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.price-label { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-light); }
.price-value { font-family: var(--font-heading); font-size: 1.85rem; font-weight: 600; line-height: 1; color: var(--text-primary); }

.btn-book { width: 100%; }
.trip-card .btn-book { background-color: var(--text-primary); color: var(--bg-primary); box-shadow: none; }
.trip-card .btn-book:hover { background-color: var(--primary-color); color: var(--on-primary); transform: none; box-shadow: none; }

/* ---------- Contact ---------- */
.contact-section { padding: 8rem 0; background-color: var(--bg-secondary); }

.contact-content {
    display: grid;
    grid-template-columns: 5fr 7fr;
    margin-top: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contact-info {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 3rem;
    background-color: var(--deep);
    color: var(--on-deep);
}
.contact-info::after {
    content: '';
    position: absolute;
    right: -60px; bottom: -70px;
    width: 250px; height: 330px;
    background: url('pin.png') center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }

.contact-heading {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    color: #fff;
}
.contact-heading em { font-style: italic; color: var(--tan-light); }

.contact-item { display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.contact-icon {
    flex-shrink: 0;
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(196, 139, 104, 0.6);
    border-radius: 50%;
    color: var(--tan);
    font-size: 1rem;
}
.contact-item h4 {
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--tan);
}
.contact-item p { color: var(--on-deep); font-size: 1.02rem; line-height: 1.55; }

.contact-form { padding: 3.5rem 3rem; background-color: var(--bg-primary); }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ---------- Footer ---------- */
.footer { background-color: var(--footer-bg); color: var(--on-deep-soft); padding: 5.5rem 0 1.75rem; }

.footer-content {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-logo { display: flex; align-items: center; gap: 1rem; }
.footer .brand-pin {
    width: 56px; height: 56px;
    padding: 9px 12px;
    object-fit: contain;
    background-color: #FBF8F4;
    border-radius: 50%;
}
.footer .brand-name { color: #fff; font-size: 0.9rem; }
.footer .brand-name em { color: var(--tan); }
.footer-brand p { max-width: 22rem; font-family: var(--font-heading); font-size: 1.45rem; font-style: italic; line-height: 1.3; color: var(--on-deep); }

.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links h4 {
    margin-bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--tan);
}
.footer-links a { color: var(--on-deep-soft); font-size: 0.98rem; transition: color var(--transition-fast); }
.footer-links a:hover { color: #fff; }
.footer-address { color: var(--on-deep-soft); font-size: 0.98rem; line-height: 1.6; }

.footer-bottom {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--on-deep-soft);
    text-align: center;
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .trip-card.reveal.in { transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.js .trip-card.reveal.in:hover { transform: translateY(-6px); }

@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(30px); } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Notifications (script.js sets inline colours; overridden here) ---------- */
.notification {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
    top: calc(var(--nav-h) + 16px) !important;
}
.notification-success { background-color: #4E6B53 !important; }
.notification-error { background-color: #A33A3A !important; }
.notification-info { background-color: var(--text-primary) !important; color: var(--bg-primary) !important; }

/* ---------- Modals ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: var(--bg-overlay);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.modal.active { display: flex !important; opacity: 1; }

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: auto;
    padding: 2.75rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.4s var(--ease);
}
.modal-large .modal-content { max-width: 920px; }

@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
}
.modal-close:hover { background-color: var(--text-primary); color: var(--bg-primary); }

.modal-content h2 {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
}
.modal-content h2 i { color: var(--primary-color); font-size: 1.5rem; }

.auth-form { margin-top: 1.5rem; }
.auth-switch { margin-top: 1.5rem; text-align: center; color: var(--text-secondary); }
.auth-switch a { color: var(--primary-color); font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

/* Booking */
.booking-container { max-width: 100%; }
.booking-header { margin-bottom: 2rem; }
.booking-header h2 { margin-bottom: 0.5rem; }
.booking-header p { color: var(--text-secondary); }
.booking-content { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.booking-details { height: fit-content; padding: 1.5rem; background-color: var(--bg-secondary); border-radius: var(--radius); }
.booking-details img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1rem; }
.booking-info h3 { margin-bottom: 1rem; font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.booking-info-item { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; color: var(--text-secondary); }
.booking-info-item i { color: var(--primary-color); }
.booking-price-display { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.booking-price-display .price { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; color: var(--primary-color); }
.booking-form h3 { margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; }

/* Checkout */
.checkout-container h2 { margin-bottom: 2rem; }
.checkout-content { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.checkout-summary { height: fit-content; padding: 1.5rem; background-color: var(--bg-secondary); border-radius: var(--radius); }
.checkout-summary h3, .checkout-payment h3 { margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600; }
.summary-item { display: flex; justify-content: space-between; margin-bottom: 0.75rem; color: var(--text-secondary); }
.summary-item span:first-child { font-weight: 500; }
.summary-item span:last-child { font-weight: 500; color: var(--text-primary); }
.summary-total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-dark); font-size: 1.2rem; color: var(--text-primary); }
.summary-total span { font-weight: 600; }
.summary-total span:last-child { color: var(--primary-color); }
.checkout-summary hr { border: none; border-top: 1px solid var(--border-color); margin: 1rem 0; }

.trust-badges { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.badge-item { display: flex; align-items: center; gap: 0.6rem; color: var(--accent-color); font-size: 0.9rem; }
.badge-item i { font-size: 1.05rem; }

.payment-methods { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2rem; }
.payment-option { display: flex; align-items: center; }
.payment-option input[type="radio"] { width: auto; margin-right: 0.75rem; cursor: pointer; accent-color: var(--primary-color); }
.payment-option label {
    flex: 1;
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.payment-option label i { font-size: 1.4rem; color: var(--primary-color); }
.payment-option input[type="radio"]:checked + label { border-color: var(--primary-color); background-color: var(--bg-secondary); box-shadow: inset 0 0 0 1px var(--primary-color); }
.payment-form { margin-bottom: 1.5rem; }
.paypal-info, .eft-info { padding: 2rem; text-align: center; background-color: var(--bg-secondary); border-radius: var(--radius); }
.paypal-info p, .eft-info p { margin-bottom: 0.5rem; color: var(--text-secondary); }
.eft-info { text-align: left; }

/* Success */
.modal-success { text-align: center; padding: 3.25rem 2.5rem; }
.success-icon { margin-bottom: 1rem; font-size: 4.5rem; color: var(--accent-color); }
.modal-success h2 { justify-content: center; margin-bottom: 1rem; }
.booking-reference { margin: 1.5rem 0; padding: 1rem; background-color: var(--bg-secondary); border-radius: var(--radius); font-size: 1.1rem; }
.booking-reference strong { color: var(--primary-color); font-size: 1.25rem; }

/* ---------- My Account ---------- */
.profile-section { padding: calc(var(--nav-h) + 4.5rem) 0 7rem; background-color: var(--bg-primary); min-height: 80vh; }
.profile-section .section-head { margin-bottom: 3rem; }

.account-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 3rem; align-items: start; }

.account-card {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    padding: 2rem;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.account-avatar {
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 50%;
    background-color: var(--deep);
    color: var(--tan-light);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
}
.account-name { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.account-email { margin-top: 0.25rem; color: var(--text-secondary); overflow-wrap: anywhere; }

.account-details { margin: 1.5rem 0 1.75rem; }
.account-details > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--border-color); }
.account-details dt { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-light); }
.account-details dd { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.account-details .muted { color: var(--text-light); font-weight: 400; font-size: 0.9rem; }

.account-name-form label { display: block; margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary); }
.account-name-row { display: flex; gap: 0.5rem; }
.account-name-row input { min-width: 0; }

.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3rem; }
.account-stat { padding: 1.25rem 1.5rem; background-color: var(--bg-secondary); border-radius: var(--radius); }
.account-stat strong { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.account-stat span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary); }

.account-block { margin-bottom: 3rem; }
.account-block-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; font-family: var(--font-heading); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.account-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; padding: 0 0.5rem; font-family: var(--font-primary); font-size: 0.8rem; font-weight: 500; color: var(--on-primary); background-color: var(--primary-color); border-radius: 999px; }

.account-trip {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    margin-bottom: 1rem;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}
.account-trip-img { background-color: var(--bg-tertiary); min-height: 100%; }
.account-trip-img img { width: 100%; height: 100%; object-fit: cover; }
.account-trip.taken .account-trip-img img { filter: grayscale(0.35); }
.account-trip-body { padding: 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.account-trip-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.account-trip-top h4 { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.account-trip-when { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.25rem 0.7rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-primary); background-color: var(--primary-color); border-radius: 2px; white-space: nowrap; }
.account-trip-when.is-done { color: var(--text-secondary); background: transparent; box-shadow: inset 0 0 0 1px var(--border-dark); }
.account-trip-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; color: var(--text-secondary); font-size: 0.95rem; }
.account-trip-meta i { margin-right: 0.35rem; color: var(--primary-color); }
.account-trip-facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; list-style: none; font-size: 0.9rem; color: var(--text-secondary); }
.account-trip-facts i { margin-right: 0.35rem; color: var(--text-light); }
.account-trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border-color); }
.account-trip-foot strong { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }

.account-cancelled { border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--surface); }
.account-cancelled summary { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.25rem; cursor: pointer; font-weight: 500; }
.account-cancelled ul { list-style: none; padding: 0 1.25rem 0.5rem; }
.account-cancelled li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--border-color); color: var(--text-secondary); }
.account-cancelled small { color: var(--text-light); }

/* ---------- Responsive ---------- */

/* Navigation collapses to a full-width drawer */
@media (max-width: 1100px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        height: calc(100vh - var(--nav-h));
        height: calc(100dvh - var(--nav-h));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.25rem 2rem 3rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: var(--bg-primary);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }
    .nav-menu.active { opacity: 1; visibility: visible; transform: none; }

    .nav-link {
        padding: 1.05rem 0;
        border-bottom: 1px solid var(--border-color);
        font-family: var(--font-heading);
        font-size: 1.85rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: var(--text-primary);
    }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--primary-color); }
    .nav-link#userBtn { border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; padding: 1.05rem 0; }
    .nav-link#userBtn:hover { background: none; color: var(--primary-color); }

    /* The desktop dropdown becomes a plain list at the bottom of the drawer */
    .nav-more { margin-top: 1.5rem; }
    .nav-more-toggle { display: none; }
    .nav-more-panel {
        position: static;
        min-width: 0;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .menu-greeting { padding: 0 0 0.9rem; margin-bottom: 0; }
    .menu-item {
        padding: 1.05rem 0;
        font-family: var(--font-heading);
        font-size: 1.85rem;
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        border-radius: 0;
    }
    .menu-item i { font-size: 1.2rem; }
    .menu-item:hover, .menu-item:focus-visible { background: none; color: var(--primary-color); }
}

@media (max-width: 900px) {
    .account-layout { grid-template-columns: 1fr; gap: 2rem; }
    .account-card { position: static; }
}
@media (max-width: 700px) {
    .profile-section { padding-bottom: 5rem; }
    .account-stats { grid-template-columns: 1fr; }
    .account-trip { grid-template-columns: 1fr; }
    .account-trip-img { height: 160px; }
}

@media (max-width: 900px) {
    .intro-section, .trips-section, .shuttles-section, .contact-section { padding: 6rem 0; }
    .section-head { margin-bottom: 3.25rem; }
    .intro-grid { grid-template-columns: 1fr; gap: 3.5rem; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-service { padding: 1.25rem 1rem; }
    .hero-service-num { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .booking-content, .checkout-content { grid-template-columns: 1fr; }
    .modal-content { padding: 1.75rem; }
    .contact-info, .contact-form { padding: 2.5rem 1.75rem; }
}

@media (max-width: 700px) {
    .hero { padding-bottom: 4.5rem; }
    .hero-services { display: none; }
    .pillars { grid-template-columns: 1fr; }
    .pillar, .pillar:nth-child(even) { padding: 1.75rem 0; border-left: 0; }
}

@media (max-width: 480px) {
    :root { --nav-h: 68px; }
    .navbar .container { padding: 0 1rem; }
    .brand-pin { height: 38px; }
    .nav-brand { gap: 0.6rem; }
    .brand-name { font-size: 0.68rem; letter-spacing: 0.12em; }
    .nav-menu { padding: 1rem 1.5rem 3rem; }
    .nav-link { font-size: 1.65rem; }

    .container { padding: 0 1.25rem; }
    .hero { padding-left: 1.25rem; padding-right: 1.25rem; }
    .hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.2em; line-height: 1.8; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
    .btn-lg { padding: 1.05rem 1.5rem; }

    .intro-section, .trips-section, .shuttles-section, .contact-section { padding: 4.5rem 0; }
    .section-head .eyebrow::before { height: 30px; margin-bottom: 1rem; }
    .trip-content { padding: 1.5rem 1.4rem 1.6rem; }
    .trip-content h3 { font-size: 1.8rem; }

    .form-row { grid-template-columns: 1fr; }
    .footer { padding-top: 4rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .modal { padding: 0.5rem; }
    .modal-content { padding: 1.5rem 1.25rem; }
    .modal-content h2 { font-size: 1.8rem; }
}

/* ============================================
   ADMIN PORTAL STYLES
   ============================================ */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-content {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.admin-content {
    max-width: 100% !important;
    padding: 0;
    overflow: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.admin-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.admin-nav {
    display: flex;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 2rem;
    overflow-x: auto;
}

.admin-nav-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.admin-nav-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.admin-nav-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h4 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.stat-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Admin Tables */
.admin-table-container {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-secondary);
    vertical-align: middle;
}

.admin-table tr:hover {
    background-color: var(--bg-tertiary);
}

.admin-table img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

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

.btn-success:hover {
    background-color: #059669;
}

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

.btn-warning:hover {
    background-color: #A86F4E;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background-color: #d1fae5;
    color: #065f46;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-cancelled {
    background-color: #fee2e2;
    color: #991b1b;
}

.loyalty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.loyalty-new {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.loyalty-regular {
    background-color: #F1E2D6;
    color: #7E4227;
}

.loyalty-loyal {
    background-color: #C48B68;
    color: #3A211E;
}

.loyalty-vip {
    background-color: #3A211E;
    color: #F0CBA8;
}

/* Analytics */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.analytics-card h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.chart-container {
    height: 200px;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

.chart-bar {
    background-color: var(--primary-color);
    margin: 0.25rem;
    padding: 0.5rem;
    border-radius: 4px;
    color: white;
    text-align: center;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Trip Form */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .status-confirmed {
    background-color: #064e3b;
    color: #d1fae5;
}

[data-theme="dark"] .status-pending {
    background-color: #78350f;
    color: #fef3c7;
}

[data-theme="dark"] .status-cancelled {
    background-color: #7f1d1d;
    color: #fee2e2;
}

[data-theme="dark"] .loyalty-regular {
    background-color: #5A3423;
    color: #F1E2D6;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-nav {
        padding: 0 1rem;
    }
    
    .admin-content-area {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-table-container {
        overflow-x: auto;
    }
    
    .admin-table {
        min-width: 800px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- Admin tweaks to match the new palette ---------- */
.stat-icon, .chart-bar { color: var(--on-primary); }
.stat-icon { border-radius: var(--radius); }
.stat-card, .analytics-card, .admin-table-container { border: 1px solid var(--border-color); border-radius: var(--radius); box-shadow: none; }
.admin-table th { font-weight: 500; letter-spacing: 0.14em; font-size: 0.72rem; }
.admin-header h2 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 500; }
.stat-info h4 { font-family: var(--font-heading); font-weight: 600; }
.section-header h3 { font-family: var(--font-heading); font-weight: 600; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.7rem; letter-spacing: 0.12em; }
.btn-danger, .btn-success, .btn-warning { color: #fff; }
.form-actions .btn { min-width: 8rem; }

/* ---------- Admin: filters, charts, customer modal ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.filters select { width: auto; min-width: 12rem; }
.filters input { width: auto; min-width: 14rem; }

.modal-fullscreen .modal-content { height: 100vh; height: 100dvh; padding: 0; }
.modal-fullscreen .admin-content { border-radius: 0; }
.admin-header .modal-close { position: static; flex-shrink: 0; }

.customer-recent { margin: 0.5rem 0 0.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); }
.customer-recent h4 { margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-secondary); }
.customer-recent p { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.95rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.customer-recent p span { white-space: nowrap; color: var(--text-light); }

.trip-departure { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.92rem; }
.trip-departure i { color: var(--primary-color); }
.trip-details { flex-wrap: wrap; row-gap: 0.75rem; }

/* Analytics: horizontal bars for rankings, vertical bars for time series */
.chart-container { height: auto; min-height: 200px; padding: 1rem; font-style: normal; text-align: center; }
.chart-container p { width: 100%; color: var(--text-light); font-style: italic; }
#popularDestinations, #customerLoyalty { flex-direction: column; align-items: stretch; justify-content: center; gap: 0.5rem; }
#popularDestinations .chart-bar, #customerLoyalty .chart-bar { margin: 0; min-height: 2.25rem; justify-content: flex-start; padding: 0.4rem 0.8rem; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#monthlyRevenue, #bookingTrends { height: 220px; align-items: flex-end; justify-content: space-around; gap: 0.4rem; }
#monthlyRevenue .chart-bar, #bookingTrends .chart-bar { flex: 1; margin: 0; padding: 0.4rem 0.2rem; font-size: 0.68rem; line-height: 1.2; align-items: flex-start; overflow: hidden; word-break: break-word; }

/* ---------- Departure dates ---------- */
/* Departure chip: top right of the trip photo, mirroring the badge on the left */
.trip-image .trip-departure {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    padding: 0.4rem 0.75rem;
    text-align: right;
    line-height: 1.2;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 2px;
    box-shadow: 0 6px 18px -8px rgba(20, 10, 8, 0.5);
}
.trip-departure-label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-color); }
.trip-departure-label i { margin-right: 0.25rem; }
.trip-image .trip-departure strong { font-size: 0.86rem; font-weight: 500; white-space: nowrap; }

.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.trip-card .btn-book:disabled:hover { background-color: var(--text-primary); color: var(--bg-primary); }

.booking-info-departure strong { font-weight: 500; color: var(--text-primary); }
.field-note { display: block; margin-top: 0.4rem; font-size: 0.8rem; color: var(--text-light); }
input.is-fixed, input.is-fixed:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: not-allowed;
    border-style: dashed;
}

/* ---------- Admin: bookings grouped by trip and date ---------- */
.booking-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem 1.25rem 0.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}
.booking-filters .form-group { margin-bottom: 1rem; }
.booking-filters select, .booking-filters input { width: 100%; min-width: 0; }

.booking-summary { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-bottom: 1.25rem; color: var(--text-secondary); font-size: 0.95rem; }
.booking-summary strong { color: var(--text-primary); font-weight: 600; }

.booking-groups { display: flex; flex-direction: column; gap: 1rem; }

.booking-group { border: 1px solid var(--border-color); border-radius: var(--radius); background-color: var(--bg-secondary); overflow: hidden; }
.booking-group > summary {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    background-color: var(--bg-tertiary);
}
.booking-group > summary::-webkit-details-marker { display: none; }
.booking-group > summary:hover { background-color: var(--border-color); }

.booking-group-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.booking-group-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--text-primary); }
.booking-group-date { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.95rem; color: var(--text-secondary); }
.booking-group-date i { color: var(--primary-color); }
.booking-group-tag { padding: 0.2rem 0.6rem; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; border-radius: 2px; }
.booking-group-tag.is-upcoming { background-color: var(--primary-color); color: var(--on-primary); }
.booking-group-tag.is-past { background-color: transparent; color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border-dark); }

.booking-group-stats { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; color: var(--text-secondary); }
.booking-group-stats strong { color: var(--text-primary); font-weight: 600; }
.booking-group-chevron { font-size: 0.8rem; transition: transform var(--transition-base); }
.booking-group[open] .booking-group-chevron { transform: rotate(180deg); }

.booking-group .admin-table-container { border: 0; border-radius: 0; border-top: 1px solid var(--border-color); overflow-x: auto; background-color: var(--surface); }
.booking-users-table td small { color: var(--text-light); }
.booking-note { font-style: italic; }

.empty-state { padding: 3.5rem 1rem; text-align: center; color: var(--text-light); border: 1px dashed var(--border-dark); border-radius: var(--radius); }
.empty-state i { display: block; margin-bottom: 0.75rem; font-size: 1.75rem; color: var(--tan); }
.empty-row { padding: 1.5rem 1rem !important; text-align: center; color: var(--text-light) !important; font-style: italic; }

.upcoming-departures { margin-top: 2rem; }
.upcoming-departures .section-header { margin-bottom: 0.75rem; }

@media (max-width: 900px) {
    .booking-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .booking-filters { grid-template-columns: 1fr; padding: 1rem 1rem 0.25rem; }
    .booking-group > summary { padding: 0.9rem 1rem; }
    .booking-group-stats { width: 100%; justify-content: space-between; }
    .booking-users-table { min-width: 720px; }
}

/* ---------- Trip status, capacity and sold-out ---------- */
.trip-badge.is-soldout { background-color: var(--text-primary); color: var(--bg-primary); }
.trip-card.is-soldout .trip-image img { filter: grayscale(0.55) brightness(0.92); }
.trips-empty { grid-column: 1 / -1; max-width: 34rem; margin: 0 auto; }

.field-note.is-warning { color: var(--danger-color); }
select option:disabled { color: var(--text-light); }

.status-open { background-color: #d8e6d9; color: #2f4d33; }
.status-closed { background-color: var(--bg-tertiary); color: var(--text-secondary); }
[data-theme="dark"] .status-open { background-color: #24382a; color: #b9d6bd; }
.status-note { margin-left: 0.25rem; color: var(--text-light); font-style: italic; }

.pill { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.5rem; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 2px; vertical-align: middle; white-space: nowrap; }
.pill-soldout { background-color: var(--danger-color); color: #fff; }

/* ---------- Footer sitemap ---------- */
.footer-sitemap .footer-sub { padding-left: 1rem; font-size: 0.9rem; border-left: 1px solid rgba(255, 255, 255, 0.16); }
/* No heading on this column: offset it so its first link lines up with the "Get in touch" column */
@media (min-width: 481px) { .footer-sitemap { padding-top: 2.6rem; } }

@media (max-width: 480px) {
    .menu-item { font-size: 1.65rem; }
    .account-card { padding: 1.5rem; }
    .account-block-title { font-size: 1.7rem; }
}

/* ---------- Legal pages, menu dividers, consent notes ---------- */
.menu-divider { height: 1px; margin: 0.4rem 0.5rem; background-color: var(--border-color); }
@media (max-width: 1100px) { .menu-divider { display: none; } }
.menu-item[aria-current="page"] { background-color: var(--bg-secondary); }
.menu-item[aria-current="page"]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background-color: var(--primary-color); }

.footer-legal { margin-top: 0.5rem; }
.footer-legal a { color: var(--on-deep-soft); text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition-fast); }
.footer-legal a:hover { color: #fff; }
.footer-legal span { margin: 0 0.75rem; opacity: 0.6; }

.consent-note { margin: 1rem 0; font-size: 0.82rem; line-height: 1.5; color: var(--text-light); }
.consent-note a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 2px; }
.cg .consent-note { color: var(--ink-soft); }
.cg .consent-note a { color: var(--tan-light); }

.legal-main { padding: calc(var(--nav-h) + 4rem) 0 7rem; }
.legal-head { max-width: 46rem; margin-bottom: 3.5rem; }
.legal-head h1 { margin: 1rem 0 1rem; font-family: var(--font-heading); font-size: clamp(2.8rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.01em; }
.legal-lead { font-size: 1.2rem; color: var(--text-secondary); }
.legal-meta { margin-top: 1rem; font-size: 0.9rem; color: var(--text-light); }

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 4.5rem; align-items: start; }

.legal-toc { position: sticky; top: calc(var(--nav-h) + 2rem); max-height: calc(100vh - var(--nav-h) - 4rem); overflow-y: auto; }
.legal-toc h2 { margin-bottom: 0.75rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-light); }
.legal-toc ol { list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; font-size: 0.93rem; color: var(--text-secondary); border-left: 1px solid var(--border-color); transition: color var(--transition-fast), border-color var(--transition-fast); }
.legal-toc a::before { content: counter(toc) '. '; color: var(--text-light); }
.legal-toc a:hover { color: var(--primary-color); border-left-color: var(--primary-color); }

.legal-body { max-width: 46rem; counter-reset: sect; font-size: 1.04rem; }
.legal-body h2 { counter-increment: sect; margin: 3.25rem 0 1rem; font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1.15; }
.legal-body h2::before { content: counter(sect) '. '; color: var(--primary-color); }
.legal-callout + h2 { margin-top: 2.5rem; }
.legal-body p, .legal-body li { color: var(--text-primary); }
.legal-body p { margin: 0.9rem 0; }
.legal-body ul { margin: 0.9rem 0 1.1rem; padding-left: 1.3rem; }
.legal-body li { margin: 0.55rem 0; padding-left: 0.2rem; }
.legal-body li::marker { color: var(--primary-color); }
.legal-body a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--primary-dark); }
.legal-body strong { font-weight: 500; }

.legal-callout, .legal-important { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background-color: var(--bg-secondary); border-left: 3px solid var(--primary-color); border-radius: 0 var(--radius) var(--radius) 0; }
.legal-callout strong, .legal-important strong { display: block; margin-bottom: 0.35rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--primary-color); }
.legal-callout p, .legal-important p { margin: 0; }
.legal-important { border-left-color: var(--text-primary); background-color: var(--bg-tertiary); }
.legal-important strong { color: var(--text-primary); }

/* Details the business still has to fill in: deliberately loud so they cannot be published by accident */
.legal-todo { padding: 0.05rem 0.4rem; background-color: #ffe08a; color: #3a2a00; border-radius: 2px; font-weight: 500; }
[data-theme="dark"] .legal-todo { background-color: #6b5200; color: #ffe9a8; }

@media (max-width: 900px) {
    .legal-main { padding-top: calc(var(--nav-h) + 3rem); padding-bottom: 5rem; }
    .legal-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .legal-toc { position: static; max-height: none; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
    .legal-body h2 { font-size: 1.7rem; margin-top: 2.5rem; }
}
