/* ════════════════════════════════════════════════════════════════════════
   Gita — Event Detail Page Styles
   ------------------------------------------------------------------------
   Loaded as a sticky stylesheet so it is present before the SPA router
   swaps the body, preventing FOUC and layout shifts on soft navigation.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Detail page two-column layout ── */
.rdm-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 0.25rem 0 1.5rem 0;
  min-width: 0;
  width: 100%;
}
@media (min-width: 1024px) {
  .rdm-detail-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
  }
}
.rdm-detail-center { width: 100%; padding: 0; min-width: 0; }
.rdm-detail-right { display: none; }
.rdm-detail-right-placeholder { display: none; }
@media (min-width: 1024px) {
  .rdm-detail-right {
    display: block !important;
    position: sticky !important;
    top: calc(var(--gita-navbar-h, 72px) + 0.75rem) !important;
    align-self: start !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .rdm-detail-right-placeholder {
    display: none !important;
  }
}

/* ── Zone map layout ── */
.rdm-venue-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
  .rdm-venue-layout { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
  #rdm-zone-map-section .rdm-venue-prices { display: none !important; }
  #rdm-sidebar-ticket-options { display: block !important; }
}
@media (max-width: 1023px) {
  .rdm-venue-layout { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
  #rdm-zone-map-section .rdm-venue-prices { display: block !important; margin-top: 1rem; width: 100%; align-self: stretch; }
  #rdm-sidebar-ticket-options { display: none !important; }
}

/* ── Zone map placeholder / shimmer ── */
.rdm-venue-map {
  min-width: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 360px;
  background: var(--gita-bg, #070202);
  border-radius: 12px;
  overflow: hidden;
}
.rdm-venue-map__shimmer {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.09) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: rdmMapShimmer 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
[data-theme="light"] .rdm-venue-map__shimmer {
  background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.09) 50%, rgba(0,0,0,0.03) 75%);
}
.rdm-venue-map__shimmer.is-hidden {
  opacity: 0;
  visibility: hidden;
}
.rdm-venue-map svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--gita-border);
  background: transparent;
}
.rdm-venue-map svg.rdm-venue-map--loaded {
  background: var(--gita-bg);
}
@keyframes rdmMapShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rdm-venue-map-error {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem; text-align: center; color: var(--gita-text-muted);
  font-size: 0.85rem; background: rgba(7,2,2,0.75); border-radius: 12px; pointer-events: none;
  z-index: 3;
}
