/* Core Map Styles */

/* Import Premium Header */
@import url('./header-premium.css');

/* Patriotic USA Blue Theme */
:root {
  --usa-navy: #002868;
  --usa-blue: #0a3161;
  --usa-royal: #1d4ed8;
  --usa-sky: #3b82f6;
  --usa-bright: #60a5fa;
  --usa-light: #93c5fd;
  --usa-red: #bf0a30;
  --usa-white: #ffffff;

  /* Gradient presets */
  --gradient-usa: linear-gradient(
    135deg,
    var(--usa-navy) 0%,
    var(--usa-royal) 50%,
    var(--usa-sky) 100%
  );
  --gradient-usa-bright: linear-gradient(
    135deg,
    var(--usa-blue) 0%,
    var(--usa-sky) 50%,
    var(--usa-bright) 100%
  );
  --gradient-usa-columns: linear-gradient(
    180deg,
    var(--usa-bright) 0%,
    var(--usa-royal) 50%,
    var(--usa-navy) 100%
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

@keyframes pulse {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.8;
  }
}

/* Cluster animations - pulsing glow for large clusters */
@keyframes cluster-pulse-glow {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
}

@keyframes cluster-pulse-glow-md {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.03);
    filter: brightness(1.15);
  }
}

@keyframes cluster-pulse-glow-lg {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.2);
  }
}

.cluster-mosaic {
  cursor: pointer;
}

.cluster-mosaic:hover {
  transform: scale(1.1) !important;
  z-index: 1000 !important;
}

.cluster-pulse-sm {
  animation: cluster-pulse-glow 3s ease-in-out infinite;
}

.cluster-pulse-md {
  animation: cluster-pulse-glow-md 2.5s ease-in-out infinite;
}

.cluster-pulse-lg {
  animation: cluster-pulse-glow-lg 2s ease-in-out infinite;
}

/* Hex grid tooltip - polished dark theme */
.hex-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 150, 255, 0.3) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  color: #f1f5f9 !important;
  font-family: 'Inter', sans-serif !important;
}

.hex-tooltip strong {
  font-size: 18px;
  color: #60a5fa;
}

.hex-tooltip .hex-cities {
  margin: 6px 0;
  padding: 6px 0;
  border-top: 1px solid rgba(100, 150, 255, 0.2);
  font-size: 12px;
  line-height: 1.5;
}

.hex-tooltip .hex-cities div {
  color: #cbd5e1;
}

.hex-tooltip .hex-more {
  color: #94a3b8;
  font-style: italic;
}

/* Leaflet popup styles consolidated in Popup styles section below (line ~828) */

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: linear-gradient(135deg, #001d3d 0%, #002855 50%, #003366 100%);
  color: #e1e8ed;
  height: 100vh;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  padding-top: 60px; /* Updated for new header height */
  margin: 0;
}

#map {
  flex: 1;
  height: 100vh;
  background: #1a1f2e;
  position: relative;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
}

#sidebar {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  flex-shrink: 0;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 160, 40, 0.15);
  overflow: hidden;
  box-shadow:
    -4px 0 24px rgba(0, 0, 0, 0.5),
    inset 1px 0 0 rgba(255, 160, 40, 0.08);
  transition:
    transform 0.3s ease,
    width 0.3s ease;
  position: relative;
  z-index: 1000;
  padding-bottom: 60px; /* Space for footer */
}

#sidebar.collapsed {
  transform: translateX(400px);
  width: 0;
  min-width: 0;
}

.header {
  padding: 14px 16px;
  background: rgba(15, 20, 27, 0.6);
  border-bottom: 1px solid rgba(255, 160, 40, 0.15);
  box-shadow: 0 1px 0 rgba(255, 160, 40, 0.05);
}

.header-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.nav-link {
  color: #8899a6;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(29, 155, 240, 0.1);
  color: #1d9bf0;
}

.nav-link.active {
  background: rgba(29, 155, 240, 0.2);
  color: #1d9bf0;
}

.header h1 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffa028 0%, #ffb85c 50%, #ff8c00 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stats {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.stat {
  flex: 1;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffa028 0%, #ffb85c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 10px;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.2;
}

.filters {
  padding: 10px;
  border-bottom: 1px solid #38444d;
  flex-shrink: 0;
}

.filter-group {
  margin-bottom: 8px;
}

/* Collapsible filter sections */
.filter-section {
  border: 1px solid rgba(255, 160, 40, 0.15);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.filter-section:hover {
  border-color: rgba(255, 160, 40, 0.25);
}

.filter-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 20, 27, 0.6);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.filter-section-header:hover {
  background: rgba(255, 160, 40, 0.08);
  color: #ffa028;
}

.filter-section-toggle {
  transition: transform 0.2s;
  font-size: 10px;
}

.filter-section.collapsed .filter-section-toggle {
  transform: rotate(-90deg);
}

.filter-section-content {
  padding: 12px;
}

.filter-section.collapsed .filter-section-content {
  display: none;
}

.filter-section-content .view-mode-buttons {
  margin: 0;
}

.filter-label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 500;
}

.filter-select {
  width: 100%;
  padding: 12px;
  background: rgba(15, 20, 27, 0.8);
  border: 1px solid rgba(255, 160, 40, 0.2);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(255, 160, 40, 0.4);
  background: rgba(255, 160, 40, 0.05);
}

.filter-select:focus {
  outline: none;
  border-color: #ffa028;
  box-shadow: 0 0 0 3px rgba(255, 160, 40, 0.15);
}

/* State Page Link Button */
.state-page-link-container {
  animation: fadeIn 0.3s ease;
}

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

.search-input:focus {
  outline: none;
  border-color: #ffa028;
  box-shadow: 0 0 0 3px rgba(255, 160, 40, 0.15);
}

.view-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.view-btn {
  flex: 1;
  padding: 10px 8px;
  background: rgba(0, 40, 85, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #e1e8ed;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.view-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.2);
  color: white;
  transform: translateY(-1px);
}

.view-btn.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.mode-indicator {
  font-size: 11px;
  color: #8899a6;
  text-align: center;
  margin-bottom: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(15, 20, 27, 0.6);
  border: 1px solid rgba(56, 68, 77, 0.5);
  border-radius: 8px;
  border-left: 3px solid #1d9bf0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.refresh-btn {
  background: #1d9bf0;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.refresh-btn:hover {
  background: #0d8bd9;
  transform: translateY(-1px);
}

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

.mode-text {
  flex: 1;
  text-align: left;
}

.chart-container {
  margin-top: 20px;
  padding: 15px;
  background: #15202b;
  border: 1px solid #38444d;
  border-radius: 8px;
}

.chart-title {
  color: #e1e8ed;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.chart-canvas {
  max-height: 300px;
}

.submission-form {
  margin-top: 20px;
  padding: 15px;
  background: #15202b;
  border: 1px solid #38444d;
  border-radius: 8px;
}

.form-title {
  color: #e1e8ed;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
}

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

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #8899a6;
}

.form-input {
  width: 100%;
  padding: 8px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  color: #e1e8ed;
  font-size: 12px;
}

.form-input select {
  width: 100%;
  padding: 8px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  color: #e1e8ed;
  font-size: 12px;
  cursor: pointer;
}

.form-input:focus {
  outline: none;
  border-color: #1d9bf0;
}

.form-textarea {
  width: 100%;
  padding: 8px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  color: #e1e8ed;
  font-size: 12px;
  resize: vertical;
  min-height: 60px;
}

.form-textarea:focus {
  outline: none;
  border-color: #1d9bf0;
}

.submit-btn {
  width: 100%;
  padding: 10px;
  background: #1d9bf0;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: #0d8bd9;
}

.submit-btn:disabled {
  background: #38444d;
  cursor: not-allowed;
}

/* Enhanced form styles */
.form-row {
  display: flex;
  gap: 10px;
}

.form-col-2 {
  flex: 1;
}

.field-error {
  color: #ff6b6b;
  font-size: 11px;
  margin-top: 4px;
  min-height: 15px;
  display: block;
}

.field-hint {
  color: #8899a6;
  font-size: 11px;
  margin-top: 4px;
}

.form-input.error,
.form-textarea.error {
  border-color: #ff6b6b;
}

.form-input.success,
.form-textarea.success {
  border-color: #6bcf7f;
}

.form-message {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 13px;
}

.form-success {
  background: rgba(107, 207, 127, 0.15);
  border: 1px solid #6bcf7f;
  color: #6bcf7f;
}

.form-error {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.program-checkbox {
  display: flex;
  align-items: center;
  padding: 8px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
}

.program-checkbox:hover {
  border-color: #1d9bf0;
  background: rgba(29, 155, 240, 0.1);
}

.program-checkbox input[type='checkbox'] {
  margin-right: 8px;
  cursor: pointer;
}

.program-checkbox input[type='checkbox']:checked + span {
  color: #1d9bf0;
  font-weight: 600;
}

.recaptcha-notice {
  font-size: 10px;
  color: #8899a6;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.4;
}

.recaptcha-notice a {
  color: #1d9bf0;
  text-decoration: none;
}

.recaptcha-notice a:hover {
  text-decoration: underline;
}

.school-list {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.school-card {
  background: #15202b;
  border: 1px solid #38444d;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.school-card:hover {
  border-color: #1d9bf0;
  background: #1a2836;
  box-shadow: 0 4px 16px rgba(29, 155, 240, 0.15);
}

.school-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.school-card-favicon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

.school-location {
  font-size: 13px;
  color: #8899a6;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.school-programs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.program-tag {
  background: rgba(29, 155, 240, 0.2);
  color: #60a5fa;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(29, 155, 240, 0.2);
}

.program-tag:hover {
  background: rgba(29, 155, 240, 0.3);
  border-color: rgba(29, 155, 240, 0.4);
}

.school-contact {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.school-contact a,
.contact-item a {
  color: #64748b;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* UEI/CAGE code links - allow breaking on mobile */
.school-card a[href*='sam.gov'] {
  word-break: break-all;
  white-space: normal;
  max-width: 100%;
  display: inline-block;
}

.school-contact a:hover,
.contact-item a:hover {
  color: #1d9bf0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8899a6;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #8899a6;
  font-size: 16px;
  font-weight: 500;
}

.loading::after {
  content: '...';
  animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
  0%,
  20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%,
  100% {
    content: '...';
  }
}

.user-location-marker {
  background: none;
  border: none;
  font-size: 30px;
  text-align: center;
  line-height: 30px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #8899a6;
  background: rgba(29, 155, 240, 0.05);
  border-radius: 12px;
  margin: 20px;
  border: 1px solid rgba(29, 155, 240, 0.2);
}

/* Map markers */
.school-marker {
  background: #1d9bf0;
  border: 2px solid white;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.school-marker.selected {
  background: #ff6b6b;
  width: 16px;
  height: 16px;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2);
}

/* Popup styles */
.leaflet-popup-content-wrapper {
  background: rgba(21, 32, 43, 0.95);
  border: 1px solid #38444d;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content {
  margin: 14px;
  color: #e1e8ed;
  min-width: 200px;
  max-width: 300px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.leaflet-popup-tip {
  background: rgba(21, 32, 43, 0.95);
  border: 1px solid #38444d;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.popup-favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: contain;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.popup-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d9bf0;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Emoji marker styles - polished for demo */
.emoji-marker {
  background: none !important;
  border: none !important;
  font-size: 24px;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 24px !important;
  height: 24px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.emoji-marker:hover {
  transform: scale(1.4) translateY(-2px);
  filter: drop-shadow(0 4px 12px var(--usa-sky, #3b82f6)) brightness(1.1);
  z-index: 10000 !important;
}

.emoji-marker img {
  object-fit: contain;
  width: 24px !important;
  height: 24px !important;
  display: block !important;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* CRITICAL: Ensure emoji-marker divs are visible - show ALL favicons */
.leaflet-div-icon.emoji-marker {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Ensure cluster markers are hidden - hide ALL blue cluster dots */
.leaflet-marker-cluster {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* DON'T hide our custom markers - Leaflet divIcon markers need to be visible */
/* Only hide cluster markers specifically */

/* Hide cluster divs that might be showing blue circles */
.marker-cluster,
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  display: none !important;
  visibility: hidden !important;
}

/* CRITICAL: Ensure our favicon markers are ALWAYS visible */
.leaflet-div-icon.emoji-marker,
.leaflet-marker-icon.emoji-marker {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Ensure the div inside the marker icon is visible */
.emoji-marker,
.emoji-marker img,
.emoji-marker div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* CRITICAL: Ensure our favicon markers are ALWAYS visible */
.leaflet-div-icon.emoji-marker {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Make sure Leaflet doesn't hide our divIcon markers */
.leaflet-marker-icon.leaflet-div-icon {
  display: block !important;
  visibility: visible !important;
}

/* Ensure all divIcon markers are visible (not just emoji-marker) */
.leaflet-div-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Force marker pane to be visible */
.leaflet-marker-pane {
  z-index: 600 !important;
}

/* Ensure marker icons are visible in the marker pane */
.leaflet-marker-pane .leaflet-marker-icon {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure the div inside the marker icon is visible */
.emoji-marker,
.emoji-marker img,
.emoji-marker div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Expanded marker state */
.emoji-marker.expanded {
  transform: scale(1.8);
  filter: drop-shadow(0 0 12px var(--usa-royal, #1d4ed8));
  z-index: 10000 !important;
}

.emoji-marker.expanded::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border: 3px solid var(--usa-sky, #3b82f6);
  border-radius: 50%;
  animation: expandPulse 1.5s ease-out infinite;
  pointer-events: none;
}

@keyframes expandPulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Nearby markers expansion ring */
.nearby-ring {
  position: absolute;
  border: 2px dashed var(--usa-bright, #60a5fa);
  border-radius: 50%;
  pointer-events: none;
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Hex label styles */
.hex-label {
  z-index: 1000 !important;
  pointer-events: none;
}

/* 3D Column marker styles - Manhattan Population Explorer style */
.column-marker {
  background: none !important;
  border: none !important;
  overflow: visible !important;
}

.column-3d {
  transition:
    transform 0.2s ease-out,
    filter 0.2s ease-out;
}

.column-marker:hover .column-3d {
  transform: rotateX(-25deg) rotateY(-35deg) scale(1.2) translateY(-10px) !important;
  filter: brightness(1.2) drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5)) !important;
  z-index: 9999 !important;
}

/* Ensure hover works on the icon wrapper too */
.leaflet-marker-icon.column-marker {
  overflow: visible !important;
  z-index: auto !important;
}

.leaflet-marker-icon.column-marker:hover {
  z-index: 10000 !important;
}

/* Column popup styling */
.column-popup .leaflet-popup-content-wrapper {
  background: rgba(15, 20, 30, 0.98) !important;
  border: 2px solid rgba(255, 150, 100, 0.6) !important;
  border-radius: 16px !important;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 150, 100, 0.2) !important;
}

.column-popup .leaflet-popup-tip {
  background: rgba(15, 20, 30, 0.98) !important;
  border-color: rgba(255, 150, 100, 0.6) !important;
}

.column-popup .leaflet-popup-content {
  margin: 16px !important;
}

.custom-popup .leaflet-popup-content-wrapper {
  background: #15202b;
  border: 2px solid #1d9bf0;
  box-shadow: 0 4px 20px rgba(29, 155, 240, 0.3);
}

.custom-popup .leaflet-popup-tip {
  background: #15202b;
  border: 2px solid #1d9bf0;
}

/* Sidebar toggle - integrated into header navigation */
.sidebar-toggle {
  display: none; /* Hidden by default - shown on mobile only */
}

/* Mobile floating toggle (shown on mobile only) */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
    position: fixed;
    top: 70px;
    right: 16px;
    background: rgba(15, 20, 27, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 44px;
    min-height: 44px;
    z-index: 2005;
    cursor: pointer;
    font-size: 20px;
    color: #60a5fa;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
  }

  .sidebar-toggle:hover,
  .sidebar-toggle:active {
    background: rgba(29, 155, 240, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
  }
}

.sidebar-overlay {
  display: none;
}

.floating-submit {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1d9bf0;
  border: none;
  border-radius: 50px;
  padding: 16px 28px;
  z-index: 1001;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: white;
  box-shadow: 0 6px 20px rgba(29, 155, 240, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.6);
}

.stats-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(21, 32, 43, 0.95);
  border: 1px solid #38444d;
  border-radius: 12px;
  padding: 12px 16px;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: none; /* Hidden when sidebar is open */
  cursor: grab;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  user-select: none;
}

.stats-badge.dragging {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: none;
}

.stats-badge:hover {
  border-color: #1d9bf0;
  box-shadow: 0 6px 16px rgba(29, 155, 240, 0.3);
}

/* Show stats badge when sidebar is collapsed */
#sidebar.collapsed ~ .stats-badge,
body:has(#sidebar.collapsed) .stats-badge {
  display: block;
}

.stats-badge-content {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}

.stats-badge-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats-badge-value {
  font-size: 18px;
  font-weight: 700;
  color: #1d9bf0;
}

.stats-badge-label {
  font-size: 12px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Stats Badge Header with Total Count */
.stats-badge-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #38444d;
}

.stats-badge-total {
  font-size: 24px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}

.stats-badge-title {
  font-size: 11px;
  color: #8899a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subscribe CTA Button */
.stats-badge-cta {
  display: block;
  margin-top: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffa028 0%, #ff8c00 100%);
  color: #000;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 160, 40, 0.3);
}

.stats-badge-cta:hover {
  background: linear-gradient(135deg, #ffb040 0%, #ffa028 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 160, 40, 0.4);
}

/* Selected School Details Panel */
.selected-school-panel {
  padding: 12px;
  background: #15202b;
  border-bottom: 1px solid #38444d;
  display: none;
  max-height: 500px;
  overflow-y: auto;
}

.selected-school-panel.visible {
  display: block;
}

.selected-school-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
}

.selected-school-title {
  font-size: 18px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
  line-height: 1.3;
  max-width: calc(100% - 40px);
  word-break: break-word;
  overflow-wrap: break-word;
}

.selected-school-close {
  background: transparent;
  border: none;
  color: #8899a6;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.selected-school-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.selected-school-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-school-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #cbd5e1;
}

.selected-school-programs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.selected-school-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #38444d;
}

.selected-school-btn {
  flex: 1;
  padding: 10px;
  background: #1d9bf0;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.selected-school-btn:hover {
  background: #0d8bd9;
  transform: translateY(-1px);
}

.selected-school-btn.secondary {
  background: #253341;
  color: #e1e8ed;
}

.selected-school-btn.secondary:hover {
  background: #2a3f53;
}

/* Collapsible sections in selected school panel */
.selected-school-section {
  margin-top: 12px;
  border-top: 1px solid #38444d;
  padding-top: 12px;
}

.selected-school-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.selected-school-section-header:hover {
  color: #1d9bf0;
}

.section-toggle-icon {
  font-size: 12px;
  color: #8899a6;
  transition: transform 0.2s;
}

.selected-school-section-content {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-top: 10px;
}

.selected-school-section-content.collapsed {
  max-height: 0;
  padding-top: 0;
  overflow: hidden;
}

/* Nearby Schools Section - uses .selected-school-section base styles */
.nearby-schools-header {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nearby-schools-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.nearby-school-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid #38444d;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nearby-school-item:hover {
  background: rgba(29, 155, 240, 0.15);
  border-color: #1d9bf0;
  transform: translateX(3px);
}

.nearby-school-name {
  flex: 1;
  font-size: 13px;
  color: #e1e8ed;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.nearby-school-distance {
  font-size: 12px;
  font-weight: 600;
  color: #1d9bf0;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 8px;
  background: rgba(29, 155, 240, 0.15);
  border-radius: 6px;
}

.nearby-schools-divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #38444d;
}

/* Nearby Schools Preview (compact format when collapsed) */
.nearby-schools-preview {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nearby-school-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
  color: #cbd5e1;
  cursor: pointer;
  transition: color 0.2s;
}

.nearby-school-preview-item:hover {
  color: #1d9bf0;
}

.preview-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-distance {
  font-size: 11px;
  color: #1d9bf0;
  font-weight: 600;
  white-space: nowrap;
}

/* Enhanced "+X more" clickability */
.preview-more {
  cursor: pointer;
  padding: 10px 12px;
  margin: 8px 0 0 0;
  background: rgba(255, 160, 40, 0.05);
  border: 1px solid rgba(255, 160, 40, 0.2);
  border-radius: 6px;
  text-align: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  color: #ffa028;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.preview-more:hover {
  background: rgba(255, 160, 40, 0.12);
  border-color: rgba(255, 160, 40, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 160, 40, 0.15);
}

.preview-more:active {
  transform: translateY(0);
}

/* Show/hide preview based on data-state */
.selected-school-section[data-state='collapsed'] .nearby-schools-preview {
  display: flex;
}

.selected-school-section[data-state='expanded'] .nearby-schools-preview {
  display: none;
}

/* Show/hide full list based on data-state */
.selected-school-section[data-state='collapsed'] .selected-school-section-content {
  max-height: 0;
  overflow: hidden;
}

.selected-school-section[data-state='expanded'] .selected-school-section-content {
  max-height: 300px;
  overflow: visible;
}

/* Tooltip styles */
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(21, 32, 43, 0.98);
  color: #f1f5f9;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #38444d;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tooltip-trigger:hover .tooltip {
  opacity: 1;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(21, 32, 43, 0.98);
}

/* CTA Button Group */
.cta-button-group {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1001;
}

.cta-button {
  background: #1d9bf0;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(29, 155, 240, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 155, 240, 0.6);
}

.cta-button.secondary {
  background: #6bcf7f;
  box-shadow: 0 6px 20px rgba(107, 207, 127, 0.4);
}

.cta-button.secondary:hover {
  box-shadow: 0 8px 24px rgba(107, 207, 127, 0.6);
}

.legend-toggle:hover {
  background: #1d9bf0;
  border-color: #1d9bf0;
}

/* Mobile close button - hidden on desktop */
.mobile-close-btn {
  display: none;
}

/* Data Summary Widget */
.data-summary {
  padding: 15px;
  background: var(--gradient-usa);
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 40, 104, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-summary-title {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 600;
}

.data-summary-main {
  font-size: 24px;
  color: white;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.2;
}

.data-summary-programs {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.data-summary-programs strong {
  font-weight: 600;
}

.data-summary-programs .clickable-program {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  transition: all 0.2s;
  padding: 2px 4px;
  border-radius: 4px;
}

.data-summary-programs .clickable-program:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration-style: solid;
}

/* Accordion Form Sections */
.form-section {
  margin-bottom: 12px;
  border: 1px solid #38444d;
  border-radius: 8px;
  overflow: hidden;
  background: #192734;
}

.form-section-header {
  padding: 12px 15px;
  background: #253341;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.form-section-header:hover {
  background: #2a3f53;
}

.form-section-header.active {
  background: #1d9bf0;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #e1e8ed;
}

.form-section-header.active .form-section-title {
  color: white;
}

.form-section-badge {
  background: rgba(29, 155, 240, 0.2);
  color: #1d9bf0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.form-section-header.active .form-section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.form-section-toggle {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.form-section-header.active .form-section-toggle {
  transform: rotate(180deg);
}

.form-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.form-section-content.active {
  max-height: 1000px;
}

.form-section-body {
  padding: 15px;
}

/* Multi-select Dropdown */
.multiselect-container {
  position: relative;
}

.multiselect-selected {
  width: 100%;
  padding: 10px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  color: #e1e8ed;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.multiselect-selected:hover {
  border-color: #1d9bf0;
}

.multiselect-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.multiselect-tag {
  background: #1d9bf0;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.multiselect-tag-remove {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.multiselect-tag-remove:hover {
  opacity: 1;
}

.multiselect-placeholder {
  color: #8899a6;
}

.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #15202b;
  border: 1px solid #1d9bf0;
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: none;
}

.multiselect-dropdown.active {
  display: block;
}

.multiselect-search {
  padding: 10px;
  border-bottom: 1px solid #38444d;
  position: sticky;
  top: 0;
  background: #15202b;
}

.multiselect-search input {
  width: 100%;
  padding: 8px;
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 6px;
  color: #e1e8ed;
  font-size: 12px;
}

.multiselect-search input:focus {
  outline: none;
  border-color: #1d9bf0;
}

.multiselect-options {
  padding: 8px;
}

.multiselect-option {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 12px;
  color: #e1e8ed;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.multiselect-option:hover {
  background: #253341;
}

.multiselect-option.selected {
  background: rgba(29, 155, 240, 0.2);
  color: #1d9bf0;
  font-weight: 600;
}

.multiselect-option input[type='checkbox'] {
  margin: 0;
  cursor: pointer;
}

/* Required Field Indicator */
.required-indicator {
  color: #ff6b6b;
  font-weight: bold;
  margin-left: 2px;
}

.form-label.required::after {
  content: ' *';
  color: #ff6b6b;
}

/* Sticky Submit Button (Mobile) */
.submit-btn-container {
  position: relative;
}

@media (max-width: 768px) {
  #statePageLink {
    padding: 14px !important;
    font-size: 16px !important;
  }
  .submit-btn-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: auto;
    z-index: 1500;
    padding: 0;
  }

  .submit-btn {
    width: auto;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.4);
    font-size: 14px;
    padding: 14px 28px;
  }

  .form-section-content.active {
    max-height: 2000px;
  }
}

/* School Card Actions */
.school-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 68, 77, 0.5);
  margin-top: auto;
}

.action-btn {
  flex: 1;
  background: rgba(29, 155, 240, 0.15);
  color: #1d9bf0;
  border: 1px solid rgba(29, 155, 240, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
}

.action-btn:hover {
  background: #1d9bf0;
  color: white;
  border-color: #1d9bf0;
}

.action-btn.primary {
  background: #1d9bf0;
  color: white;
  border-color: #1d9bf0;
}

.action-btn.primary:hover {
  background: #0d8bd9;
  border-color: #0d8bd9;
}

/* Filter Icons */
.filter-label-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-icon {
  font-size: 14px;
}

/* Clean Sidebar Styles */
.filter-group.search-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 15px;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-container .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #8899a6;
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 36px;
  background: rgba(15, 20, 27, 0.8);
  border: 1px solid rgba(255, 160, 40, 0.2);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.search-input:hover {
  border-color: rgba(255, 160, 40, 0.4);
  background: rgba(255, 160, 40, 0.05);
}

.geolocation-btn {
  min-width: 100px;
  height: auto;
  padding: 10px 14px;
  background: rgba(255, 160, 40, 0.08);
  border: 1px solid rgba(255, 160, 40, 0.25);
  color: #ffa028;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.geolocation-btn:hover {
  background: rgba(255, 160, 40, 0.15);
  border-color: rgba(255, 160, 40, 0.4);
  color: #ffb85c;
  transform: translateY(-1px);
  box-shadow: 0 0 8px rgba(255, 160, 40, 0.2);
}

.geolocation-btn.loading {
  background: rgba(255, 160, 40, 0.12);
  border-color: rgba(255, 160, 40, 0.3);
  cursor: wait;
}

.geolocation-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.geolocation-text {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.geolocation-btn-icon {
  width: 44px;
  height: 44px;
  background: rgba(29, 155, 240, 0.1);
  border: 1px solid rgba(29, 155, 240, 0.2);
  color: #1d9bf0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.geolocation-btn-icon:hover {
  background: rgba(29, 155, 240, 0.2);
  transform: translateY(-1px);
}

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-col {
  flex: 1;
}

/* Filter Chips */
.filter-chips {
  background: #15202b;
  border: 1px solid #38444d;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.filter-chips-label {
  font-size: 11px;
  color: #8899a6;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.filter-chips-row:last-child {
  margin-bottom: 0;
}

.filter-chip {
  background: #253341;
  border: 1px solid #38444d;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8899a6;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip:hover {
  border-color: #ffa028;
  color: #ffa028;
  background: rgba(255, 160, 40, 0.1);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: linear-gradient(135deg, #ffa028 0%, #ff8c00 100%);
  border-color: #ffa028;
  color: #0f1419;
  box-shadow: 0 2px 8px rgba(255, 160, 40, 0.3);
}

.filter-chip:active {
  transform: scale(0.98);
}

.filter-chip.sba {
  border-color: rgba(139, 92, 246, 0.4);
  color: #a78bfa;
}

.filter-chip.sba:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
}

.filter-chip.sba.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

.filter-chip.structure {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.filter-chip.structure:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.filter-chip.structure.active {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* Program Category Chips */
.program-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding: 4px 0;
}

.program-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 24px;
  border: 1px solid rgba(100, 116, 139, 0.4);
  background: rgba(30, 40, 55, 0.8);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 40px;
}

.program-chip:hover {
  border-color: #ffa028;
  background: rgba(255, 160, 40, 0.1);
  color: #e2e8f0;
  transform: translateY(-1px);
}

.program-chip.active {
  background: linear-gradient(135deg, #ffa028 0%, #ff8c00 100%);
  border-color: #ffa028;
  color: #0a0e14;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(255, 160, 40, 0.3);
}

.program-chip.active:hover {
  background: linear-gradient(135deg, #ffb85c 0%, #ffa028 100%);
  transform: translateY(-1px);
}

.chip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.chip-label {
  white-space: nowrap;
  font-size: 13px;
}

.chip-count {
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 180, 216, 0.25);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 12px;
  min-width: 24px;
  text-align: center;
}

.program-chip.active .chip-count {
  background: rgba(0, 0, 0, 0.3);
}

.program-filter-actions {
  margin-top: 8px;
}

.clear-filters-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.4);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.clear-filters-btn:hover {
  color: #e2e8f0;
  border-color: #64748b;
  background: rgba(100, 116, 139, 0.2);
}

.filter-chips-count {
  font-size: 10px;
  color: #657786;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #38444d;
}

/* Filter count badges - real-time viewport aggregations */
.filter-count {
  font-size: 10px;
  font-weight: 600;
  background: rgba(0, 180, 216, 0.2);
  color: #00b4d8;
  padding: 1px 5px;
  border-radius: 8px;
  margin-left: 4px;
  min-width: 16px;
  text-align: center;
}

.filter-chip.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.filter-chip.sba .filter-count {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.filter-chip.sba.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.filter-chip.structure .filter-count {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.filter-chip.structure.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Theme Selector */
.theme-selector {
  margin-bottom: 12px;
}

.theme-label {
  font-size: 11px;
  color: #8899a6;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: rgba(30, 40, 55, 0.6);
  border: 1px solid rgba(100, 116, 139, 0.3);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 60px;
}

.theme-btn:hover {
  border-color: #ffa028;
  background: rgba(255, 160, 40, 0.1);
}

.theme-btn.active {
  border-color: #ffa028;
  background: rgba(255, 160, 40, 0.15);
  box-shadow: 0 0 8px rgba(255, 160, 40, 0.3);
}

.theme-preview {
  width: 40px;
  height: 8px;
  border-radius: 4px;
  display: block;
}

.theme-name {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

.theme-btn.active .theme-name {
  color: #ffa028;
}

/* Active filter indicator */
.active-filter-indicator {
  font-size: 11px;
  color: #ffa028;
  font-weight: 500;
  padding: 8px 0 4px;
  text-align: center;
  border-top: 1px solid rgba(255, 160, 40, 0.2);
  margin-top: 8px;
}

/* Map transition for filter changes */
#map {
  transition: opacity 0.15s ease;
}

.map-controls-compact {
  background: #15202b;
  border: 1px solid #38444d;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
}

.control-label {
  font-size: 11px;
  color: #8899a6;
  font-weight: 500;
  white-space: nowrap;
}

.toggle-group {
  display: flex;
  background: #253341;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: #8899a6;
  width: 32px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e1e8ed;
}

.toggle-btn.active {
  background: #1d9bf0;
  color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Redesigned View Mode Section - Pill Toggle */
.view-mode-section {
  margin-bottom: 20px;
}

.view-mode-label {
  color: #8899a6;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.view-mode-buttons {
  display: flex;
  background: rgba(30, 40, 55, 0.9);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

.view-mode-btn {
  /* Reset browser defaults */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;

  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.view-mode-btn:hover {
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.2);
  transform: translateY(-1px);
}

.view-mode-btn:active {
  transform: translateY(0);
}

.view-mode-btn.active {
  background: linear-gradient(135deg, #ffa028 0%, #ff8c00 100%);
  color: #0a0e14;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 160, 40, 0.3);
  letter-spacing: 0.01em;
}

.view-mode-btn.active:hover {
  background: linear-gradient(135deg, #ffb85c 0%, #ffa028 100%);
  box-shadow: 0 3px 12px rgba(255, 160, 40, 0.4);
}

@media (max-width: 480px) {
  .view-mode-buttons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .view-mode-btn {
    padding: 10px 8px;
    font-size: 11px;
    flex: 1 1 auto;
    min-width: 60px;
  }
}

.divider-vertical {
  width: 1px;
  height: 20px;
  background: #38444d;
}

/* Loading Skeleton */
.loading-skeleton {
  background: linear-gradient(90deg, #253341 25%, #2a3f53 50%, #253341 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding-top: 50px;
  }

  #sidebar {
    position: fixed;
    top: 50px;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 50px);
    transform: translateX(100%);
    z-index: 2000;
    border-left: none;
    border-top: 1px solid #38444d;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #sidebar.active {
    transform: translateX(0);
  }

  /* Override desktop collapsed styles on mobile */
  #sidebar.collapsed {
    transform: translateX(100%);
    width: 100%;
  }

  #sidebar.collapsed.active {
    transform: translateX(0);
  }

  /* Mobile close button - sticky at top */
  .mobile-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 100;
    width: auto;
    padding: 8px 14px;
    margin: 0;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-close-btn:hover,
  .mobile-close-btn:active {
    background: rgba(51, 65, 85, 0.95);
    color: #e2e8f0;
  }

  /* Fix wide elements inside sidebar on mobile */
  #sidebar .tooltip,
  #sidebar a,
  #sidebar .school-card {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #map {
    width: 100%;
    height: calc(100vh - 50px);
    flex: none;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    backdrop-filter: blur(4px);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .geolocation-btn {
    min-height: 44px;
    font-size: 16px;
  }

  .filter-select,
  .search-input {
    min-height: 44px;
    font-size: 16px;
  }

  /* Mobile view controls - larger touch targets */
  .view-controls {
    gap: 10px;
    margin-bottom: 20px;
  }

  .view-btn {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .view-btn:active {
    transform: scale(0.98);
  }

  /* Mobile nav bar adjustments */
  .top-nav-container {
    padding: 8px 12px;
    gap: 8px;
  }

  .top-nav-logo {
    font-size: 14px;
  }

  .top-nav-links {
    gap: 4px;
  }

  .top-nav-link {
    padding: 6px 8px;
    font-size: 12px;
  }

  /* Hide "Contact" text on mobile, show only X icon */
  .top-nav-link[aria-label='DM Tom on X'] {
    gap: 0 !important;
  }

  .top-nav-link[aria-label='DM Tom on X'] svg {
    width: 16px;
    height: 16px;
  }

  /* Hide the Contact text span on very small screens */
  @media (max-width: 380px) {
    .top-nav-link[aria-label='DM Tom on X'] {
      padding: 6px;
    }
  }

  .stats-badge {
    bottom: 10px;
    left: 10px;
    padding: 8px 10px;
    display: block; /* Show on mobile */
    border-radius: 8px;
  }

  .stats-badge-content {
    gap: 10px;
  }

  .stats-badge-value {
    font-size: 14px;
  }

  .stats-badge-label {
    font-size: 9px;
  }

  /* Show floating toggle on mobile to open sidebar */
  .sidebar-toggle {
    top: 60px;
    right: 10px;
    width: 44px;
    height: 44px;
    font-size: 20px;
    z-index: 2500 !important;
  }

  /* Hide floating toggle when sidebar is open (use in-sidebar close button) */
  body.sidebar-open .sidebar-toggle {
    display: none !important;
  }

  .cta-button-group {
    bottom: 10px;
    right: 10px;
  }

  .cta-button {
    min-width: auto;
    padding: 12px 16px;
    font-size: 14px;
  }

  .floating-submit {
    display: none;
  }

  /* Mobile card improvements */
  .school-card {
    padding: 14px;
  }

  .school-name {
    font-size: 14px;
  }

  .school-location {
    font-size: 12px;
  }

  /* Action buttons wrap on mobile */
  .school-card-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .action-btn {
    min-width: 45%;
    flex: 1 1 45%;
    padding: 10px 8px;
    font-size: 12px;
  }

  /* Filter row stacks on mobile */
  .filter-row {
    flex-direction: column;
    gap: 10px;
  }

  .filter-col {
    width: 100%;
  }

  /* Search + geolocation stack on mobile */
  .filter-group.search-group {
    flex-direction: column;
    gap: 10px;
  }

  .geolocation-btn {
    width: 100%;
    justify-content: center;
  }

  /* Popup mobile adjustments */
  .leaflet-popup-content {
    min-width: 180px;
    max-width: calc(100vw - 80px);
    font-size: 14px;
  }

  /* Program chips mobile */
  .program-category-chips {
    gap: 8px;
  }

  .program-chip {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .chip-icon {
    font-size: 14px;
  }

  .chip-count {
    font-size: 10px;
    padding: 2px 6px;
    min-width: 20px;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .school-card-actions {
    flex-direction: column;
  }

  .action-btn {
    width: 100%;
    min-width: 100%;
  }

  .stats-badge {
    max-width: calc(100vw - 20px);
  }

  .stats-badge-content {
    flex-wrap: wrap;
  }

  .stats-badge-title {
    word-break: break-word;
  }
}

/* ============================================
   Search Autocomplete Styles
   ============================================ */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  display: none;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(0, 180, 216, 0.15);
}

.autocomplete-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.autocomplete-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.autocomplete-fallback {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(100, 116, 139, 0.2);
  border-radius: 6px;
}

.autocomplete-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-name {
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-location {
  font-size: 12px;
  color: #00b4d8;
  margin-top: 2px;
}

/* Make search input wrapper relative for autocomplete positioning */
.search-group {
  position: relative;
}

/* Gallery button style */
#galleryBtn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(102, 126, 234, 0.5);
}

#galleryBtn:hover {
  background: linear-gradient(135deg, #7c8ff0 0%, #8a5fb5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   Hex Filter Indicator
   ============================================ */
.hex-filter-indicator {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
  border: 1px solid rgba(0, 180, 216, 0.4);
  border-radius: 12px;
  margin: 12px 16px;
  animation: slideIn 0.2s ease-out;
}

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

.hex-filter-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hex-filter-icon {
  font-size: 18px;
}

.hex-filter-text {
  font-size: 14px;
  color: #e2e8f0;
}

.hex-filter-text strong {
  color: #00b4d8;
}

.hex-filter-clear {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.hex-filter-clear:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
}

/* ============================================
   Sidebar Pagination Styles
   ============================================ */
.sidebar-pagination-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(30, 41, 59, 0.6);
  border-bottom: 1px solid rgba(100, 116, 139, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

.pagination-count {
  font-size: 13px;
  color: #94a3b8;
}

.pagination-count strong {
  color: #00b4d8;
}

.sidebar-load-more {
  padding: 16px;
  text-align: center;
}

.load-more-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.15) 0%, rgba(102, 126, 234, 0.15) 100%);
  border: 1px solid rgba(0, 180, 216, 0.3);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.load-more-btn:hover {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.25) 0%, rgba(102, 126, 234, 0.25) 100%);
  border-color: #00b4d8;
  transform: translateY(-1px);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-count {
  font-size: 12px;
  color: #64748b;
}

/* ============================================
   Mobile UX Enhancements
   ============================================ */

/* Floating Action Button (FAB) */
.mobile-fab {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fab {
    display: block;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1500;
  }

  .fab-main {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa028 0%, #ff8c00 100%);
    border: none;
    box-shadow: 0 4px 16px rgba(255, 160, 40, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }

  .fab-main:active {
    transform: scale(0.95);
  }

  .fab-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
  }

  .mobile-fab.expanded .fab-icon {
    transform: rotate(45deg);
  }

  .fab-options {
    position: absolute;
    bottom: 64px;
    right: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
  }

  .mobile-fab.expanded .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .fab-option {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 160, 40, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.2s ease;
  }

  .fab-option:active {
    background: rgba(255, 160, 40, 0.2);
    transform: scale(0.95);
  }
}

/* Map Interaction Hint */
.map-hint {
  position: fixed;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 160, 40, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: hintSlideUp 0.3s ease-out;
}

@keyframes hintSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.map-hint.dismissed {
  animation: hintSlideDown 0.3s ease-out forwards;
}

@keyframes hintSlideDown {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

.map-hint-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.map-hint-icon {
  font-size: 32px;
  animation: fingerPinch 1.5s ease-in-out infinite;
}

@keyframes fingerPinch {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.8);
  }
}

.map-hint-text {
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.4;
}

.map-hint-text strong {
  color: #ffa028;
}

.map-hint-dismiss {
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 160, 40, 0.15);
  border: 1px solid rgba(255, 160, 40, 0.3);
  border-radius: 8px;
  color: #ffa028;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-hint-dismiss:active {
  background: rgba(255, 160, 40, 0.3);
}

/* Bottom sheet sidebar on mobile */
@media (max-width: 768px) {
  /* Hide stats badge when sidebar is open on mobile */
  body.sidebar-open #statsBadge {
    display: none !important;
  }

  /* Hide FAB when sidebar is open */
  body.sidebar-open .mobile-fab {
    display: none !important;
  }
}
