/**
 * Festival Hero Block Styles
 * Mobile-first responsive design with CSS Grid
 */

/* ==========================================================================
   Base Styles (Mobile First)
   ========================================================================== */

.festival-hero-section {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  overflow: hidden;
}

.festival-hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 400px;
  position: relative;
  align-items: center;
  /* Center content vertically for better overlay positioning */
}

.festival-hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  min-height: 50vh;
}

/* ==========================================================================
   Text Content Area - Overlay Design
   ========================================================================== */

.festival-hero-text-content {
  z-index: 2;
  padding: 2rem 1rem;
  /* All styling removed: background, border-radius, box-shadow, borders */
}

.festival-hero-header {
  margin-bottom: 1.5rem;
}

.festival-hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 1px 1px 2px rgba(0, 0, 0, 0.9);
  /* Enhanced text shadow for better readability on background */
}

.festival-hero-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff6b6b;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  /* Added text shadow for contrast */
}

.festival-hero-description {
  margin-bottom: 2rem;
}

.festival-hero-description p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  /* Changed to white text with shadow for overlay effect */
}

/* ==========================================================================
   CTA Buttons - Enhanced for Overlay Design
   ========================================================================== */

.festival-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.festival-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px; /* Accessibility: minimum touch target */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  /* Added shadow for better visibility on background */
}

.festival-hero-btn:hover,
.festival-hero-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  outline: none;
}

.festival-hero-btn:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

.btn-primary {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #c0392b;
  border-color: #c0392b;
  color: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow for overlay design */
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.9);
  color: #e74c3c;
  border-color: #e74c3c;
  /* Semi-transparent white background for better visibility */
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #e74c3c;
  color: white;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Interactive Map
   ========================================================================== */

.festival-hero-map-container {
  position: relative;
  z-index: 1;
}

.festival-interactive-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  /* Removed: border-radius, box-shadow */
}

.festival-map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.festival-map-hotspots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.festival-map-hotspot {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
  z-index: 10;
  transform: translate(-50%, -50%);
}

.hotspot-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.festival-map-hotspot:hover .hotspot-icon,
.festival-map-hotspot:focus .hotspot-icon {
  transform: scale(1.1);
  background-color: #c0392b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.festival-map-hotspot:focus {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
  border-radius: 50%;
}

.festival-map-hotspot.is-headquarters .hotspot-icon {
  background-color: #f39c12;
  width: 48px;
  height: 48px;
}

.festival-map-hotspot.is-headquarters:hover .hotspot-icon,
.festival-map-hotspot.is-headquarters:focus .hotspot-icon {
  background-color: #e67e22;
}

/* ==========================================================================
   Tooltips
   ========================================================================== */

.hotspot-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
}

.hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: white;
}

.festival-map-hotspot:hover .hotspot-tooltip,
.festival-map-hotspot:focus .hotspot-tooltip,
.hotspot-tooltip[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.tooltip-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.tooltip-description {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #666;
  margin: 0 0 0.75rem 0;
}

.tooltip-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #e74c3c;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tooltip-link:hover,
.tooltip-link:focus {
  color: #c0392b;
  text-decoration: underline;
}

/* ==========================================================================
   Tablet Styles (768px and up)
   ========================================================================== */

@media (min-width: 768px) {
  .festival-hero-section {
    min-height: 70vh;
    padding: 3rem 0;
  }

  .festival-hero-container {
    padding: 0 2rem;
  }

  .festival-hero-content.has-map {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .festival-hero-text-content {
    padding: 2.5rem 2rem;
    /* Adjusted padding for overlay design */
  }

  .festival-hero-title {
    font-size: 2.5rem;
  }

  .festival-hero-subtitle {
    font-size: 1.25rem;
  }

  .festival-hero-description p {
    font-size: 1.1rem;
  }

  .festival-hero-actions {
    flex-direction: row;
    gap: 1.5rem;
  }

  .festival-hero-btn {
    flex: 0 0 auto;
    min-width: 160px;
  }

  .festival-interactive-map {
    max-width: 100%;
  }

  .hotspot-tooltip {
    min-width: 240px;
    max-width: 320px;
  }
}

/* ==========================================================================
   Desktop Styles (1024px and up)
   ========================================================================== */

@media (min-width: 1024px) {
  .festival-hero-section {
    min-height: 80vh;
    padding: 4rem 0;
  }

  .festival-hero-content.has-map {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }

  .festival-hero-content.has-map.map-left {
    grid-template-columns: 1fr 2fr;
  }

  .festival-hero-content.has-map.map-left .festival-hero-text-content {
    order: 2;
  }

  .festival-hero-content.has-map.map-left .festival-hero-map-container {
    order: 1;
  }

  .festival-hero-text-content {
    padding: 3rem 2.5rem;
    /* Adjusted padding for overlay design */
  }

  .festival-hero-title {
    font-size: 3rem;
  }

  .festival-hero-subtitle {
    font-size: 1.375rem;
  }

  .festival-hero-description p {
    font-size: 1.125rem;
  }

  .festival-hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Large Desktop Styles (1200px and up)
   ========================================================================== */

@media (min-width: 1200px) {
  .festival-hero-container {
    padding: 0 3rem;
  }

  .festival-hero-title {
    font-size: 3.5rem;
  }

  .festival-hero-content.has-map {
    gap: 5rem;
  }
}

/* ==========================================================================
   High DPI Displays
   ========================================================================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hotspot-icon {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .festival-hero-btn,
  .hotspot-icon,
  .hotspot-tooltip {
    transition: none;
  }

  .festival-hero-btn:hover,
  .festival-hero-btn:focus {
    transform: none;
  }

  .festival-map-hotspot:hover .hotspot-icon,
  .festival-map-hotspot:focus .hotspot-icon {
    transform: none;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .festival-hero-section {
    background: white !important;
    color: black !important;
    min-height: auto;
    padding: 1rem 0;
  }

  .festival-hero-text-content {
    background: white !important;
    box-shadow: none !important;
    padding: 1rem !important;
  }

  .festival-hero-map-container {
    display: none;
  }

  .festival-hero-content.has-map {
    grid-template-columns: 1fr;
  }

  .festival-hero-btn {
    display: none;
  }
}
