/* ================================================
   MHP Park Finder — Warm Modern Theme

   Friendly, welcoming design that says
   "We're here to help you find your home."
   Warm greens, soft shadows, rounded corners.
   ================================================ */

/* --- Design Tokens --- */
:root {
  /* Primary — Sage green (home, nature, community) */
  --w-green: #3D8B6E;
  --w-green-bright: #2D7A5C;
  --w-green-light: #5AA882;
  --w-green-50: rgba(61, 139, 110, 0.06);
  --w-green-100: rgba(61, 139, 110, 0.10);

  /* Accent — Warm amber (warmth, welcome) */
  --w-amber: #E8913A;
  --w-amber-bright: #D97B22;
  --w-amber-light: #F5A623;

  /* Legacy color aliases for compatibility */
  --w-blue: #3D8B6E;
  --w-blue-bright: #2D7A5C;
  --w-orange: #E8913A;
  --w-orange-bright: #D97B22;

  /* Neutrals — Warm tones */
  --w-white: #FFFFFF;
  --w-cream: #FBF9F5;
  --w-cream-mid: #F5F0E8;
  --w-cream-dark: #EDE8E0;
  --w-gray-100: #F9F8F6;
  --w-gray-200: #EFEBE5;
  --w-gray-300: #DDD8D0;
  --w-gray-400: #A8A29E;
  --w-gray-500: #78716C;
  --w-gray-600: #57534E;
  --w-gray-700: #44403C;
  --w-gray-800: #292524;

  /* Stroke — warmer, softer */
  --w-stroke: #E0DBD4;
  --w-stroke-light: #EBE7E1;
  --w-stroke-hover: var(--w-green);

  /* Radius — softer, more rounded */
  --w-radius: 10px;
  --w-radius-lg: 14px;
  --w-radius-xl: 20px;

  /* Shadows */
  --w-shadow-sm: 0 1px 3px rgba(41, 37, 36, 0.04);
  --w-shadow: 0 2px 8px rgba(41, 37, 36, 0.06);
  --w-shadow-lg: 0 8px 30px rgba(41, 37, 36, 0.08);
  --w-shadow-glow: 0 0 0 4px rgba(61, 139, 110, 0.12);

  /* Font */
  --w-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --w-font-mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
  border-color: var(--w-stroke);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--w-font);
  color: var(--w-gray-700);
  background-color: var(--w-white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

body.page-fade-out {
  opacity: 0;
}

/* --- Keyframe Animations --- */
@keyframes drawLine {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0; }
}

@keyframes drawBorder {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

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

@keyframes sweepIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes colorPulse {
  0%, 100% { color: var(--w-gray-600); }
  50%      { color: var(--w-green); }
}

/* Animation utility classes */
.anim-fade-up {
  animation: fadeSlideUp 0.5s ease-out both;
}

.anim-fade-up-1 { animation-delay: 0.1s; }
.anim-fade-up-2 { animation-delay: 0.2s; }
.anim-fade-up-3 { animation-delay: 0.3s; }
.anim-fade-up-4 { animation-delay: 0.4s; }
.anim-fade-up-5 { animation-delay: 0.5s; }
.anim-fade-up-6 { animation-delay: 0.6s; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--w-gray-800);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-muted {
  color: var(--w-gray-500) !important;
}

a {
  color: var(--w-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--w-green-bright);
}

/* --- Utility Classes --- */
.wire-border {
  border-color: var(--w-stroke) !important;
}

.wire-border-dashed {
  border-style: dashed !important;
  border-color: var(--w-stroke-light) !important;
}

.border-y {
  border-top: 1px solid var(--w-stroke) !important;
  border-bottom: 1px solid var(--w-stroke) !important;
}

.bg-cream {
  background-color: var(--w-cream) !important;
}

.bg-cream-mid {
  background-color: var(--w-cream-mid) !important;
}

.text-blue {
  color: var(--w-green) !important;
}

.text-orange {
  color: var(--w-amber) !important;
}

.text-primary {
  color: var(--w-green) !important;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  min-height: 60px;
  background: var(--w-white);
  border-bottom: 1px solid var(--w-stroke) !important;
  box-shadow: var(--w-shadow-sm);
}

.navbar .navbar-brand {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--w-gray-800);
}

.navbar .navbar-brand .brand-accent {
  color: var(--w-green);
  position: relative;
}

.navbar .navbar-brand .brand-accent::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--w-green);
  transition: width 0.4s ease;
  border-radius: 1px;
}

.navbar .navbar-brand:hover .brand-accent::after {
  width: 100%;
}

.navbar .nav-link {
  color: var(--w-gray-500);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: color 0.2s ease;
  border-radius: var(--w-radius);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--w-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 1px;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--w-gray-800);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border: 1px solid var(--w-stroke) !important;
  border-radius: var(--w-radius) !important;
}

/* ================================================
   BUTTONS — Modern & Friendly
   ================================================ */
.btn {
  border-radius: var(--w-radius);
  font-family: var(--w-font);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Primary button: solid green, warm hover */
.btn-primary {
  background: var(--w-green);
  border: 1px solid var(--w-green);
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(61, 139, 110, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--w-green-bright);
  transition: width 0.3s ease;
  z-index: 0;
}

.btn-primary span,
.btn-primary i,
.btn-primary {
  position: relative;
  z-index: 1;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--w-green-bright);
  border-color: var(--w-green-bright);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(61, 139, 110, 0.3);
  transform: translateY(-1px);
}

.btn-primary:hover span,
.btn-primary:hover i {
  color: #fff !important;
}

.btn-primary:hover::before {
  width: 100%;
}

/* Orange accent button */
.btn-accent {
  background: var(--w-amber);
  border: 1px solid var(--w-amber);
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(232, 145, 58, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--w-amber-bright);
  transition: width 0.3s ease;
  z-index: 0;
}

.btn-accent span,
.btn-accent i,
.btn-accent {
  position: relative;
  z-index: 1;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--w-amber-bright);
  border-color: var(--w-amber-bright);
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-accent:hover span,
.btn-accent:hover i {
  color: #fff !important;
}

.btn-accent:hover::before {
  width: 100%;
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  border: 1px solid var(--w-stroke);
  color: var(--w-gray-600);
  border-radius: var(--w-radius);
}

.btn-ghost:hover {
  border-color: var(--w-green);
  color: var(--w-green);
  background: var(--w-green-50);
}

.btn-ghost:hover i {
  animation: sweepIn 0.3s ease;
}

/* Outline primary */
.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--w-stroke);
  color: var(--w-gray-600);
  border-radius: var(--w-radius);
}

.btn-outline-primary:hover {
  border-color: var(--w-green);
  color: var(--w-green);
  background: var(--w-green-50);
}

.btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--w-stroke);
  color: var(--w-gray-500);
}

.btn-outline-secondary:hover {
  border-color: var(--w-gray-400);
  color: var(--w-gray-700);
  background: var(--w-gray-100);
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--w-stroke);
  color: var(--w-gray-600);
}

.btn-outline-dark:hover {
  border-color: var(--w-gray-500);
  color: var(--w-gray-800);
}

/* ================================================
   FORMS — Modern & Friendly
   ================================================ */
.form-control,
.input-group-text {
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  font-family: var(--w-font);
  font-size: 0.88rem;
  color: var(--w-gray-700);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: var(--w-gray-400);
}

.form-control:focus {
  border-color: var(--w-green);
  box-shadow: var(--w-shadow-glow);
  outline: none;
}

.input-group-text {
  color: var(--w-gray-400);
  background: var(--w-cream);
  border-right: none !important;
}

.form-control.border-start-0,
.form-control[style*="border-start-0"] {
  border-left: none !important;
}

/* Form labels — friendly, no monospace */
.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--w-gray-600);
  margin-bottom: 4px;
}

/* ================================================
   HOMEPAGE
   ================================================ */

/* --- Hero --- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #B5DFF0; /* fallback sky blue */
}

/* Animated background scene */
.hero-bg-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Gradient overlay for text readability */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 25%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.25) 70%,
    rgba(255,255,255,0.1) 85%,
    rgba(255,255,255,0.05) 100%
  );
  z-index: 1;
}

/* Road dashes scrolling */
.hero-anim-dashes {
  animation: heroDashScroll 1.8s linear infinite;
}

/* Trees scrolling */
.hero-anim-trees {
  animation: heroTreeScroll 12s linear infinite;
}

/* Background homes scrolling */
.hero-anim-homes {
  animation: heroHomeScroll 16s linear infinite;
}

/* Near hills parallax */
.hero-anim-hills-near {
  animation: heroHillNear 20s linear infinite;
}

/* Far hills parallax */
.hero-anim-hills-far {
  animation: heroHillFar 35s linear infinite;
}

/* Clouds drift */
.hero-anim-clouds {
  animation: heroCloudDrift 40s linear infinite;
}

/* Truck gentle bounce */
.hero-anim-truck {
  animation: heroTruckBounce 1.2s ease-in-out infinite;
}

@keyframes heroDashScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}

@keyframes heroTreeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

@keyframes heroHomeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}

@keyframes heroHillNear {
  from { transform: translateX(0); }
  to   { transform: translateX(-400px); }
}

@keyframes heroHillFar {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}

@keyframes heroCloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-300px); }
}

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

.hero-headline {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--w-gray-800);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: var(--w-gray-600);
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-tagline .text-primary {
  color: var(--w-green) !important;
  font-weight: 600;
}

.hero-body {
  max-width: 460px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--w-gray-500);
}

/* Hero badge */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--w-gray-500);
  border: 1px solid var(--w-stroke);
  border-radius: 20px;
  padding: 6px 14px;
  background: var(--w-white);
  box-shadow: var(--w-shadow-sm);
}

.hero-label .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--w-green);
  animation: blink 2s ease-in-out infinite;
}

/* Hero illustration wrapper */
.hero-illustration-wrap {
  position: relative;
}

/* Main illustration card */
.hero-illustration-card {
  background: var(--w-white);
  border: 1px solid var(--w-stroke-light);
  border-radius: var(--w-radius-xl);
  box-shadow: var(--w-shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.hero-illustration-card:hover {
  transform: translateY(-2px);
}

.hero-scene {
  display: block;
  width: 100%;
  height: auto;
}

/* Floating badges around illustration */
.hero-float-badge {
  position: absolute;
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: 12px;
  padding: 7px 14px;
  box-shadow: var(--w-shadow);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--w-gray-700);
  z-index: 2;
  white-space: nowrap;
  animation: subtleFloat 5s ease-in-out infinite;
}

.hero-float-badge i {
  color: var(--w-green);
  font-size: 0.78rem;
}

.hero-float-badge.badge-top-right {
  top: -8px;
  right: -6px;
}

.hero-float-badge.badge-bottom-left {
  bottom: 24px;
  left: -10px;
}

.hero-float-badge.badge-mid-right {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
}

/* Legacy wireframe styles kept for compatibility */
.wire-card {
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius-xl);
  box-shadow: var(--w-shadow-lg);
  position: relative;
  overflow: hidden;
}

.wire-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--w-green), var(--w-amber));
  opacity: 1;
  border-radius: 3px 3px 0 0;
}

.wire-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--w-stroke-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.wire-card-header .wire-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--w-green);
  font-size: 0.85rem;
  background: var(--w-green-50);
}

.wire-card-body {
  padding: 18px;
}

/* --- Stats Strip --- */
.stats-strip {
  background: var(--w-white);
  border-top: 1px solid var(--w-stroke-light);
  border-bottom: 1px solid var(--w-stroke-light);
  padding: 24px 0;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-item .stat-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--w-green);
  background: var(--w-green-50);
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  border-color: var(--w-green);
  color: var(--w-green);
  background: var(--w-green-100);
}

.stat-item .stat-value {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--w-gray-800);
}

.stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--w-gray-500);
}

/* ================================================
   MOVING ASSISTANT — Section Background
   ================================================ */
.moving-assistant-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}

.moving-assistant-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.moving-assistant-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Chat card on green bg needs a bit more contrast */
.moving-assistant-section .chat-container {
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.moving-assistant-section .chat-assistant {
  background: rgba(249, 248, 246, 0.95);
}

.moving-assistant-section .chat-input-area {
  background: var(--w-white);
}

.moving-assistant-section .chat-input-wrap {
  background: var(--w-gray-100);
}

.moving-assistant-section .chat-coming-soon {
  border-top-color: var(--w-stroke-light);
}

.moving-assistant-section .chat-coming-soon .chat-assistant {
  background: rgba(249, 248, 246, 0.95);
}

/* Mobile responsive for moving assistant bg */
@media (max-width: 767.98px) {
  .moving-assistant-section {
    padding: 40px 0;
  }
}

/* ================================================
   MOVING ASSISTANT — ChatGPT-style Chat
   ================================================ */
.chat-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--w-white);
  border: 1px solid var(--w-stroke-light);
  border-radius: var(--w-radius-xl);
  box-shadow: var(--w-shadow);
  overflow: hidden;
}

.chat-message {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
}

.chat-assistant {
  background: var(--w-gray-100);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w-green), var(--w-green-light));
  color: var(--w-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.chat-bubble {
  flex: 1;
  min-width: 0;
}

.chat-bubble p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--w-gray-700);
  margin-bottom: 8px;
}

.chat-bubble p:last-child {
  margin-bottom: 0;
}

.chat-bubble ul {
  margin: 8px 0 12px 4px;
  padding-left: 18px;
}

.chat-bubble li {
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--w-gray-600);
  margin-bottom: 4px;
}

.chat-bubble strong {
  color: var(--w-gray-800);
}

/* Input area */
.chat-input-area {
  padding: 16px 24px 14px;
  border-top: 1px solid var(--w-stroke-light);
  background: var(--w-white);
}

.chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--w-gray-100);
  border: 1px solid var(--w-stroke-light);
  border-radius: 22px;
  padding: 8px 8px 8px 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.chat-input-wrap:focus-within {
  border-color: var(--w-green);
  box-shadow: var(--w-shadow-glow);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-family: var(--w-font);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--w-gray-700);
  padding: 4px 0;
  outline: none;
}

.chat-input::placeholder {
  color: var(--w-gray-400);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: none;
  border-radius: 50%;
  background: var(--w-green);
  color: var(--w-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-send-btn:hover {
  background: var(--w-green-bright);
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

.chat-disclaimer {
  font-size: 0.72rem;
  color: var(--w-gray-400);
  text-align: center;
  margin: 8px 0 0;
}

/* Coming soon message */
.chat-coming-soon {
  border-top: 1px solid var(--w-stroke-light);
  animation: chatSlideIn 0.4s ease-out;
}

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

/* User message (shown after submit) */
.chat-message.chat-user {
  background: var(--w-white);
  justify-content: flex-end;
}

.chat-user-bubble {
  background: var(--w-green);
  color: var(--w-white);
  padding: 10px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 80%;
  animation: chatSlideIn 0.3s ease-out;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
  .chat-container {
    border-radius: var(--w-radius-lg);
  }
  .chat-message {
    padding: 16px 16px;
    gap: 10px;
  }
  .chat-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 0.85rem;
  }
  .chat-bubble p {
    font-size: 0.85rem;
  }
  .chat-bubble li {
    font-size: 0.83rem;
  }
  .chat-input-area {
    padding: 12px 14px 10px;
  }
  .chat-input-wrap {
    border-radius: 18px;
    padding: 6px 6px 6px 14px;
  }
}

/* --- How It Works --- */
.step-block {
  padding: 32px 28px 28px;
  border: 1px solid var(--w-stroke-light);
  border-radius: var(--w-radius-xl);
  background: var(--w-white);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow: var(--w-shadow-sm);
}

/* Soft gradient bg behind number */
.step-block::after {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--w-green-50);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.steps-row > :nth-child(2) .step-block::after {
  background: rgba(232, 145, 58, 0.08);
}
.steps-row > :nth-child(3) .step-block::after {
  background: rgba(90, 168, 130, 0.08);
}

/* Top accent bar — thicker, more visible */
.step-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--w-green), var(--w-green-light));
  opacity: 0.5;
  transition: opacity 0.35s ease, height 0.35s ease;
}
.steps-row > :nth-child(2) .step-block::before {
  background: linear-gradient(90deg, var(--w-amber), var(--w-amber-light));
}
.steps-row > :nth-child(3) .step-block::before {
  background: linear-gradient(90deg, var(--w-green-light), #7EC8A4);
}

.step-block:hover {
  border-color: var(--w-stroke);
  box-shadow: var(--w-shadow-lg);
  transform: translateY(-4px);
}
.step-block:hover::before {
  opacity: 1;
  height: 5px;
}
.step-block:hover::after {
  opacity: 1;
}

/* Step icon + number wrapper */
.step-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-number {
  width: 56px;
  height: 56px;
  border: 2px solid var(--w-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--w-green);
  background: var(--w-green-50);
  transition: all 0.35s ease;
  position: relative;
  z-index: 2;
}

.steps-row > :nth-child(2) .step-number {
  border-color: var(--w-amber);
  color: var(--w-amber);
  background: rgba(232, 145, 58, 0.06);
}

.steps-row > :nth-child(3) .step-number {
  border-color: var(--w-green-light);
  color: var(--w-green-light);
  background: rgba(90, 168, 130, 0.08);
}

.step-icon {
  position: absolute;
  bottom: -6px;
  right: -8px;
  font-size: 1.2rem;
  color: var(--w-green-light);
  background: var(--w-white);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--w-shadow-sm);
  z-index: 3;
  transition: transform 0.3s ease, color 0.3s ease;
}

.steps-row > :nth-child(2) .step-icon {
  color: var(--w-amber);
}
.steps-row > :nth-child(3) .step-icon {
  color: var(--w-green-light);
}

/* Gentle float animation on the icon-wrap */
.step-icon-wrap {
  animation: stepFloat 3s ease-in-out infinite;
}
.steps-row > :nth-child(2) .step-icon-wrap {
  animation-delay: 0.4s;
}
.steps-row > :nth-child(3) .step-icon-wrap {
  animation-delay: 0.8s;
}

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

/* Hover effects */
.step-block:hover .step-number {
  background: var(--w-green);
  color: var(--w-white);
  border-color: var(--w-green);
  transform: scale(1.08);
}
.steps-row > :nth-child(2) .step-block:hover .step-number {
  background: var(--w-amber);
  color: var(--w-white);
  border-color: var(--w-amber);
}
.steps-row > :nth-child(3) .step-block:hover .step-number {
  background: var(--w-green-light);
  color: var(--w-white);
  border-color: var(--w-green-light);
}

.step-block:hover .step-icon {
  transform: scale(1.15) rotate(8deg);
  color: var(--w-green-bright);
}
.steps-row > :nth-child(2) .step-block:hover .step-icon {
  color: var(--w-amber-bright);
}
.steps-row > :nth-child(3) .step-block:hover .step-icon {
  color: var(--w-green-light);
}

.step-block h5 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-block p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--w-gray-500);
}

/* Connector arrows between steps */
.steps-row > .col-md-4 {
  position: relative;
}
.step-connector {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--w-gray-300);
  font-size: 1.1rem;
  animation: connectorPulse 2s ease-in-out infinite;
}
.steps-row > :nth-child(2) .step-connector {
  animation-delay: 0.6s;
}

@keyframes connectorPulse {
  0%, 100% { opacity: 0.4; transform: translateY(-50%) translateX(0); }
  50%      { opacity: 0.8; transform: translateY(-50%) translateX(3px); }
}

/* Staggered scroll-reveal delays */
.scroll-reveal-delay-1 { transition-delay: 0.1s; }
.scroll-reveal-delay-2 { transition-delay: 0.25s; }
.scroll-reveal-delay-3 { transition-delay: 0.4s; }

/* --- Section Dividers --- */
.section-divider {
  border: none;
  border-top: 1px solid var(--w-stroke-light);
  margin: 0;
}

/* Section label */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--w-green);
  display: block;
  margin-bottom: 8px;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(160deg, var(--w-cream) 0%, rgba(61, 139, 110, 0.04) 100%);
  border-top: 1px solid var(--w-stroke-light);
}

/* ================================================
   MAP PAGE
   ================================================ */
.map-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  overflow: hidden;
}

.map-search-bar {
  flex-shrink: 0;
  z-index: 1000;
  background: var(--w-white);
  border-bottom: 1px solid var(--w-stroke) !important;
  padding: 10px 0;
  box-shadow: var(--w-shadow-sm);
}

/* Desktop: input groups share the row, badge pushed right */
@media (min-width: 768px) {
  .map-search-bar .d-flex.flex-md-row > div:first-child {
    flex: 0 1 auto;
    min-width: 320px;
  }
  .map-search-bar .d-flex.flex-md-row > div:last-child {
    flex: 1 1 auto;
    min-width: 340px;
  }
}

.map-content-area {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

#map {
  flex: 1;
  width: 100%;
  min-height: 400px;
  z-index: 1;
}

/* Map count badge */
.map-badge {
  font-size: 0.75rem;
  color: var(--w-gray-500);
  border: 1px solid var(--w-stroke);
  border-radius: 20px;
  padding: 5px 12px;
  background: var(--w-white);
  box-shadow: var(--w-shadow-sm);
}

.map-badge i {
  color: var(--w-green);
}

/* ================================================
   FILTER BACKDROP (mobile overlay)
   ================================================ */
.filter-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 799;
}
.filter-backdrop.show {
  display: block;
}

/* ================================================
   FILTER PANEL
   ================================================ */
.map-filter-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--w-cream);
  border-right: 1px solid var(--w-stroke);
  z-index: 800;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.map-filter-panel.open {
  transform: translateX(0);
  box-shadow: 4px 0 16px rgba(0, 0, 0, 0.06);
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--w-stroke);
  background: var(--w-white);
}

.filter-panel-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--w-gray-700);
}

.filter-panel-body {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 16px;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--w-gray-500);
  display: block;
  margin-bottom: 6px;
}

.filter-section .form-select,
.filter-section .form-control {
  font-size: 0.82rem;
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  color: var(--w-gray-700);
}

.filter-section .form-select:focus,
.filter-section .form-control:focus {
  border-color: var(--w-green);
  box-shadow: none;
}

.filter-range-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-range-row .form-control {
  flex: 1;
}

.filter-range-sep {
  color: var(--w-gray-400);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.filter-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-check-row .form-check-input {
  border-color: var(--w-stroke);
  margin-top: 0;
}

.filter-check-row .form-check-input:checked {
  background-color: var(--w-green);
  border-color: var(--w-green);
}

.filter-check-row .form-check-input:focus {
  box-shadow: none;
  border-color: var(--w-green);
}

.filter-actions {
  padding: 12px 16px;
  border-top: 1px solid var(--w-stroke);
  background: var(--w-white);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ================================================
   MAP MARKERS
   ================================================ */
.mhp-marker {
  background: none;
  border: none;
}

.mhp-marker-inner {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  background: var(--w-white);
  border: 1.5px solid var(--w-green);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
  position: relative;
}

.mhp-marker-inner::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50% 50% 50% 0;
  border: 1px solid var(--w-green);
  opacity: 0;
  animation: pulseDot 2.5s ease-out infinite;
}

.mhp-marker-inner:hover {
  transform: rotate(-45deg) scale(1.15);
  background: var(--w-green);
  box-shadow: 0 0 12px rgba(61, 139, 110, 0.3);
}

.mhp-marker-inner:hover i {
  color: var(--w-white);
}

.mhp-marker-inner i {
  transform: rotate(45deg);
  color: var(--w-green);
  font-size: 10px;
}

.mhp-marker-inner.active {
  background: var(--w-amber);
  border-color: var(--w-amber);
}

.mhp-marker-inner.active i {
  color: var(--w-white);
}

.mhp-marker-inner.active::after {
  border-color: var(--w-amber);
}

/* Status dot on map marker */
.status-dot-map {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--w-white);
  transform: rotate(45deg);
}

/* ================================================
   MARKER CLUSTER ICONS
   ================================================ */
.mhp-cluster-icon {
  background: none !important;
}

.mhp-cluster-icon .cluster-inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--w-green);
  background: var(--w-white);
  color: var(--w-green);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mhp-cluster-icon:hover .cluster-inner {
  background: var(--w-green);
  color: var(--w-white);
}

/* Override default markercluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
  transition: transform 0.15s ease;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--w-white) !important;
  color: var(--w-green) !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--w-green) !important;
  border-radius: 50% !important;
}

/* ================================================
   STATUS DOTS — Popup & Detail
   ================================================ */
.status-dot-popup {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ================================================
   FAVORITE HEART
   ================================================ */
.fav-heart {
  cursor: pointer;
  color: var(--w-gray-400);
  font-size: 0.85rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fav-heart:hover {
  color: var(--w-amber);
  transform: scale(1.15);
}

.fav-heart.active {
  color: var(--w-amber);
}

.fav-heart-modal {
  cursor: pointer;
  color: var(--w-gray-400);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.fav-heart-modal:hover {
  color: var(--w-amber);
  transform: scale(1.15);
}

.fav-heart-modal.active {
  color: var(--w-amber);
}

/* Popup title row (name + heart) */
.popup-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.popup-title-row h6 {
  flex: 1;
  min-width: 0;
}

/* ================================================
   MODAL STATUS BADGE
   ================================================ */
.modal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  margin-right: 8px;
  vertical-align: middle;
}

.modal-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ================================================
   PARK IMAGE IN MODAL
   ================================================ */
.park-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--w-radius-lg);
  border: 1px solid var(--w-stroke);
  margin-bottom: 16px;
  box-shadow: var(--w-shadow-sm);
}

/* ================================================
   LEAFLET POPUP
   ================================================ */
.leaflet-popup-content-wrapper {
  border-radius: var(--w-radius-lg) !important;
  border: 1px solid var(--w-stroke) !important;
  box-shadow: var(--w-shadow-lg) !important;
  padding: 0 !important;
  background: var(--w-white) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  min-width: 240px;
}

.leaflet-popup-tip {
  border-top-color: var(--w-stroke) !important;
}

.popup-content {
  padding: 14px 16px;
}

.popup-content h6 {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: var(--w-gray-800);
  letter-spacing: -0.01em;
}

.popup-content .popup-address {
  color: var(--w-gray-400);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.popup-content .popup-info {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.popup-content .popup-info-item {
  font-size: 0.75rem;
  color: var(--w-gray-500);
}

.popup-content .popup-info-item i {
  color: var(--w-green);
  margin-right: 3px;
}

.popup-content .btn {
  font-size: 0.78rem;
  padding: 6px 14px;
}

/* ================================================
   SEARCH DROPDOWN
   ================================================ */
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  border-radius: var(--w-radius-lg);
  border: 1px solid var(--w-stroke);
  box-shadow: var(--w-shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
  margin-top: 4px;
  width: 100%;
  background: var(--w-white);
}

#searchResults.show {
  display: block;
}

#searchResults .search-item {
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--w-radius);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--w-stroke-light);
}

#searchResults .search-item:last-child {
  border-bottom: none;
}

#searchResults .search-item:hover {
  background: var(--w-green-50);
}

#searchResults .search-item i {
  color: var(--w-gray-400);
  font-size: 0.85rem;
}

#searchResults .search-item:hover i {
  color: var(--w-green);
}

#searchResults .search-item-name {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--w-gray-700);
}

#searchResults .search-item-address {
  font-size: 0.75rem;
  color: var(--w-gray-400);
}

.search-empty {
  padding: 16px 12px;
  text-align: center;
  color: var(--w-gray-400);
  font-size: 0.82rem;
}

/* ================================================
   PARK DETAIL MODAL
   ================================================ */
#parkModal .modal-content {
  border-radius: var(--w-radius-xl);
  border: 1px solid var(--w-stroke);
  box-shadow: var(--w-shadow-lg);
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
}

/* Header with green scene background */
#parkModal .modal-header {
  background: var(--w-green);
  border-bottom: none !important;
  padding: 0;
  position: relative;
  min-height: 90px;
}

.modal-header-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.modal-header-scene svg {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-header-content {
  position: relative;
  z-index: 1;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

/* Title white on green bg */
#parkModal .modal-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: white;
}

/* Close button white on green */
#parkModal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

#parkModal .btn-close:hover {
  opacity: 1;
}

/* Heart white on green */
#parkModal .fav-heart-modal {
  color: rgba(255,255,255,0.6);
}

#parkModal .fav-heart-modal:hover,
#parkModal .fav-heart-modal.active {
  color: var(--w-amber);
}

.modal-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w-green), var(--w-green-light));
  color: var(--w-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

#parkModal .modal-footer {
  background: var(--w-cream);
  border-top: 1px solid var(--w-stroke) !important;
  padding: 12px 20px;
  border-bottom-left-radius: unset;
  border-bottom-right-radius: unset;
}

/* Loading state */
.park-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--w-gray-400);
  font-size: 0.9rem;
}

.park-loading-icon {
  font-size: 2.2rem;
  color: var(--w-green-light);
  margin-bottom: 12px;
  animation: subtleFloat 2s ease-in-out infinite;
}

/* Detail sections */
.park-detail-section {
  margin-bottom: 20px;
}

.park-detail-section h6 {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--w-green);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--w-stroke-light);
}

.park-detail-section h6 i {
  color: var(--w-green-light);
}

.park-detail-section .detail-row {
  display: flex;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid var(--w-stroke-light);
  font-size: 0.85rem;
}

.park-detail-section .detail-row:last-child {
  border-bottom: none;
}

.park-detail-section .detail-row i {
  color: var(--w-green-light);
  width: 18px;
  margin-right: 8px;
  text-align: center;
  font-size: 0.8rem;
}

.park-detail-section .detail-label {
  color: var(--w-gray-500);
  min-width: 90px;
  font-size: 0.82rem;
}

.park-detail-section .detail-value {
  color: var(--w-gray-700);
  font-weight: 500;
}

.park-detail-section .detail-value a {
  color: var(--w-gray-700);
}

.park-detail-section .detail-value a:hover {
  color: var(--w-green);
}

/* Contact cards */
.park-contact-card {
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit;
}

.park-contact-card:hover {
  border-color: var(--w-green);
  background: var(--w-green-50);
  transform: translateY(-2px);
  box-shadow: var(--w-shadow);
}

.park-contact-card i {
  color: var(--w-green-light);
  font-size: 0.95rem;
}

.park-contact-card:hover i {
  color: var(--w-green);
}

.park-contact-card .contact-label {
  font-size: 0.72rem;
  color: var(--w-gray-400);
}

.park-contact-card .contact-value {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--w-gray-700);
}

/* Ordinance link card */
.ordinance-card {
  background: var(--w-cream);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.2s ease;
}

.ordinance-card:hover {
  border-color: var(--w-green);
}

.ordinance-card i {
  color: var(--w-amber);
  font-size: 1.1rem;
}

.ordinance-card .ordinance-label {
  font-size: 0.72rem;
  color: var(--w-gray-400);
}

.ordinance-card .ordinance-title {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--w-gray-700);
}

/* ================================================
   TOAST
   ================================================ */
.toast {
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius-lg);
  background: var(--w-white);
  box-shadow: var(--w-shadow-lg);
}

.toast-header {
  background: var(--w-cream);
  border-bottom: 1px solid var(--w-stroke);
}

/* ================================================
   FOOTER
   ================================================ */
.footer-wire {
  background: var(--w-white);
  border-top: 1px solid var(--w-stroke);
  padding: 48px 0 28px;
}

.footer-wire h6 {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--w-gray-700);
  margin-bottom: 14px;
}

.footer-wire a {
  font-size: 0.88rem;
  color: var(--w-gray-500);
  transition: color 0.2s ease;
}

.footer-wire a:hover {
  color: var(--w-green);
}

.footer-wire .footer-brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--w-gray-800);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--w-stroke-light);
  margin: 28px 0 18px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--w-gray-400);
}

/* ================================================
   LEAFLET OVERRIDES
   ================================================ */
.leaflet-control-zoom a {
  border-color: var(--w-stroke) !important;
  color: var(--w-gray-500) !important;
  background: var(--w-white) !important;
  font-size: 14px !important;
}

.leaflet-control-zoom a:hover {
  border-color: var(--w-green) !important;
  color: var(--w-green) !important;
  background: var(--w-cream) !important;
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.8) !important;
  font-size: 9px !important;
  color: var(--w-gray-400) !important;
}

.leaflet-control-attribution a {
  color: var(--w-gray-400) !important;
}

/* Override Bootstrap's blue :active on .btn inside leaflet */
.leaflet-container .btn:active,
.leaflet-container :not(.btn-check) + .btn:active,
.leaflet-container .btn.active,
.leaflet-container .btn.show {
  background-color: var(--w-green-bright) !important;
  border-color: var(--w-green-bright) !important;
  color: var(--w-white) !important;
}

/* Ensure all links inside leaflet are white, override Leaflet's default blue everywhere */
.leaflet-container a,
.leaflet-container a:link,
.leaflet-container a:visited,
.leaflet-container a:hover,
.leaflet-container a:active,
.leaflet-container a:focus,
.leaflet-container .leaflet-bar a,
.leaflet-container .leaflet-bar a:active,
.leaflet-container .leaflet-bar a:focus,
.leaflet-container .leaflet-control a,
.leaflet-container .leaflet-control a:active,
.leaflet-container .leaflet-control a:focus,
.leaflet-popup-content a,
.leaflet-popup-content a:active,
.leaflet-popup-content a:focus,
.leaflet-popup-content a:visited {
  color: white !important;
  outline-color: var(--w-green) !important;
}

/* Override Leaflet default blue with green theme */
.leaflet-container button:focus,
.leaflet-container button:active,
.leaflet-container :focus-visible {
  outline-color: var(--w-green) !important;
  box-shadow: 0 0 0 3px rgba(61, 139, 110, 0.25) !important;
}

.leaflet-control-zoom a:focus {
  border-color: var(--w-green) !important;
  color: var(--w-green) !important;
  background: var(--w-cream) !important;
}

/* Override Leaflet's blue active state on zoom buttons */
.leaflet-control-zoom a:active {
  border-color: var(--w-green-bright) !important;
  color: var(--w-white) !important;
  background: var(--w-green) !important;
}

.leaflet-popup-close-button:focus,
.leaflet-popup-close-button:active {
  color: var(--w-green) !important;
  background: transparent !important;
}

.leaflet-container .leaflet-control-layers {
  border-color: var(--w-stroke) !important;
}

.leaflet-container .leaflet-control-layers a:focus,
.leaflet-container .leaflet-control-layers a:active {
  color: var(--w-green) !important;
  background: var(--w-cream) !important;
}

/* Smooth tile layer transitions for satellite/street switch */
.leaflet-tile-pane {
  transition: none;
}
.leaflet-tile-pane .leaflet-layer {
  transition: opacity 0.4s ease;
}

/* Satellite label overlay — CartoDB light_only_labels renders on transparent background */
.labels-only-layer {
  /* no filter needed — labels come pre-extracted */
}

/* ================================================
   PROFILE PAGE
   ================================================ */

.profile-card {
  background: var(--w-white);
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius-xl);
  box-shadow: var(--w-shadow);
  overflow: hidden;
}
.profile-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--w-stroke-light);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--w-gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-card-body {
  padding: 24px 18px;
}
.profile-alert {
  border: 1px solid var(--w-stroke);
  border-radius: var(--w-radius);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  background: var(--w-white);
  box-shadow: var(--w-shadow-sm);
}
.profile-alert.success {
  border-left: 3px solid var(--w-green);
  color: var(--w-green);
}

/* ================================================
   SCROLLBAR
   ================================================ */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--w-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--w-gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--w-gray-400);
}

/* ================================================
   LOADING STATE
   ================================================ */
.park-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: var(--w-gray-400);
  font-size: 0.82rem;
}

/* ================================================
   ANIMATION KEYFRAMES — Extended
   ================================================ */

@keyframes markerBounceIn {
  0%   { transform: translateY(-30px); opacity: 0; }
  50%  { transform: translateY(4px); }
  70%  { transform: translateY(-2px); }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes rippleExpand {
  0%   { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes confettiPop {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(var(--y, -40px)) translateX(var(--x, 0)) scale(0); opacity: 0; }
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 139, 110, 0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(61, 139, 110, 0); }
}

@keyframes dotBlink {
  0%, 20%   { opacity: 0.2; }
  50%       { opacity: 1; }
  80%, 100% { opacity: 0.2; }
}

@keyframes slideInRight {
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes scrollReveal {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes heroDotPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Animations: Markers --- */
.marker-enter .mhp-marker-inner {
  animation: markerBounceIn 0.5s ease-out forwards;
  opacity: 0;
}

/* --- Animations: Modal Staggered Reveal --- */
.modal-reveal {
  opacity: 0;
  animation: fadeInUp 0.35s ease-out forwards;
}

.modal-reveal-1 { animation-delay: 0ms; }
.modal-reveal-2 { animation-delay: 60ms; }
.modal-reveal-3 { animation-delay: 120ms; }
.modal-reveal-4 { animation-delay: 180ms; }
.modal-reveal-5 { animation-delay: 240ms; }

/* --- Animations: Share Confetti --- */
.confetti-piece {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: confettiPop 0.6s ease-out forwards;
  pointer-events: none;
}

/* --- Animations: Search Results Cascade --- */
.search-item-enter {
  animation: slideInRight 0.2s ease-out forwards;
  opacity: 0;
}

.search-item-enter:nth-child(1) { animation-delay: 0ms; }
.search-item-enter:nth-child(2) { animation-delay: 40ms; }
.search-item-enter:nth-child(3) { animation-delay: 80ms; }
.search-item-enter:nth-child(4) { animation-delay: 120ms; }
.search-item-enter:nth-child(5) { animation-delay: 160ms; }

/* --- Animations: Search Result Match Highlight --- */
.highlight-match {
  color: var(--w-green);
  font-weight: 600;
  background: var(--w-green-50);
  border-radius: 3px;
  padding: 0 2px;
}

/* --- Animations: Skeleton Loading --- */
.skeleton-row {
  height: 14px;
  background: linear-gradient(90deg, var(--w-cream) 25%, var(--w-stroke-light) 50%, var(--w-cream) 75%);
  background-size: 200% 100%;
  border-radius: 3px;
  margin-bottom: 8px;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* --- Animations: Button Ripple --- */
.btn-ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(61, 139, 110, 0.2);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
  transform: scale(0);
}

/* --- Animations: Loading Dots --- */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w-gray-400);
  animation: dotBlink 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* --- Animations: Badge Pulse --- */
.badge-animate {
  animation: badgePulse 0.8s ease-out;
}

/* --- Animations: Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animations: Hero Dot Stagger --- */
.hero-dot-animated {
  animation: heroDotPop 0.4s ease-out forwards;
  opacity: 0;
}

.hero-dot-animated:nth-child(1) { animation-delay: 0ms; }
.hero-dot-animated:nth-child(2) { animation-delay: 100ms; }
.hero-dot-animated:nth-child(3) { animation-delay: 200ms; }
.hero-dot-animated:nth-child(4) { animation-delay: 300ms; }
.hero-dot-animated:nth-child(5) { animation-delay: 400ms; }

/* --- Animations: Stats Counter --- */
.stat-counter {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* --- Animations: Cursor Trail --- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--w-green);
  opacity: 0.3;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s ease;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 767.98px) {
  /* ---- General Typography ---- */
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.4rem;
  }

  /* ---- Hero Section ---- */
  .hero-headline {
    font-size: 1.85rem;
    line-height: 1.15;
    margin-bottom: 10px;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-body {
    font-size: 0.85rem;
  }
  .min-vh-75 {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-illustration-wrap {
    padding-left: 0;
    margin-top: 1.5rem;
  }
  .hero-illustration-card {
    max-width: 100%;
  }
  /* Animated background: stronger overlay on mobile */
  .hero-bg-overlay {
    background: linear-gradient(180deg,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.9) 35%,
      rgba(255,255,255,0.65) 60%,
      rgba(255,255,255,0.35) 100%
    );
  }
  .stats-strip {
    padding: 20px 0;
  }
  .stat-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
  }
  .stat-item .text-start {
    text-align: center !important;
  }
  .step-block {
    padding: 18px;
  }

  /* ---- Hero Mobile ---- */
  .hero-float-badge.badge-top-right {
    top: -6px;
    right: 8px;
  }
  .hero-float-badge.badge-bottom-left {
    bottom: 12px;
    left: 8px;
  }
  .hero-float-badge.badge-mid-right {
    display: none;
  }

  /* ---- Map Page ---- */
  .map-wrapper {
    height: calc(100dvh - 60px);
  }

  /* Filter panel — full width slide-over on mobile */
  .map-filter-panel {
    width: 100%;
    z-index: 900;
  }

  /* ---- Modal ---- */
  #parkModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100vh;
  }
  #parkModal .modal-content {
    border-radius: 0;
    border: none;
    height: 100vh;
  }
  #parkModal .modal-header {
    min-height: 80px;
  }
  .modal-header-content {
    padding: 12px 16px;
  }
  .modal-status-badge {
    display: none !important;
  }
  .fav-heart-modal {
    font-size: 1.1rem;
  }
  #parkModal .modal-body {
    padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- Touch Target Sizes ---- */
  .mhp-marker-inner {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .btn-sm {
    min-height: 38px;
    min-width: 38px;
  }
  .form-control {
    min-height: 42px;
  }
  .search-item {
    padding: 12px;
  }
  .park-contact-card {
    padding: 14px;
  }
  .nav-link {
    padding: 12px 16px;
  }
}

@media (min-width: 768px) {
  #parkModal .modal-lg {
    max-width: 680px;
  }
}

@media (min-width: 992px) {
  .hero-illustration-wrap {
    padding-left: 1.5rem;
  }
}
