/* ==========================================================================
   ARENA BURGAS VENUE SHOWCASE & OFFLINE LEAFLET MAP COMPONENT
   ========================================================================== */

.venue-showcase-section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
}

.venue-showcase-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-lg);
}

/* Left Column: Photo & Details */
.venue-details-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.venue-photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  margin: 0;
}

.venue-photo-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-medium);
}

.venue-photo-card:hover .venue-photo-img {
  transform: scale(1.02);
}

.venue-photo-badge {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  background: rgba(7, 17, 63, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.7rem;
  font-family: var(--font-family-mono);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.venue-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.venue-spec-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.venue-spec-label {
  font-size: 0.7rem;
  font-family: var(--font-family-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.venue-spec-val {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-main);
}

.venue-spec-val.highlight {
  color: var(--euro-accent-start);
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

/* Right Column: Local Leaflet Map */
.venue-map-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 100%;
}

.venue-map-wrapper {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.venue-map-frame,
.venue-map-container,
#venue-map {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  flex: 1 1 auto;
  overflow: hidden;
  background: #f4f6f9;
  z-index: 1;
}

/* CARTO Positron Modern Minimalist Aesthetic */
#venue-map.carto-positron-style .leaflet-tile-pane {
  filter: none;
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#venue-map.carto-vibrant-style .leaflet-tile-pane {
  filter: saturate(1.25) contrast(1.05);
  transition: filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.leaflet-tile-container img {
  transition: opacity 0.2s ease;
}

/* Modern CARTO-Style Floating Glassmorphic Control Bar */
.modern-map-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
  padding: 4px;
  gap: 3px;
  margin-top: 12px !important;
  margin-right: 12px !important;
  z-index: 1000;
}

.modern-map-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.modern-map-btn:hover {
  background: #f1f5f9;
  color: var(--euro-accent-start, #d20d55);
  transform: scale(1.08);
}

.modern-map-btn:active {
  transform: scale(0.94);
}

.modern-map-divider {
  width: 20px;
  height: 1px;
  background: #e2e8f0;
  margin: 2px 0;
}

/* Floating Coordinates & Status Badge */
.modern-map-info-pill {
  margin-bottom: 12px !important;
  margin-left: 12px !important;
  z-index: 1000;
}

.map-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 5px 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  font-family: var(--font-family-mono, monospace);
  font-size: 0.72rem;
  color: #334155;
  font-weight: 600;
}

.map-pulse-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulseLiveIndicator 2s infinite ease-in-out;
}

@keyframes pulseLiveIndicator {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.map-zoom-badge {
  background: #e2e8f0;
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.65rem;
  color: #475569;
  font-weight: 700;
}

/* Custom Sleek Attribution */
.modern-map-attribution {
  margin-bottom: 8px !important;
  margin-right: 8px !important;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  color: #64748b;
  font-family: var(--font-family-sans, sans-serif);
  z-index: 1000;
}

.modern-map-attribution a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
}

.modern-map-attribution a:hover {
  text-decoration: underline;
}

/* Fullscreen Mode */
.venue-map-wrapper.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.venue-map-wrapper.is-fullscreen #venue-map {
  height: calc(100vh - 84px) !important;
  min-height: calc(100vh - 84px) !important;
}

/* Custom Eurovision Leaflet Marker & Pulse */
.custom-eurovision-pin {
  background: transparent;
  border: none;
}

.pin-marker {
  position: relative;
  width: 40px;
  height: 48px;
}

.pin-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--euro-accent-start, #ff007a) 0%, var(--euro-accent-end, #7928ca) 100%);
  border: 2.5px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 18px rgba(210, 13, 85, 0.55), 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.pin-icon:hover {
  transform: rotate(-45deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(210, 13, 85, 0.7);
}

.pin-icon svg {
  transform: rotate(45deg);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.pin-pulse {
  position: absolute;
  width: 26px;
  height: 13px;
  background: rgba(210, 13, 85, 0.45);
  border-radius: 50%;
  bottom: -2px;
  left: 7px;
  animation: mapPulse 2s infinite ease-out;
  z-index: 1;
}

.pin-beacon {
  position: absolute;
  width: 42px;
  height: 21px;
  border: 2px solid rgba(210, 13, 85, 0.4);
  border-radius: 50%;
  bottom: -6px;
  left: -1px;
  animation: mapBeacon 2s infinite ease-out 0.6s;
  z-index: 1;
}

@keyframes mapPulse {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes mapBeacon {
  0% { transform: scale(0.3); opacity: 0.8; }
  100% { transform: scale(2.3); opacity: 0; }
}

/* Modern Glassmorphic Popup Style */
.modern-venue-leaflet-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.modern-venue-leaflet-popup .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
}

.modern-venue-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.venue-popup {
  padding: 1rem 1.15rem;
}

.venue-popup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.35rem;
}

.venue-popup-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d20d55;
  box-shadow: 0 0 6px rgba(210, 13, 85, 0.8);
}

.venue-popup-tag {
  font-size: 0.68rem;
  font-family: var(--font-family-mono, monospace);
  color: #d20d55;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.venue-popup-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 0.45rem 0;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.venue-popup-meta-row {
  margin-bottom: 0.75rem;
}

.venue-popup-meta {
  font-size: 0.74rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  display: inline-block;
}

.venue-popup-actions {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.venue-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #d20d55;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.venue-popup-btn:hover {
  background: rgba(210, 13, 85, 0.08);
  color: #b00b46;
  text-decoration: none;
}

/* Responsive Collapse */
@media (max-width: 900px) {
  .venue-grid {
    grid-template-columns: 1fr;
  }
  
  .venue-map-frame,
  .venue-map-container,
  #venue-map {
    height: 340px;
    min-height: 340px;
  }
}

@media (max-width: 540px) {
  .venue-specs-grid {
    grid-template-columns: 1fr;
  }
  
  .map-pill-badge {
    padding: 3px 8px;
    font-size: 0.66rem;
  }
}
