/* ==========================================================================
   LANDING PAGE STYLESHEET: SISTEM PERINGATAN DINI RESIKO BANJIR KOTA MEDAN
   Design: Deep Marine Navy / Electric Azure / High-Tech Glassmorphism
   ========================================================================== */

:root {
  --lp-bg-dark: #040d1a;
  --lp-bg-navy: #08172c;
  --lp-bg-card: rgba(10, 25, 47, 0.72);
  --lp-bg-card-hover: rgba(16, 38, 70, 0.88);
  --lp-border: rgba(56, 189, 248, 0.16);
  --lp-border-hover: rgba(56, 189, 248, 0.5);
  --lp-primary: #1677e8;
  --lp-primary-hover: #2e8cf0;
  --lp-accent: #38bdf8;
  --lp-accent-glow: rgba(56, 189, 248, 0.35);
  --lp-text-title: #f8fafc;
  --lp-text-body: #94a3b8;
  --lp-text-muted: #64748b;
  --lp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.lp-body {
  font-family: var(--lp-font-sans);
  background-color: var(--lp-bg-dark);
  color: var(--lp-text-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% -8%, rgba(22, 119, 232, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 88% 35%, rgba(56, 189, 248, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 12% 75%, rgba(14, 165, 233, 0.12) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ==========================================================================
   GLOBAL SVG ICON CONSTRAINTS (SCOPED TO SYSTEM ICONS ONLY)
   ========================================================================== */
.icon, svg.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

/* Ensure Leaflet vector SVG map renderer is never restricted */
.leaflet-container svg,
.leaflet-pane svg {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-boundaryPane-pane {
  z-index: 500 !important;
  pointer-events: auto;
}

.leaflet-boundaryPane-pane svg {
  pointer-events: auto;
}

/* Container */
.lp-container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.lp-nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--lp-border);
  transition: all 0.3s ease;
}

.lp-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--lp-text-title);
}

.lp-brand-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1677e8, #0284c7);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 0 16px rgba(22, 119, 232, 0.45);
}

.lp-brand-icon .icon,
.lp-brand-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex: 0 0 22px;
  stroke-width: 2.2;
}

.lp-brand-text {
  display: flex;
  flex-direction: column;
}

.lp-brand-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f1f5f9;
  line-height: 1.25;
  text-transform: uppercase;
}

.lp-brand-sub {
  font-size: 11px;
  color: var(--lp-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.lp-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.lp-nav-menu a {
  color: var(--lp-text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.lp-nav-menu a:hover {
  color: var(--lp-accent);
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--lp-primary), #0284c7);
  color: white !important;
  text-decoration: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(22, 119, 232, 0.45);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.lp-btn-primary .icon,
.lp-btn-primary svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  color: white;
}

.lp-btn-primary:hover {
  background: linear-gradient(135deg, #1f83f7, #0ea5e9);
  box-shadow: 0 6px 24px rgba(22, 119, 232, 0.65);
  transform: translateY(-2px);
  color: white;
}

.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0 !important;
  text-decoration: none;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.lp-btn-secondary .icon,
.lp-btn-secondary svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  color: #cbd5e1;
}

.lp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--lp-accent);
  color: white !important;
  transform: translateY(-2px);
}

.lp-btn-large {
  padding: 13px 26px;
  font-size: 15px;
  border-radius: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.lp-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  min-height: 580px;
  margin-top: 70px;
  padding: 0;
  overflow: hidden;
  background: #040d1a;
}

.lp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--lp-accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}

.lp-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: lp-pulse 2s infinite;
}

@keyframes lp-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.lp-hero-title {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 900;
  color: var(--lp-text-title);
  line-height: 1.18;
  letter-spacing: -0.5px;
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 20px;
}

.lp-hero-title span.gradient-text {
  background: linear-gradient(135deg, #38bdf8 15%, #60a5fa 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lp-hero-desc {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--lp-text-body);
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 34px;
  line-height: 1.7;
}

.lp-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

/* Stat Counters Row */
.lp-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.lp-stat-box {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  padding: 18px 20px;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.lp-stat-box:hover {
  border-color: var(--lp-border-hover);
  transform: translateY(-3px);
  background: var(--lp-bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lp-stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  line-height: 1.2;
}

.lp-stat-label {
  font-size: 13px;
  color: var(--lp-text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.lp-section {
  padding: 75px 0;
  position: relative;
}

.lp-section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 46px;
}

.lp-section-tag {
  color: var(--lp-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  display: block;
}

.lp-section-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  color: var(--lp-text-title);
  line-height: 1.25;
}

.lp-section-sub {
  color: var(--lp-text-body);
  font-size: 15px;
  margin-top: 10px;
}

/* ==========================================================================
   LIVE OPERATIONAL STATUS CARD
   ========================================================================== */
.lp-live-card {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.88), rgba(6, 19, 37, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(22, 119, 232, 0.12);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.lp-live-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1677e8, #38bdf8, #22c55e);
}

.lp-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-live-title-wrap h3 {
  font-size: 19px;
  color: var(--lp-text-title);
  font-weight: 700;
}

.lp-live-title-wrap p {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-top: 4px;
}

.lp-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
}

/* Metric Highlights Grid */
.lp-live-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-block: 24px;
}

.lp-metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  transition: background 0.2s ease;
}

.lp-metric-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lp-metric-item span {
  font-size: 11.5px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.4px;
  display: block;
}

.lp-metric-item strong {
  font-size: 20px;
  color: #f1f5f9;
  font-weight: 800;
  display: block;
  margin-top: 6px;
}

.lp-metric-item small {
  font-size: 12px;
  color: var(--lp-accent);
  display: block;
  margin-top: 4px;
}

/* Zone Badge Styles */
.zone-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}
.zone-0 { background: rgba(47, 179, 68, 0.2); color: #4ade80; border: 1px solid #2fb344; }
.zone-1 { background: rgba(155, 214, 75, 0.2); color: #bef264; border: 1px solid #9bd64b; }
.zone-2 { background: rgba(255, 212, 59, 0.2); color: #fde047; border: 1px solid #ffd43b; }
.zone-3 { background: rgba(255, 146, 43, 0.2); color: #fb923c; border: 1px solid #ff922b; }
.zone-4 { background: rgba(224, 49, 49, 0.2); color: #f87171; border: 1px solid #e03131; }

/* 5-scale color legend */
.lp-legend-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.lp-legend-step {
  padding: 9px 8px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.lp-live-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.lp-feature-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lp-feature-card:hover {
  border-color: var(--lp-border-hover);
  background: var(--lp-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.12);
}

.lp-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(22, 119, 232, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: grid;
  place-items: center;
  color: var(--lp-accent);
  margin-bottom: 20px;
}

.lp-feature-icon .icon,
.lp-feature-icon svg {
  width: 26px;
  height: 26px;
  max-width: 26px;
  max-height: 26px;
  flex: 0 0 26px;
}

.lp-feature-card h4 {
  font-size: 17px;
  color: var(--lp-text-title);
  font-weight: 700;
  margin-bottom: 10px;
}

.lp-feature-card p {
  font-size: 13.5px;
  color: var(--lp-text-body);
  line-height: 1.65;
}

/* ==========================================================================
   21 KECAMATAN GRID
   ========================================================================== */
.lp-districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 11px;
}

.lp-district-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.lp-district-item:hover {
  background: rgba(22, 119, 232, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateY(-2px);
}

.lp-district-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: var(--lp-accent);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   WORKFLOW TIMELINE
   ========================================================================== */
.lp-workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  position: relative;
}

.lp-step-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border);
  border-radius: 15px;
  padding: 24px;
  position: relative;
}

.lp-step-number {
  font-size: 12px;
  font-weight: 800;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.lp-step-card h4 {
  font-size: 16px;
  color: var(--lp-text-title);
  font-weight: 700;
  margin-bottom: 8px;
}

.lp-step-card p {
  font-size: 13px;
  color: var(--lp-text-body);
  line-height: 1.6;
}

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.lp-cta-banner {
  background: linear-gradient(135deg, #09315d, #0b4b8c);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  padding: 46px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 45px rgba(22, 119, 232, 0.28);
  position: relative;
  overflow: hidden;
}

.lp-cta-banner h3 {
  font-size: clamp(22px, 3vw, 30px);
  color: white;
  font-weight: 800;
  margin-bottom: 12px;
}

.lp-cta-banner p {
  color: #cbd5e1;
  font-size: 15px;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 26px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  background: #02070f;
  padding: 45px 0 26px;
  color: var(--lp-text-muted);
  font-size: 13px;
}

.lp-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-weight: 700;
}

.lp-footer-brand .lp-brand-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.lp-footer-brand .lp-brand-icon .icon,
.lp-footer-brand .lp-brand-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}

.lp-footer-disclaimer {
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 860px) {
  .lp-nav-menu {
    display: none;
  }
  .lp-hero {
    padding-top: 120px;
  }
  .lp-impact-list {
    grid-template-columns: 1fr;
  }
  .lp-legend-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HERO FULL SECTION INTERACTIVE MAP
   ========================================================================== */
#heroInteractiveMap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.lp-hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, #040d1a, transparent);
  pointer-events: none;
  z-index: 400;
}

.lp-boundary-tooltip {
  background: rgba(4, 13, 26, 0.95) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(56, 189, 248, 0.6) !important;
  border-radius: 9px !important;
  padding: 10px 14px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
  font-family: inherit !important;
  pointer-events: none !important;
}

.lp-boundary-tooltip::before {
  border-top-color: rgba(4, 13, 26, 0.95) !important;
}

.lp-tip-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
}

.lp-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 4px;
}

.lp-tip-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.2px;
}

.lp-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #94a3b8;
}

.lp-tip-row b {
  color: #f1f5f9;
  font-weight: 700;
}

.lp-tip-sub {
  font-size: 11px;
  color: #64748b;
  font-style: italic;
}

/* Floating Detail HUD Card (Top Right) */
.lp-map-floating-hud {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 500;
  width: min(300px, 88vw);
  background: rgba(4, 13, 26, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.38);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  text-align: left;
}

.lp-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.lp-hud-kicker {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--lp-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.lp-hud-title {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin-bottom: 12px;
}

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

.lp-hud-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
}

.lp-hud-metric span {
  font-size: 10.5px;
  color: var(--lp-text-muted);
  text-transform: uppercase;
  display: block;
}

.lp-hud-metric strong {
  font-size: 15px;
  color: #f1f5f9;
  font-weight: 800;
  display: block;
  margin-top: 2px;
}

.lp-hud-zone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.lp-hud-btn-predict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 9px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lp-hud-btn-predict:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.55);
  transform: translateY(-1px);
}

.lp-hud-btn-predict:active {
  transform: translateY(0);
}

.lp-hud-btn-predict .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.lp-hud-hint {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Floating Legend (Bottom Left) */
.lp-map-floating-legend {
  position: absolute;
  bottom: 24px;
  left: 28px;
  z-index: 500;
  background: rgba(4, 13, 26, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.lp-map-legend-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  display: block;
}

.lp-map-legend-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lp-map-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #e2e8f0;
}

.lp-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-0 { background-color: #2fb344; }
.dot-1 { background-color: #9bd64b; }
.dot-2 { background-color: #ffd43b; }
.dot-3 { background-color: #ff922b; }
.dot-4 { background-color: #e03131; }

@media (max-width: 768px) {
  .lp-hero-map-wrap {
    height: 520px;
  }
  .lp-map-controller {
    top: 10px;
    padding: 6px 12px;
    gap: 8px;
  }
  .lp-map-floating-hud {
    top: auto;
    bottom: 14px;
    right: 14px;
    left: 14px;
    width: auto;
    padding: 12px 14px;
  }
  .lp-hud-hint {
    display: none;
  }
  .lp-map-floating-legend {
    display: none;
  }
}

.lp-btn-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: grid;
  place-items: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

.lp-btn-icon-wrap .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.lp-btn-text-wrap {
  display: flex;
  flex-direction: column;
}

.lp-btn-text-wrap strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.lp-btn-text-wrap small {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.lp-badge-sparkle {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

/* ==========================================================================
   MODAL OVERLAY PREDIKSI PUBLIK
   ========================================================================== */
.lp-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.lp-modal-backdrop[hidden] {
  display: none !important;
}

.lp-modal-card {
  background: #091322;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  width: min(540px, 95vw);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lpModalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lp-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 16px;
}

.lp-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--lp-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lp-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.lp-modal-sub {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.lp-modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lp-modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.lp-modal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lp-modal-alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-modal-alert.error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.lp-modal-alert.success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.lp-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lp-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.lp-badge-tag {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
}

.lp-form-select {
  width: 100%;
  padding: 11px 14px;
  background: #0f1c32;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.lp-form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.lp-form-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lp-info-preview-box {
  background: rgba(15, 28, 50, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-info-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.lp-preview-label {
  color: #94a3b8;
}

.lp-preview-value {
  color: #38bdf8;
  font-weight: 700;
  text-align: right;
}

.lp-predict-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
}

.lp-predict-loading[hidden] {
  display: none !important;
}

.lp-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(56, 189, 248, 0.25);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: lpSpin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.lp-loading-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-loading-text strong {
  font-size: 13px;
  color: #f1f5f9;
}

.lp-loading-text span {
  font-size: 11.5px;
  color: #94a3b8;
}

.lp-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(4, 10, 20, 0.4);
}

.lp-btn-process {
  min-width: 190px;
}


