/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Branding variable mappings - these will be overridden by tenant branding if loaded */
    --green: var(--primary-color, #1D9E75);
    --green-dark: var(--secondary-color, #0F6E56);
    --green-light: var(--accent-color, #E1F5EE);
    --amber: #BA7517;
    --amber-light: #FAEEDA;
    --blue: #185FA5;
    --blue-light: #E6F1FB;
    --red: #A32D2D;
    --red-light: #FCEBEB;
    --gray-50: var(--bg-primary, #F8F8F6);
    --gray-100: var(--bg-secondary, #F1EFE8);
    --gray-300: #D3D1C7;
    --gray-500: #888780;
    --gray-700: #444441;
    --gray-900: #1a1a18;
    --text: var(--text-primary, #1a1a18);
    --text-muted: var(--text-secondary, #5F5E5A);
    --border: var(--border-color, #e0dfd8);
    --radius: var(--border-radius, 12px);
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
    --nav-h: 60px;
    --bottom-nav-h: 64px;
    --font: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--gray-50);
    min-height: 100vh;
    padding-bottom: var(--bottom-nav-h);
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1,h2,h3,h4 { line-height: 1.3; font-weight: 600; }
button { cursor: pointer; font-family: var(--font); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── App Shell ────────────────────────────────────────────────────────────── */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }

/* ── Top Nav ──────────────────────────────────────────────────────────────── */
.top-nav {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-h);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px;
}

.brand {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 17px; color: var(--text);
    text-decoration: none;
}
.brand-icon { color: var(--green); font-size: 20px; }

.nav-links { display: none; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }
}

.mobile-menu-btn {
    width: 40px; height: 40px;
    background: none; border: none;
    display: flex; flex-direction: column;
    justify-content: center; gap: 5px; padding: 6px;
}
.mobile-menu-btn span {
    display: block; width: 100%; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all .2s;
}

/* ── Mobile Drawer ────────────────────────────────────────────────────────── */
.mobile-drawer {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.4);
}
.mobile-drawer.open { display: block; }
.mobile-nav {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 280px; background: white;
    display: flex; flex-direction: column; gap: 4px;
    padding: 80px 24px 24px;
}
.mobile-nav a, .mobile-nav button {
    padding: 14px 0; font-size: 17px; color: var(--text);
    border: none; background: none; text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

/* ── Bottom Nav ───────────────────────────────────────────────────────────── */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    height: var(--bottom-nav-h);
    background: white; border-top: 1px solid var(--border);
    display: flex;
}
.bottom-nav-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    color: var(--gray-500); font-size: 11px; font-weight: 500;
    text-decoration: none; transition: color .15s;
}
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--green); text-decoration: none; }

/* ── Page Content ─────────────────────────────────────────────────────────── */
.page-content { flex: 1; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: white;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 15px; border: none;
    transition: background .15s;
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; color: white; }
.btn-primary-lg { @extend .btn-primary; padding: 16px 36px; font-size: 17px; }
.btn-primary-sm {
    background: var(--green); color: white;
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; border: none;
}
.btn-ghost {
    background: none; color: var(--text);
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 15px;
    border: 1.5px solid var(--border);
    transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--gray-500); }
.btn-ghost-sm {
    background: none; color: var(--green-dark);
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500;
    border: 1.5px solid var(--green);
}
.btn-submit {
    width: 100%; padding: 16px;
    background: var(--green); color: white;
    border: none; border-radius: var(--radius-sm);
    font-size: 16px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background .15s; margin-top: 8px;
}
.btn-submit:hover { background: var(--green-dark); }
.btn-submit:disabled { background: var(--gray-300); cursor: not-allowed; }
.btn-book { @extend .btn-submit; }
.btn-card-cta {
    background: var(--green-light); color: var(--green-dark);
    border: 1px solid var(--green);
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    transition: all .15s;
}
.btn-card-cta:hover { background: var(--green); color: white; }
.btn-search {
    background: var(--green); color: white;
    border: none; border-radius: var(--radius-sm);
    padding: 14px 28px; font-size: 16px; font-weight: 700;
    white-space: nowrap; transition: background .15s;
}
.btn-search:hover { background: var(--green-dark); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0F6E56 0%, #1D9E75 50%, #085041 100%);
    min-height: 480px; display: flex; align-items: center;
    padding: 60px 16px 80px;
}
.hero-content { max-width: 700px; margin: 0 auto; text-align: center; color: white; }
.hero-content h1 { font-size: clamp(28px, 6vw, 52px); font-weight: 800; margin-bottom: 16px; }
.hero-content p { font-size: 18px; opacity: .85; margin-bottom: 32px; }

/* Search Bar */
.search-bar {
    background: white; border-radius: var(--radius);
    padding: 12px; display: flex; flex-wrap: wrap; gap: 8px;
    box-shadow: var(--shadow-lg);
}
.search-field { flex: 1; min-width: 140px; display: flex; flex-direction: column; gap: 4px; }
.search-field label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; padding: 0 4px; }
.search-field input, .search-field select {
    border: none; outline: none; font-size: 15px; color: var(--text);
    padding: 4px 4px 8px; background: transparent;
}
@media (max-width: 480px) {
    .search-bar { flex-direction: column; }
    .search-field { min-width: unset; }
    .btn-search { width: 100%; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 48px 16px; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-size: 24px; }
.section-header a { color: var(--green-dark); font-size: 14px; font-weight: 600; }

/* ── Tour Card ────────────────────────────────────────────────────────────── */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.tour-card {
    background: white; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
    display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tour-card.skeleton { min-height: 360px; background: var(--gray-100); animation: shimmer 1.5s infinite; }
.tour-card-image { position: relative; height: 200px; overflow: hidden; }
.tour-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tour-card:hover .tour-card-image img { transform: scale(1.03); }
.featured-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--amber); color: white;
    font-size: 11px; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase;
}
.difficulty-badge {
    position: absolute; top: 12px; right: 12px;
    font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 20px; text-transform: uppercase;
}
.difficulty-badge.easy { background: var(--green-light); color: var(--green-dark); }
.difficulty-badge.moderate { background: var(--amber-light); color: var(--amber); }
.difficulty-badge.challenging { background: #FEF3C7; color: #92400E; }
.difficulty-badge.extreme { background: var(--red-light); color: var(--red); }
.tour-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.tour-card-dest { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.tour-card-title { font-size: 17px; margin-bottom: 8px; line-height: 1.35; }
.tour-card-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; flex: 1; line-height: 1.5; }
.tour-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.avail-dot { color: var(--green); }
.tour-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-100); padding-top: 12px; }
.tour-card-price { display: flex; align-items: baseline; gap: 4px; }
.tour-card-price .from { font-size: 12px; color: var(--text-muted); }
.tour-card-price .price { font-size: 22px; font-weight: 700; color: var(--text); }
.tour-card-price .per { font-size: 12px; color: var(--text-muted); }

/* ── Features Grid ────────────────────────────────────────────────────────── */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px; margin-top: 24px;
}
.feature-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 14px; font-weight: 700;
}
.feature-icon.green { background: var(--green-light); color: var(--green-dark); }
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.feature-icon.amber { background: var(--amber-light); color: var(--amber); }
.feature-icon.teal { background: var(--green-light); color: var(--green); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── Destinations ─────────────────────────────────────────────────────────── */
.destinations-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.destination-pill {
    background: white; border: 1.5px solid var(--border);
    border-radius: 24px; padding: 8px 18px;
    font-size: 14px; font-weight: 500; color: var(--text);
    transition: all .15s;
}
.destination-pill:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }

/* ── CTA Section ──────────────────────────────────────────────────────────── */
.cta-section {
    background: var(--gray-900); color: white;
    text-align: center; padding: 60px 16px;
}
.cta-section h2 { font-size: 28px; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 28px; font-size: 17px; }

/* ── Tour Detail ──────────────────────────────────────────────────────────── */
.tour-hero { position: relative; height: 400px; }
.tour-hero img { width: 100%; height: 100%; object-fit: cover; }
.tour-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
    display: flex; align-items: flex-end;
}
.tour-hero-content { padding: 24px; color: white; }
.tour-hero-content h1 { font-size: clamp(22px, 5vw, 40px); margin: 8px 0; }
.tour-meta-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; opacity: .9; margin-top: 8px; }
.badge-difficulty {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.badge-difficulty.easy { background: var(--green-light); color: var(--green-dark); }
.badge-difficulty.moderate { background: var(--amber-light); color: var(--amber); }
.badge-difficulty.challenging { background: #FEF3C7; color: #92400E; }
.badge-difficulty.extreme { background: var(--red-light); color: var(--red); }

.tour-detail-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 24px; padding: 24px 16px; max-width: 1100px; margin: 0 auto;
}
@media (min-width: 900px) {
    .tour-detail-grid { grid-template-columns: 1fr 340px; }
}

/* Tabs */
.tab-strip { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 4px; }
.tab {
    padding: 10px 18px; font-size: 15px; font-weight: 500;
    background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; color: var(--text-muted); transition: all .15s;
}
.tab.active { color: var(--green-dark); border-bottom-color: var(--green); }
.tab-panel { padding: 4px 0; }

/* Itinerary */
.itinerary-day { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.itinerary-day-header {
    width: 100%; padding: 14px 16px;
    background: var(--gray-50); border: none;
    display: flex; align-items: center; gap: 12px; text-align: left;
}
.itinerary-day.expanded .itinerary-day-header { background: var(--green-light); }
.day-number { font-size: 12px; font-weight: 700; color: var(--green-dark); min-width: 44px; }
.day-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.day-chevron { color: var(--text-muted); font-size: 12px; }
.itinerary-day-body { padding: 16px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.day-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--green-dark); }

/* Includes */
.includes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .includes-grid { grid-template-columns: 1fr; } }
.include-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.include-list li { display: flex; gap: 8px; font-size: 14px; align-items: flex-start; }
.check { font-weight: 700; }
.check.green { color: var(--green); }
.check.red { color: var(--red); }

/* Availability */
.availability-list { display: flex; flex-direction: column; gap: 10px; }
.availability-row {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 16px; display: flex; flex-wrap: wrap;
    align-items: center; gap: 12px; cursor: pointer; transition: all .15s;
}
.availability-row:hover, .availability-row.selected { border-color: var(--green); background: var(--green-light); }
.av-dates { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.av-arrow { color: var(--text-muted); }
.av-info { display: flex; gap: 16px; align-items: center; margin-left: auto; }
.av-spots { font-size: 13px; color: var(--text-muted); }
.av-price { font-size: 18px; font-weight: 700; }
.av-price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.av-selected-badge { font-size: 12px; color: var(--green-dark); font-weight: 700; }

/* Booking Card */
.booking-sidebar { display: flex; flex-direction: column; gap: 16px; }
.booking-card {
    background: white; border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) { .booking-card { position: sticky; top: 80px; } }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.from-label { font-size: 13px; color: var(--text-muted); }
.price-big { font-size: 36px; font-weight: 800; }
.per-person { font-size: 13px; color: var(--text-muted); }
.booking-form-mini { margin-bottom: 16px; }
.booking-form-mini label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; display: block; margin-bottom: 8px; }
.traveler-counter {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; margin-bottom: 8px;
}
.traveler-counter button {
    width: 40px; height: 40px; background: var(--gray-100);
    border: none; font-size: 20px; color: var(--text); transition: background .15s;
}
.traveler-counter button:hover:not(:disabled) { background: var(--green-light); color: var(--green-dark); }
.traveler-counter button:disabled { color: var(--gray-300); cursor: not-allowed; }
.traveler-counter span { flex: 1; text-align: center; font-size: 14px; font-weight: 500; }
.price-estimate {
    display: flex; justify-content: space-between;
    background: var(--green-light); padding: 12px 16px;
    border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 15px;
}
.price-estimate strong { color: var(--green-dark); font-size: 18px; }
.booking-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.need-help-card {
    background: white; border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); text-align: center;
}
.need-help-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }

/* ── Highlights ───────────────────────────────────────────────────────────── */
.highlight-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.highlight-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.highlight-list .check { color: var(--green); font-size: 18px; font-weight: 700; }

/* ── Inquiry Page ─────────────────────────────────────────────────────────── */
.inquiry-page { padding-bottom: 40px; }
.inquiry-header {
    background: var(--green); color: white;
    padding: 40px 16px; text-align: center;
}
.inquiry-header h1 { font-size: 28px; margin-bottom: 8px; }
.inquiry-header p { opacity: .85; font-size: 16px; }
.inquiry-layout {
    display: grid; grid-template-columns: 1fr;
    gap: 24px; padding-top: 32px;
}
@media (min-width: 900px) {
    .inquiry-layout { grid-template-columns: 1fr 320px; align-items: start; }
}
.inquiry-form-panel {
    background: white; border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow);
}
.form-section { margin-bottom: 32px; }
.form-section h3 { font-size: 18px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-field input, .form-field select, .form-field textarea {
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 12px 14px; font-size: 15px; color: var(--text);
    transition: border-color .15s; font-family: var(--font); width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--green);
}
.form-field .validation-message { font-size: 12px; color: var(--red); }
.counter-input {
    display: flex; align-items: center; gap: 0;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    overflow: hidden; width: 140px;
}
.counter-input button {
    width: 44px; height: 44px; background: var(--gray-100);
    border: none; font-size: 22px; transition: background .15s;
}
.counter-input button:hover:not(:disabled) { background: var(--green-light); color: var(--green-dark); }
.counter-input span { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.selected-tour-banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--green-light); border-radius: var(--radius-sm);
    padding: 12px; margin-bottom: 16px;
}
.selected-tour-banner img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; }
.selected-tour-banner div { flex: 1; }
.selected-tour-banner strong { display: block; font-size: 14px; }
.selected-tour-banner span { font-size: 12px; color: var(--text-muted); }
.remove-tour { background: none; border: none; color: var(--text-muted); font-size: 18px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Inquiry Sidebar */
.inquiry-sidebar { display: flex; flex-direction: column; gap: 16px; }
.summary-card, .contact-card {
    background: white; border-radius: var(--radius);
    padding: 20px; box-shadow: var(--shadow);
}
.summary-card h4, .contact-card h4 { font-size: 16px; margin-bottom: 12px; }
.summary-card p, .contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.estimate-note { font-size: 15px !important; color: var(--text) !important; margin-top: 8px !important; }
.estimate-disclaimer { font-size: 12px !important; font-style: italic; }
.contact-link {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--text);
    border-top: 1px solid var(--gray-100); text-decoration: none;
}
.contact-link.whatsapp { color: #25D366; }
.trust-badges { display: flex; flex-direction: column; gap: 8px; }
.trust-badge { font-size: 13px; color: var(--text-muted); }

/* Success card */
.success-card {
    text-align: center; padding: 48px 24px;
    background: white; border-radius: var(--radius); margin-top: 32px;
    box-shadow: var(--shadow);
}
.success-icon {
    width: 64px; height: 64px; background: var(--green-light);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--green); margin: 0 auto 20px; font-weight: 700;
}
.success-card h2 { font-size: 26px; margin-bottom: 12px; }
.success-card p { color: var(--text-muted); margin-bottom: 8px; font-size: 15px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ── Account / Bookings ───────────────────────────────────────────────────── */
.account-page { padding: 32px 16px; }
.account-header { margin-bottom: 28px; }
.account-header h1 { font-size: 26px; }
.account-header p { color: var(--text-muted); margin-top: 4px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.status-tab {
    padding: 8px 16px; border-radius: 24px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--border); background: white; color: var(--text-muted);
    transition: all .15s;
}
.status-tab.active { background: var(--green); color: white; border-color: var(--green); }
.bookings-list { display: flex; flex-direction: column; gap: 14px; }
.booking-card {
    background: white; border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; align-items: stretch; cursor: pointer;
    transition: box-shadow .15s; overflow: hidden;
}
.booking-card:hover { box-shadow: var(--shadow-lg); }
.booking-card.skeleton { min-height: 120px; background: var(--gray-100); animation: shimmer 1.5s infinite; }
.booking-card-image { width: 100px; flex-shrink: 0; }
.booking-card-image img { width: 100%; height: 100%; object-fit: cover; }
.booking-card-body { flex: 1; padding: 16px; }
.booking-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.booking-card-top h3 { font-size: 15px; }
.status-badge {
    padding: 3px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap;
}
.status-badge.status-confirmed { background: var(--green-light); color: var(--green-dark); }
.status-badge.status-inquirysubmitted { background: var(--blue-light); color: var(--blue); }
.status-badge.status-quotesent { background: var(--amber-light); color: var(--amber); }
.status-badge.status-active { background: var(--green); color: white; }
.status-badge.status-completed { background: var(--gray-100); color: var(--text-muted); }
.status-badge.status-cancelled { background: var(--red-light); color: var(--red); }
.booking-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.booking-card-footer { display: flex; flex-direction: column; gap: 6px; }
.booking-ref { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.payment-progress { display: flex; flex-direction: column; gap: 4px; }
.payment-bar { height: 4px; background: var(--gray-100); border-radius: 4px; overflow: hidden; }
.payment-fill { height: 100%; background: var(--green); border-radius: 4px; transition: width .3s; }
.payment-label { font-size: 12px; color: var(--text-muted); }
.balance-due { color: var(--amber); }
.booking-card-arrow { padding: 16px 12px; display: flex; align-items: center; color: var(--gray-300); font-size: 22px; }

/* ── Auth Pages ───────────────────────────────────────────────────────────── */
.auth-page {
    min-height: calc(100vh - var(--nav-h) - var(--bottom-nav-h));
    display: flex; align-items: center; justify-content: center;
    padding: 32px 16px; background: var(--gray-100);
}
.auth-card {
    background: white; border-radius: var(--radius); padding: 36px 32px;
    box-shadow: var(--shadow-lg); width: 100%; max-width: 420px;
}
.auth-logo { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 20px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-footer p { margin-bottom: 8px; }
.muted-link { font-size: 13px; color: var(--text-muted); }

/* ── Filter Bar ───────────────────────────────────────────────────────────── */
.page-header { background: white; padding: 28px 16px 0; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 26px; max-width: 1100px; margin: 0 auto; }
.page-header p { color: var(--text-muted); max-width: 1100px; margin: 6px auto 20px; font-size: 15px; }
.filter-bar {
    background: white; padding: 16px;
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.filter-input {
    flex: 1; min-width: 140px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 14px; font-size: 14px; color: var(--text);
}
.filter-input:focus { outline: none; border-color: var(--green); }
.results-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 24px; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }
.empty-state a, .empty-state button { margin: 6px; }

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.alert-error {
    background: var(--red-light); color: var(--red);
    border: 1px solid #F09595; border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}
.alert-success {
    background: var(--green-light); color: var(--green-dark);
    border: 1px solid #9FE1CB; border-radius: var(--radius-sm);
    padding: 12px 16px; font-size: 14px; margin-bottom: 16px;
}

/* ── Loading / Skeleton ───────────────────────────────────────────────────── */
.spinner {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: white;
    animation: spin .6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: .5; }
    100% { opacity: 1; }
}
.skeleton { animation: shimmer 1.5s infinite; background: var(--gray-100) !important; }
.hero-skeleton { height: 400px; width: 100%; }
.text-skeleton { height: 200px; margin-top: 24px; border-radius: var(--radius); }

/* ── Not Found ────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 60px 24px; }
.not-found h2 { font-size: 24px; margin-bottom: 12px; }
.not-found p { color: var(--text-muted); margin-bottom: 24px; }

/* ── Misc ─────────────────────────────────────────────────────────────────── */
.muted { color: var(--text-muted); font-size: 14px; }
.tour-description { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
/* ── Quote View Page ─────────────────────────────────────────────────────── */
.qv-page {
    background: white;
    min-height: 100vh;
    padding-bottom: 40px;
}

/* Top Banner */
.qv-banner {
    background: var(--gray-900);
    color: white;
    padding: 40px 0;
    border-bottom: 4px solid var(--green);
}

.qv-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.qv-company {
    color: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
}

.qv-quote-meta {
    display: flex;
    gap: 24px;
}

.qv-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 4px;
}

.qv-meta-val {
    font-weight: 600;
    font-size: 15px;
}

    .qv-meta-val.expired {
        color: #ff6b6b;
    }

/* Layout */
.qv-body {
    margin-top: 32px;
}

.qv-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .qv-layout {
        grid-template-columns: 1fr 350px;
        align-items: start;
    }
}

/* Category & Items */
.qv-category {
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qv-category-header {
    background: var(--gray-50);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}

.qv-item {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

    .qv-item:last-child {
        border-bottom: none;
    }

    .qv-item.optional {
        background: #fafaf9;
        font-style: italic;
    }

.qv-item-desc {
    font-weight: 500;
    display: block;
}

.qv-optional-tag {
    font-size: 10px;
    background: var(--gray-300);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-style: normal;
}

.qv-item-right {
    text-align: right;
}

.qv-item-unit {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.qv-item-total {
    font-weight: 700;
    color: var(--text);
}

/* Sidebar Cards */
.qv-sidebar > div {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.qv-totals-card {
    background: var(--green-light) !important;
    border-color: var(--green) !important;
}

.qv-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.qv-grand-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid rgba(0,0,0,0.05);
}

.qv-grand-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--green-dark);
}

.qv-deposit-note {
    font-size: 13px;
    margin-top: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* Status Badges */
.qv-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.qv-s-sent {
    background: var(--blue-light);
    color: var(--blue);
}

.qv-s-accepted {
    background: var(--green);
    color: white;
}

/* Form inputs for acceptance */
.qv-email-input {
    width: 100%;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 8px 0 16px;
}

.qv-accept-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}

/* Success State */
.qv-success {
    padding: 80px 16px;
    text-align: center;
    background: var(--green-light);
    min-height: 80vh;
}

.qv-success-icon {
    width: 80px;
    height: 80px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}
.qv-terms-body {
    white-space: pre-wrap;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-muted);
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius-sm);
}

/* ── Track Inquiry Page ─────────────────────────────────────────────────────── */
.tq-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding: 24px 16px;
}

.tq-container {
    max-width: 600px;
    margin: 0 auto;
}

.tq-form {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.tq-form h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tq-form p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.tq-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tq-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
}

.tq-form-group input:focus {
    outline: none;
    border-color: var(--green);
}

.tq-btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.tq-btn-primary:hover {
    background: var(--green-dark);
}

.tq-btn-primary:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

.tq-error {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid #F09595;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 20px;
}

.tq-header {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.tq-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.tq-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.tq-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tq-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.tq-status-converted {
    background: var(--green-light);
    color: var(--green-dark);
}

.tq-status-pending {
    background: var(--amber-light);
    color: var(--amber);
}

.tq-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tq-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.tq-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.tq-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tq-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.tq-detail-row:last-child {
    border-bottom: none;
}

.tq-detail-row span {
    font-size: 14px;
    color: var(--text-muted);
}

.tq-detail-row strong {
    font-size: 15px;
    color: var(--text);
}

.tq-amount {
    color: var(--green-dark);
    font-weight: 700;
}

.tq-expired {
    color: var(--red);
    font-weight: 600;
}

.tq-card-action {
    background: var(--green-light);
    border-color: var(--green);
}

.tq-card-success {
    background: var(--green-light);
    border-color: var(--green);
}

.tq-card-action a,
.tq-card-success a {
    display: inline-block;
    margin-top: 12px;
}

.tq-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
}

.tq-loading p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ── Booking Detail Page ─────────────────────────────────────────────────────── */
.bk-hero {
    background: linear-gradient(135deg, #0F6E56 0%, #1D9E75 50%, #085041 100%);
    color: white;
    padding: 48px 16px;
}

.bk-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.bk-back {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.bk-back:hover {
    color: white;
}

.bk-hero h1 {
    font-size: clamp(22px, 5vw, 36px);
    margin: 8px 0;
}

.bk-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    opacity: .9;
}

.bk-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.bk-ref {
    font-size: 13px;
    opacity: .8;
    font-family: monospace;
}

.bk-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .bk-layout {
        grid-template-columns: 1fr 320px;
    }
}

.bk-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bk-card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.bk-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.bk-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

/* Payment Card */
.bk-payment-bar-wrap {
    position: relative;
    margin-bottom: 16px;
}

.bk-payment-bar {
    height: 8px;
    background: var(--gray-100);
    border-radius: 4px;
    overflow: hidden;
}

.bk-payment-fill {
    height: 100%;
    background: var(--green);
    border-radius: 4px;
    transition: width .3s;
}

.bk-payment-pct {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
}

.bk-payment-amounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.bk-amount-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.bk-amount-label {
    color: var(--text-muted);
}

.bk-amount-val {
    font-weight: 600;
}

.bk-amount-val.green {
    color: var(--green-dark);
}

.bk-amount-val.amber {
    color: var(--amber);
}

.bk-deposit-notice {
    background: var(--amber-light);
    border: 1px solid var(--amber);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 14px;
}

.bk-pay-link {
    color: var(--text-muted);
    font-size: 13px;
}

.bk-pay-link:hover {
    color: var(--text);
}

.bk-payments-list {
    margin-top: 20px;
}

.bk-payments-list h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.bk-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.bk-payment-row:last-child {
    border-bottom: none;
}

.bk-payment-method {
    font-weight: 600;
    font-size: 14px;
}

.bk-payment-ref {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.bk-deposit-tag {
    font-size: 11px;
    background: var(--amber-light);
    color: var(--amber);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.bk-payment-amount {
    text-align: right;
}

.bk-payment-amount span {
    display: block;
}

.bk-confirmed {
    color: var(--green-dark);
    font-size: 12px;
}

.bk-pending {
    color: var(--amber);
    font-size: 12px;
}

/* Timeline */
.bk-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-stage {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-left: 2px solid var(--gray-100);
    padding-left: 24px;
    position: relative;
}

.bk-stage.reached {
    border-left-color: var(--green);
}

.bk-stage.current {
    border-left-color: var(--green);
}

.bk-stage-dot {
    position: absolute;
    left: -9px;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 2px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.bk-stage.reached .bk-stage-dot {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.bk-stage.current .bk-stage-dot {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.bk-stage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bk-stage-name {
    font-weight: 600;
    font-size: 15px;
}

.bk-stage-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* Documents */
.bk-docs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bk-doc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all .15s;
}

.bk-doc-row:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.bk-doc-icon {
    font-size: 20px;
}

.bk-doc-name {
    display: block;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
}

.bk-doc-type {
    font-size: 12px;
    color: var(--text-muted);
}

.bk-doc-download {
    margin-left: auto;
    font-size: 13px;
    color: var(--green-dark);
    font-weight: 500;
}

/* Sidebar Cards */
.bk-summary-card {
    background: var(--gray-50);
}

.bk-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bk-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.bk-summary-row span {
    color: var(--text-muted);
}

.bk-summary-row strong {
    font-weight: 600;
}

.bk-contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}