/* CSS variables & Design tokens */
:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* HSL Color System - MODO CLARO */
  --bg-app: 210 20% 98%;      /* Gris ultra claro de fondo general */
  --bg-surface: 0 0% 100%;    /* Blanco puro para superficies principales */
  --bg-card: 0 0% 100%;       /* Blanco para tarjetas */
  --border-color: 214 32% 90%; /* Gris suave para líneas divisorias */
  
  --primary: 199 89% 38%;     /* Azul cyan oscuro para excelente contraste */
  --primary-hover: 199 89% 46%;
  --danger: 0 84% 54%;        /* Coral/Rojo de emergencia */
  --success: 142 71% 35%;
  --warning: 38 92% 45%;
  
  --text-main: 222 47% 11%;   /* Slate oscuro para texto principal */
  --text-muted: 215 16% 45%;  /* Gris medio silenciado */
  --text-secondary: 217 19% 25%; /* Slate secundario */

  --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.06);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--bg-app));
  color: hsl(var(--text-main));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--bg-app));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--border-color));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.5);
}

/* Header Styling */
.app-header {
  background-color: hsl(var(--bg-surface));
  border-bottom: 1px solid hsl(var(--border-color));
  padding: 1.5rem 2rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo-area h1 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, hsl(var(--text-main)) 40%, hsl(var(--primary)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0.25rem;
}

.flag-badge {
  background: hsl(var(--danger) / 0.15);
  color: hsl(var(--danger));
  border: 1px solid hsl(var(--danger) / 0.3);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.subtitle {
  color: hsl(var(--text-muted));
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.stats-area {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 130px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: hsl(var(--primary) / 0.5);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-label {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.source-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
  align-self: flex-start;
  background: hsl(var(--bg-app));
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid hsl(var(--border-color) / 0.5);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: hsl(var(--warning));
  display: inline-block;
}

.status-indicator.online {
  background-color: hsl(var(--success));
  box-shadow: 0 0 8px hsl(var(--success));
}

.status-indicator.offline {
  background-color: hsl(var(--danger));
  box-shadow: 0 0 8px hsl(var(--danger));
}

/* Controls / Filter Bar Section */
.controls-section {
  background-color: hsl(var(--bg-surface) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border-color));
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.controls-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 300px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: hsl(var(--text-muted));
}

.search-box input {
  width: 100%;
  background-color: hsl(var(--bg-app));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: hsl(var(--text-main));
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.filters-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 2 1 500px;
}

.filter-select-wrapper {
  position: relative;
  flex: 1;
  min-width: 160px;
}

.select-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: hsl(var(--text-muted));
  pointer-events: none;
}

.filter-select-wrapper select {
  width: 100%;
  appearance: none;
  background-color: hsl(var(--bg-app));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md);
  padding: 0.75rem 2rem 0.75rem 2.25rem;
  color: hsl(var(--text-secondary));
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select-wrapper select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  color: hsl(var(--text-main));
}

.filter-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-25%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid hsl(var(--text-muted));
  border-bottom: 2px solid hsl(var(--text-muted));
  pointer-events: none;
}

.btn-secondary {
  background-color: hsl(var(--bg-app));
  border: 1px solid hsl(var(--border-color));
  color: hsl(var(--text-muted));
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-secondary:hover {
  color: hsl(var(--text-main));
  border-color: hsl(var(--primary) / 0.5);
  background-color: hsl(var(--bg-card));
}

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

/* Toggle View button for Mobile map toggle */
.btn-toggle-view {
  display: none;
  background-color: hsl(var(--primary));
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.3);
  transition: var(--transition);
}

.btn-toggle-view:hover {
  background-color: hsl(var(--primary-hover));
  transform: translateY(-1px);
}

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

/* Main Layout Split-Screen */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  height: calc(100vh - 170px);
  overflow: hidden;
}

.list-panel {
  overflow-y: auto;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.map-panel {
  position: relative;
  height: 100%;
}

.map-element {
  width: 100%;
  height: 100%;
  background: hsl(var(--bg-app));
}

/* Override Leaflet Dark Styling */
.leaflet-container {
  font-family: var(--font-body);
}

.leaflet-bar a, .leaflet-bar a:hover {
  background-color: hsl(var(--bg-card)) !important;
  color: hsl(var(--text-main)) !important;
  border-bottom: 1px solid hsl(var(--border-color)) !important;
}

.leaflet-bar {
  border: 1px solid hsl(var(--border-color)) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Leaflet Popups custom styling */
.leaflet-popup-content-wrapper {
  background-color: hsl(var(--bg-card)) !important;
  color: hsl(var(--text-main)) !important;
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}

.leaflet-popup-tip {
  background-color: hsl(var(--bg-card)) !important;
  border: 1px solid hsl(var(--border-color));
}

.leaflet-popup-content {
  margin: 12px 16px !important;
  line-height: 1.4;
}

.map-popup-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: hsl(var(--primary));
}

.map-popup-text {
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  margin-bottom: 0.5rem;
}

.map-popup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary-hover));
  border: 1px solid hsl(var(--primary) / 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}
.map-popup-btn:hover {
  background-color: hsl(var(--primary));
  color: #fff;
}

/* Results header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.results-header h2 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
}

.last-updated {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
}

/* Centers Grid and Cards */
.centers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 2rem;
}

/* Two columns in desktop list view if wide enough */
@media (min-width: 1200px) {
  .centers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.center-card {
  background-color: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.center-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: hsl(var(--primary) / 0.5);
  transition: var(--transition);
}

.center-card:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: var(--shadow-md), 0 0 15px hsl(var(--primary) / 0.05);
}

.center-card:hover::before {
  background-color: hsl(var(--primary));
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: hsl(var(--text-main));
}

.card-location {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.badge-city {
  background-color: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary-hover));
  border: 1px solid hsl(var(--primary) / 0.25);
}

.badge-country {
  background-color: hsl(var(--text-muted) / 0.1);
  color: hsl(var(--text-secondary));
  border: 1px solid hsl(var(--border-color));
}

.card-address {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-address svg {
  width: 16px;
  height: 16px;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 2px;
}

.card-needs {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dashed hsl(var(--border-color));
  padding-top: 0.75rem;
  margin-top: auto;
}

.needs-label {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.needs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-need {
  font-size: 0.7rem;
  background-color: hsl(var(--bg-app));
  color: hsl(var(--text-secondary));
  border: 1px solid hsl(var(--border-color));
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  line-height: 1.3;
}

.tag-need.highlight-need {
  background-color: hsl(var(--danger) / 0.1);
  color: hsl(var(--danger));
  border-color: hsl(var(--danger) / 0.3);
}

.card-footer {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid hsl(var(--border-color));
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.btn-card {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-card-map {
  background-color: hsl(var(--primary) / 0.15);
  color: hsl(var(--primary-hover));
  border: 1px solid hsl(var(--primary) / 0.25);
}

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

.btn-card-contact {
  background-color: hsl(var(--bg-app));
  color: hsl(var(--text-secondary));
  border: 1px solid hsl(var(--border-color));
}

.btn-card-contact:hover {
  color: hsl(var(--text-main));
  border-color: hsl(var(--text-secondary) / 0.5);
  background-color: hsl(var(--bg-surface));
}

.btn-card svg {
  width: 14px;
  height: 14px;
}

/* Spinner Loader */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: hsl(var(--text-muted));
  gap: 1rem;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid hsl(var(--border-color));
  border-radius: 50%;
  border-top-color: hsl(var(--primary));
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* No Results Area */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: hsl(var(--text-muted));
  border: 1px dashed hsl(var(--border-color));
  border-radius: var(--radius-md);
  background-color: hsl(var(--bg-surface) / 0.5);
}
.no-results p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Custom Modal Overlay (Glassmorphism modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background-color: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border-color));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: hsl(var(--primary-hover));
}

.btn-close-modal {
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.btn-close-modal:hover {
  color: hsl(var(--text-main));
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-detail-row svg {
  width: 18px;
  height: 18px;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-detail-content {
  font-size: 0.9rem;
  line-height: 1.4;
}

.contact-detail-label {
  font-size: 0.75rem;
  color: hsl(var(--text-muted));
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-link {
  color: hsl(var(--primary-hover));
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.contact-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
    height: calc(100vh - 220px);
  }
  
  .list-panel {
    display: flex;
  }
  
  .map-panel {
    display: none;
    height: 100%;
  }
  
  /* When class active is applied, show the map panel on mobile instead of the list */
  .main-content.show-map .list-panel {
    display: none;
  }
  
  .main-content.show-map .map-panel {
    display: block;
  }
  
  .btn-toggle-view {
    display: inline-flex;
  }
  
  .app-header {
    padding: 1.25rem;
  }
  
  .logo-area h1 {
    font-size: 1.75rem;
  }
  
  .controls-section {
    padding: 1rem;
  }
  
  .controls-container {
    gap: 0.75rem;
  }
  
  .filters-group {
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
  }
  
  .filter-select-wrapper {
    width: 100%;
  }
}

/* Emergency Alert Banner */
.emergency-banner {
  background: linear-gradient(135deg, hsl(0, 84%, 52%) 0%, hsl(0, 84%, 43%) 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1001;
  width: 100%;
}

.emergency-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-badge {
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.emergency-text {
  font-family: var(--font-body);
  color: #fff;
}

.emergency-btn {
  background-color: #fff;
  color: hsl(0, 84%, 45%) !important;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.emergency-btn:hover {
  background-color: hsl(210, 20%, 98%);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.emergency-btn svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .emergency-banner {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
  .emergency-container {
    gap: 0.5rem;
    flex-direction: column;
  }
  .emergency-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border-bottom: 1px solid hsl(var(--border-color));
  padding-bottom: 0.15rem;
}

.tab-btn {
  background: none;
  border: none;
  color: hsl(var(--text-muted));
  padding: 0.6rem 1.2rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  top: 1px;
}

.tab-btn:hover {
  color: hsl(var(--text-main));
}

.tab-btn.active {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

.tab-btn svg {
  width: 16px;
  height: 16px;
}

/* Danger Theme Card for Collapsed Buildings */
.center-card.danger-theme::before {
  background-color: hsl(var(--danger)) !important;
}

.center-card.danger-theme:hover {
  border-color: hsl(var(--danger) / 0.4) !important;
  box-shadow: var(--shadow-md), 0 0 15px hsl(var(--danger) / 0.05) !important;
}

.badge-danger {
  background-color: hsl(var(--danger) / 0.12) !important;
  color: hsl(var(--danger)) !important;
  border: 1px solid hsl(var(--danger) / 0.25) !important;
}

/* Utility visibility class */
.hidden {
  display: none !important;
}

/* Alternative Aid / Resources Section */
.main-content.full-width {
  display: block !important;
  height: auto !important;
  overflow-y: auto !important;
  padding: 2.5rem 2rem !important;
}

.main-content.full-width .list-panel {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: visible;
  padding: 0;
  gap: 2rem;
}

.main-content.full-width .map-panel {
  display: none !important;
}

/* Resources/Aid Cards Grid */
.aid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.aid-card {
  background-color: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.aid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: hsl(var(--primary));
}

.aid-card.donation-theme::before {
  background-color: hsl(var(--success));
}

.aid-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(var(--primary) / 0.3);
}

.aid-card.donation-theme:hover {
  border-color: hsl(var(--success) / 0.3);
}

.aid-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.aid-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.aid-card.donation-theme .aid-category {
  color: hsl(var(--success));
  background-color: hsl(var(--success) / 0.08);
}

.aid-card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--text-main));
  margin-top: 0.5rem;
}

.aid-card-desc {
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
  line-height: 1.5;
}

.aid-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.15);
  border-radius: var(--radius-md);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.aid-card.donation-theme .aid-card-btn {
  background-color: hsl(var(--success) / 0.08);
  color: hsl(var(--success));
  border-color: hsl(var(--success) / 0.15);
}

.aid-card.donation-theme .aid-card-btn:hover {
  background-color: hsl(var(--success));
  color: #fff;
  border-color: hsl(var(--success));
}

