/* ================================================
   CSS Variables
   ================================================ */
:root {
    --primary-color: #41826e;
    --primary-dark: #356a5a;
    --primary-light: rgba(65, 130, 110, 0.1);
    --white-color: #ffffff;
    --dark-grey-color: #333333;
    --light-grey-color: #f4f7f6;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(65, 130, 110, 0.18);
    --danger: #e74c3c;
    --warning: #f39c12;
    --success: #27ae60;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Prompt', sans-serif;
    line-height: 1.7;
    color: var(--dark-grey-color);
    background-color: var(--light-grey-color);
}

.container     { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center        { text-align: center; }
.text-left     { text-align: left; }
.text-small    { font-size: 0.88rem; color: #666; }

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

h1, h2, h3 { color: var(--primary-color); margin-bottom: 0.8rem; }

/* ================================================
   Header & Navbar
   ================================================ */
.header {
    background: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%; top: 0; z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h2 { color: var(--primary-color); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-icon {
    background: var(--light-grey-color);
    border: none;
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
    position: relative;
}

.btn-icon:hover { background: #dde8e5; }

.btn-icon .noti-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ================================================
   Layout & Sections
   ================================================ */
.vote-section {
    padding-top: 90px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.center-container { max-width: 640px; margin: 0 auto; }

.section-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-back-row {
    margin-bottom: 1rem;
}

/* ================================================
   Cards
   ================================================ */
.main-card {
    background: var(--white-color);
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
    transition: box-shadow 0.3s;
}

.highlight-card {
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(65, 130, 110, 0.2);
}

/* Schedule ticket card */
.ticket-card {
    background: var(--white-color);
    border: 1px solid #e8eceb;
    border-radius: 12px;
    padding: 1.3rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.ticket-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.ticket-card.seats-full { opacity: 0.65; }

.ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0.8rem;
}

.ticket-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark-grey-color);
    flex: 1;
}

.ticket-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Ticket Body Grid */
.ticket-body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.ticket-info-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-info-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ticket-info-value {
    font-size: 0.92rem;
    color: var(--dark-grey-color);
    font-weight: 500;
}

.ticket-info-value.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Group meta lines on the left */
.ticket-footer-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

/* The inline book button on the card */
.ticket-book-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 110px;
    width: auto !important; /* override .btn-primary width:100% */
    transition:
        background-color 0.2s,
        transform        0.15s,
        box-shadow       0.2s;
}

.ticket-book-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(65, 130, 110, 0.28);
}

.ticket-book-btn:not(:disabled):active {
    transform: scale(0.96);
}

/* Disabled / full / limited state */
.ticket-book-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none !important;
    box-shadow: none !important;
}

/* Route Display */
.route-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.route-arrow {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Ticket Footer */
.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 6px;
}

.ticket-meta {
    font-size: 0.83rem;
    color: #777;
}

/* Seat Bar */
.seat-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.seat-bar {
    width: 90px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 999px;
    overflow: hidden;
}

.seat-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.seat-bar-fill.bar-ok   { background: var(--primary-color); }
.seat-bar-fill.bar-low  { background: var(--warning); }
.seat-bar-fill.bar-full { background: var(--danger); }

.seat-bar-label {
    font-size: 0.78rem;
    color: #777;
    white-space: nowrap;
}

/* ================================================
   User Info Card (Dashboard)
   ================================================ */
.user-info-card { margin-bottom: 1.2rem; }

.user-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    font-size: 2.8rem;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.user-details { flex: 1; min-width: 0; }

.user-details h3 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--dark-grey-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Limitation Logs */
.limitation-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.limitation-log-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    gap: 8px;
}

.limitation-log-item:nth-child(odd)  { background: #fff5f5; }
.limitation-log-item:nth-child(even) { background: #fff; }

.limitation-log-reason { color: #c0392b; flex: 1; }
.limitation-log-date   { color: #999; white-space: nowrap; flex-shrink: 0; }

/* ================================================
   Booking Date Header
   ================================================ */
.booking-date-header {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ================================================
   Filter Bar
   ================================================ */
.filter-bar {
    background: var(--white-color);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
}

.filter-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-checkbox-wrap {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #555;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.result-count {
    font-size: 0.85rem;
    color: #666;
}

/* ================================================
   Schedule List
   ================================================ */
.schedule-list-gap { display: flex; flex-direction: column; gap: 1rem; }

/* Skeleton Loading */
.skeleton-card {
    height: 150px;
    border-radius: 12px;
    background: linear-gradient(90deg, #e8eceb 25%, #f4f7f6 50%, #e8eceb 75%);
    background-size: 400% 100%;
    animation: shimmer 1.4s infinite;
    margin-bottom: 1rem;
}

@keyframes shimmer {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* Empty / Error State */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 3rem;
    color: #bbb;
    margin-bottom: 0.8rem;
}

.empty-state h3 { font-size: 1.1rem; color: #888; }
.empty-state p  { font-size: 0.9rem; color: #aaa; }

/* ================================================
   Pagination
   ================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-btn { width: auto; }

.page-numbers {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-num-btn {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    background: var(--white-color);
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--dark-grey-color);
}

.page-num-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-num-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

.page-num-btn.ellipsis {
    border: none;
    background: transparent;
    cursor: default;
    color: #aaa;
    pointer-events: none;
}

/* ================================================
   Forms & Inputs
   ================================================ */
.form-row {
    margin-bottom: 1rem;
    text-align: left;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #555;
    font-size: 0.88rem;
}

.form-row input[type="date"],
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-grey-color);
    background: var(--white-color);
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: auto;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 130, 110, 0.12);
}

.file-input {
    width: 100%;
    padding: 10px 0;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
}

.required::after {
    content: "*";
    color: var(--danger);
    margin-left: 2px;
    font-size: 0.9rem;
}

/* ================================================
   Buttons
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Prompt', sans-serif;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: background-color 0.25s, transform 0.1s;
    white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

.btn-vote,
.btn-primary {
    background: var(--primary-color);
    color: var(--white-color);
    width: 100%;
}

.btn-vote:hover,
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: #6c757d; color: #fff; }
.btn-secondary:hover { background: #5a6268; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #bd7a0e; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }

.btn-success { background: var(--success); color: #fff; width: 100%; }
.btn-success:hover { background: #219a52; }

.btn:disabled {
    background: #ccc !important;
    color: #777 !important;
    cursor: not-allowed;
    transform: none;
}

.btn-link {
    background: transparent;
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
}

.btn-danger-link {
    color: var(--danger) !important;
}

/* ================================================
   Status Pills & Badges
   ================================================ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill.new        { background: #eef3f2; color: #2d6a5a; }
.status-pill.inprogress { background: #ffe9b3; color: #705b12; }
.status-pill.done       { background: #bfe8c8; color: #12573f; }
.status-pill.closed     { background: #ffcccc; color: #cc0000; }

.badge-bus-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--primary-light);
    color: var(--primary-color);
    white-space: nowrap;
}

/* ================================================
   Passcode Section
   ================================================ */

/* Dots row */
.passcode-dots-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.passcode-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    transition: background 0.15s, transform 0.15s;
    display: block;
}

.passcode-dot.filled {
    background: var(--primary-color);
    transform: scale(1.15);
}

.passcode-dot.error-dot {
    border-color: var(--danger);
    background: var(--danger);
}

/* Numpad grid */
.passcode-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

/* Individual numpad button */
.numpad-btn {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
    background: var(--white-color);
    font-family: 'Prompt', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark-grey-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.numpad-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.numpad-btn:active {
    transform: scale(0.91);
    background: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Ghost buttons (clear / backspace) — subtler style */
.numpad-btn-ghost {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-size: 1.2rem;
    color: #888;
}

.numpad-btn-ghost:hover {
    background: #f0f0f0;
    border-color: transparent;
    color: var(--dark-grey-color);
}

.numpad-btn-ghost:active {
    background: #e0e0e0;
    color: var(--dark-grey-color);
}

/* Shake animation for wrong passcode */
@keyframes passcode-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-8px); }
    30%       { transform: translateX(8px); }
    45%       { transform: translateX(-6px); }
    60%       { transform: translateX(6px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.passcode-dots-row.shake {
    animation: passcode-shake 0.5s ease;
}

/* Loading state — dim the numpad while verifying */
.passcode-numpad.loading .numpad-btn {
    pointer-events: none;
    opacity: 0.45;
}

/* ================================================
   Passcode Change Modal — key icon badge on navbar
   ================================================ */

/* Pulse ring when passcode is NOT set yet */
.btn-icon.passcode-unset {
    color: var(--warning);
    animation: key-pulse 2.2s ease-in-out infinite;
}

@keyframes key-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
    50%       { box-shadow: 0 0 0 6px rgba(243, 156, 18, 0.28); }
}

/* Step transition inside modal */
.set-passcode-step-enter {
    animation: step-slide-in 0.22s ease;
}

@keyframes step-slide-in {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ================================================
   Booking History — Expandable Section
   ================================================ */

.booking-history-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.2rem;
    background: var(--white-color);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-grey-color);
    transition: background 0.2s, border-radius 0.3s;
    gap: 0.8rem;
}

.booking-history-toggle:hover {
    background: var(--light-grey-color);
}

.booking-history-toggle[aria-expanded="true"] {
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.booking-history-toggle-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.booking-history-chevron {
    font-size: 0.85rem;
    color: #999;
    transition: transform 0.3s ease;
}

.booking-history-toggle[aria-expanded="true"] .booking-history-chevron {
    transform: rotate(180deg);
}

/* Confirmed badge on toggle */
.booking-history-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    animation: badge-pulse 2s ease-in-out infinite;
}

.booking-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.85rem 1.2rem;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

/* Info text */
.booking-pagination-info {
    font-size: 0.8rem;
    color: #999;
    white-space: nowrap;
    font-weight: 500;
}

/* Controls row */
.booking-pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Individual page button */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white-color);
    color: var(--dark-grey-color);
    font-size: 0.82rem;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition:
        background   0.18s ease,
        border-color 0.18s ease,
        color        0.18s ease,
        transform    0.15s ease,
        box-shadow   0.18s ease;
    user-select: none;
    line-height: 1;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background: var(--light-grey-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.12);
}

.pagination-btn:active:not(.disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* Active / current page */
.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

/* Disabled (prev on page 1 / next on last page) */
.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Ellipsis dots */
.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 32px;
    font-size: 0.85rem;
    color: #bbb;
    user-select: none;
    letter-spacing: 1px;
}

/* Smooth scroll inside content panel */
.booking-history-content {
    overflow-y: auto;
    scroll-behavior: smooth;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
    50%       { box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.25); }
}

/* Collapsible panel */
.booking-history-content {
    background: var(--white-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.3s ease;
}

.booking-history-content.open {
    max-height: 2000px;
}

/* ================================================
   Booking History — Individual Booking Card
   ================================================ */

.booking-card {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    position: relative;
}

.booking-card:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.booking-card:hover {
    background: #fafafa;
}

/* Highlight confirmed payment */
.booking-card.confirmed-payment {
    background: #fffbf0;
    border-left: 4px solid var(--warning);
}

.booking-card.confirmed-payment:hover {
    background: #fff8e6;
}

/* Card top row */
.booking-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.booking-card-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-grey-color);
    flex: 1;
}

/* Card meta row */
.booking-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 0.6rem;
}

.booking-card-meta i {
    color: var(--primary-color);
    width: 14px;
    text-align: center;
}

/* Confirmed payment action row */
.booking-card-action {
    margin-top: 0.7rem;
}

/* Status pill overrides for booking */
.booking-status-confirmed  { background: #e3f2fd; color: #1565c0; }
.booking-status-completed  { background: #bfe8c8; color: #12573f; }
.booking-status-cancelled  { background: #f5f5f5; color: #757575; }
.booking-status-expired    { background: #ffcccc; color: #cc0000; }
.booking-status-confirmed  { background: #fff3cd; color: #856404; }
.booking-status-extended   { background: #d1ecf1; color: #0c5460; }

/* Confirmed upload nudge strip */
.booking-upload-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    background: #fff3cd;
    border: 1px dashed #ffc107;
    border-radius: 8px;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.booking-upload-strip-text {
    font-size: 0.83rem;
    color: #856404;
    font-weight: 600;
    flex: 1;
}

/* ================================================
   File Input Wrap & Zone
   ================================================ */

.file-input-wrap {
    position: relative;
    width: 100%;
}

/* Native input sits invisibly over the entire zone */
.file-input-wrap input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    /* Reset any inherited styles */
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/* Visual zone */
.file-input-zone {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 150px;
    padding: 1.6rem 1.2rem;
    box-sizing: border-box;
    border: 2px dashed var(--border-color);
    border-radius: 14px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    transition:
        border-color  0.22s ease,
        background    0.22s ease,
        box-shadow    0.22s ease;
    pointer-events: none; /* input on top handles all pointer events */
    user-select: none;
}

/* Icon */
.file-input-icon {
    font-size: 2.2rem;
    color: #ccc;
    transition: color 0.22s ease, transform 0.25s ease;
    pointer-events: none;
}

/* Primary label */
.file-input-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--dark-grey-color);
    pointer-events: none;
    transition: color 0.22s;
}

/* Hint sub-text */
.file-input-hint {
    font-size: 0.78rem;
    color: #bbb;
    pointer-events: none;
    transition: color 0.22s;
}

/* ── Hover / focus-within ───────────────────────────────── */
.file-input-wrap:hover .file-input-zone,
.file-input-wrap:focus-within .file-input-zone {
    border-color: var(--primary-color);
    background: #f0f4ff;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08);
}

.file-input-wrap:hover .file-input-icon,
.file-input-wrap:focus-within .file-input-icon {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.file-input-wrap:hover .file-input-label,
.file-input-wrap:focus-within .file-input-label {
    color: var(--primary-color);
}

.file-input-wrap:hover .file-input-hint,
.file-input-wrap:focus-within .file-input-hint {
    color: var(--primary-color);
    opacity: 0.7;
}

/* ── Dragging (JS adds .dragging) ──────────────────────── */
.file-input-wrap.dragging .file-input-zone {
    border-color: var(--primary-color);
    background: #e8f0fe;
    box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.14);
}

.file-input-wrap.dragging .file-input-icon {
    color: var(--primary-color);
    transform: translateY(-6px) scale(1.15);
}

.file-input-wrap.dragging .file-input-label {
    color: var(--primary-color);
}

.file-input-wrap.dragging .file-input-hint {
    color: var(--primary-color);
    opacity: 0.65;
}

/* ── File selected (JS adds .has-file) ─────────────────── */
.file-input-wrap.has-file .file-input-zone {
    border-style: solid;
    border-color: #27ae60;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.file-input-wrap.has-file .file-input-icon {
    color: #27ae60;
    transform: none;
}

.file-input-wrap.has-file .file-input-label {
    color: #27ae60;
}

.file-input-wrap.has-file .file-input-hint {
    color: #27ae60;
    opacity: 0.75;
}

/* ── Error (JS adds .has-error) ─────────────────────────── */
.file-input-wrap.has-error .file-input-zone {
    border-style: solid;
    border-color: var(--danger);
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.file-input-wrap.has-error .file-input-icon {
    color: var(--danger);
}

.file-input-wrap.has-error .file-input-label {
    color: var(--danger);
}

.file-input-wrap.has-error .file-input-hint {
    color: var(--danger);
    opacity: 0.8;
}

/* ================================================
   File Name Chip
   ================================================ */

.file-name-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 10px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2e7d32;
    max-width: 100%;
    overflow: hidden;
}

.file-name-chip i {
    flex-shrink: 0;
}

.file-name-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.chip-remove {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0 0 0 4px;
    font-size: 0.85rem;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.chip-remove:hover {
    color: var(--danger);
}

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 480px) {
    .file-input-zone {
        min-height: 120px;
        padding: 1.2rem 0.8rem;
    }

    .file-input-icon {
        font-size: 1.8rem;
    }

    .file-name-chip span {
        max-width: 160px;
    }
}

/* ================================================
   Modal
   ================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease;
    padding: 1rem;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-card {
    width: min(500px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-card-lg { width: min(600px, 100%); }

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.modal-close:hover { color: #333; }

.modal-actions {
    margin-top: 1.2rem;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Modal Detail Sections */
.modal-section { margin-bottom: 1.1rem; }

.modal-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.modal-detail-item { display: flex; flex-direction: column; gap: 2px; }

.modal-detail-label {
    font-size: 0.78rem;
    color: #999;
    font-weight: 600;
}

.modal-detail-value {
    font-size: 0.92rem;
    color: var(--dark-grey-color);
    font-weight: 500;
}

.modal-route-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0.9rem;
    background: var(--light-grey-color);
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.modal-route-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Banned Modal Logs */
.banned-log-item {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.83rem;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.banned-log-item:nth-child(odd)  { background: #fff5f5; }
.banned-log-item:nth-child(even) { background: #fff; }

.banned-log-reason { color: #c0392b; flex: 1; }
.banned-log-date   { color: #999; white-space: nowrap; flex-shrink: 0; }

/* ================================================
   Notification Slide Panel
   ================================================ */
.slide-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 100vw);
    height: 100vh;
    background: var(--white-color);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 2100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 1.5rem;
}

.slide-panel.open { transform: translateX(0); }

.slide-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.slide-panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Master Toggle Row */
.noti-master-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-grey-color);
    border-radius: 10px;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.noti-master-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-grey-color);
}

/* Section Title */
.noti-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}

/* Device Row */
.noti-device-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    gap: 0.8rem;
    background: var(--white-color);
    transition: border-color 0.2s;
}

.noti-device-row .btn-primary {
    width: auto;
}

.noti-device-row.subscribed { border-color: var(--primary-color); }

.noti-device-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.noti-device-info i {
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.noti-device-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-grey-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Device Name Prompt */
.noti-name-prompt {
    background: var(--light-grey-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 22px; height: 22px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--primary-color); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ================================================
   Booking Card — Cancel Button
   ================================================ */
.booking-card-btn {
    background: none;
    border-radius: 8px;
    padding: 5px 14px;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    font-family: 'Prompt', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.18s, color 0.18s;
}

.booking-card-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-cancel-booking {
    border: 1px solid var(--danger);
    color: var(--danger);
}

.btn-cancel-booking:hover {
    background: var(--danger);
    color: #fff;
}

.btn-view-slip {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-view-slip:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-show-qr {
    border: 1px solid #1565c0;
    color: #1565c0;
}

.btn-show-qr:hover {
    background: #1565c0;
    color: #fff;
}

.btn-show-transfer-point-list {
    border: 1px solid #0c5460;
    color: #0c5460;
}

.btn-show-transfer-point-list:hover {
    background: #0c5460;
    color: #fff;
}

/* ================================================
   View Slip Modal — Image Zoom Toggle
   ================================================ */
#view-slip-img.zoomed {
    cursor: zoom-out;
    transform: scale(1.8);
    transform-origin: center center;
}

/* ================================================
   Lightbox
   ================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.4rem;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.25);
}

/* ================================================
   Utilities
   ================================================ */
.hidden { display: none !important; }

.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.status-message { font-size: 0.88rem; margin-top: 6px; color: #666; }
.status-message.error { color: var(--danger); font-weight: 600; }

.spinner-wrap { padding: 2rem 0; }

/* ================================================
   Responsive
   ================================================ */
@media (max-width: 600px) {
    .ticket-body { grid-template-columns: 1fr 1fr; }
    .modal-detail-grid { grid-template-columns: 1fr; }
    .filter-row { flex-direction: column; gap: 0.6rem; }
    .filter-row .form-row { width: 100%; }
    .user-info-row { flex-wrap: wrap; }
    .user-details h3 { font-size: 0.95rem; }
    .booking-date-header { font-size: 0.9rem; }
    .noti-master-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .booking-card-head { flex-direction: column; gap: 0.4rem; }
    .booking-history-toggle { font-size: 0.88rem; }
}

/* ================================================
   Verify QR Modal
   ================================================ */

.verify-qr-card {
    max-width: 420px;
    padding: 1.4rem;
}

/* Instruction banner */
.verify-qr-instruction {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.65rem 1rem;
    background: #e3f2fd;
    color: #1565c0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
    border: 1px solid #90caf9;
}

/* Passenger strip */
.verify-qr-passenger-strip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--light-grey-color);
    border-radius: 10px;
    margin-bottom: 0.9rem;
    border: 1px solid var(--border-color);
}

.verify-qr-avatar {
    font-size: 2.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
    line-height: 1;
}

.verify-qr-passenger-info {
    flex: 1;
    min-width: 0;
}

.verify-qr-passenger-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark-grey-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.verify-qr-passenger-meta {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trip info card */
.verify-qr-trip-card {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.verify-qr-trip-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-grey-color);
    margin-bottom: 0.5rem;
}

.verify-qr-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.verify-qr-route-arrow {
    color: #aaa;
    font-size: 0.85rem;
}

.verify-qr-trip-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1rem;
}

.verify-qr-trip-meta-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.verify-qr-meta-label {
    font-size: 0.72rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verify-qr-meta-label i {
    color: var(--primary-color);
    width: 14px;
}

.verify-qr-meta-value {
    font-size: 0.87rem;
    color: var(--dark-grey-color);
    font-weight: 500;
}

.verify-qr-meta-value.verify-qr-ref {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* QR Code area */
.verify-qr-code-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 1.2rem;
    margin-bottom: 0.9rem;
    min-height: 200px;
    width: 100%;
    position: relative;
}

.verify-qr-spinner {
    text-align: center;
}

#vqr-canvas {
    border-radius: 8px;
    max-width: 200px;
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
}

.verify-qr-error {
    text-align: center;
}

/* Reference code display */
.verify-qr-refcode-wrap {
    text-align: center;
    margin-bottom: 0.9rem;
}

.verify-qr-refcode-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.verify-qr-refcode {
    font-family: monospace;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.12em;
    background: var(--primary-light);
    border: 1.5px dashed var(--primary-color);
    border-radius: 8px;
    padding: 0.4rem 1.2rem;
    display: inline-block;
    word-break: break-all;
}

/* Status row */
.verify-qr-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.verify-qr-timestamp {
    font-size: 0.75rem;
    color: #aaa;
}

/* Slip verification status */
.verify-qr-slip-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.verify-qr-slip-status.verified {
    background: #bfe8c8;
    color: #12573f;
    border-color: #27ae60;
}

/* Responsive */
@media (max-width: 480px) {
    .verify-qr-card {
        padding: 1.1rem;
    }

    #vqr-canvas {
        max-width: 170px;
        width: 170px;
        height: 170px;
    }

    .verify-qr-refcode {
        font-size: 1.1rem;
    }

    .verify-qr-trip-meta-grid {
        grid-template-columns: 1fr;
    }

    .booking-card-btn {
        width: 100%;
    }
}

/* ================================================
   Transfer Point Modal — Search Input + Dropdown
   ================================================ */

/* Input wrapper (icon + field + clear + spinner) */
.transfer-point-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.transfer-point-input-wrap input[type="text"] {
    width: 100%;
    padding: 11px 80px 11px 38px; /* room for icon left, btns right */
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Prompt', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-grey-color);
    background: var(--white-color);
    transition: border-color 0.2s, box-shadow 0.2s;
    /* override form-row global rule */
    margin: 0;
}

.transfer-point-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 130, 110, 0.12);
}

/* Left search icon */
.transfer-point-search-icon {
    position: absolute;
    left: 12px;
    color: #aaa;
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 1;
}

.transfer-point-input-wrap input:focus ~ .transfer-point-search-icon,
.transfer-point-input-wrap:focus-within .transfer-point-search-icon {
    color: var(--primary-color);
}

/* Clear button */
.transfer-point-clear-btn {
    position: absolute;
    right: 36px;
    background: none;
    border: none;
    color: #bbb;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    z-index: 1;
}

.transfer-point-clear-btn:hover {
    color: var(--danger);
    background: rgba(231, 76, 60, 0.08);
}

/* Spinner inside input */
.transfer-point-spinner {
    position: absolute;
    right: 12px;
    color: var(--primary-color);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}

/* ── Dropdown ─────────────────────────────────────── */
.transfer-point-dropdown {
    position: relative;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white-color);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    overflow: hidden;
    max-height: 260px;
    overflow-y: auto;

    /* Slide-down animation */
    transform-origin: top center;
    animation: dropdown-appear 0.18s ease;
}

@keyframes dropdown-appear {
    from { opacity: 0; transform: scaleY(0.92) translateY(-4px); }
    to   { opacity: 1; transform: scaleY(1)    translateY(0); }
}

/* Single suggestion item */
.transfer-point-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--dark-grey-color);
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
    user-select: none;
}

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

.transfer-point-item i {
    color: var(--primary-color);
    font-size: 0.85rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

/* Keyboard / mouse hover highlight */
.transfer-point-item:hover,
.transfer-point-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.transfer-point-item.active i {
    color: var(--primary-color);
}

/* Highlighted matching text inside suggestion */
.transfer-point-item mark {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
}

/* Empty / no-results row */
.transfer-point-no-results {
    padding: 12px 14px;
    font-size: 0.88rem;
    color: #aaa;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Selected value chip ─────────────────────────── */
.transfer-point-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: var(--primary-light);
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-color);
    max-width: 100%;
    overflow: hidden;
}

.transfer-point-chip span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Input has-value state ───────────────────────── */
.transfer-point-input-wrap.has-value input[type="text"] {
    border-color: var(--primary-color);
    background: #f7fbf9;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
    .transfer-point-input-wrap input[type="text"] {
        font-size: 1rem; /* prevent iOS zoom */
        padding-left: 36px;
    }

    .transfer-point-dropdown {
        max-height: 200px;
    }
}

@media (max-width: 520px) {
    .booking-pagination {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .booking-pagination-info {
        order: 2;
        font-size: 0.75rem;
    }

    .booking-pagination-controls {
        order: 1;
        gap: 3px;
    }

    .pagination-btn {
        min-width: 30px;
        height: 30px;
        font-size: 0.78rem;
        border-radius: 6px;
    }
}

@media (max-width: 420px) {
    .ticket-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .ticket-book-btn {
        width: 100% !important;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .ticket-body { grid-template-columns: 1fr; }
    .ticket-head { flex-direction: column; }
    .ticket-badges { justify-content: flex-start; }
}