/* ==========================================================================
   Gym Center - Hoja de Estilos Oficial (HTML/CSS/JS)
   Paleta: Evening Primrose (#c6d605), Jasmine Green (#87d108), 
           Stalactite (#fdfef8), Silver (#a5a5a5), Caviar (#202020)
   ========================================================================== */

:root {
  --color-primrose: #c6d605;
  --color-jasmine: #87d108;
  --color-stalactite: #fdfef8;
  --color-silver: #a5a5a5;
  --color-caviar: #202020;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-caviar);
  color: var(--color-stalactite);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: #202020;
  color: #fdfef8;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Custom Selection */
::selection {
  background-color: #c6d605;
  color: #202020;
}

/* Typography Classes */
.font-poppins-black {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
}

.font-bebas {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

.pilar-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  -webkit-text-stroke: 0.4px currentColor;
  letter-spacing: 0.04em;
}

.font-astron {
  font-family: 'Syne', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.font-body {
  font-family: 'Outfit', sans-serif;
}

/* Outline text styles from brand guide */
.text-outline {
  -webkit-text-stroke: 1.5px currentColor;
  color: transparent;
}

.text-outline-thin {
  -webkit-text-stroke: 1px currentColor;
  color: transparent;
}

/* Glow effects */
.glow-primrose {
  box-shadow: 0 0 30px rgba(198, 214, 5, 0.25);
}

.glow-primrose-sm {
  box-shadow: 0 0 15px rgba(198, 214, 5, 0.2);
}

/* Custom animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.98); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Smooth transitions */
.transition-standard {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Infinite Marquee Carousel */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

/* El banner no se detiene al pasar el cursor */
.animate-marquee:hover {
  animation-play-state: running;
}

/* ==========================================================================
   Leaflet Custom Dark Theme & Popup Styling
   ========================================================================== */
.leaflet-container {
  background-color: #141414 !important;
  font-family: 'Outfit', sans-serif !important;
  outline: none;
}

/* Clean Native Dark Map Styling (No API Key, No Watermark, Razor-sharp) */
.leaflet-tile {
  filter: none !important;
}

/* Custom Marker Pins */
.custom-gym-pin {
  background: transparent !important;
  border: none !important;
}

.gym-pin-outer {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gym-pin-outer:hover,
.gym-pin-active {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.gym-pin-radar {
  position: absolute;
  inset: -5px;
  border-radius: 9999px;
  background-color: rgba(198, 214, 5, 0.45);
  animation: gym-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.gym-pin-circle {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background-color: #c6d605; /* Fondo amarillo primrose */
  border: 2px solid #141414; /* Borde oscuro para contraste nítido */
  box-shadow: 0 0 0 2.5px #c6d605, 0 4px 14px rgba(0, 0, 0, 0.85), 0 0 16px rgba(198, 214, 5, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #121212; /* Icono negro */
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}

.gym-pin-outer:hover .gym-pin-circle,
.gym-pin-active .gym-pin-circle {
  background-color: #d8e70a !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 25px rgba(198, 214, 5, 0.95), 0 8px 20px rgba(0, 0, 0, 0.95) !important;
}

.gym-pin-triangle {
  display: none; /* Icono circular limpio idéntico a la referencia */
}

/* Custom Leaflet Tooltips on Hover */
.gym-map-tooltip {
  background-color: #1e1e1e !important;
  color: #fdfef8 !important;
  border: 1px solid #c6d605 !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8) !important;
}

.gym-map-tooltip::before {
  border-top-color: #c6d605 !important;
}

.leaflet-popup-content-wrapper {
  background-color: #1e1e1e !important;
  color: #fdfef8 !important;
  border: 1px solid #383838 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.8) !important;
  padding: 0 !important;
  overflow: hidden;
}

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

.leaflet-popup-tip-container {
  overflow: hidden;
}

.leaflet-popup-tip {
  background-color: #1e1e1e !important;
  border: 1px solid #383838 !important;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 10px !important;
  right: 12px !important;
  color: #a5a5a5 !important;
  font-size: 18px !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background-color: rgba(40, 40, 40, 0.7) !important;
  transition: all 0.2s ease !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #fdfef8 !important;
  background-color: #c6d605 !important;
  color: #202020 !important;
}

/* Custom Zoom Control */
.leaflet-bar {
  border: 1px solid #333333 !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-bar a {
  background-color: #202020 !important;
  color: #c6d605 !important;
  border-bottom: 1px solid #333333 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

.leaflet-bar a:hover {
  background-color: #c6d605 !important;
  color: #202020 !important;
}

.leaflet-bar a:last-child {
  border-bottom: none !important;
}

/* Marker Glow & Radar Ping */
.gym-pin-pulse {
  animation: gym-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes gym-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
