﻿:root {
  /* Palette: Deep Space & Neon Vibes */
  --bg-dark: #050505;
  --bg-card: #121212;
  --bg-card-hover: #1a1a1a;

  --primary: #7c3aed;
  /* Violeta eléctrico */
  --primary-glow: rgba(124, 58, 237, 0.5);
  --secondary: #06b6d4;
  /* Cyan neón */
  --secondary-glow: rgba(6, 182, 212, 0.5);
  --accent: #f43f5e;
  /* Rosa vibrante */

  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --text-dim: #525252;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  --glass-bg: rgba(18, 18, 18, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.15);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 50%, rgba(124, 58, 237, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(6, 182, 212, 0.08), transparent 25%);
  color: var(--text-main);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.6));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- Header & Nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  gap: 1rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all 0.25s ease;
  background: transparent;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.btn-icon:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-glow);
  white-space: nowrap;
  display: inline-block;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  border-color: rgba(168, 85, 247, 0.6);
}

/* --- Hero Section --- */
.hero-section {
  padding: 4rem 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* --- Search Bar --- */
.search-bar-container {
  margin-bottom: 3rem;
}

.search-bar {
  background: rgba(18, 18, 18, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  margin: 0 auto;
  transition: all 0.3s var(--ease-out);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.01);
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.search-icon {
  color: var(--text-muted);
  margin-right: 0.75rem;
}

.search-bar input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  width: 100%;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
  margin: 0 1rem;
}

.search-filters {
  display: flex;
  gap: 0.5rem;
}

.search-filters select,
.search-filters input[type="date"] {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.search-filters select:hover,
.search-filters input[type="date"]:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

/* --- Stats --- */
/* --- Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5rem;
  gap: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  transform: scale(1.05);
}

.stat-text {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider-vertical {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border-light), transparent);
  margin: 0 2rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.section-header {
  padding: 0 2rem;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  z-index: 10;
}

.card-image-container {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
}

.card-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 10;
}

.badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-fav {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-fav:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--accent);
  transform: scale(1.1);
}

.btn-fav.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text-main);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

.btn-card-action {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hover);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-card-action:hover {
  background: var(--primary);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.btn-secondary {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Map --- */
#map-view {
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.5rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

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

  .search-bar {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }

  .search-input-group {
    width: 100%;
    padding: 0;
  }

  .search-divider {
    display: none;
  }

  .search-filters {
    width: 100%;
    flex-direction: column;
  }

  .search-filters select,
  .search-filters input {
    width: 100%;
    background: var(--bg-card-hover);
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
 DATE PICKER STYLES
 ============================================ */

.datepicker-container {
  position: relative;
  width: 100%;
  z-index: 1000;
}

.datepicker-trigger {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 19, 27, 0.7);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  text-align: left;
}

.datepicker-trigger:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(16, 26, 37, 0.8);
  color: var(--text-main);
}

.datepicker-trigger.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  background: rgba(16, 26, 37, 0.98);
}

.datepicker-trigger.has-value {
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
}

.datepicker-trigger .chevron {
  margin-left: auto;
  opacity: 0.5;
}

.datepicker-calendar {
  position: fixed;
  top: auto;
  left: auto;
  width: 300px;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  padding: 16px;
  z-index: 10000;
  backdrop-filter: blur(16px);
  animation: slideDown 0.2s ease-out;
  overflow: auto;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.datepicker-header button {
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.datepicker-header button:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.current-month {
  font-weight: 700;
  color: var(--text-main);
}

.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.day:not(.empty):hover {
  background: var(--bg-card-hover);
}

.day.selected {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.day.today {
  border: 1px solid var(--primary);
}

.day.empty {
  cursor: default;
}

.datepicker-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.clear-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.clear-date:hover {
  color: var(--danger);
}

@media (max-width: 520px) {
  .datepicker-calendar {
    width: 100%;
    left: 0;
  }
}

/* ============================================
 EVENT DETAIL PAGE STYLES
 ============================================ */

#detail-container {
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Hero Section */
.event-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.event-hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.event-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 0.7) 100%);
  backdrop-filter: blur(2px);
}

.event-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  gap: 1.5rem;
}

.event-title-large {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: var(--text-main);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.event-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-meta-item svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* Main Grid Layout */
.event-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.event-main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s var(--ease-out);
}

.info-card:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: var(--radius-md);
  color: var(--secondary);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-content h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.info-content p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
  font-weight: 500;
}

/* Detail Sections */
.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.event-description {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  background: var(--bg-dark);
  overflow: hidden;
}

/* Organizer Card */
.organizer-card {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.organizer-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.organizer-details {
  flex: 1;
}

.organizer-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--text-main);
}

.organizer-details p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  color: var(--text-muted);
}

/* Sidebar */
.event-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s var(--ease-out);
}

.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
}

.action-card>div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.action-card-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  letter-spacing: -0.02em;
}

.action-card-price span {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.action-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-action {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.btn-action-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
  filter: brightness(1.05);
}

.btn-action-primary:active {
  transform: translateY(0);
}

.btn-action-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-light);
}

.btn-action-secondary:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-2px);
}

.btn-action-secondary:active {
  transform: translateY(0);
}

.btn-action svg {
  width: 18px;
  height: 18px;
}

/* Favorite Button */
.btn-favorite {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 20;
  font-size: 1.5rem;
}

.btn-favorite:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: var(--accent);
  transform: scale(1.1);
}

.btn-favorite.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

/* Error State */
.error {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--accent);
  text-align: center;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .event-sidebar {
    position: relative;
    top: 0;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  padding: 1.5rem;
}

.event-title-large {
  font-size: 1.75rem;
}

.event-hero-meta {
  gap: 1rem;
}

.hero-meta-item {
  font-size: 0.9rem;
}

.event-grid {
  padding: 0 1rem;
  gap: 2rem;
}

.event-main {
  gap: 1.5rem;
}

.detail-section,
.organizer-card,
.action-card {
  padding: 1.5rem;
}

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

#map {
  height: 300px;
}

.info-grid {
  grid-template-columns: 1fr;
}

.action-card-price {
  font-size: 1.5rem;
}
}

@media (max-width: 480px) {
  .event-hero {
    height: 200px;
    margin-bottom: 1.5rem;
  }

  .event-title-large {
    font-size: 1.3rem;
  }

  .event-hero-meta {
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .event-grid {
    padding: 0;
  }

  .action-card,
  .detail-section,
  .organizer-card {
    padding: 1rem;
  }

  .action-btn-group {
    gap: 0.5rem;
  }

  .btn-action {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================
 MODAL STYLES
 ============================================ */

.image-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.image-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.image-modal h2 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
}

.image-modal label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.image-modal .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
  transition: all 0.2s ease;
}

.image-modal .input:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.image-modal .input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.image-modal textarea.input {
  resize: vertical;
  min-height: 100px;
}

.image-modal .btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-main);
}

.image-modal .btn:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.image-modal .btn.primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.image-modal .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.image-modal .btn.primary:active {
  transform: translateY(0);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
 FOOTER STYLES
 ============================================ */

.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-social p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.social-links a {
  color: var(--text-muted);
  transition: all 0.25s ease;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.social-links a:hover {
  color: var(--primary);
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.social-links svg {
  width: 24px;
  height: 24px;
}