@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Fiyaker Booking Portal — Airline-Class Redesign ─── */
:root {
    --bk-dark: #0a1628;
    --bk-dark-alt: #111e34;
    --bk-cream: #f8f2ea;
    --bk-warm: #f0e6d8;
    --bk-paper: #ffffff;
    --bk-text: #1a2a3e;
    --bk-muted: #6b7e97;
    --bk-border: #e4ddd3;
    --bk-gold: #b8860b;
    --bk-gold-light: rgba(184,134,11,0.10);
    --bk-accent: #a86439;
    --bk-success: #1d7a4e;
    --bk-error: #b33a2a;
    --bk-warning: #b99256;
    --bk-sidebar-w: 240px;
    --bk-topbar-h: 60px;
}

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

body {
    font-family: 'Inter', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bk-cream);
    color: var(--bk-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Topbar ─── */
.bk-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bk-dark);
    height: var(--bk-topbar-h);
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 20px;
}
.bk-topbar-logo {
    color: var(--bk-gold);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.bk-topbar-logo img { height: 32px; vertical-align: middle; margin-right: 10px; }
.bk-topbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}
.bk-topbar-ref {
    background: rgba(184,134,11,0.18);
    color: var(--bk-gold);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}
.bk-topbar-name { color: rgba(255,255,255,0.9); font-weight: 500; }
.bk-topbar-exit {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.82rem;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
    transition: color 0.2s;
}
.bk-topbar-exit:hover { color: rgba(255,255,255,0.85); }

.bk-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.bk-topbar-link {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}
.bk-topbar-link:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.08);
}
.bk-topbar-logout {
    border-left: 1px solid rgba(255,255,255,0.12);
    margin-left: 2px;
    padding-left: 14px;
    border-radius: 0 4px 4px 0;
}

/* ─── Layout ─── */
.bk-layout {
    flex: 1;
    display: flex;
    min-height: calc(100vh - var(--bk-topbar-h) - 52px);
}

/* ─── Sidebar ─── */
.bk-sidebar {
    width: var(--bk-sidebar-w);
    background: var(--bk-paper);
    border-right: 1px solid var(--bk-border);
    padding: 24px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bk-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: var(--bk-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
    cursor: pointer;
    border-left: 3px solid transparent;
    position: relative;
}
.bk-nav-item i { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.7; }
.bk-nav-item:hover { background: rgba(184,134,11,0.05); color: var(--bk-text); }
.bk-nav-item.active {
    color: var(--bk-accent);
    background: rgba(168,100,57,0.06);
    border-left-color: var(--bk-accent);
    font-weight: 600;
}
.bk-nav-item.active i { opacity: 1; }
.bk-nav-badge {
    margin-left: auto;
    background: var(--bk-error);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* ─── Content ─── */
.bk-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 900px;
    overflow-y: auto;
}
.bk-panel { display: none; }
.bk-panel.active { display: block; }

.bk-panel-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bk-dark);
    margin-bottom: 8px;
}
.bk-panel-subtitle {
    color: var(--bk-muted);
    font-size: 0.88rem;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* ─── Notice banner ─── */
.bk-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.bk-notice i { flex-shrink: 0; margin-top: 2px; }
.bk-notice-warn { background: rgba(185,146,86,0.12); border: 1px solid rgba(185,146,86,0.25); color: #7b5a2b; }
.bk-notice-success { background: rgba(29,122,78,0.08); border: 1px solid rgba(29,122,78,0.2); color: var(--bk-success); }
.bk-notice-error { background: rgba(179,58,42,0.08); border: 1px solid rgba(179,58,42,0.2); color: var(--bk-error); }

/* ─── Data rows ─── */
.bk-data-group {
    margin-bottom: 28px;
}
.bk-data-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bk-muted);
    margin-bottom: 12px;
}
.bk-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(228,221,211,0.65);
    gap: 16px;
}
.bk-data-row:last-child { border-bottom: none; }
.bk-data-label {
    font-size: 0.85rem;
    color: var(--bk-muted);
    flex-shrink: 0;
}
.bk-data-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--bk-text);
    text-align: right;
}

/* ─── Status badges ─── */
.bk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bk-badge-confirmed { background: rgba(29,122,78,0.1); color: var(--bk-success); }
.bk-badge-pending { background: rgba(185,146,86,0.14); color: #7b5a2b; }
.bk-badge-cancelled { background: rgba(179,58,42,0.1); color: var(--bk-error); }
.bk-badge-completed { background: rgba(107,126,151,0.14); color: var(--bk-muted); }
.bk-badge-gold { background: var(--bk-gold-light); color: var(--bk-gold); }

/* ─── Trip header ─── */
.bk-trip-header {
    background: linear-gradient(135deg, var(--bk-dark), var(--bk-dark-alt));
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 28px;
    color: #fff;
}
.bk-trip-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}
.bk-trip-dates {
    color: var(--bk-gold);
    font-weight: 600;
    font-size: 0.88rem;
}
.bk-trip-dest {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ─── Payment summary ─── */
.bk-pay-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.bk-pay-box {
    background: var(--bk-cream);
    border: 1px solid var(--bk-border);
    border-radius: 8px;
    padding: 18px 20px;
    text-align: center;
}
.bk-pay-box-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk-muted);
    margin-bottom: 6px;
}
.bk-pay-box-value {
    font-size: 1.3rem;
    font-weight: 700;
}

/* ─── Table ─── */
.bk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bk-table { width: 100%; border-collapse: collapse; }
.bk-table th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bk-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--bk-border);
    font-weight: 600;
}
.bk-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(228,221,211,0.6);
    font-size: 0.88rem;
}
.bk-table tbody tr:hover { background: rgba(248,242,234,0.5); }

/* ─── Passenger cards ─── */
.bk-pax-card {
    background: var(--bk-paper);
    border: 1px solid var(--bk-border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.bk-pax-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(248,242,234,0.5);
    border-bottom: 1px solid var(--bk-border);
    gap: 12px;
    flex-wrap: wrap;
}
.bk-pax-name {
    font-weight: 700;
    font-size: 0.95rem;
}
.bk-pax-body { padding: 20px; }

/* ─── Passport form ─── */
.bk-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bk-form-group { margin-bottom: 0; }
.bk-form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bk-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bk-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--bk-border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--bk-text);
    background: #fff;
    transition: border-color 0.2s;
    font-family: inherit;
}
.bk-input:focus { outline: none; border-color: var(--bk-accent); box-shadow: 0 0 0 3px rgba(168,100,57,0.08); }
.bk-input:disabled, .bk-input[readonly] {
    background: rgba(240,230,216,0.5);
    color: var(--bk-muted);
    cursor: not-allowed;
    border-color: rgba(228,221,211,0.6);
}
.bk-input-missing {
    border-color: var(--bk-warning);
    background: rgba(185,146,86,0.04);
}

/* ─── Locked passport state ─── */
.bk-pax-locked {
    position: relative;
}
.bk-pax-locked .bk-pax-body { opacity: 0.65; pointer-events: none; }
.bk-lock-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(248,242,234,0.9);
    border-bottom: 1px solid var(--bk-border);
    font-size: 0.82rem;
    color: var(--bk-muted);
}
.bk-lock-banner i { flex-shrink: 0; color: var(--bk-success); }

/* ─── Buttons ─── */
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1.2;
}
.bk-btn i { flex-shrink: 0; }
.bk-btn-primary { background: var(--bk-accent); color: #fff; }
.bk-btn-primary:hover { background: #8f5430; }
.bk-btn-outline {
    background: transparent;
    border: 1px solid var(--bk-border);
    color: var(--bk-text);
}
.bk-btn-outline:hover { background: var(--bk-cream); border-color: var(--bk-muted); }
.bk-btn-lg { padding: 13px 36px; font-size: 0.95rem; }

/* ─── Alerts ─── */
.bk-alert {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    line-height: 1.5;
}
.bk-alert-success { background: rgba(29,122,78,0.08); color: var(--bk-success); border: 1px solid rgba(29,122,78,0.18); }
.bk-alert-error { background: rgba(179,58,42,0.08); color: var(--bk-error); border: 1px solid rgba(179,58,42,0.18); }
.bk-alert-warning { background: rgba(185,146,86,0.1); color: #7b5a2b; border: 1px solid rgba(185,146,86,0.2); }

/* ─── Itinerary ─── */
.bk-itin-day {
    margin-bottom: 24px;
}
.bk-itin-day h4 {
    color: var(--bk-dark);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bk-gold-light);
}
.bk-itin-stop {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0 10px 16px;
    border-left: 2px solid var(--bk-border);
    margin-left: 6px;
    margin-bottom: 2px;
}
.bk-itin-time {
    color: var(--bk-gold);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 50px;
}
.bk-itin-location { font-weight: 600; font-size: 0.9rem; }
.bk-itin-desc { color: var(--bk-muted); font-size: 0.82rem; margin-left: 4px; }
.bk-itinerary { line-height: 1.8; color: var(--bk-text); }

/* ─── Login page ─── */
.bk-login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.bk-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bk-paper);
    border: 1px solid var(--bk-border);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
}
.bk-login-card h1 {
    color: var(--bk-dark);
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 700;
}
.bk-login-card p {
    color: var(--bk-muted);
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 0.9rem;
}
.bk-login-card .bk-form-group {
    text-align: left;
    margin-bottom: 16px;
}
.bk-login-card .bk-btn-primary { width: 100%; padding: 13px; margin-top: 8px; }

.bk-login-header {
    background: var(--bk-dark);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.bk-login-header .bk-topbar-logo { font-size: 1.1rem; }
.bk-login-header nav a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 20px;
    transition: color 0.2s;
}
.bk-login-header nav a:hover { color: rgba(255,255,255,0.85); }

/* ─── Empty state ─── */
.bk-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--bk-muted);
    font-size: 0.9rem;
}

/* ─── Section divider ─── */
.bk-divider {
    height: 1px;
    background: var(--bk-border);
    margin: 24px 0;
}

/* ─── Print button group ─── */
.bk-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 980;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.28);
    font-size: 0.92rem;
    font-weight: 700;
}
.whatsapp-float:hover { background: #20bd5c; color: #fff; }
.whatsapp-float__icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.whatsapp-float__icon svg { width: 20px; height: 20px; }
.whatsapp-float__label { line-height: 1; white-space: nowrap; }

/* ─── Footer ─── */
.bk-footer {
    background: var(--bk-dark);
    text-align: center;
    padding: 16px;
}
.bk-footer p { color: rgba(255,255,255,0.35); font-size: 0.78rem; margin: 0; }

/* ─── Responsive: Tablet ─── */
@media (max-width: 900px) {
    .bk-sidebar { width: 200px; }
    .bk-content { padding: 28px 24px; }
    .bk-pay-summary { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 768px) {
    .bk-topbar { padding: 0 16px; height: 52px; }
    .bk-topbar-logo { font-size: 0.95rem; }
    .bk-topbar-name { display: none; }
    .bk-topbar-exit { display: none; }
    .bk-topbar-actions { gap: 2px; }
    .bk-topbar-link { font-size: 0; padding: 6px 8px; }
    .bk-topbar-link i { width: 16px !important; height: 16px !important; }
    .bk-topbar-logout { padding-left: 10px; }

    .bk-layout { flex-direction: column; }
    .bk-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-right: none;
        border-bottom: 1px solid var(--bk-border);
        background: var(--bk-paper);
    }
    .bk-nav-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 14px 16px;
        white-space: nowrap;
        font-size: 0.8rem;
        gap: 6px;
        justify-content: center;
    }
    .bk-nav-item i { width: 16px; height: 16px; }
    .bk-nav-item.active { border-left-color: transparent; border-bottom-color: var(--bk-accent); background: transparent; }
    .bk-nav-badge { display: none; }

    .bk-content { padding: 20px 16px; }
    .bk-form-grid { grid-template-columns: 1fr; }
    .bk-pay-summary { grid-template-columns: 1fr; gap: 8px; }
    .bk-trip-header { padding: 20px; border-radius: 8px; }

    .bk-login-card { padding: 36px 24px; margin: 0; }
    .bk-login-header { padding: 14px 16px; }
    .bk-login-header nav a { margin-left: 14px; font-size: 0.82rem; }

    .whatsapp-float {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .whatsapp-float__label { display: none; }
}

@media (max-width: 480px) {
    .bk-topbar-ref { font-size: 0.7rem; padding: 3px 8px; }
    .bk-data-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .bk-data-value { text-align: left; }
    .bk-pax-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Print ─── */
@media print {
    .bk-topbar, .bk-sidebar, .bk-footer, .whatsapp-float, .bk-btn, .bk-nav-item { display: none !important; }
    .bk-layout { display: block; }
    .bk-content { max-width: 100%; padding: 0; }
    .bk-panel { display: block !important; margin-bottom: 40px; }
    .bk-trip-header { color: #000 !important; background: #f0f0f0 !important; }
    .bk-trip-header h2, .bk-trip-dates { color: #000 !important; }
}
