* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ---------- MAPA ---------- */

#map {
  height: 100dvh;
  width: 100%;
  background: #ffffff;
}

/* Přebarvení CARTO Positron podkladu do růžova */
.leaflet-tile-pane {
  filter: grayscale(100%) sepia(30%) hue-rotate(295deg) saturate(400%) brightness(0.85) contrast(1.3);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  will-change: filter;
}

/* ---------- PINY ---------- */

.pin-shape {
  background: #C2185B;
  width: 18px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}

.pin-label {
  background: white;
  border: 1px solid #C2185B;
  color: #C2185B;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.leaflet-tooltip.pin-label::before {
  display: none;
}

.leaflet-control-attribution {
  display: none;
}

/* ---------- TLAČÍTKO PRO HUDBU ---------- */

#toggle-music {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: #C2185B;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: visible;
}

#toggle-music::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  filter: blur(9px);
  opacity: 0.85;
  z-index: -2;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#toggle-music::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#volume-control {
  position: fixed;
  top: 68px;
  right: 16px;
  z-index: 500;
  width: 44px;
  height: 150px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 8px;
  margin: 0;
  background: #FFD6E8;
  border-radius: 4px;
  transform: rotate(-90deg);
  cursor: pointer;
  outline: none;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #C2185B;
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #C2185B;
  border: 3px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

#volume-slider::-moz-range-track {
  background: #FFD6E8;
  height: 8px;
  border-radius: 4px;
}

/* ---------- TLAČÍTKO PRO OTEVŘENÍ GALERIE ---------- */

#open-gallery {
  position: fixed;
  top: 16px;
  left: 10px;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: #C2185B;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: visible;
}

#open-gallery::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  filter: blur(9px);
  opacity: 0.85;
  z-index: -2;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#open-gallery::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

@keyframes spin-glow {
  from {
    transform: rotate(0deg) translateZ(0);
  }
  to {
    transform: rotate(360deg) translateZ(0);
  }
}

/* ---------- TLAČÍTKO PRO GOOGLE FORM (nechat vzkaz) ---------- */

#open-form {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  width: 60px;
  height: 60px;
  background: #C2185B;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: visible;
  text-decoration: none;
}

#open-form::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  filter: blur(11px);
  opacity: 0.85;
  z-index: -2;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#open-form::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ---------- HOME TLAČÍTKO (návrat na menu) ---------- */

#home-button {
  position: fixed;
  bottom: 44px;
  left: 10px;
  z-index: 500;
  width: 44px;
  height: 44px;
  background: #C2185B;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  overflow: visible;
  text-decoration: none;
}

#home-button::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  filter: blur(9px);
  opacity: 0.85;
  z-index: -2;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

#home-button::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #FF2E9A, #8B5CF6, #2DD4BF, #FF2E9A);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  animation: spin-glow 3s linear infinite;
  -webkit-backface-visibility: hidden;
  will-change: transform;
}

/* ---------- GALERIE / SLIDESHOW OVERLAY ---------- */

#gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 15, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#gallery-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#gallery-overlay.hidden {
  display: none;
}

#gallery-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  user-select: none;
}

#close-gallery {
  position: fixed;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #FF9EBB;
  cursor: pointer;
  z-index: 1001;
}

#gallery-prev,
#gallery-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-prev {
  left: 12px;
}

#gallery-next {
  right: 12px;
}

#gallery-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #FF9EBB;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- STORY OVERLAY (fullscreen karta po kliknutí na pin) ---------- */

#story-overlay {
  position: fixed;
  inset: 0;
  background: #fff5f7;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

#story-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#story-overlay.hidden {
  display: none;
}

#close-story {
  position: fixed;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #C2185B;
  cursor: pointer;
  z-index: 1001;
}

#story-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- DEKORATIVNÍ OBRÁZKY NA POZADÍ OVERLAY ---------- */

#story-bg-images {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-decor {
  position: absolute;
  width: 281px;
  max-width: 49vw;
  opacity: 0.14;
  filter: grayscale(100%) sepia(40%) hue-rotate(295deg) saturate(350%);
}

.bg-decor-left {
  top: -20px;
  left: -50px;
}

.bg-decor-right {
  bottom: -20px;
  right: -50px;
}

#story-title {
  color: #C2185B;
  font-size: 26px;
  margin-bottom: 16px;
}

#story-text {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  white-space: pre-line;
}

/* ---------- TICKER LIŠTA SE ZPRÁVAMI ---------- */

#ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: #C2185B;
  overflow: hidden;
  z-index: 400;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

#ticker-track {
  display: inline-block;
  white-space: nowrap;
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  padding-left: 100%;
  animation: ticker-scroll linear infinite;
  will-change: transform;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}