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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #fafafa;
  color: #1f2937;
  line-height: 1.6;
}

/* ========================================
   NAVIGATION DOTS (RIGHT SIDE)
   ======================================== */
.nav-dots {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: fadeInRight 1s ease 2s forwards;
}

@keyframes fadeInRight {
  to {
    opacity: 1;
  }
}

.nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  background: #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-dot:hover {
  transform: scale(1.2);
  background: #9ca3af;
  box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4);
}

.nav-dot.active {
  background: #1a4f8b;
  box-shadow: 0 4px 16px rgba(26, 79, 139, 0.6);
  width: 12px;
  height: 12px;
  transform: scale(1.4);
}

.nav-dot.active:hover {
  background: #1a4f8b;
  box-shadow: 0 4px 16px rgba(26, 79, 139, 0.6);
  transform: scale(1.4);
}

.dot-label {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: #374151;
}

.nav-dot:hover .dot-label {
  opacity: 1;
}

/* ========================================
   MINI BRAND WITH ANIMATION
   ======================================== */

.mini-brand {
  position: fixed;
  top: 30px;
  left: 30px;
  z-index: 9999;
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.mini-brand.scrolled {
  transform: translateY(calc(100vh - 100px));
}

.mini-brand a {
  display: flex;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative; /* For absolute icons */
  overflow: hidden;
}

.brand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* House State (Default) */
.icon-house {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition-delay: 0.1s;
}

.icon-arrow {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.5);
  transition-delay: 0.1s;
}

/* Scrolled State */
.mini-brand.scrolled .icon-house {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.5);
  transition-delay: 0.3s;
}

.mini-brand.scrolled .icon-arrow {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  transition-delay: 0.3s;
}

.mini-brand a:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 30px rgba(26, 79, 139, 0.3);
}

.brand-sun {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* ========================================
   SECTIONS
   ======================================== */
.presentation-container {
  max-width: 100%;
}

.section {
  min-height: 100vh;
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* ========================================
   HERO SECTION - ANIMATED BUILDING
   ======================================== */
.hero-section {
  background: #f8fafc;
  color: #1f2937;
  overflow-x: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  width: 100%;
  padding: 40px 0;
}

.intro-line-container {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #1a4f8b;
  transform: translateX(-50%);
  z-index: 0;
}

.animated-building-container {
  margin-bottom: 0px;
}

.building-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: block;
}

#craneMast {
  stroke-dasharray: 350;
  stroke-dashoffset: 350;
  /* prevent distortion */
}

#craneArm {
  transform: translateY(350px);
  opacity: 0;
}

.build-stage {
  transition: opacity 1s ease;
}

.hero-text-content {
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-block;
  background: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #1a4f8b;
  box-shadow: 0 2px 12px rgba(26, 79, 139, 0.2);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3s forwards;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 15px;
  color: #111827;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3.2s forwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #6b7280;
  margin-bottom: 10px;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3.4s forwards;
}

.hero-description {
  font-size: 1rem;
  color: #9ca3af;
  opacity: 0;
  animation: fadeInUp 0.8s ease 3.6s forwards;
}

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

/* Shrinking House Container */
.shrinking-house-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 800px;
}

.house-year-indicator {
  display: flex;
  flex-direction: row; /* Align side-by-side */
  align-items: baseline; /* Align text baselines */
  justify-content: center;
  gap: 8px; /* Space between "in" and "2011" */
  margin-bottom: 5px;
  line-height: 1;
}

.house-label {
  font-size: 2rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#houseYearDisplay {
  color: #1a4f8b;
  font-weight: 800;
  font-size: 1.8rem !important;
  line-height: 1;
}

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

/* Visualization */
#shrinkingHouseViz {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4/3;
}
.scroll-indicator {
  opacity: 0;
  animation: fadeIn 1s ease 4s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  margin-top: 40px;
}

.scroll-arrow {
  width: 24px;
  height: 40px;
  border: 2px solid #1a4f8b;
  border-radius: 20px;
  position: relative;
  opacity: 0.7;
  animation: bounce 2s infinite;
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #1a4f8b;
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
  0% {
    opacity: 1;
    top: 8px;
  }
  100% {
    opacity: 0;
    top: 24px;
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  text-align: center;
  /* Reduced Padding/Margins */
  margin-bottom: 30px;
}

.section-number {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  color: #1a4f8b;
  background: rgba(26, 79, 139, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: #6b7280;
  font-weight: 400;
}

.parallax-subtitle {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 20px;
}

/* ========================================
   MAP SECTION
   ======================================== */
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
}

.map-container {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.map-chart {
  height: 600px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.map-legend-panel {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  align-self: start;
}

.map-legend-panel h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.map-legend-panel p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #374151;
}

.legend-color {
  width: 32px;
  height: 20px;
  border-radius: 6px;
  flex-shrink: 0;
}

.highlight-box {
  background: #fef3c7;
  padding: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #78350f;
}

/* ========================================
   PREDICTION SECTION
   ======================================== */
.prediction-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 40px;
}

.prediction-instructions {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #eef2ff;
  padding: 20px 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.prediction-instructions svg {
  flex-shrink: 0;
}

.prediction-instructions p {
  color: #374151;
  font-weight: 500;
  margin: 0;
}

.draw-canvas-wrapper {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

#drawCanvas {
  width: 100%;
  height: 400px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  cursor: crosshair;
  display: block;
  background: #fafafa;
}

.draw-controls {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.draw-btn {
  padding: 12px 30px;
  border: 2px solid #e5e7eb;
  background: white;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.draw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.draw-btn-primary {
  background: #1a4f8b;
  color: white;
  border-color: transparent;
}

.draw-btn-primary:hover {
  box-shadow: 0 4px 20px rgba(26, 79, 139, 0.4);
}

.prediction-result {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.prediction-result.hidden {
  display: none;
}

.prediction-result.visible {
  animation: slideUpFade 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.result-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.result-item {
  text-align: center;
  padding: 25px;
  background: #f9fafb;
  border-radius: 16px;
}

.result-item svg {
  margin-bottom: 15px;
}

.result-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

/* ========================================
   INSIGHT CARDS
   ======================================== */
.insight-cards {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
}

.insight-card {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  text-align: center;
  border-top: 4px solid;
  transition: transform 0.3s;
}

.insight-card:hover {
  transform: translateY(-5px);
}

.card-red {
  border-top-color: #ef4444;
}
.card-green {
  border-top-color: #10b981;
}
.card-orange {
  border-top-color: #f59e0b;
}

.card-icon {
  margin-bottom: 15px;
}

.insight-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card-red .insight-value {
  color: #ef4444;
}
.card-green .insight-value {
  color: #10b981;
}
.card-orange .insight-value {
  color: #f59e0b;
}

.insight-label {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   INCOME FILTER (SECTION 1)
   ======================================== */
.income-filter {
  margin-top: 25px;
  background: white;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.income-filter input {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  width: 140px;
  font-weight: 700;
  color: #1a4f8b;
  outline: none;
  transition: all 0.3s;
}

.income-filter input:focus {
  border-color: #1a4f8b;
  box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.2);
}

/* ========================================
   PERFECT STORM SECTION (SECTION 3)
   ======================================== */
.storm-chart-container {
  width: 100%;
  max-width: 1100px;
  height: 600px;
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

#perfectStormChart {
  flex-grow: 1;
  width: 100%;
  min-height: 0;
}

.storm-story-box {
  position: absolute;
  top: 20px;
  left: 120px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 15px 20px;
  border-radius: 12px;
  /* border-left: 4px solid #1A4F8B; */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 240px;
  z-index: 10;
  pointer-events: none;
  transition: all 0.3s ease;
}

.story-content {
  transition: opacity 0.3s ease;
}

.story-content.fade-out {
  opacity: 0;
  transform: translateY(5px);
}

.story-year-range {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
}

.storm-controls {
  padding: 15px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-radius: 0 0 20px 20px;
}

#stormScrubber {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  display: block;
}

.slider-wrapper {
  flex-grow: 1;
  position: relative;
  margin: 0 15px;
}

.slider-year-min,
.slider-year-max {
  font-weight: 700;
  color: #9ca3af;
  font-size: 0.85rem;
}

.slider-cursor-label {
  position: absolute;
  top: -35px;
  left: 0;
  transform: translateX(-50%);
  background: #1a4f8b;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.slider-wrapper:hover .slider-cursor-label,
.slider-wrapper:active .slider-cursor-label {
  opacity: 1;
}

#stormScrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a4f8b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 79, 139, 0.4);
  transition: transform 0.2s;
}

#stormScrubber::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.divergence-controls label {
  font-weight: 600;
  color: #374151;
}

.city-dropdown {
  padding: 12px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
}

.city-dropdown:focus {
  outline: none;
  border-color: #1a4f8b;
  box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.1);
}

.play-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background: #1a4f8b;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(26, 79, 139, 0.3);
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 79, 139, 0.4);
}

.divergence-canvas-container {
  width: 100%;
  max-width: 1200px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

#divergenceCanvas {
  width: 100%;
  height: 500px;
  display: block;
}

.year-progress {
  max-width: 800px;
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.year-label {
  text-align: center;
  font-weight: 600;
  color: #374151;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.year-label span {
  color: #1a4f8b;
  font-size: 1.3rem;
}

.year-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 15px;
  cursor: pointer;
}

.year-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a4f8b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 79, 139, 0.4);
  border: none;
}

.year-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.year-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1a4f8b;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 79, 139, 0.4);
  border: none;
}

.year-range {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 600;
}

/* ========================================
   RACE VISUALIZATION (SVG)
   ======================================== */
/* ========================================
   SHRINKING HOUSE VISUALIZATION (SECTION 4)
   ======================================== */
.shrinking-house-container {
  width: 100%;
  max-width: 900px;
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.house-year-indicator {
  font-size: 3.5rem;
  font-weight: 900;
  background: #1a4f8b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  transition: all 0.2s;
}

#shrinkingHouseViz {
  margin: 0 auto 40px auto;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#houseScrubber {
  width: 80%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  outline: none;
}

#houseScrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a4f8b;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 79, 139, 0.4);
  border: 4px solid white;
}

/* ========================================
   COMPARISON EXPLORER
   ======================================== */
/* ========================================
   MONTHLY SQUEEZE VISUALIZATION (SECTION 5)
   ======================================== */
.monthly-squeeze-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 800px;
}

#monthlySqueezeViz {
  width: 100%;
  max-width: 500px;
  height: 400px;
}

.squeeze-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

/* Reusing .stat-item, .stat-label, .stat-value from above */

.squeeze-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.play-btn {
  background: #1a4f8b;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(26, 79, 139, 0.3);
}

.play-btn:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(26, 79, 139, 0.4);
}

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

.play-btn .icon {
  font-size: 0.8em;
}

.play-btn.playing {
  background: #ef4444; /* Stop color */
}

.squeeze-year-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: #374151;
}

.squeeze-caption {
  font-size: 0.95rem;
  color: #9ca3af;
  margin-top: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.squeeze-caption::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #f3f4f6;
  border-radius: 50%;
  border: 1px solid #d1d5db;
}

/* ========================================
   TIMELINE WITH SCROLL ANIMATION
   ======================================== */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  width: 100%;
  padding: 40px 0;
}

.timeline-progress-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 0%;
  background: #1a4f8b;
  transform: translateX(-50%);
  border-radius: 2px;
  transition: height 0.3s ease-out;
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-card {
  margin-left: calc(50% + 40px);
}

.timeline-item:nth-child(even) .timeline-card {
  margin-right: calc(50% + 40px);
  text-align: right;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid #d1d5db;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: all 0.3s;
}

.timeline-item.visible .timeline-marker {
  border-color: #1a4f8b;
  box-shadow: 0 0 0 8px rgba(26, 79, 139, 0.2);
}

.timeline-card {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

.timeline-card:hover {
  transform: translateY(-5px);
}

.timeline-year {
  display: inline-block;
  background: #eef2ff;
  color: #1a4f8b;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.timeline-card p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========================================
   SOLUTIONS REDESIGN
   ======================================== */
.solutions-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin-bottom: 60px;
}

.solution-item {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.solution-item:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.solution-svg {
  flex-shrink: 0;
}

.impact-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.impact-badge.high {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #c2e0c6;
}

.impact-badge.medium {
  background: #fef3c7;
  color: #92400e;
}

.solution-item h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 15px;
}

.solution-item p {
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-metrics {
  display: flex;
  gap: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: #1a4f8b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}

.final-message-box {
  max-width: 800px;
  background: #f8fafc;
  padding: 50px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.message-icon {
  margin-bottom: 20px;
}

.final-message-box h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 20px;
}

.final-message-box p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 30px;
}

.message-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  padding: 16px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.action-btn.primary {
  background: #1a4f8b;
  color: white;
  box-shadow: 0 4px 20px rgba(26, 79, 139, 0.4);
}

.action-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(26, 79, 139, 0.5);
}

.action-btn.secondary {
  background: white;
  color: #1a4f8b;
  border: 2px solid #1a4f8b;
}

.action-btn.secondary:hover {
  background: #1a4f8b;
  color: white;
}

.presentation-footer {
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.presentation-footer p {
  margin: 5px 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .explorer-detail {
    position: static;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-progress-line {
    left: 20px;
  }

  .timeline-marker {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }

  .nav-dots {
    right: 15px;
    gap: 15px;
  }

  .mini-brand {
    left: 15px;
    top: 15px;
  }

  .mini-brand a {
    width: 50px;
    height: 50px;
  }

  .draw-controls {
    flex-direction: column;
  }

  .draw-btn {
    width: 100%;
  }

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

  .divergence-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .city-dropdown,
  .play-btn {
    width: 100%;
    justify-content: center;
  }

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

  .final-message-box {
    padding: 30px 20px;
  }

  .message-actions {
    flex-direction: column;
  }

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

/* ========================================
   NEW HERO ANIMATION STYLES
   ======================================== */
.window {
  opacity: 0;
  transition: opacity 0.3s;
}

.window.visible {
  opacity: 1;
}

#crane {
  transition: transform 0.5s ease;
}

/* ========================================
   CREATIVE RACE STYLES
   ======================================== */
.creative-race {
  background: #111827;
  color: white;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.creative-race::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, #1f2937 0%, #111827 100%);
  z-index: 0;
}

.race-track-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin: 60px 0;
}

.race-lane {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.lane-label {
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.label-icon {
  font-size: 2rem;
  margin-bottom: 5px;
}

.label-text {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
}

.track-line {
  flex-grow: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  margin: 0 20px;
}

.track-line::after {
  content: "";
  position: absolute;
  right: 0;
  top: -10px;
  bottom: -10px;
  width: 2px;
  background: #4b5563; /* Finish line */
  border-right: 2px dashed #9ca3af;
}

.racer-container {
  position: absolute;
  left: 170px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.1s linear;
}

.racer-icon {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  z-index: 2;
}

.racer-icon.rocket {
  transform: rotate(45deg);
}

.racer-value {
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 5px;
}

.racer-trail {
  position: absolute;
  right: 50%;
  top: 50%;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, transparent, #ef4444);
  transform: translateY(-50%);
  opacity: 0;
  transition: width 0.1s linear;
}

.creative-race .race-start-btn {
  position: relative;
  z-index: 2;
  background: #1a4f8b;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(26, 79, 139, 0.4);
  transition: all 0.3s;
}

.creative-race .race-start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(26, 79, 139, 0.6);
}

.race-year-display,
.race-legend {
  position: relative;
  z-index: 2;
}

/* ========================================
   MINIMAL EXPLORER STYLES
   ======================================== */
.minimal-explorer {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  height: 600px;
}

.explorer-sidebar {
  background: #f9fafb;
  padding: 30px;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.explorer-sidebar h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.city-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-item {
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s;
}

.city-item:hover {
  background: #eef2ff;
  color: #1a4f8b;
}

.city-item.active {
  background: #1a4f8b;
  color: white;
  box-shadow: 0 4px 12px rgba(26, 79, 139, 0.3);
}

.explorer-main {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.empty-state {
  display: none;
  text-align: center;
  color: #9ca3af;
}

.pulse-circle {
  width: 60px;
  height: 60px;
  background: #e5e7eb;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: pulse 2s infinite;
}

.city-detail-content {
  width: 100%;
  max-width: 600px;
  animation: fadeIn 0.5s ease;
}

.detail-city-name {
  font-size: 3rem;
  font-weight: 900;
  color: #111827;
  margin-bottom: 40px;
  line-height: 1;
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.metric-box {
  background: #f9fafb;
  padding: 20px;
  border-radius: 16px;
}

.metric-label {
  display: block;
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #111827;
}

.affordability-meter {
  background: #111827;
  padding: 30px;
  border-radius: 20px;
  color: white;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 15px;
}

.meter-value-large {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fbbf24;
}

.meter-bar-container {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #fbbf24, #ef4444);
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-context {
  font-size: 0.95rem;
  color: #9ca3af;
  margin: 0;
}

/* ========================================
   PARALLAX CHART STYLES
   ======================================== */
.parallax-section {
  min-height: 400vh;
  position: relative;
  background: #111827;
  color: white;
  padding: 80px 40px;
  overflow: visible;
}

.parallax-content {
  height: 100%;
  width: 100%;
}

.parallax-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.parallax-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  background: #1a4f8b;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.parallax-subtitle {
  font-size: 1.2rem;
  color: #9ca3af;
  margin-bottom: 120px;
  text-align: center;
}

.parallax-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 100px;
  height: 450px;
  position: relative;
  padding-bottom: 80px;
}

.parallax-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 60px;
}

.parallax-bar {
  width: 120px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.bar-label {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  color: #d1d5db;
}

.bar-fill {
  width: 100%;
  background: #3b82f6;
  border-radius: 12px 12px 0 0;
  transition: height 0.3s ease-out;
  height: 0;
  position: relative;
}

.price-bar .bar-fill {
  background: linear-gradient(to top, #dc2626, #ef4444);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.income-bar .bar-fill {
  background: linear-gradient(to top, #059669, #10b981);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.bar-value {
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.3s;
}

.gap-connector {
  position: absolute;
  left: 130px; /* Center between bars roughly */
  right: -50px;
  top: 50%;
  height: 2px;
  background: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.5s ease;
}

.gap-label {
  background: #fbbf24;
  color: #78350f;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
}

.parallax-year-display {
  font-size: 12rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  transition: all 0.1s linear;
}

.bar-value {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  opacity: 1 !important; /* Always show */
  transition: bottom 0.1s linear;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.income-bar .bar-value {
  color: #10b981;
}
.price-bar .bar-value {
  color: #ef4444;
}

/* ========================================
   D3 DIVERGENCE CHART STYLES
   ======================================== */
#chart {
  background: #fafafa;
  padding: 20px;
  border-radius: 16px;
  margin: 30px auto;
  max-width: 1400px;
}

#chart svg {
  display: block;
  margin: 0 auto;
}

.line {
  fill: none;
  stroke-width: 3;
  transition: stroke-width 0.3s;
}

.line:hover {
  stroke-width: 4;
}

.income-line {
  stroke-dasharray: 8, 4;
}

.axis-label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  fill: #374151;
}

.grid line {
  stroke: #e5e7eb;
  stroke-opacity: 0.3;
}

.tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.92);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.info-box {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
  border: 1px solid #e5e7eb;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.info-box h3 {
  color: #111827;
  margin-bottom: 15px;
  font-size: 1.3em;
  font-weight: 600;
}

.info-box p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.stat {
  display: inline-block;
  background: #ffffff;
  padding: 15px 25px;
  border-radius: 12px;
  margin: 5px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  transition: all 0.3s;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.divergence-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin: 30px 0;
}

.divergence-controls label {
  font-weight: 600;
  color: #374151;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 768px) {
  /* GLOBAL */
  .section-title {
    font-size: 2rem;
  }

  .section-desc {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  /* SECTION 1: MAP */
  .income-filter {
    flex-direction: column;
    padding: 15px;
    width: 90%;
    margin: 0 auto 20px;
  }

  .income-filter input {
    width: 100%;
    text-align: center;
  }

  #affordabilityFeedback {
    padding: 0 20px;
    text-align: center;
  }

  /* SECTION 3: PERFECT STORM */
  .storm-chart-container {
    height: auto;
    min-height: 600px;
    padding: 10px;
  }

  .storm-story-box {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-bottom: 20px;
    background: #f0f9ff;
  }

  #perfectStormChart {
    height: 350px;
  }

  /* SECTION 4: SHRINKING HOUSE */
  .shrinking-house-container {
    padding: 10px;
  }

  .house-stats {
    flex-direction: column;
    gap: 15px;
  }

  /* SECTION 5: MONTHLY SQUEEZE */
  .monthly-squeeze-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .squeeze-viz {
    height: 300px;
  }

  .squeeze-controls {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
  }

  .parallax-year-display {
    font-size: 10rem;
  }
}

@media (max-width: 768px) {
  /* Global Mobile Adjustments */
  .section {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Hero Section */
  .hero-content {
    padding: 20px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Section 4: Shrinking House */
  .shrinking-house-container {
    padding: 15px;
    gap: 10px;
  }

  .house-label {
    font-size: 0.8rem !important;
  }

  #houseYearDisplay {
    font-size: 1.4rem !important;
  }

  /* Section 5: Monthly Squeeze */
  .monthly-squeeze-container {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  /* Section 6: Parallax */
  .parallax-title {
    font-size: 1.8rem !important;
  }

  .parallax-subtitle {
    font-size: 1rem;
  }

  /* Timeline */
  .timeline-item {
    margin-bottom: 40px;
  }

  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    margin-left: 30px;
    text-align: left;
  }

  .timeline-progress-line {
    left: 20px;
  }
}

/* Prediction Text Responsive Toggle */
.desktop-text {
  display: inline;
}
.mobile-text {
  display: none;
}

@media (max-width: 768px) {
  .desktop-text {
    display: none;
  }
  .mobile-text {
    display: inline;
  }
}

/* Custom Leaflet Tooltip with Animation */
/* Custom Leaflet Tooltip with Animation */
.custom-tooltip {
  background: transparent; /* Leaflet creates a container, we just use it for positioning if needed, or keeping it clean */
  border: none;
  box-shadow: none;
  padding: 0;
}

/* The inner content wrapper that will animate */
.popup-animated {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: tooltipFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative; /* Context for absolute close btn and arrow */
  overflow: visible !important; /* Allow arrow to stick out */
}

/* Arrow */
.popup-animated::after {
  content: "";
  position: absolute;
  bottom: -8px; /* Push it down */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05)); /* Subtle shadow */
}

/* Close Button */
.popup-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 24px;
  height: 24px;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
  color: #9ca3af;
  cursor: pointer;
  z-index: 100;
  transition: color 0.2s;
  font-family: sans-serif;
  font-weight: 300;
}

.popup-close-btn:hover {
  color: #111827;
}

.custom-tooltip .leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.custom-tooltip .leaflet-popup-tip-container {
  display: none;
}

.custom-tooltip .leaflet-popup-content {
  margin: 0 !important; /* Remove leaflet default margin */
}

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