/* Explain: Styles for the seat selection map and related UI elements. */
.seat-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    max-width: 21rem;
    margin: 0 auto;
}

.seat-btn,
.seat-driver {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    border-radius: 0.85rem;
    border: 1px solid var(--glass-border);
    background: var(--seat-free);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.seat-btn.is-tersedia:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 46, 111, 0.18);
}

.seat-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.seat-btn.is-picked {
    background: var(--seat-picked);
    border-color: #B98A18;
    color: #10233F;
}

.seat-btn.is-terisi {
    background: var(--seat-taken);
    border-color: #177B4D;
    color: #ffffff;
    cursor: not-allowed;
}

.seat-btn.is-dibayar {
    background: var(--seat-paid);
    border-color: #B5392E;
    color: #ffffff;
    cursor: not-allowed;
}

.seat-btn.is-checkin {
    background: var(--seat-checkin);
    border-color: #163DA8;
    color: #ffffff;
    cursor: not-allowed;
}

.seat-btn.is-lelang {
    background: var(--seat-auction);
    border-color: #7C8AA0;
    color: #ffffff;
    cursor: not-allowed;
}

.seat-driver {
    background: var(--seat-driver);
    border-color: var(--seat-driver);
    color: #ffffff;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: default;
}

.seat-front {
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.seat-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.seat-dot {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(15, 33, 56, 0.12);
    vertical-align: middle;
}

.seat-dot-driver {
    background: var(--seat-driver);
}

.seat-dot-free {
    background: var(--seat-free);
}

.seat-dot-taken {
    background: var(--seat-taken);
}

.seat-dot-picked {
    background: var(--seat-picked);
}

.seat-dot-paid {
    background: var(--seat-paid);
}

.seat-dot-checkin {
    background: var(--seat-checkin);
}

.seat-dot-auction {
    background: var(--seat-auction);
}

.addon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
    transition: all 250ms ease;
}

.addon-btn.is-on {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.addon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .seat-btn,
    .seat-driver {
        min-height: 2.6rem;
        font-size: 0.85rem;
    }
}