/* ==========================================================================
   Seating chart page (page_manager/info/seating_chart.html). Loads on top of
   home.css for the navy/gold tokens and .home-btn.
   ========================================================================== */

.seat-main {
    background: var(--home-cream);
    padding: 2.5rem 0 3.5rem;
    color: var(--home-text);
}

.seat-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .seat-layout {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 2rem;
    }
}

/* ---------- Viewer ---------- */

.seat-viewer {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(7, 18, 46, 0.08);
    overflow: hidden;
    scroll-margin-top: 1rem;
}

@media (min-width: 992px) {
    .seat-viewer {
        position: sticky;
        top: 1rem;
    }
}

.seat-toolbar {
    padding: 0.75rem;
    background: var(--home-navy);
}

.seat-presets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.seat-chip {
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-family: var(--home-heading-font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 575.98px) {
    .seat-toolbar { padding: 0.6rem 0.5rem; }
    .seat-presets { gap: 0.3rem; }
    .seat-chip {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }
}

.seat-chip:hover,
.seat-chip:focus-visible {
    border-color: var(--home-gold-light);
    color: var(--home-gold-light);
}

.seat-chip.is-active {
    background: var(--home-gold);
    border-color: var(--home-gold);
    color: var(--home-navy);
}

/* Zoom buttons float over the chart's corner, like a map */
.seat-stage {
    position: relative;
}

.seat-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.seat-zoom-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 6px;
    background: var(--home-navy);
    box-shadow: 0 2px 8px rgba(7, 18, 46, 0.3);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.seat-zoom-btn:hover,
.seat-zoom-btn:focus-visible {
    background: var(--home-gold);
    color: var(--home-navy);
}

/* Fits the whole chart at zoom 1; scrolls once zoomed in */
.seat-viewport {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 1545 / 2000;
    max-height: 75vh;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
    background: #fff;
}

@media (min-width: 992px) {
    .seat-viewport {
        max-height: calc(100vh - 140px);
        min-height: 520px;
    }
}

.seat-viewport:focus-visible {
    outline: 3px solid var(--home-gold);
    outline-offset: -3px;
}

.seat-viewer.is-zoomed .seat-viewport {
    cursor: grab;
}

.seat-viewport.is-dragging {
    cursor: grabbing !important;
    user-select: none;
}

.seat-canvas {
    position: relative;
    flex-shrink: 0;
    margin: auto;
}

.seat-canvas img {
    display: block;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

/* Wheelchair-space outlines, shown with the Wheelchair preset */
.seat-mark {
    position: absolute;
    display: none;
    border: 3px solid var(--home-gold);
    border-radius: 6px;
    background: rgba(242, 193, 78, 0.18);
    box-shadow: 0 0 0 4px rgba(215, 157, 40, 0.25);
    pointer-events: none;
    animation: seat-pulse 1.6s ease-in-out infinite;
}

.seat-viewer.show-wheelchair .seat-mark {
    display: block;
}

@keyframes seat-pulse {
    50% { box-shadow: 0 0 0 9px rgba(215, 157, 40, 0.08); }
}

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

.seat-viewer-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0.9rem;
    border-top: 1px solid var(--home-line);
    font-size: 0.85rem;
}

.seat-hint {
    margin: 0;
    color: var(--home-muted);
}

.seat-hint-mouse { display: none; }

@media (hover: hover) and (pointer: fine) {
    .seat-hint-touch { display: none; }
    .seat-hint-mouse { display: inline; }
}

.seat-viewer-links {
    display: flex;
    gap: 1rem;
}

.seat-viewer-links a,
.seat-viewer-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #a4661b;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.seat-viewer-links a:hover,
.seat-viewer-links button:hover {
    color: var(--home-navy);
}

/* ---------- Guide (sidebar) ---------- */

.seat-guide {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.seat-panel {
    padding: 1.35rem 1.4rem;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 8px;
}

.seat-panel p {
    font-size: 0.95rem;
    line-height: 1.55;
}

.seat-panel-title {
    margin: 0 0 1rem;
    font-family: var(--home-heading-font);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--home-navy);
}

.seat-panel-note {
    color: var(--home-muted);
}

.seat-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.seat-legend li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.seat-key {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-family: var(--home-heading-font);
    font-weight: 800;
}

/* Colors match the letters printed on the chart */
.seat-key-section { background: #2b3990; color: #fff; }
.seat-key-row { background: #fff; color: #e8282b; border: 2px solid #e8282b; }
.seat-key-seat { background: #fff; color: var(--home-text); border: 2px solid var(--home-text); font-size: 0.85rem; }

.seat-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.seat-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.8rem 0.4rem;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-cream);
    color: var(--home-text);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.seat-section:hover,
.seat-section:focus-visible {
    border-color: var(--home-gold);
    background: #fff;
}

.seat-section-name {
    font-family: var(--home-heading-font);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #2b3990;
}

.seat-section-where {
    font-size: 0.85rem;
    font-weight: 600;
}

.seat-section-rows {
    font-size: 0.78rem;
    color: var(--home-muted);
}

.seat-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: #a4661b;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.seat-panel-link i {
    font-size: 0.65rem;
}

.seat-panel-link:hover {
    color: var(--home-navy);
}

.seat-panel-dark {
    background: var(--home-navy);
    border-color: var(--home-navy);
    color: rgba(255, 255, 255, 0.88);
}

.seat-panel-dark .seat-panel-title {
    color: var(--home-gold-light);
}

.seat-panel-dark .seat-panel-link {
    display: flex;
    color: var(--home-gold-light);
    margin-top: 0.5rem;
}

.seat-panel-dark .seat-panel-link:hover {
    color: #fff;
}

.seat-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.seat-btn-call {
    color: #a4661b;
    border-color: var(--home-gold);
}

.seat-hours {
    margin: 0.75rem 0 0.75rem;
    font-size: 0.85rem !important;
    color: var(--home-muted);
}

/* ---------- Print: just the chart, on one page ---------- */

@media print {
    #siteHeader,
    .concert-ticker,
    .page-hero,
    .site-footer,
    .seat-toolbar,
    .seat-zoom,
    .seat-viewer-foot,
    .seat-guide,
    .seat-mark {
        display: none !important;
    }

    .seat-main {
        padding: 0;
        background: #fff;
    }

    .seat-layout {
        display: block;
        padding: 0;
    }

    .seat-viewer {
        position: static;
        border: 0;
        box-shadow: none;
    }

    .seat-viewport {
        display: block;
        aspect-ratio: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    .seat-canvas {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 100vh;
        margin: 0 auto;
    }

    .seat-canvas img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100vh;
        margin: 0 auto;
    }
}
