﻿:root {
    --black: #000000;
    --ink: #111111;
    --ink-soft: #444444;
    --ink-muted: #666666;
    --ink-faint: #999999;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background: var(--gray-50);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ---------- Header ---------- */
.page-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 20px;
}

    .page-header h1 {
        font-family: 'Quicksand', sans-serif;
        font-size: 2.6rem;
        font-weight: 700;
        color: var(--black);
        margin-bottom: 12px;
        letter-spacing: -0.5px;
    }

    .page-header p {
        color: var(--ink-muted);
        font-size: 1.05rem;
        margin-bottom: 20px;
        line-height: 1.6;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

.header-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.text-link {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--gray-300);
    transition: all 0.2s ease;
    background: var(--white);
}

    .text-link:hover {
        border-color: var(--black);
        background: var(--black);
        color: var(--white);
        text-decoration: none;
    }

.alert-banner {
    max-width: 600px;
    margin: 0 auto 32px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--ink);
    padding: 14px 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

/* ---------- Spot cards ---------- */
.spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.spot-card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .spot-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--black);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .spot-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
    }

        .spot-card:hover::before {
            opacity: 1;
        }

    .spot-card.available {
        border-color: var(--gray-300);
    }

    .spot-card.occupied {
        border-style: dashed;
        border-color: var(--gray-400);
        background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    }

        .spot-card.occupied::before {
            opacity: 0.3;
            background: var(--ink-muted);
        }

.spot-card-glow {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,0,0,0.03), transparent 70%);
    pointer-events: none;
}

.spot-emoji {
    font-size: 2.4rem;
    margin-bottom: 8px;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.85;
}

.spot-seat {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ink-faint);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.spot-name {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0;
    color: var(--black);
    letter-spacing: -0.3px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    background: var(--gray-100);
    color: var(--ink-soft);
    border: 1px solid var(--gray-200);
}

    .status-pill::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
        opacity: 0.5;
    }

.status-available {
    background: var(--white);
    color: var(--black);
    border-color: var(--black);
}

    .status-available::before {
        opacity: 1;
        background: var(--black);
    }

.status-taken {
    background: var(--gray-100);
    color: var(--ink-muted);
    border-color: var(--gray-300);
}

.status-queued {
    background: var(--gray-100);
    color: var(--ink-soft);
    border-color: var(--gray-300);
    border-style: dotted;
}

.status-completed {
    background: var(--gray-100);
    color: var(--ink-faint);
    border-color: var(--gray-200);
}

.status-cancelled {
    background: var(--white);
    color: var(--ink-muted);
    border-color: var(--gray-300);
    border-style: dashed;
}

.occupant-info,
.queue-info {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    margin-top: auto;
}

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

    .btn:active {
        transform: translateY(0);
    }

.btn-book {
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

    .btn-book:hover {
        background: var(--ink);
        box-shadow: var(--shadow-lg);
    }

.btn-reserve {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    box-shadow: var(--shadow-sm);
}

    .btn-reserve:hover {
        background: var(--black);
        color: var(--white);
        box-shadow: var(--shadow-lg);
    }

.btn-submit {
    width: 100%;
    margin-top: 20px;
    background: var(--black);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

    .btn-submit:hover {
        box-shadow: var(--shadow-lg);
    }

.btn-back {
    display: inline-flex;
    margin-top: 28px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
    width: auto;
    padding: 10px 20px;
}

    .btn-back:hover {
        border-color: var(--black);
        box-shadow: var(--shadow-md);
    }

.btn-mini {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-mini:hover {
        opacity: 0.85;
        transform: translateY(-1px);
    }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    padding: 20px;
}

    .modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.modal-box {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--gray-200);
}

.modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: var(--gray-100);
    border: none;
    font-size: 1.4rem;
    color: var(--ink-soft);
    cursor: pointer;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .modal-close:hover {
        background: var(--black);
        color: var(--white);
        transform: rotate(90deg);
    }

.modal-box h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--black);
    font-size: 1.5rem;
    letter-spacing: -0.3px;
}

.modal-subtitle {
    color: var(--ink-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-box label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 18px 0 8px;
    color: var(--ink);
}

.modal-box input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--gray-300);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

    .modal-box input:focus {
        border-color: var(--black);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
    }

/* ---------- Ticket ---------- */
.ticket-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
}

.ticket-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1.5px dashed var(--gray-400);
    position: relative;
}

.ticket-ribbon {
    display: inline-block;
    background: var(--black);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 999px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.ticket-card h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.7rem;
    margin: 0 0 12px;
    color: var(--black);
    letter-spacing: -0.5px;
}

.ticket-code {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--gray-100);
    color: var(--black);
    padding: 12px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    word-break: break-all;
    border: 1px solid var(--gray-200);
}

.ticket-line {
    margin: 8px 0;
    color: var(--ink-muted);
    font-size: 0.95rem;
}

.ticket-perforation {
    border-top: 2px dashed var(--gray-300);
    margin: 24px 0 18px;
}

.ticket-footnote {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

/* ---------- Status check ---------- */
.status-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto 28px;
}

    .status-form input {
        flex: 1;
        padding: 14px 20px;
        border-radius: 999px;
        border: 1.5px solid var(--gray-300);
        font-family: 'Poppins', sans-serif;
        outline: none;
        font-size: 0.95rem;
        background: var(--white);
        transition: all 0.2s ease;
    }

        .status-form input:focus {
            border-color: var(--black);
            box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
        }

.status-result {
    max-width: 440px;
    margin: 0 auto 24px;
    background: var(--white);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-200);
}

    .status-result h2 {
        font-family: 'Quicksand', sans-serif;
        margin: 0 0 10px;
        color: var(--black);
    }

/* ---------- Admin ---------- */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
}

    .admin-table th, .admin-table td {
        padding: 14px 18px;
        text-align: left;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--gray-200);
    }

    .admin-table th {
        background: var(--gray-100);
        color: var(--black);
        font-family: 'Quicksand', sans-serif;
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-table tr:last-child td {
        border-bottom: none;
    }

    .admin-table tbody tr {
        transition: background 0.15s ease;
    }

        .admin-table tbody tr:hover {
            background: var(--gray-50);
        }

.empty-row {
    text-align: center;
    color: var(--ink-muted);
    padding: 24px;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    margin: 12px 0 16px;
    color: var(--black);
    font-size: 1.3rem;
    font-weight: 700;
}

.email-log {
    background: var(--white);
    border-radius: 20px;
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.email-entry {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200);
}

    .email-entry:last-child {
        border-bottom: none;
    }

.email-meta {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

.email-subject {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .header-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .status-form {
        flex-direction: column;
    }

    .spot-grid {
        grid-template-columns: 1fr;
    }

    .modal-box {
        padding: 28px 20px 24px;
    }
}
/* --- Additions for the schedule-based booking modal --- */
/* Append these to your existing booking.css — this file does not replace it. */

.hours-note {
    text-align: center;
    color: #666;
    margin: 8px 0 20px;
}

.time-row {
    display: flex;
    gap: 12px;
}

    .time-row > div {
        flex: 1;
    }

.blocked-times-wrap {
    background: #f7f7f7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.blocked-times-title {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.blocked-times-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: #555;
}

    .blocked-times-list li {
        padding: 2px 0;
    }

.blocked-times-empty {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 16px;
}
/* ── Spot card layout (reference design: edge-to-edge photo, badges over it) ── */
.spot-card {
    padding: 0 0 24px;
    overflow: hidden; /* image corners must clip to the card's border-radius */
    align-items: stretch;
    text-align: left;
}

.spot-image-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16 / 10;
    margin: 0 0 18px;
    background-color: var(--gray-100);
}

.spot-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0; /* card's own overflow:hidden handles the rounded top corners */
    object-fit: cover;
    border: none;
    background-color: var(--gray-100);
    transition: transform 0.35s ease;
}

.spot-card:hover .spot-image {
    transform: scale(1.04);
}

.spot-image-fallback {
    width: 100%;
    height: 100%;
}

/* Badge row sitting on top of the photo: availability pill (left) + info icon (right) */
.spot-badge-row {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    /* ── Green "Free right now" / occupied pill (matches reference image) ── */
    .spot-badge-row .status-pill {
        margin-bottom: 0;
        background: #22c55e;
        color: #ffffff;
        border: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

        .spot-badge-row .status-pill::before {
            opacity: 1;
            background: #ffffff;
        }

    .spot-badge-row .status-taken {
        background: var(--ink);
        color: #ffffff;
        border: none;
    }

.spot-body {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

.spot-subtitle {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin: 2px 0 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.spot-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.spot-meta-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-muted);
}

    .spot-meta-status svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        color: var(--ink-faint);
    }

.spot-price {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--black);
    white-space: nowrap;
}

.spot-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

    .spot-footer .btn-book {
        width: auto;
        flex: 1;
        margin-top: 0;
        gap: 8px;
    }

        .spot-footer .btn-book svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
        }

.field-error {
    display: block;
    color: #c0392b;
    font-size: 0.8rem;
    margin: 4px 0 8px;
}

.alert-success {
    background: #e6f7ed;
    color: #1a7f4b;
}

.status-confirmed {
    background: #eef6ff;
    color: #1a5fb4;
}

.status-cancelled {
    background: #fdeaea;
    color: #a12626;
}

/* ---------- Spot card "view weekly timetable" arrow button (footer, next to Book This Spot) ---------- */
.spot-details-icon {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--black);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 1;
    text-decoration: none;
}

    .spot-details-icon svg {
        width: 17px;
        height: 17px;
    }

    .spot-details-icon:hover {
        background: var(--ink);
        transform: scale(1.06);
        box-shadow: var(--shadow-md);
    }

/* So the anchor jump from the icon doesn't land the row flush at the top */
tr[id^="spot-row-"] {
    scroll-margin-top: 24px;
}

/* ---------- Feedback form ---------- */
.feedback-card {
    text-align: left;
    max-width: 460px;
}

.feedback-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 18px 0 8px;
    color: var(--ink);
}

.feedback-form input[type="text"],
.feedback-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--gray-300);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background: var(--gray-50);
    resize: vertical;
}

    .feedback-form input[type="text"]:focus,
    .feedback-form textarea:focus {
        border-color: var(--black);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
    }

.rating-choice {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

    .rating-choice input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.star-label {
    font-size: 2rem;
    line-height: 1;
    color: var(--gray-300);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    margin: 0 !important;
}

    .rating-choice input:checked ~ .star-label,
    .star-label:hover,
    .star-label:hover ~ .star-label {
        color: #f5b301;
    }

    .star-label:hover {
        transform: scale(1.12);
    }

.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.week-range {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--black);
}

.timetable-scroll {
    overflow-x: auto;
    margin-bottom: 32px;
}

.timetable-table {
    min-width: 780px;
}

    .timetable-table th {
        text-align: center;
    }

.timetable-daydate {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ink-faint);
    font-size: 0.75rem;
}

.timetable-seat {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

.timetable-cell {
    vertical-align: top;
    min-width: 100px;
}

.timetable-entry {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
    white-space: nowrap;
}

    .timetable-entry:last-child {
        margin-bottom: 0;
    }

.timetable-empty {
    color: var(--gray-400);
}

/* ---------- Manage booking (ticket-verified cancel/reschedule) ---------- */
.manage-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.manage-cancel-form {
    text-align: center;
}

.manage-reschedule-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 14px 0 6px;
    color: var(--ink);
}

.manage-reschedule-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--gray-300);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    outline: none;
    background: var(--gray-50);
}

    .manage-reschedule-form input:focus {
        border-color: var(--black);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
    }

/* --- Booking modal: reuse an existing ticket --- */
.ticket-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

    .ticket-row input {
        flex: 1;
        min-width: 0;
        width: auto;
    }

.btn-ticket-apply {
    flex-shrink: 0;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    background: var(--black);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

    .btn-ticket-apply:hover {
        box-shadow: var(--shadow-md);
    }

    .btn-ticket-apply:focus-visible,
    .ticket-clear:focus-visible {
        outline: 2px solid var(--black);
        outline-offset: 2px;
    }

.ticket-hint {
    margin: 6px 0 0;
    color: var(--ink-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.ticket-message {
    display: block;
    min-height: 0;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

    .ticket-message.error {
        color: #c0392b;
    }

.ticket-verified {
    margin-top: 12px;
    padding: 12px 16px;
    background: #e8fbee;
    border: 1px solid #bdf0c9;
    border-radius: 14px;
    color: #14532d;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ticket-clear {
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    color: #14532d;
    font: inherit;
    font-size: 0.8rem;
    text-decoration: underline;
    cursor: pointer;
}

.ticket-or {
    margin: 22px 0 -6px;
    color: var(--ink-faint);
    font-size: 0.8rem;
}

/* --- Directions map ("Not sure where we are?") --- */
/* Fixed location icon, top-right of the page. Sits below the site header —
   nudge --locate-fab-top if your layout's header is taller/shorter than ~64px. */
.locate-fab {
    position: fixed;
    top: 78px;
    right: 24px;
    z-index: 500;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .locate-fab svg {
        width: 19px;
        height: 19px;
    }

    .locate-fab:hover {
        box-shadow: var(--shadow-lg);
        transform: scale(1.06);
    }

    .locate-fab:focus-visible,
    .map-btn:focus-visible,
    .map-fab:focus-visible {
        outline: 2px solid var(--black);
        outline-offset: 2px;
    }

.map-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 960px;
    height: min(92vh, 780px);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .map-modal-box {
    transform: none;
}

.map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
}

    .map-head h2 {
        margin: 0;
        font-family: 'Quicksand', sans-serif;
        font-weight: 700;
        font-size: 1.15rem;
        color: var(--black);
    }

    .map-head .modal-close {
        position: static;
        flex-shrink: 0;
    }

.map-stage {
    position: relative;
    flex: 1;
    min-height: 260px;
    isolation: isolate;
}

#liveMap {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
}

.map-stage .leaflet-container {
    font-family: 'Poppins', sans-serif;
}

.map-next {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 64px;
    z-index: 800;
    display: none;
    padding: 10px 14px;
    background: rgba(17, 17, 17, 0.92);
    color: var(--white);
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    box-shadow: var(--shadow-md);
}

    .map-next strong {
        display: block;
        font-family: 'Quicksand', sans-serif;
        font-size: 1.05rem;
    }

.map-fab {
    position: absolute;
    bottom: 30px;
    z-index: 800;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

    .map-fab.active {
        background: #1a73e8;
        color: var(--white);
    }

#mapLayerBtn {
    left: 12px;
}

#mapFollowBtn {
    right: 12px;
}

.map-panel {
    padding: 14px 20px 18px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.map-summary {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
}

.map-status {
    min-height: 1.3em;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

    .map-status.error {
        color: #c0392b;
    }

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.map-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

    .map-btn:hover {
        border-color: var(--black);
    }

    .map-btn.primary {
        background: var(--black);
        border-color: var(--black);
        color: var(--white);
    }

.map-steps {
    display: none;
    max-height: 28vh;
    margin: 12px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border-top: 1px solid var(--gray-200);
}

    .map-steps li {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 9px 4px;
        border-bottom: 1px solid var(--gray-100);
        font-size: 0.85rem;
        line-height: 1.4;
    }

        .map-steps li.current {
            background: var(--gray-50);
            font-weight: 600;
        }

.map-step-dist {
    flex-shrink: 0;
    color: var(--ink-muted);
}

.map-dot {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #1a73e8;
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.5), 0 1px 4px rgba(0, 0, 0, 0.4);
    animation: map-pulse 2s infinite;
}

@keyframes map-pulse {
    70% {
        box-shadow: 0 0 0 14px rgba(26, 115, 232, 0), 0 1px 4px rgba(0, 0, 0, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0), 0 1px 4px rgba(0, 0, 0, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-dot {
        animation: none;
    }
}

.map-pin {
    width: 30px;
    height: 30px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: #111;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transform: rotate(-45deg);
}

    .map-pin span {
        display: block;
        width: 10px;
        height: 10px;
        margin: 7px;
        border-radius: 50%;
        background: #fff;
    }

.leaflet-tooltip.map-tip {
    padding: 4px 10px;
    border: none;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.leaflet-tooltip-top.map-tip::before {
    border-top-color: #111;
}

@media (max-width: 600px) {
    .locate-fab {
        top: 70px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .map-modal-box {
        height: 94vh;
        border-radius: 18px;
    }
}
