/* =======================================
   1. CSS VARIABLES & TOKENS
   ======================================= */
:root {
  /* Colors carefully matched to the provided mockup */
  --bg-dark-burgundy: #301726; /* Header, Credits */
  --bg-dark-gray: #3F3C40;     /* Hero */
  --bg-light-purple: #A68399;  /* Video Section */
  --bg-yellow: #EAB91B;        /* Map, Footer */

  --text-primary: #FFFFFF;
  --text-secondary: #D1C5CD;
  --text-yellow: #EAB91B;
  --text-dark: #3F3C40;

  --btn-yellow-bg: #EAB91B;
  --btn-yellow-text: #301726;
  --btn-dark-bg: #401B2E;      /* Used for "Completar Formulario" inside Map section */
  --btn-dark-text: #EAB91B;

  --font-primary: 'Poiret One', sans-serif;
  
  --spacing-container: 2rem;
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark-burgundy);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.02em;
}

/* Poiret One is a single-weight font — apply faux-bold via text-shadow for paragraphs */
p, li, label, span, .form-group label {
  -webkit-text-stroke: 0.2px currentColor;
  font-size: 1.05rem;
}

/* Sections with light/yellow background need stronger text for readability */
.map-section p,
.map-section li,
.section-container p,
.credits-grid p {
  -webkit-text-stroke: 0.4px currentColor;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6, 
.hero-title, .hero-slide-title, .section-title {
  -webkit-text-stroke: 0.5px currentColor;
  letter-spacing: 0.04em;
}

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

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

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

.section-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem var(--spacing-container);
}

/* =======================================
   3. ICONS
   ======================================= */
.icon {
  font-size: 1.1rem;
}

.icon-menu {
  font-size: 1.5rem;
}

.credit-icon-img {
  font-size: 2rem;
  color: var(--text-yellow);
}

.social-icon-img {
  font-size: 1.8rem;
  color: var(--text-dark);
}

/* =======================================
   4. HEADER
   ======================================= */
.header {
  background-color: var(--bg-dark-burgundy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-logo {
  height: 60px; /* Adjust according to actual logo */
  width: auto;
}

.nav {
  flex-grow: 1;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.nav-list a {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
  transition: all 0.2s ease;
  padding: 0.4rem 0;
}

.nav-list a:hover {
  opacity: 1;
  color: var(--text-yellow);
}

.nav-list a.active {
  opacity: 1;
  font-weight: 700;
  position: relative;
  border-bottom: 2px solid var(--text-primary);
}

/* Language Toggle Button */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background-color: var(--btn-yellow-bg);
  color: var(--btn-yellow-text);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.menu-toggle {
  display: none;
}

/* =======================================
   5. HERO SECTION
   ======================================= */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--bg-dark-gray);
}

.carousel-title-overlay {
  position: absolute;
  top: 4rem;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin: 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6rem 4rem; /* Balanced padding now that title is gone */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Dark overlay for text readability */
.carousel-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

/* Specific backgrounds for each slide */
.slide-1 { background-image: url('assets/images/hero-bg.png'); }
.slide-2 { background-image: url('assets/images/hero-bg2.png'); }
.slide-3 { background-image: url('assets/images/hero-bg3.png'); }
.slide-4 { background-image: url('assets/images/hero-bg4.png'); }

.hero-text-container {
  max-width: 1000px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-slide-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  text-align: center; /* In a carousel slider, center text often looks better, or left */
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-button:hover {
  background: rgba(0,0,0,0.6);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background-color: white;
}

/* --- Carousel Mobile Responsiveness --- */
@media (max-width: 768px) {
  .carousel-title-overlay {
    top: 3rem;
  }
  
  .hero-title {
    font-size: 1.4rem;
  }
  
  .hero-slide-title {
    font-size: 1.6rem;
  }
  
  .carousel-slide {
    padding: 6rem 1.5rem; /* Balanced mobile padding */
  }
  
  .hero-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .carousel-button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .carousel-button.prev {
    left: 10px;
  }
  
  .carousel-button.next {
    right: 10px;
  }
}

/* =======================================
   6. VIDEO SECTION
   ======================================= */
.video-section {
  background-color: var(--bg-light-purple);
  color: var(--text-dark);
}

.video-header {
  margin-bottom: 2rem;
}

.video-header .text-yellow {
  color: var(--text-yellow);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.video-header .subtitle {
  color: var(--text-dark);
  opacity: 0.8;
  font-size: 1rem;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #E2E2E2;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.play-button-overlay {
  position: absolute;
  z-index: 2;
  font-size: 4rem;
  color: white;
  background: rgba(234, 185, 27, 0.8); /* var(--text-yellow) with opacity */
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-placeholder:hover .play-button-overlay {
  transform: scale(1.1);
  background: rgba(234, 185, 27, 1);
}

.video-placeholder.hidden {
  display: none;
}

#youtube-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =======================================
   7. MAP SECTION
   ======================================= */
.map-section {
  background-color: var(--bg-yellow);
  color: var(--text-dark);
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.map-col {
  width: 100%;
  display: flex;
}

/* CRITICAL: Empty Map Container prepared for JS Injection */
.map-container {
  width: 100%;
  height: 450px;
  background-color: #E5E3DF;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
}

.map-content-col h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.map-content-col h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.description-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cta-button {
  background-color: var(--btn-dark-bg);
  color: var(--btn-dark-text);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* =======================================
   8. CREDITS SECTION
   ======================================= */
.credits-section {
  background-color: var(--bg-dark-burgundy);
}

.credits-header {
  margin-bottom: 3rem;
}

.credits-header .text-yellow {
  color: var(--text-yellow);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.credits-header .subtitle {
  color: var(--text-primary);
  opacity: 0.7;
}

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

.credit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.credit-icon {
  margin-top: -4px; /* Align icon better with text */
}

.credit-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.credit-content p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* =======================================
   9. FOOTER
   ======================================= */
.footer {
  background-color: var(--bg-yellow);
  padding: 2rem var(--spacing-container);
  color: var(--text-dark);
}

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 80px; /* Adjust according to actual logo */
  width: auto;
}

.social-link {
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.footer-partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-partner-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-partner-logo:hover {
  opacity: 1;
}

/* =======================================
   10. RESPONSIVE QUERIES
   ======================================= */

@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 400px;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-dark-burgundy);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 10px rgba(0,0,0,0.2);
  }

  .nav.mobile-active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block; /* Show hamburger */
  }
}

@media (max-width: 768px) {
  .credits-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  

  .section-container {
    padding: 3rem 1.5rem;
  }
}

/* =======================================
   11. MODAL (FORM)
   ======================================= */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-dark-gray);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.modal-close:hover {
  color: var(--text-yellow);
}

.modal-content h2 {
  color: var(--text-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(234, 185, 27, 0.2);
  background: rgba(0,0,0,0.25);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-yellow);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 10px rgba(234, 185, 27, 0.2);
}

.submit-button {
  background-color: var(--btn-yellow-bg);
  color: var(--btn-yellow-text);
  width: 100%;
  padding: 1.1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(234, 185, 27, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234, 185, 27, 0.5);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* =======================================
   11.5. FORM WIZARD
   ======================================= */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.form-step.active {
  display: block;
}

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

.step-title {
  color: var(--text-yellow);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.step-subtitle {
  color: var(--text-primary);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.checkbox-group, .radio-inline {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: rgba(0,0,0,0.15);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.05);
}

.radio-inline {
  flex-direction: row;
  gap: 2rem;
}

.checkbox-group label, .radio-inline label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 400;
}

.checkbox-group input[type="radio"], 
.checkbox-group input[type="checkbox"],
.radio-inline input[type="radio"] {
  width: auto;
  margin: 0;
}

.inline-input {
  display: inline-block !important;
  width: auto !important;
  padding: 0.2rem 0.5rem !important;
  margin-left: 0.5rem !important;
  background: rgba(0,0,0,0.4) !important;
}

/* Form Navigation & Progress */
.form-progress {
  margin-bottom: 2rem;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: var(--btn-yellow-bg);
  width: 16.66%; /* Default Step 1 */
  transition: width 0.3s ease;
}

.progress-text {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-nav {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--btn-yellow-bg);
  color: var(--btn-yellow-text);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-primary:hover {
  background-color: white;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.nav-spacer {
  flex-grow: 1;
}

.submit-button {
  margin-top: 0;
  width: auto;
  padding: 0.8rem 2rem;
}

/* =======================================
   12. ADMIN PANEL
   ======================================= */
.admin-body {
  background-color: #1a1a1a;
  color: var(--text-primary);
}

.admin-main {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.admin-view {
  display: none;
  flex-grow: 1;
}

.admin-view.active {
  display: flex;
  flex-direction: column;
}

/* Login Screen */
#admin-login {
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.admin-login-box {
  background: var(--bg-dark-gray);
  padding: 3rem;
  border-radius: 12px;
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.admin-login-box h2 {
  color: var(--text-yellow);
  margin-bottom: 0.5rem;
}

.admin-login-box p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Dashboard Header & Tabs */
.dashboard-header {
  padding: 3rem 5%;
  background: var(--bg-dark-burgundy);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
}

.dashboard-title-area h2 {
  font-size: 2.2rem;
  color: var(--text-yellow);
  margin-bottom: 0.3rem;
}

.dashboard-title-area p {
  color: var(--text-secondary);
}

.admin-tabs {
  display: flex;
  gap: 1rem;
}

.tab-btn {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.tab-btn:hover {
  background: rgba(255,255,255,0.1);
}

.tab-btn.active {
  background: var(--btn-yellow-bg);
  color: var(--btn-yellow-text);
  border-color: var(--btn-yellow-bg);
}

/* Tab Content & Grid */
.tab-content {
  display: none;
  padding: 3rem 5%;
  background-color: #1a1a1a;
  flex-grow: 1;
}

.tab-content.active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Admin Cards */
.admin-card {
  background: var(--bg-dark-gray);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255,255,255,0.05);
}

.admin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.card-header {
  padding: 1.5rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.card-title {
  color: var(--text-yellow);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

.card-body i {
  color: var(--text-yellow);
  width: 20px;
  text-align: center;
  margin-right: 5px;
  opacity: 0.8;
}

.card-desc {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.desc-text {
  display: block;
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* Card Actions */
.card-actions {
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.3);
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-action {
  flex-grow: 1;
  padding: 0.7rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-trash {
  background: rgba(255, 77, 77, 0.1);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.btn-trash:hover {
  background: rgba(255, 77, 77, 0.2);
}

.btn-restore {
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.btn-restore:hover {
  background: rgba(46, 204, 113, 0.2);
}

.btn-delete {
  background: #ff4d4d;
  color: white;
  border: 1px solid #ff4d4d;
}

.btn-delete:hover {
  background: #ff3333;
}

/* =======================================
   13. MAP EXPLORER PAGE (mapa.html)
   ======================================= */
.map-page-body {
  background-color: var(--bg-dark-gray);
  overflow: hidden; /* Prevent body scroll, layout handles it */
}

.explorer-layout {
  display: flex;
  height: calc(100vh - var(--header-height));
  width: 100%;
}

.explorer-sidebar {
  width: 350px;
  background: #1a1a1a;
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 2px 0 15px rgba(0,0,0,0.5);
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  background: var(--bg-dark-burgundy);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-header h2 {
  color: var(--text-yellow);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.sidebar-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.filter-group {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.filter-group label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.filter-group label i {
  color: var(--text-yellow);
  margin-right: 0.5rem;
}

.filter-select, .filter-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

/* Style the native dropdown options to match dark theme */
option {
  background-color: #2a2a2a;
  color: #f0f0f0;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--text-yellow);
  box-shadow: 0 0 0 2px rgba(234, 185, 27, 0.2);
}

.sidebar-stats {
  padding: 1rem 1.5rem;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.projects-list-container {
  flex-grow: 1;
  padding: 1rem 0;
}

.list-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: background 0.2s ease;
}

.list-item:hover {
  background: rgba(255,255,255,0.05);
}

.list-item-title {
  color: var(--text-yellow);
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.list-item-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.explorer-map-container {
  flex-grow: 1;
  position: relative;
}

/* InfoWindow Styles (Google Maps) */
.gm-style .gm-style-iw-c {
  background-color: var(--bg-dark-gray);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  padding: 0 !important; /* Reset default padding */
}

.gm-style .gm-style-iw-tc::after {
  background: var(--bg-dark-gray);
}

.gm-style-iw-d {
  overflow: hidden !important; /* Hide scrollbars if content is small */
}

.custom-infowindow {
  padding: 1.5rem;
  color: var(--text-primary);
  max-width: 300px;
}

.custom-infowindow h3 {
  color: var(--text-yellow);
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.custom-infowindow p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.custom-infowindow strong {
  color: var(--text-primary);
}

.custom-infowindow a {
  color: var(--text-yellow);
  text-decoration: none;
  font-weight: 600;
}

.custom-infowindow a:hover {
  text-decoration: underline;
}

/* Mobile adjustments for map page */
@media (max-width: 768px) {
  .explorer-layout {
    flex-direction: column;
  }
  
  .explorer-sidebar {
    width: 100%;
    height: 40vh; /* Fixed height on mobile so map is still visible */
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  
  .explorer-map-container {
    height: 60vh;
  }
}

/* Fix Google Maps Autocomplete z-index to appear above modal */
.pac-container {
  z-index: 9999 !important;
}

/* =======================================
   14. CUSTOM SCROLLBAR
   ======================================= */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark-gray);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-yellow);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #cba017;
}

/* Special scrollbar for modal to match its background */
.modal-content::-webkit-scrollbar-track {
  background: #2a2a2a;
}
