/* ================================
   LOCATIONS PAGE STYLES
   ================================ */

/* Hero Section */
.hero-section {
  margin-top: 80px;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  flex: 1;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.3rem;
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.find-chapter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  border: 2px solid transparent;
}

.find-chapter-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
  border-color: #8b5cf6;
}

.find-chapter-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.find-chapter-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .find-chapter-btn {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
}

/* ================================
   INTERACTIVE MAP SECTION
   ================================ */

.map-section {
  padding: 5rem 2rem;
  background-color: #0f172a;
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #e2e8f0;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interactive-map {
  width: 100%;
  height: 600px;
  border-radius: 12px;
  border: 2px solid rgba(139, 92, 246, 0.3);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

.map-popup {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

.map-popup strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #8b5cf6;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.popup-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

/* Leaflet Custom Styles */
.leaflet-container {
  background-color: #0f172a;
  font-family: 'Inter', sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.leaflet-popup-tip {
  background-color: #ffffff;
}

.leaflet-control-zoom {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaflet-control-zoom a {
  background-color: rgba(139, 92, 246, 0.9);
  color: #ffffff;
  border: none;
  transition: background-color 0.3s ease;
}

.leaflet-control-zoom a:hover {
  background-color: #8b5cf6;
}

.leaflet-control-attribution {
  background-color: rgba(15, 23, 42, 0.8);
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .interactive-map {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .map-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .interactive-map {
    height: 400px;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .interactive-map {
    height: 350px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Locations Section */
.locations-section {
  padding: 5rem 2rem;
  background-color: #0f172a;
}

.locations-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: #e2e8f0;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.location-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s ease;
}

.location-card:hover {
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.location-card:hover::before {
  left: 100%;
}

.location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.location-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.location-type {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.location-description {
  font-size: 1rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.location-details p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.location-details a {
  color: #8b5cf6;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.location-details a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .locations-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .location-name {
    font-size: 1.2rem;
  }

  .location-description {
    font-size: 0.95rem;
  }
}

/* CTA Section */
.locations-cta-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.locations-cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.locations-cta-section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.locations-cta-section p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
  border-color: #8b5cf6;
}

@media (max-width: 768px) {
  .locations-cta-section {
    padding: 3rem 1rem;
  }

  .locations-cta-section h2 {
    font-size: 1.6rem;
  }

  .locations-cta-section p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
  }
}
