/* ===== Venue map embedded in event detail page ===== */
/* All canvas/panel styles copied from venue-public.css,
   excluding the main.container override that breaks page layout. */

/* ── Canvas container ───────────────────────────────────────────────── */
.ed-venue-map-wrap {
    border-radius: 0; /* sits flush as card-img-top replacement */
    overflow: hidden;
}

#canvas-side {
    position: relative;
    background: #1a2e1a;
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: hidden;
    height: 420px;
}

#venue-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Toolbar ────────────────────────────────────────────────────────── */
#map-toolbar {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 4px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 5px; z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.map-btn {
    border: none; background: none; border-radius: 7px; padding: 5px 10px;
    cursor: pointer; font-size: 12px; color: #64748b; display: flex;
    align-items: center; gap: 5px; transition: background .12s; font-family: inherit;
}

.map-btn:hover { background: #f1f5f9; color: #1e293b; }
.map-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.mtsep { height: 1px; background: #e2e8f0; margin: 3px 2px; align-self: stretch; }
.toolbar-venue-name { font-size: 12px; color: #64748b; padding: 0 4px; align-self: center; font-weight: 500; }

/* ── Tooltip ────────────────────────────────────────────────────────── */
#hover-tooltip {
    position: absolute; background: rgba(15,23,42,.92); color: #f1f5f9;
    font-size: 12px; padding: 7px 12px; border-radius: 8px; pointer-events: none;
    z-index: 20; display: none; white-space: nowrap; line-height: 1.7;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.tooltip-sold-out { color: #fca5a5; }
.tooltip-limited { color: #fcd34d; }

/* ── Legend ─────────────────────────────────────────────────────────── */
#canvas-legend {
    position: absolute; bottom: 14px; left: 14px; display: flex; flex-direction: column; gap: 6px;
    background: rgba(15,23,42,.75); padding: 7px 14px; border-radius: 8px; z-index: 10;
}

.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #cbd5e1; }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.legend-available { background: #22c55e; }
.legend-limited   { background: #f59e0b; }
.legend-sold-out  { background: #ef4444; }
.legend-selected  { background: #60a5fa; }

/* ── Section picker ──────────────────────────────────────────────────── */
.sp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sp-ticket-name {
    font-size: 0.9rem;
}

.sp-sections-list {
    max-height: 320px;
    overflow-y: auto;
}

.sp-section-row {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sp-section-row:last-child {
    border-bottom: none;
}

.sp-sold-out {
    opacity: 0.55;
}

.sp-section-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.sp-section-name {
    font-weight: 500;
    font-size: 0.88rem;
}

.sp-gate-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1px;
}

.sp-avail-bar-wrap {
    height: 3px;
    background: #f1f5f9;
    border-radius: 2px;
    margin: 0.35rem 0;
    overflow: hidden;
}

.sp-avail-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.2s;
}

.sp-qty-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.sp-avail-label {
    white-space: nowrap;
}

.sp-qty-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sp-qty-row .btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
}

.sp-qty-val {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.sp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    #canvas-side { height: 280px; }
}
