/* Mapa stref wydarzenia + lightbox z zoomem (Stadion, Dojazd) */

.venue-map-block {
  margin: 0;
  width: 100%;
}

.venue-map-preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(8, 16, 32, 0.5);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.venue-map-preview:hover,
.venue-map-preview:focus-visible {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 162, 39, 0.15);
  outline: none;
}

.venue-map-preview__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.venue-map-preview__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 12, 24, 0.88) 40%);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
}

.venue-map-preview__icon .bi {
  font-size: 1.1rem;
  color: var(--gold);
}

.venue-map-block__caption {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: rgba(200, 212, 230, 0.65);
  text-align: center;
}

@media (min-width: 640px) {
  .venue-map-block__caption {
    text-align: left;
  }
}

/* Lightbox */
.venue-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: rgba(4, 8, 18, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.venue-map-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.venue-map-lightbox__toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  padding-top: max(0.65rem, env(safe-area-inset-top));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 16, 32, 0.95);
}

.venue-map-lightbox__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.venue-map-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.venue-map-lightbox__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.venue-map-lightbox__btn:hover,
.venue-map-lightbox__btn:focus-visible {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
  outline: none;
}

.venue-map-lightbox__btn--close {
  font-size: 1.35rem;
  font-weight: 300;
}

.venue-map-lightbox__hint {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  color: rgba(200, 212, 230, 0.55);
  text-align: center;
}

.venue-map-lightbox__stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.venue-map-lightbox__stage.is-dragging {
  cursor: grabbing;
}

.venue-map-lightbox__viewport {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.venue-map-lightbox__img {
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.venue-map-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

body.venue-map-lightbox-open {
  overflow: hidden;
}
