/* Plaza de los Recuerdos - Festival Theme Stylesheet */
/* Día de los Muertos 2025 - Old Town Albuquerque */

/* ============================================
   CUSTOM PROPERTIES & VARIABLES
   ============================================ */
:root {
  --plaza-navy: #2B2952;
  --plaza-gold: #D4A574;
  --plaza-pink: #E91E63;
  --plaza-orange: #E8562A;
  --plaza-cream: #F5E6D3;
  --plaza-white: #FFFFFF;
  --plaza-black: #000000;
  
  --shadow-sm: 2px 2px 0 rgba(0,0,0,0.2);
  --shadow-md: 4px 4px 0 rgba(0,0,0,0.2);
  --shadow-lg: 6px 6px 0 rgba(0,0,0,0.3);
  --shadow-xl: 8px 8px 0 rgba(0,0,0,0.3);
  --shadow-pink: 6px 6px 0 var(--plaza-pink);
  --shadow-gold: 6px 6px 0 var(--plaza-gold);
  
  --transition: all 0.3s ease;
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--plaza-cream);
  color: var(--plaza-navy);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.serif-accent {
  font-family: 'Georgia', serif;
  font-style: italic;
}

/* ============================================
   HEADER SECTION
   ============================================ */

/* SIMPLIFIED HEADER - Consistent with design system */
.festival-header {
  background: var(--plaza-navy);
  padding: 30px 20px;  /* Reduced from 60px top */
  text-align: center;
  border-bottom: 4px solid var(--plaza-gold);  /* Matches section headers */
  margin-bottom: 40px;
}

.header-logo {
  max-width: 180px;  /* Reduced from 250px */
  height: auto;
  margin: 0 auto 15px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));  /* Subtler shadow */
}

.logo-title {
  font-size: clamp(36px, 8vw, 72px);  /* Reduced from 48px-96px */
  color: var(--plaza-gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);  /* Simplified shadow */
  margin: 0;
  /* Animation removed for consistency */
}

/* ORIGINAL HEADER STYLES - Commented out for easy revert
.festival-header {
  background: var(--plaza-navy);
  padding: 60px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 40px;
}

.festival-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(212, 165, 116, 0.05) 10px,
      rgba(212, 165, 116, 0.05) 20px
    );
  pointer-events: none;
}

.header-logo {
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.logo-title {
  font-size: clamp(48px, 10vw, 96px);
  color: var(--plaza-gold);
  text-shadow: 
    3px 3px 0 rgba(0,0,0,0.5),
    6px 6px 20px rgba(212, 165, 116, 0.3);
  margin: 0;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.1) drop-shadow(0 0 20px rgba(212, 165, 116, 0.5)); }
}
*/

.subtitle {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--plaza-pink);
  font-size: clamp(20px, 5vw, 32px);
  margin: 10px 0;
  text-transform: none;
  letter-spacing: 1px;
}

.event-dates {
  display: inline-block;
  background: var(--plaza-orange);
  color: white;
  padding: 12px 40px;
  margin-top: 20px;
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--plaza-navy);
  position: relative;
  transition: var(--transition);
}

.event-dates:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.3);
}

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--plaza-gold);
  border: 3px solid var(--plaza-navy);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-pink);
  transition: var(--transition);
}

.language-toggle:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--plaza-pink);
}

.lang-btn {
  padding: 12px 24px;
  background: transparent;
  color: var(--plaza-navy);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(43, 41, 82, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  background: var(--plaza-cream);
  border: 3px solid var(--plaza-orange);
  border-radius: 15px;
  padding: 35px 40px;
  margin: 40px auto 30px;
  max-width: 900px;
  box-shadow: var(--shadow-gold);
  text-align: center;
}

.hero-text {
  color: var(--plaza-navy);
  font-size: 21px;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
  font-family: 'Georgia', 'Times New Roman', serif;
}

.hero-text strong {
  font-weight: 700;
  color: var(--plaza-orange);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* ============================================
   INSTRUCTIONS CARD
   ============================================ */
.instructions-card {
  background: var(--plaza-cream);
  border: 4px solid var(--plaza-navy);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-pink);
  position: relative;
  transition: var(--transition);
}

.instructions-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--plaza-pink);
}


.instructions-title {
  color: var(--plaza-navy);
  font-size: 36px;
  border-bottom: 4px solid var(--plaza-gold);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.instruction-steps {
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 15px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--plaza-orange);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.step-text {
  font-size: 19px;
  color: var(--plaza-navy);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================
   AVAILABILITY SUMMARY
   ============================================ */
.availability-card {
  background: white;
  border: 4px solid var(--plaza-navy);
  border-radius: 0;
  padding: 30px;
  margin: 30px auto;
  max-width: 900px;
  box-shadow: var(--shadow-gold);
}

.first-come-banner {
  background: var(--plaza-orange);
  color: white;
  text-align: center;
  padding: 12px 20px;
  margin: -30px -30px 30px -30px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  /* Removed animation for better UX */
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.availability-item {
  padding: 20px;
  background: var(--plaza-cream);
  border: 3px solid var(--plaza-gold);
  position: relative;
  transition: var(--transition);
}

.availability-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.availability-number {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
}

.availability-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.availability-item:nth-child(1) .availability-number {
  color: var(--plaza-pink);
}

.availability-item:nth-child(2) .availability-number {
  color: var(--plaza-gold);
}

.availability-item:nth-child(3) .availability-number {
  color: var(--plaza-navy);
}

/* ============================================
   WAITLIST SECTION
   ============================================ */
.waitlist-card {
  background: linear-gradient(135deg, var(--plaza-pink) 0%, #ff4081 100%);
  border: 6px solid var(--plaza-navy);
  border-radius: 0;
  padding: 0;
  margin: 40px auto;
  max-width: 950px;
  box-shadow: 10px 10px 0 var(--plaza-gold);
  overflow: hidden;
}

.waitlist-header {
  background: var(--plaza-navy);
  padding: 25px;
  text-align: center;
}

.waitlist-title {
  color: var(--plaza-gold);
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}

.waitlist-content {
  padding: 40px;
  color: white;
}

.waitlist-main-text {
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 30px;
}

.waitlist-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.waitlist-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.waitlist-info-icon {
  font-size: 28px;
}

.waitlist-info-text {
  font-size: 18px;
  line-height: 1.4;
}

.waitlist-stats {
  text-align: center;
  margin: 25px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.waitlist-count {
  font-size: 22px;
  font-weight: bold;
  color: var(--plaza-gold);
}

.join-waitlist-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 30px auto 0;
  padding: 20px 40px;
  background: var(--plaza-gold);
  color: var(--plaza-navy);
  border: 4px solid var(--plaza-navy);
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.join-waitlist-btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--plaza-navy);
  background: #FFD700;
}

.join-waitlist-btn:active {
  transform: translate(0, 0);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   MAP CONTAINER
   ============================================ */
.map-section {
  background: white;
  border: 6px solid var(--plaza-navy);
  border-radius: 0;
  padding: 0;
  margin: 40px auto;
  max-width: 950px;
  box-shadow: 10px 10px 0 var(--plaza-gold);
  overflow: hidden;
  position: relative;
}

.map-wrapper {
  position: relative;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 41, 82, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.map-overlay-content {
  background: var(--plaza-gold);
  color: var(--plaza-navy);
  padding: 20px 40px;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 4px solid white;
  box-shadow: var(--shadow-xl);
}

.map-title-bar {
  background: var(--plaza-navy);
  color: var(--plaza-gold);
  padding: 20px;
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
}

.map-wrapper {
  padding: 30px;
  background: white;
  position: relative;
}

.map-legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 25px;
  background: var(--plaza-cream);
  border-top: 4px solid var(--plaza-gold);
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.legend-color {
  width: 30px;
  height: 30px;
  border: 3px solid var(--plaza-navy);
  box-shadow: var(--shadow-sm);
}

/* Keep original map spot colors */
.map-container {
  touch-action: none;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  min-height: 500px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Map zoom controls */
.map-zoom-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: var(--plaza-navy);
  border: 2px solid var(--plaza-gold);
  border-radius: 8px;
  color: var(--plaza-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.zoom-btn:hover:not(:disabled) {
  background: var(--plaza-gold);
  color: var(--plaza-navy);
  transform: scale(1.1);
}

.zoom-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.zoom-btn svg {
  width: 20px;
  height: 20px;
}

/* Map transform wrapper */
.map-transform-wrapper {
  cursor: grab;
}

.map-transform-wrapper.dragging {
  cursor: grabbing;
}

/* Preserve existing spot styles */
.spot {
  transition: all 0.2s ease;
  cursor: pointer;
}

.spot-group {
  position: relative;
}

.spot-group:hover .spot.available {
  filter: brightness(1.3);
  stroke: #fff;
  stroke-width: 2;
}

/* Spot hover tooltip */
.spot-tooltip {
  position: fixed !important;
  background: var(--plaza-navy);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--plaza-gold);
}

.spot-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--plaza-gold);
}

.spot.available {
  fill: #df1c62;
}

.spot.reserved {
  fill: #d4a574;
  opacity: 0.7;
  cursor: not-allowed;
}

.spot.held-for-waitlist {
  fill: #9CA3AF;
  opacity: 0.8;
  cursor: not-allowed;
  stroke: #6B7280;
  stroke-width: 1;
  stroke-dasharray: 3,2;
}

/* Waitlist mode - held spots become selectable with marigold yellow */
body.waitlist-mode .spot.held-for-waitlist,
body.waitlist-mode .spot.held-for-waitlist.available {
  fill: #F59E0B;
  opacity: 1;
  cursor: pointer;
  stroke: #D97706;
  stroke-width: 2;
  stroke-dasharray: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    fill: #F59E0B; /* Marigold yellow */
  }
  50% { 
    fill: #df1c62; /* Pink */
  }
}

/* Waitlist info banner */
.waitlist-info-banner {
  background: #E8F4FD;
  border: 1px solid #1976D2;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.waitlist-banner-title {
  color: #1565C0;
  font-weight: 600;
  margin: 0 0 4px 0;
  font-size: 15px;
}

.waitlist-banner-note {
  color: #0D47A1;
  font-size: 13px;
  display: block;
}

/* Readonly input field styling */
input[readonly] {
  background-color: #F5F5F5;
  cursor: not-allowed;
  opacity: 0.7;
}

input[readonly]:focus {
  outline: none;
  border-color: #ccc;
}

.spot.selected {
  fill: #2B2952;
  stroke: #D4A574;
  stroke-width: 3;
  animation: spot-glow 1.5s ease-in-out infinite;
}

@keyframes spot-glow {
  0%, 100% { 
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 0.8));
  }
  50% { 
    filter: drop-shadow(0 0 16px rgba(212, 165, 116, 1));
  }
}

/* ============================================
   SELECTED SPOT DISPLAY
   ============================================ */
.selected-spot-card {
  background: var(--plaza-navy);
  color: white;
  padding: 30px;
  margin: 30px auto;
  max-width: 600px;
  border: 4px solid var(--plaza-gold);
  box-shadow: var(--shadow-pink);
  text-align: center;
  display: none;
}

.selected-spot-card.active {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.selected-spot-title {
  font-size: 24px;
  margin-bottom: 10px;
}

.selected-spot-number {
  color: var(--plaza-gold);
  font-size: 64px;
  font-weight: bold;
  text-shadow: var(--shadow-lg);
  margin: 20px 0;
}

.reserve-btn {
  background: var(--plaza-gold);
  color: var(--plaza-navy);
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 4px solid var(--plaza-navy);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 20px;
}

.reserve-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   GUIDELINES SECTION
   ============================================ */
.guidelines-section {
  background: white;
  border: 4px solid var(--plaza-navy);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-gold);
  position: relative;
}


.guidelines-title {
  color: var(--plaza-navy);
  font-size: 32px;
  border-bottom: 4px solid var(--plaza-gold);
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.guidelines-list {
  list-style: none;
  padding: 0;
}

.guideline-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  background: var(--plaza-cream);
  border-left: 4px solid var(--plaza-orange);
  transition: var(--transition);
}

.guideline-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.guideline-icon {
  color: var(--plaza-gold);
  font-size: 24px;
  margin-right: 15px;
  flex-shrink: 0;
}

.guideline-text {
  font-size: 19px;
  color: var(--plaza-navy);
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================
   DISCLAIMER SECTION
   ============================================ */
.disclaimer-card {
  background: #FEF3C7;
  border: 4px solid var(--plaza-orange);
  padding: 30px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-md);
  position: relative;
}


.disclaimer-title {
  color: var(--plaza-orange);
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.disclaimer-text {
  color: #78350F;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================
   FOOTER SECTION
   ============================================ */
.festival-footer {
  background: var(--plaza-gold);
  padding: 60px 20px;
  text-align: center;
  margin-top: 80px;
  position: relative;
}

.festival-footer::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: 
    repeating-linear-gradient(
      -45deg,
      var(--plaza-gold),
      var(--plaza-gold) 10px,
      transparent 10px,
      transparent 20px
    );
}

.contact-box {
  display: inline-block;
  background: var(--plaza-navy);
  color: var(--plaza-gold);
  padding: 30px 50px;
  font-size: 18px;
  box-shadow: var(--shadow-pink);
  position: relative;
}

.contact-title {
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-email {
  color: var(--plaza-gold);
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: var(--transition);
}

.contact-email:hover {
  color: white;
  text-shadow: 0 0 10px rgba(212, 165, 116, 0.5);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(43, 41, 82, 0.95);
  z-index: 2000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
}

.modal.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--plaza-cream);
  border: 6px solid var(--plaza-navy);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 10px 10px 0 var(--plaza-pink);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: var(--plaza-navy);
  color: white;
  padding: 20px;
  position: relative;
  border-bottom: 4px solid var(--plaza-pink);
}

/* Modal close button */
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--plaza-navy);
  border: 3px solid var(--plaza-gold);
  color: var(--plaza-gold);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 0;
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  transform: scale(1.1);
  box-shadow: 3px 3px 0 var(--plaza-pink);
  background: var(--plaza-gold);
  color: var(--plaza-navy);
}

.modal-title {
  font-size: 32px;
  margin: 0;
  margin-right: 50px; /* Space for close button */
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.modal-spot-number {
  color: var(--plaza-gold);
  font-size: 48px;
  text-shadow: 2px 2px 0 var(--plaza-pink);
}

.modal-body {
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* Error alert in modal */
.error-alert {
  background: var(--plaza-pink);
  color: white;
  padding: 15px 45px 15px 20px;
  margin: 0 0 20px 0;
  border-radius: 8px;
  border: 3px solid darkred;
  font-weight: bold;
  animation: shake 0.5s;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.error-alert .error-text {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.error-alert .error-close {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s;
  padding: 0 5px;
  font-weight: bold;
}

.error-alert .error-close:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.spot-display {
  background: var(--plaza-navy);
  color: var(--plaza-gold);
  font-size: 64px;
  font-weight: bold;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: inset 0 0 0 4px var(--plaza-pink);
  text-shadow: var(--shadow-lg);
}

.form-section {
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  border: 2px solid var(--plaza-navy);
}

.form-section-title {
  color: var(--plaza-orange);
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--plaza-gold);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-weight: bold;
  color: var(--plaza-navy);
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--plaza-navy);
  background: white;
  font-size: 16px;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--plaza-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.checkbox-input {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--plaza-navy);
  cursor: pointer;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 4px solid var(--plaza-navy);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--plaza-gold);
  color: var(--plaza-navy);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #E5E7EB;
  color: var(--plaza-navy);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: #D1D5DB;
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   SUCCESS MODAL
   ============================================ */
.success-modal .modal-header {
  background: #10B981;
  color: white;
}

.success-content {
  text-align: center;
  padding: 40px;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 20px;
}

.success-message {
  font-size: 24px;
  color: var(--plaza-navy);
  margin-bottom: 15px;
}

.success-spot {
  font-size: 48px;
  color: var(--plaza-gold);
  font-weight: bold;
  margin: 20px 0;
  text-shadow: var(--shadow-sm);
}

.success-details {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
  border: 4px solid rgba(212, 165, 116, 0.3);
  border-top: 4px solid var(--plaza-gold);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: 40px;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decorative-divider {
  text-align: center;
  font-size: 28px;
  margin: 40px 0;
  color: var(--plaza-gold);
  letter-spacing: 20px;
  opacity: 0.6;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .festival-header {
    padding: 20px 15px;  /* Even more compact on tablet */
  }
  
  .header-logo {
    max-width: 150px;  /* Smaller on tablet */
  }
  
  .logo-title {
    /* clamp handles this automatically, no override needed */
  }
  
  .subtitle {
    font-size: 18px;
  }
  
  .event-dates {
    padding: 10px 25px;
    font-size: 16px;
  }
  
  .hero-section {
    margin: 20px 10px 15px;
    padding: 25px 20px;
  }
  
  .hero-text {
    font-size: 19px;
    line-height: 1.7;
  }
  
  .instructions-card,
  .guidelines-section,
  .disclaimer-card,
  .availability-card {
    margin: 20px 10px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-width: 3px;
  }
  
  .instructions-title,
  .guidelines-title {
    font-size: 28px;
  }
  
  .step {
    gap: 12px;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .step-text {
    font-size: 17px;
  }
  
  .availability-grid {
    gap: 20px;
  }
  
  .availability-item {
    padding: 15px;
  }
  
  .availability-number {
    font-size: 36px;
  }
  
  /* Mobile map help section removed - instructions now in map legend */
  
  .map-section {
    margin: 20px 10px;
    border-width: 4px;
    box-shadow: 6px 6px 0 var(--plaza-gold);
  }
  
  .waitlist-card {
    margin: 20px 10px;
    border-width: 4px;
    box-shadow: 6px 6px 0 var(--plaza-gold);
  }
  
  .waitlist-title {
    font-size: 28px;
  }
  
  .waitlist-content {
    padding: 25px;
  }
  
  .waitlist-main-text {
    font-size: 18px;
  }
  
  .waitlist-info {
    padding: 20px;
  }
  
  .waitlist-info-text {
    font-size: 16px;
  }
  
  .join-waitlist-btn {
    font-size: 20px;
    padding: 15px 30px;
  }
  
  .map-overlay-content {
    font-size: 18px;
    padding: 15px 25px;
  }
  
  .map-title-bar {
    font-size: 20px;
    padding: 15px;
  }
  
  .map-wrapper {
    padding: 20px;
  }
  
  .map-legend {
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
  }
  
  .legend-item {
    font-size: 13px;
  }
  
  .selected-spot-card {
    padding: 20px;
    margin: 20px 10px;
  }
  
  .selected-spot-number {
    font-size: 48px;
  }
  
  .reserve-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  
  .guideline-item {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .guideline-icon {
    font-size: 20px;
    margin-right: 12px;
  }
  
  .guideline-text {
    font-size: 17px;
  }
  
  .disclaimer-card {
    padding: 20px;
  }
  
  .disclaimer-title {
    font-size: 20px;
  }
  
  .disclaimer-text {
    font-size: 14px;
  }
  
  .language-toggle {
    top: 10px;
    right: 10px;
    box-shadow: var(--shadow-md);
  }
  
  .lang-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    border-width: 4px;
    box-shadow: var(--shadow-lg);
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-title {
    font-size: 24px;
    margin-right: 45px; /* Space for close button */
  }
  
  .modal-spot-number {
    font-size: 36px;
  }
  
  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 24px;
    top: 12px;
    right: 12px;
  }
  
  .modal-body {
    padding: 25px;
  }
  
  .spot-display {
    font-size: 48px;
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .form-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .form-section-title {
    font-size: 18px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-label {
    font-size: 13px;
  }
  
  .form-input,
  .form-textarea {
    padding: 10px;
    font-size: 15px;
  }
  
  .modal-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .decorative-divider {
    font-size: 20px;
    margin: 25px 0;
    letter-spacing: 10px;
  }
  
  .festival-footer {
    padding: 40px 15px;
  }
  
  .contact-box {
    padding: 20px 25px;
    margin: 0 10px;
  }
  
  .contact-title {
    font-size: 20px;
  }
  
  .contact-email {
    font-size: 16px;
  }
  
  /* Error alert mobile styles for tablets */
  .error-alert {
    padding: 12px 15px;
    margin: 0 0 15px 0;
    animation: shake 0.3s;
  }
  
  .error-alert .error-text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .header-logo {
    max-width: 120px;  /* Even smaller on mobile */
    margin-bottom: 10px;
  }
  
  .logo-title {
    /* clamp handles this automatically */
  }
  
  /* Important Dates on small mobile */
  .dates-section {
    padding: 15px;
    margin: 15px auto;
    border-width: 3px;
  }
  
  .dates-title {
    font-size: 24px;
  }
  
  .dates-intro {
    font-size: 15px;
    padding: 0 5px;
  }
  
  .date-block {
    padding: 12px;
    border-left-width: 4px;
  }
  
  .date-name {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .date-time {
    font-size: 15px;
  }
  
  .date-description {
    font-size: 13px;
    margin-top: 8px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .event-dates {
    padding: 8px 20px;
    font-size: 13px;
    letter-spacing: 1px;
  }
  
  .hero-section {
    margin: 10px 2px; /* Reduced side margins */
    padding: 15px 10px; /* Reduced horizontal padding */
  }
  
  .hero-text {
    font-size: 17px;
    line-height: 1.6;
  }
  
  .instructions-card,
  .guidelines-section,
  .disclaimer-card,
  .availability-card {
    margin: 10px 2px; /* Reduced side margins from 5px to 2px */
    padding: 10px; /* Reduced padding from 15px to 10px */
  }
  
  .instructions-title,
  .guidelines-title {
    font-size: 22px;
    text-align: center; /* Center headers on mobile */
  }
  
  .step-number {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .step-text {
    font-size: 16px;
  }
  
  .availability-number {
    font-size: 32px;
  }
  
  .availability-label {
    font-size: 12px;
  }
  
  /* Fix first-come banner extending beyond container on mobile */
  .first-come-banner {
    margin: -10px -10px 15px -10px; /* Match the reduced mobile padding */
    font-size: 16px;
    padding: 10px 15px;
  }
  
  .map-section {
    margin: 10px 2px; /* Reduced side margins */
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--plaza-gold);
  }
  
  .map-title-bar {
    font-size: 18px;
    padding: 12px;
    letter-spacing: 1px;
  }
  
  .map-wrapper {
    padding: 10px; /* Reduced padding */
  }
  
  .map-container {
    min-height: 400px;
  }
  
  .map-zoom-controls {
    bottom: 10px;
    right: 10px;
    gap: 6px;
  }
  
  .zoom-btn {
    width: 35px;
    height: 35px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  }
  
  .zoom-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .legend-color {
    width: 24px;
    height: 24px;
  }
  
  .legend-item {
    font-size: 12px;
    gap: 8px;
  }
  
  .selected-spot-card {
    padding: 10px; /* Reduced padding */
    margin: 10px 2px; /* Reduced side margins */
  }
  
  .selected-spot-number {
    font-size: 40px;
  }
  
  .reserve-btn {
    padding: 10px 20px;
    font-size: 14px;
    letter-spacing: 1px;
  }
  
  .guideline-item {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .guideline-icon {
    font-size: 18px;
    margin-right: 10px;
  }
  
  .guideline-text {
    font-size: 16px;
  }
  
  .disclaimer-title {
    font-size: 18px;
    text-align: center; /* Center header on mobile */
  }
  
  .disclaimer-text {
    font-size: 13px;
    line-height: 1.5;
  }
  
  /* Further reduce dates section padding on small screens */
  .dates-section {
    padding: 10px 5px;
    margin: 10px auto;
  }
  
  .dates-intro {
    padding: 0 5px;
    margin-bottom: 15px;
  }
  
  .decorative-divider {
    font-size: 16px;
    margin: 20px 0;
    letter-spacing: 5px;
  }
  
  .spot-display {
    font-size: 36px;
    padding: 15px;
  }
  
  .modal-spot-number {
    font-size: 28px;
  }
  
  .form-section {
    padding: 15px;
    margin-bottom: 15px;
    border-width: 2px;
  }
  
  .form-section-title {
    font-size: 16px;
    padding-bottom: 8px;
    margin-bottom: 15px;
  }
  
  .form-input,
  .form-textarea {
    padding: 8px;
    font-size: 14px;
  }
  
  .checkbox-input {
    width: 18px;
    height: 18px;
  }
  
  .checkbox-label {
    font-size: 13px;
  }
  
  .btn {
    padding: 10px 15px;
    font-size: 13px;
    letter-spacing: 1px;
    border-width: 3px;
  }
  
  .festival-footer::before {
    height: 40px;
  }
  
  .contact-box {
    padding: 15px 20px;
  }
  
  .contact-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .contact-email {
    font-size: 14px;
  }
  
  /* Error alert mobile styles for phones */
  .error-alert {
    padding: 10px 12px;
    margin: -10px -10px 15px -10px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    animation: none;
    font-size: 13px;
  }
  
  .error-alert .error-text {
    font-size: 13px;
    line-height: 1.3;
  }
  
  .modal-body {
    padding: 15px 10px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .language-toggle,
  .modal,
  .reserve-btn {
    display: none !important;
  }
  
  body {
    background: white;
  }
  
  .festival-header,
  .festival-footer {
    background: white !important;
    color: black !important;
  }
  
  .logo-title {
    color: black !important;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* Important Dates Section */
.dates-section {
  background: var(--plaza-cream);
  border: 4px solid var(--plaza-navy);
  padding: 40px;
  margin: 40px auto;
  max-width: 900px;
  box-shadow: var(--shadow-pink);
  position: relative;
  transition: var(--transition);
}

.dates-section:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--plaza-pink);
}

.dates-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--plaza-navy);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.dates-title::after {
  content: '🏵️ ❀ 🌺 ❀ 🏵️';
  display: block;
  font-size: 20px;
  margin-top: 10px;
}

.dates-intro {
  font-family: 'Georgia', serif;
  font-size: 28px;
  font-weight: bold;
  color: var(--plaza-navy);
  text-align: center;
  margin: 20px auto 40px;
  max-width: 800px;
  line-height: 1.4;
}

.dates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.date-block {
  padding: 20px;
  border-left: 6px solid var(--plaza-navy);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.date-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Rotate through festival colors for date blocks */
.date-block:nth-child(4n+1) {
  background: var(--plaza-orange);
  color: white;
}

.date-block:nth-child(4n+2) {
  background: var(--plaza-pink);
  color: white;
}

.date-block:nth-child(4n+3) {
  background: var(--plaza-gold);
  color: var(--plaza-navy);
}

.date-block:nth-child(4n+4) {
  background: var(--plaza-navy);
  color: white;
}

.date-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: bold;
}

.date-time {
  font-family: 'Arial', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.date-block:nth-child(4n+3) .date-time {
  border-bottom-color: rgba(43, 41, 82, 0.3);
}

.date-description {
  font-family: 'Georgia', serif;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
  font-style: italic;
}

/* Loading state for dates */
.dates-loading {
  text-align: center;
  padding: 40px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dates-section {
    padding: 15px;
    margin: 15px auto;
  }
  
  .dates-container {
    grid-template-columns: 1fr;
    gap: 10px; /* Reduced gap on mobile */
  }
  
  .dates-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center; /* Already centered but ensure consistency */
  }
  
  .dates-intro {
    font-size: 16px;
    padding: 0 10px;
    margin-bottom: 20px;
  }
  
  .date-block {
    padding: 15px;
    margin-bottom: 0; /* Remove extra margin, gap handles spacing */
  }
  
  .date-name {
    font-size: 18px;
  }
  
  .date-time {
    font-size: 16px;
  }
  
  .date-description {
    font-size: 14px;
    line-height: 1.4;
  }
}

