/* taxi-bxl.be — noir, jaune, or */
:root {
    --bg: #0B0B0C;
    --surface: #111113;
    --surface-2: #141417;
    --line: #2E2E33;
    --line-gold: #3A3220;
    --text: #F4F1EA;
    --text-2: #C9C4B8;
    --muted: #A9A49A;
    --yellow: #F5C400;
    --gold: #D4AF5A;
    --gold-bg: #1C1A12;
    --radius: 14px;
    --font: "Manrope", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

[dir="rtl"] { --font: "Noto Kufi Arabic", "Manrope", system-ui, sans-serif; --font-display: "Noto Kufi Arabic", serif; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: var(--gold); }
a:hover { color: var(--yellow); }
h1:focus { outline: none; }

.container { max-width: 1280px; margin: 0 auto; padding-inline: 32px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--yellow); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.brand-name { display: block; font: 700 20px var(--font-display); }
.brand-tag { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.site-nav { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; font-size: 14px; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover { color: var(--yellow); }
.lang-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { min-width: 44px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--text-2); text-decoration: none; }
.lang-switch a.active { background: var(--yellow); color: var(--bg); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 40px 72px; }
.hero-text { flex: 1 1 420px; min-width: 0; padding-top: 32px; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--gold-bg); color: var(--yellow); font-weight: 700; font-size: 13px; }
.hero h1 { margin: 22px 0 18px; font: 700 clamp(36px, 5vw, 60px)/1.08 var(--font-display); }
.lead { margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 520px; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; max-width: 560px; }
.trust li { padding: 16px; border: 1px solid #2A2720; border-radius: var(--radius); background: #121110; }
.trust strong { display: block; color: var(--gold); font-size: 15px; }
.trust span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Booking card */
.booking-card { flex: 1 1 420px; max-width: 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line-gold); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
/* Own pattern (black & gold diagonal) — deliberately NOT the regulated black/yellow chequer of Brussels rank taxis */
.gold-band { height: 14px; background: repeating-linear-gradient(135deg, var(--gold) 0 10px, var(--bg) 10px 20px); }
.booking-body { padding: 28px; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid #1E1D1A; padding-block: 28px; color: var(--muted); font-size: 13px; }

/* Blazor defaults */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #ff6b6b; }
#blazor-error-ui { background: #3a1d1d; color: #fff; bottom: 0; display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; inset-inline-end: .75rem; top: .5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .site-nav { order: 3; width: 100%; gap: 16px; }
}

/* ---------- Admin ---------- */
.lb { display: block; font: 600 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 500 14px var(--font); }
.f:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.f.sm { width: 90px; display: inline-block; height: 38px; }
select.f { appearance: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.gold { color: var(--yellow); }
.btn-primary, .btn-ghost, .btn-outline, .btn-danger, .pill { font: 700 14px var(--font); cursor: pointer; border-radius: 10px; height: 44px; padding: 0 18px; }
.btn-primary { border: 0; background: var(--yellow); color: var(--bg); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary.wide { width: 100%; margin-top: 20px; height: 50px; }
.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--text-2); }
.btn-outline { border: 1px solid var(--yellow); background: transparent; color: var(--yellow); white-space: nowrap; }
.btn-danger { border: 1px solid #7a2e2e; background: transparent; color: #ff8a8a; margin-inline-start: auto; }
.pill { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 12px; background: transparent; color: var(--muted); border: 1px solid var(--line); }
.pill.on { background: var(--gold-bg); color: var(--yellow); border-color: var(--yellow); }
.alert { padding: 12px 16px; border-radius: 10px; background: #2a1414; border: 1px solid #5a2a2a; color: #ffb3b3; }
.alert.ok { background: #13210f; border-color: #2f5a24; color: #b8f0a8; }

.admin { display: flex; flex-wrap: wrap; min-height: 100vh; font-family: "Manrope", system-ui, sans-serif; }
.admin-side { flex: 1 1 230px; max-width: 250px; padding: 26px 16px; border-inline-end: 1px solid #1E1D1A; display: flex; flex-direction: column; gap: 22px; }
.admin-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); padding: 0 8px; }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 8px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 11px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.admin-nav a:hover { color: var(--text); background: var(--surface); }
.admin-nav a.active { background: var(--gold-bg); color: var(--yellow); }
.admin-user { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.admin-main { flex: 999 1 560px; min-width: 0; padding: 32px 40px 60px; display: flex; flex-direction: column; gap: 22px; }
.admin-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.admin-head h1 { margin: 0; font: 700 34px "Playfair Display", serif; }
.admin-head p { margin: 6px 0 0; max-width: 720px; }
.table-wrap { border: 1px solid #2A2720; border-radius: 16px; overflow-x: auto; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; min-width: 760px; }
.tbl th { padding: 12px 16px; text-align: start; font: 600 12px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #2A2720; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid #1E1D1A; font-size: 14px; color: var(--text-2); }
.tbl td.actions { text-align: end; }
.panel { border: 1px solid var(--line-gold); border-radius: 16px; background: #121110; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { margin: 0; font: 700 22px "Playfair Display", serif; color: var(--gold); }
.panel h3 { margin: 8px 0 0; font: 700 17px "Playfair Display", serif; color: var(--gold); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
.form-grid.five { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.span-2 { grid-column: span 2; }
.check label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.check input, .preview input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--yellow); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.zone-list { flex: 1 1 260px; max-width: 320px; display: flex; flex-direction: column; gap: 8px; }
.zone-item { width: 100%; padding: 14px 16px; border-radius: 14px; cursor: pointer; text-align: start; background: var(--surface); border: 1px solid #2A2720; color: var(--text); font-family: var(--font); }
.zone-item.sel { background: var(--gold-bg); border: 2px solid var(--yellow); }
.zone-item.off { opacity: .55; }
.zone-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; margin-bottom: 4px; }
.grow { flex: 999 1 480px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--gold-bg); border: 1px solid var(--line-gold); font-weight: 600; font-size: 14px; }
.chip button { width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.chip button:hover { color: var(--text); }
.add-row { display: flex; gap: 10px; }
.preview { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid #2A2720; color: var(--text-2); font-size: 14px; }
.preview label { display: flex; gap: 8px; align-items: center; }
.preview .price { margin-inline-start: auto; font: 700 26px "Playfair Display", serif; color: var(--yellow); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { padding: 20px; border: 1px solid #2A2720; border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.stat strong { display: block; font: 700 32px "Playfair Display", serif; color: var(--yellow); }
.stat:hover { border-color: var(--yellow); }

.admin-login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: "Manrope", system-ui, sans-serif; }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line-gold); border-radius: 20px; overflow: hidden; }
.login-body { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.login-body h1 { margin: 0; font: 700 30px "Playfair Display", serif; }
.login-body .f { margin-bottom: 10px; }
.login-body .alert { margin: 8px 0; }

@media (max-width: 720px) {
    .admin-side { max-width: none; flex-basis: 100%; border-inline-end: 0; border-bottom: 1px solid #1E1D1A; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-main { padding: 22px 18px 40px; }
    .span-2 { grid-column: auto; }
    .btn-danger { margin-inline-start: 0; }
}

/* ---------- Booking form ---------- */
.booking-body { display: flex; flex-direction: column; gap: 16px; }
.book-title { margin: 0; font: 700 24px var(--font-display); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.booking-body .f { height: 48px; font-size: 15px; }
.booking-body textarea.f.area { height: auto; padding: 10px 12px; resize: vertical; }
.addr { position: relative; }
.addr-box { position: relative; }
.addr-spin { position: absolute; inset-inline-end: 14px; top: 16px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.addr-list { position: absolute; z-index: 20; inset-inline: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #17171b; border: 1px solid var(--line-gold); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.5); max-height: 320px; overflow: auto; }
.addr-list button { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: start; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; font-family: var(--font); }
.addr-list button span { font-size: 13px; color: var(--muted); }
.addr-list button:hover, .addr-list button.active { background: var(--gold-bg); }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.check-line input { width: 20px; height: 20px; accent-color: var(--yellow); }
.route-facts { display: flex; gap: 20px; font-size: 14px; color: var(--text-2); }
.route-facts strong { color: var(--text); }
.vehicles { display: flex; flex-direction: column; gap: 8px; }
.vehicle { width: 100%; min-height: 58px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-family: var(--font); text-align: start; }
.vehicle.sel { background: var(--gold-bg); border: 2px solid var(--yellow); }
.v-text { display: flex; flex-direction: column; gap: 2px; }
.v-text span { font-size: 13px; color: var(--muted); }
.v-price { font-weight: 800; color: var(--yellow); white-space: nowrap; }
.summary { padding: 16px; border-radius: 14px; background: #17150F; border: 1px solid var(--line-gold); display: flex; flex-direction: column; gap: 8px; }
.summary .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-gold); padding-top: 10px; margin-top: 4px; }
.summary .total strong { font: 700 30px var(--font-display); color: var(--yellow); }
.trip-recap { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid #2A2720; }
.trip-recap p { margin: 0 0 4px; }
.link { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font: 600 14px var(--font); text-decoration: underline; }
.pay { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.pay legend { margin-bottom: 6px; }
.pay-opt { display: flex; gap: 8px; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; font-size: 14px; }
.pay-opt.sel { border: 2px solid var(--yellow); background: var(--gold-bg); }
.pay-opt.off { opacity: .55; }
.pay-opt em { font-weight: 500; color: var(--muted); }
.pay-opt input { accent-color: var(--yellow); }
.done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done h2 { margin: 0; font: 700 26px var(--font-display); color: var(--yellow); }
.done .ref { font-size: 18px; }
@media (max-width: 480px) { .grid-2, .pay { grid-template-columns: 1fr; } }

/* ---------- Admin bookings ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-primary.sm, .btn-ghost.sm, .btn-danger.sm { height: 34px; padding: 0 12px; font-size: 13px; margin: 2px 0; }
.nowrap { white-space: nowrap; }
.tbl td.trip { display: flex; flex-direction: column; gap: 3px; min-width: 260px; }
.note { font-size: 13px; color: var(--gold); }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); }
.status.pendingconfirmation { color: var(--yellow); border-color: var(--yellow); background: var(--gold-bg); }
.status.confirmed { color: #9be08a; border-color: #2f5a24; }
.status.cancelled { color: #ff8a8a; border-color: #5a2a2a; }
.status.completed { color: var(--muted); }

/* ---------- Payment pages ---------- */
.pay-page { padding-block: 48px 80px; display: flex; justify-content: center; }
.pay-page .booking-card { flex: 0 1 560px; }
.link-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; height: 48px; }
.link-btn.btn-primary { color: var(--bg); }
.pay-note { margin: 0; font-size: 13px; color: var(--muted); }
.status.awaitingpayment { color: #9ec5ff; border-color: #2a4466; }

/* ---------- Admin integrations ---------- */
.mode-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pay-opt.sel.live { border-color: #ff8a3d; background: #2a1a0c; }
.key-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.key-col { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #2A2720; border-radius: 12px; }
.key-col.active { border-color: var(--yellow); }
.key-col h3 { margin: 0; }
.info-box { padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid #2A2720; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.info-box code, .panel code { background: #1b1b20; padding: 2px 6px; border-radius: 6px; color: var(--yellow); word-break: break-all; }
.warn { color: #ffb36b; }
.sticky-save { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.attribution { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }
.attribution a { color: var(--muted); }
