/* =======================================================================
   HOME PAGE CSS (index)
   - Hero SPC map, ticker, legend/alerts, bottom ribbon
   - SPC polygon popover & toast
   - Mobile quick menu
   - Home “services” sections (hail maps + pros)
   - Cookie consent banner
   - Outlook + Legend modals
   - Home-only breakpoints
   ======================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");


/* ------------------- START: HOME PAGE HERO SECTION (OUTLOOK MAP) ------------------- */

/* HOME HERO BACKGROUND */
.hero-banner {
  position: relative;
}

.hero-banner h1,
.hero-banner p {
  color: inherit;
}

.hero-banner-main {
  height: 780px;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-banner-img {
  position: absolute;
  inset: 0;
}

.hero-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* Top / bottom fades over hero image */
.hero-banner-img::before,
.hero-banner-img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

/* TOP fade */
.hero-banner-img::before {
  top: 0;
  height: 5px; /* taller = softer transition */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.15) 25%,
    rgba(0, 0, 0, 0.08) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* BOTTOM fade */
.hero-banner-img::after {
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.18) 25%,
    rgba(0, 0, 0, 0.06) 60%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* SVG overlay positioned like the image */
.hero-banner-img .spc-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* JS will manage path interactions */
}

/* SVG overlay stays clickable */
.hero-banner-img #spc-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

/* Let clicks fall through where there is no actual UI */
.hero-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none; /* allow underlying SVG to receive clicks */
}

/* Re-enable pointer events for all actual controls inside */
.hero-banner-content * {
  pointer-events: auto;
}


/* ---------- SPC polygon popover (hero map) ---------- */

.hero-banner .spc-popover {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050; /* above hero stripe, modals, etc. */
  min-width: 320px;

  max-height: calc(100dvh - 24px); /* modern mobile */
  max-height: calc(100vh - 24px);  /* fallback */

  overflow-x: auto;

  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #666666;
  font-size: 0.85rem;
  line-height: 1.35;
  animation: spc-popover-in 0.12s ease-out;
}

.hero-banner .spc-popover-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* header: big SFH + label + close X */
.hero-banner .spc-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  padding: 5px 0 5px 5px;
}

.hero-banner .spc-popover-headline {
  display: flex;
  align-items: center;
}

/* big SFH number pill */
.hero-banner .spc-popover-sfh {
  display: inline-flex;
  text-align: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #ffd8c7;
  background: #fff1eb;
  color: #ff5a1f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-left: auto;
  margin: 5px;
}

.hero-banner .spc-popover-day {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777777;
}

/* close button */
.hero-banner .spc-popover-x {
  border: none;
  background: transparent;
  color: #adb5bd;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
  cursor: pointer;
}

.hero-banner .spc-popover-x:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #495057;
}

/* body */
.hero-banner .spc-popover-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
}

/* band name: GENERAL THUNDERSTORMS */
.hero-banner .spc-popover-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #666666;
  margin-bottom: 0; /* tighter spacing */
}

.hero-banner .spc-pop-row {
  margin-bottom: 5px;
}

/* description just under band name */
.hero-banner .spc-popover-desc {
  font-size: 0.82rem;
  color: #666666;
  margin-top: 0; /* reduce gap between title + desc */
}

/* issued / expires block */
.hero-banner .spc-popover-times {
  font-size: 0.78rem;
  color: #6c757d;
  display: grid;
  gap: 2px;
  margin-bottom: 6px;
}

.hero-banner .spc-popover-times .k {
  font-weight: 500;
  margin-right: 4px;
}

/* primary action button */
.hero-banner .spc-popover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  color: #ffffff;
  background: #4a7dff;
}

.hero-banner .spc-popover-btn:hover {
  background: #3b69d6;
}

/* entrance animation */
@keyframes spc-popover-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-banner .spc-popover-footer {
  margin-top: 2px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 10px;
}

.hero-banner .spc-popover-secondary {
  font-size: 0.78rem;
  padding: 8px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.hero-banner .spc-popover-secondary:hover {
  background: #f8f9fa;
  color: #495057;
}

/* let the footer layout control button alignment */
.hero-banner .spc-popover-btn {
  align-self: auto;
}

.hero-banner .spc-day-togglegroup .spc-day-pill-left {
  text-align: right;
}

.hero-banner .spc-day-togglegroup .spc-day-pill-right {
  text-align: left;
}


/* HOME HERO OUTLOOK BASEMAP OVERLAY */
.spc-layer {
  display: none;
}

.spc-layer.is-active {
  display: block;
}

.spc-path {
  pointer-events: auto;
  cursor: pointer;
}

/* SPC hero overlay hover state */
.hero-banner #spc-svg .spc-path {
  transition: filter 0.12s ease, stroke-width 0.12s ease;
  cursor: pointer;
}

.hero-banner #spc-svg .spc-path:hover {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.75));
  stroke-width: 2.2;
}


/* HERO OVERLOOK TASTER / EMPTY STATE */

.spc-empty-alert {
  display: none;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.spc-empty-alert.is-visible {
  display: inline-flex;
  align-items: center;
}

/* Toast system (center screen) */
.spc-toast-container {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1080;
  pointer-events: none;
}

/* Base toast style */
.spc-toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: min(90vw, 420px);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1.3;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);

  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.spc-toast-info {
  background: rgba(30, 136, 229, 0.9);
  color: #ffffff;
}

/* When visible */
.spc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* HOME SWO TITLE - TOP CENTER */

.hero-info {
  position: relative;
  top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 5;
  width: auto;
  margin: 0;
}

/* Main button wrapper */
.hero-info-btn-container {
  width: auto;
}

/* Main button visuals */
.hero-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 38px;
  font-size: 16px;
  font-weight: 600;
  color: #686868;
  border: none;
  border-radius: 999px;
  gap: 10px;
  box-shadow:
    0 1px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(100%) blur(16px);
  background: rgba(255, 255, 255, 0.9);
}

.hero-info-btn h5 {
  margin: 0;
  font: inherit;
}

/* Sub-buttons row centered under main button */
.hero-info-sub-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow:
    0 1px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(100%) blur(16px);
}

.hero-info-sub-btn h6 {
  font-weight: 500;
  font-size: 12px;
}

.hero-info-sub-btn i {
  font-size: 15px;
}

/* Small secondary buttons */
.hero-info .btn-secondary {
  min-width: 144px;
  line-height: 30px;
  padding: 0 30px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 700;
  color: #686868;
  box-shadow:
    0 1px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(100%) blur(16px);
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
}

.hero-info .btn-secondary i {
  font-size: 12px;
}

.hero-info .btn-secondary:hover {
  background: rgb(78, 110, 140);
  color: #ffffff;
}

.hero-info .active {
  min-width: 144px;
  line-height: 30px;
  padding: 0 30px;
  background: rgb(92, 166, 236);
  color: #ffffff;
}

/* keep only the border reset here */
.hero-info .btn-secondary { border: none; }

/* make the 1..8 buttons compact */
.hero-info-sub-btn .btn {
  min-width: var(--sz);
  padding: 3px 10px;
  font-size: 10px;
  height: 22px;
  line-height: 12px;
  font-weight: 600;
}

/* tighter spacing between small buttons/groups */
.hero-info-sub-btn {
  gap: 6px;
}

.hero-quickmenu { display: none; }

/* dropdown menu styling for day picker */
.hero-info-sub-btn .dropdown-menu {
  min-width: 100px;
}

.hero-info-sub-btn .spc-day-menu .dropdown-item {
  font-size: 11px;
  padding: 4px 14px;
}

.hero-info-sub-btn .spc-day-menu .dropdown-item.active,
.hero-info-sub-btn .spc-day-menu .dropdown-item:active {
  background: #e9ecef;
  color: #343a40;
}


/* Mobile hero quick menu dropdown */

.hero-quickmenu-menu {
  min-width: 230px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  padding: 8px 10px;
}

/* Make the menu a vertical list with good tap targets */
.hero-quickmenu-menu .quick-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Individual menu rows */
.hero-quickmenu-menu .quick-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: left;
}

.hero-quickmenu-menu .quick-btn:hover,
.hero-quickmenu-menu .quick-btn:active {
  background: rgba(148, 163, 184, 0.14);
}

/* Left icon pill */
.hero-quickmenu-menu .quick-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* Colored icons per hazard */
.hero-quickmenu-menu .quick-icon.tornado {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.hero-quickmenu-menu .quick-icon.hail {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.hero-quickmenu-menu .quick-icon.wind {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.hero-quickmenu-menu .quick-icon.info {
  background: rgba(148, 163, 184, 0.16);
  color: #4b5563;
}

/* Main label text */
.hero-quickmenu-menu .quick-label {
  flex: 1;
  white-space: nowrap;
}

/* Right-hand small value (Day 1) */
.hero-quickmenu-menu .quick-value {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 700;
}

/* Soft divider lines between sections */
.hero-quickmenu-menu .quick-divider {
  margin: 4px 0;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

/* Slight accent for the info row */
.hero-quickmenu-menu .quick-info {
  margin-top: 2px;
}

/* Keep hook for active buttons */
.hero-banner .hero-info-sub-btn .btn-group-sm .btn.active {
  /* intentionally empty; Bootstrap handles base look */
}

/* Dropdown active item styling for the hero quick menu */
.hero-banner .dropdown-menu .dropdown-item.active,
.hero-banner .dropdown-menu .dropdown-item:active {
  background: #e9ecef;
  color: inherit;
}


/* HOME ALERTS BOTTOM RIGHT */

.hero-info-alerts {
  display: flex;
  position: absolute;
  justify-content: center;
  right: 10px;
  bottom: 85px;
  z-index: 5;
}

.hero-info-btn-alerts {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: inline-block;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 70, 0, 0.8);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  box-shadow:
    0 1px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: saturate(100%) blur(16px);
}

.hero-info-btn-alerts:hover {
  background: rgba(255, 70, 0, 1);
  border-radius: 20px;
}

.hero-info-btn-alerts li {
  display: inline-block;
  list-style: none;
}

i.icon-only {
  display: none;
}

.hero-info-btn-alerts .alert-count {
  padding: 6px 12px 6px 15px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 500;
}

.hero-info-btn-alerts .alert-message {
  padding: 6px 16px 6px 6px;
  font-size: 12px;
  font-weight: 500;
}

/* Collapse to icon on very small screens */
@media (max-width: 640px) {
  .hero-info-btn-alerts {
    display: flex;
    flex-direction: column; /* stack vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5px 0 0;
  }

  .hero-info-btn-alerts .alert-message {
    font-size: 12px;
    padding: 2px 5px 2px 0;
  }

  .hero-info-btn-alerts .alert-count {
    padding: 5px 5px 5px 10px;
    border-right: 0.5px solid rgba(255, 255, 255, 0.3);
  }

  .alerts-btn-text {
    display: none;
  }

  .hero-info-btn-alerts::before {
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 70, 0, 0.8);
    color: #ffffff;
    text-align: center;
  }

  .hero-info-btn-alerts .alert-icon {
    display: block;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    margin: 0 auto;
  }

  .hero-info-alerts {
    right: 10px;
    bottom: 30px;
  }

  .hero-info-btn-alerts i {
    display: inline-block;
  }
}

.hero-info-btn-alerts .alert-icon {
  display: inline-block;
  transform-origin: 50% 10%;
  will-change: transform;
}

.hero-info-btn-alerts.is-bell-updating .alert-icon {
  animation: alerts-bell-update 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes alerts-bell-update {
  0% {
    transform: scale(1) rotate(0deg);
  }
  8% {
    transform: scale(1.14) rotate(0deg);
  }
  16% {
    transform: scale(1.14) rotate(-14deg);
  }
  26% {
    transform: scale(1.14) rotate(14deg);
  }
  36% {
    transform: scale(1.11) rotate(-12deg);
  }
  46% {
    transform: scale(1.08) rotate(10deg);
  }
  56% {
    transform: scale(1.05) rotate(-8deg);
  }
  66% {
    transform: scale(1.03) rotate(6deg);
  }
  76% {
    transform: scale(1.02) rotate(-4deg);
  }
  86% {
    transform: scale(1.01) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}



/* HOME PAGE LEGEND */

.hero-info-legend {
  display: block;
  position: absolute;
  left: 10px;
  bottom: 85px;
  z-index: 5;
}

.hero-info-btn-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid rgba(115, 135, 153, 0.8);
  border-radius: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  list-style: none;
  letter-spacing: 1px;
  color: rgba(64, 101, 124, 1);
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
}

.hero-info-btn-legend:hover {
  border: 0.1px solid rgba(64, 101, 124, 0.5);
  border-radius: 14px;
  color: rgba(64, 101, 124, 1);
}

.hero-info-btn-legend span:hover {
  color: rgba(64, 101, 124, 0.9);
}

.hero-popover-legend h6 {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font: 500 10px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  text-align: right;
}

/* swath legend grid */
.legend-grid {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.legend-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #2a3042;
}

.legend-grid .swatch {
  flex: 0 0 5px;
  width: 30px;
  height: 41px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

/* swatch colors */
.swatch--lg{ background:rgba(16,194,92,.35); }  /* light green */
.swatch--g { background:rgba(38,168,65,.45); }  /* green */
.swatch--y { background:rgba(255,230,0,.65); }  /* yellow */
.swatch--o { background:rgba(255,153,0,.65); }  /* orange */
.swatch--r { background:rgba(255,59,48,.65); }  /* red */
.swatch--p { background:rgba(195,0,255,.65); }  /* pink */

/* optional: tiny description text */
.legend-grid li p {
  margin: 0 0 0;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  color: #545e66;
}


/* HOME PAGE BOTTOM / TOOLTIP FOR SFH DAY OUTLOOK */

.hero-bottom {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
}

.hero-metric {
  height: 74px;
  text-align: center;
  background: rgba(163, 191, 217, 0.8);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  border-top: 0.5px solid rgba(149, 182, 212, 0.8);
  letter-spacing: 1px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-metric p {
  margin: 0;
}


/* ------------------- END: HOME PAGE HERO SECTION (OUTLOOK MAP) --------------------- */


/* ================= START: OUTLOOK POPUP MODAL ================= */

.outlook-modal {
  align-items: center;
  justify-content: center;
}

.outlook-modal .modal-dialog {
  display: block;
  box-sizing: border-box;
  padding: 0;
}

.outlook-modal .modal-dialog-centered {
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.outlook-modal .modal-content {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.outlook-modal .modal-body {
  padding: 54px;
  flex-direction: column;
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  overscroll-behavior: contain;
  scrollbar-width: none; /* Firefox */
}

.outlook-modal .modal-body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.outlook-modal-close {
  position: absolute;
  top: 0;
  right: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
}

.modal-custom-footer {
  font-size: 10px;
  color: rgba(193, 200, 202, 1);
  border-top: 0.5px solid rgba(193, 200, 202, 0.6);
  padding-top: 15px;
  text-align: center;
}

.modal-custom-footer p {
  font-size: 10px;
  font-weight: 600;
}

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.spc-discussion {
  white-space: pre-wrap;
  margin: 16px 0;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}

.hero-popover-home p {
  color: rgba(56, 65, 71, 0.7);
  font-size: 13px;
  font-weight: 500;
}

/* ================= END: OUTLOOK POPUP MODAL ================= */


/* ================= START: LEGEND MODAL ================= */

.legend-modal {
  align-items: center;
  justify-content: center;
}

.legend-modal .modal-dialog {
  display: block;
  box-sizing: border-box;
  padding: 0;
}

.legend-modal .modal-dialog-centered {
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-modal .modal-content {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.legend-modal .modal-body {
  padding: 54px;
  flex-direction: column;
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.legend-modal .modal-body::-webkit-scrollbar {
  display: none;
}

.legend-modal-close {
  position: absolute;
  top: 0;
  right: 8px;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
}

/* ================= END: LEGEND MODAL ================= */


/* =========================== START: ALERTS MAP ===================== */

/* All rules scoped to the Alerts fullscreen modal */
.alerts-modal {
  --bg: #0b0f14;
  --panel: #ffffff;
  --muted: #6b7280;
  --chip: #eef2f7;
  --chip-text: #3b4451;
  --accent: #ff5a1f;
  --green: #22c55e;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);

  --tag-bg: #f3f4f6;
  --tag-br: #e5e7eb;
  --tag-tx: #0f172a;

  color: #1f2937;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

.alerts-modal * {
  box-sizing: border-box;
}

.alerts-modal {
  background: var(--bg);
}

.alerts-modal .alerts {
  max-width: none;
}

/* App grid inside the modal */
.alerts-modal .app {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  height: 100vh;
  gap: 0;
}

/* LEFT: Map */
.alerts-modal .map-wrap {
  position: relative;
  min-width: 0;
  height: 100vh;
}

/* Left HUD */
.alerts-modal .hud-left{position:absolute;left:16px;top:16px;z-index:30;display:flex;flex-direction:column;gap:8px}
.alerts-modal .badge{background:#000;border:1px solid rgba(255,255,255,.25);color:#fff;padding:8px 12px;border-radius:14px;font-weight:800;}
.alerts-modal .sub{color:#fff;background:rgba(0,0,0,.55);backdrop-filter:saturate(1.2) blur(4px);padding:6px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.15);font-weight:500}

/* Zoom controls */
.alerts-modal .zoom-ui{position:absolute;right:16px;top:16px;display:flex;gap:8px;pointer-events:auto}
.alerts-modal .btn{background:rgba(255,255,255,.9);border:1px solid #d1d5db;padding:6px 10px;border-radius:10px;cursor:pointer;font-weight:800}
.alerts-modal .btn:hover{background:#fff}

/* Error toast */
.alerts-modal .error{position:absolute;top:16px;right:16px;z-index:50;background:#b91c1c;color:#fff;padding:8px 12px;border-radius:10px;display:none}

/* RIGHT: Sidebar */
.alerts-modal aside.panel{background:var(--panel);display:flex;flex-direction:column;height:100vh}
.alerts-modal .panel-inner{display:flex;flex-direction:column;height:100%}

.alerts-modal .panel-header{position:sticky;top:0;z-index:5;background:var(--panel);}
.alerts-modal .ph-top{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 10px;border-bottom:1px solid #eef0f3}
.alerts-modal .big{font-weight:900;letter-spacing:.5px;color:var(--accent);font-size:72px;line-height:.9}
.alerts-modal .big-sub{font-weight:700;text-transform:uppercase;color:#9aa3af;letter-spacing:2px;margin-top:8px;font-size:12px}
.alerts-modal .close{font-size:20px;color:#111;background:#fff;border:1px solid #e5e7eb;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;cursor:pointer;align-self:flex-start;margin-top:0;padding-bottom:1px;padding-left:1px}

.alerts-modal .tabs{display:flex;gap:8px;padding:12px 18px;border-bottom:1px solid #eef0f3;position:sticky;top:0;background:var(--panel)}
.alerts-modal .tabs .tab{padding:6px 10px;border-radius:8px;border:1px solid #d1d5db;background:#f3f4f6;color:#111;cursor:pointer;font-weight:700}
.alerts-modal .tabs .tab.is-active{background:#111;color:#fff;border-color:#111}

/* Scrollable alerts list */
.alerts-modal .list{flex:1;min-height:0;overflow:auto;padding:14px 12px 18px 18px}
.alerts-modal .section-title-nws-alerts{margin:10px 2px;color:#374151;font-weight:800}

.alerts-modal .list{scroll-behavior:smooth;scroll-padding-top:64px;scroll-padding-bottom:12px}
.alerts-modal .list .card{scroll-margin-top:64px;scroll-margin-bottom:12px}

.alerts-modal .card{background:#f9fafb;border:1px solid #eef0f3;border-radius:12px;padding:12px 12px;margin:10px 6px;box-shadow:0 6px 12px rgba(0,0,0,.04)}
.alerts-modal .card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}
.alerts-modal .chips{display:flex;gap:6px;flex-wrap:wrap}
.alerts-modal .chip{background:var(--chip);color:var(--chip-text);border-radius:8px;padding:3px 6px;font-size:12px;border:1px solid #e5e7eb}
.alerts-modal .pill{background:#fff1eb;color:var(--accent);border:1px solid #ffd8c7;border-radius:999px;padding:4px 8px;font-weight:900;font-size:12px}
.alerts-modal .hl{font-weight:800;color:#334155;margin:6px 0 10px 0;}
.alerts-modal .meta{color:#6b7280;font-size:12px}

/* --- Alert Refresh--- */
.alerts-newbadge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 10px 30px;
  margin-bottom: 0.5rem;
  background: rgba(37, 99, 235, 0.09);
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.alerts-newbadge.d-none {
  display: none !important;
}




/* --- Highlight states --- */
.alerts-modal .card.is-active{outline:3px solid var(--accent);outline-offset:2px}
.alerts-modal .card.is-hover{box-shadow:0 0 0 2px rgba(255,90,31,.3) inset}
.alerts-modal .card{scroll-margin-top:10px}
.alerts-modal .list,
.alerts-modal aside.panel{scroll-padding-top:56px;scroll-padding-bottom:10px}

.alerts-modal .path.is-active {
  filter: none !important;        /* remove the dirty shadow */
  fill-opacity: 0.35 !important;  /* translucent fill when selected */
  stroke-width: 2.2px !important; /* keep stroke crisp */
}
.alerts-modal .path.is-hover {
  filter: none !important;
  fill-opacity: 0.55 !important;  /* slightly stronger on hover (optional) */
  stroke-width: 2px !important;
}
/* --- NWS details sheet (custom, not Bootstrap) --- */
.alerts-modal .nws-sheet{position:fixed;inset:0;display:none;z-index:1060}
.alerts-modal .nws-sheet.show{display:block}

.alerts-modal .nws-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}

.alerts-modal .nws-sheet-panel{
  position:absolute;right:0;top:0;bottom:0;width:min(720px,96vw);
  background:#fff;box-shadow:-16px 0 40px rgba(0,0,0,.35);overflow:auto;
  padding:60px 30px;
}

.alerts-modal .nws-sheet-x{
  position:absolute;right:12px;top:10px;width:36px;height:36px;
  border:1px solid #e5e7eb;border-radius:50%;background:#fff;cursor:pointer;font-size:20px;
}

/* Modal header & tagbar */
.alerts-modal .modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.alerts-modal .modal-title-alerts{margin:0;font-size:22px;line-height:1;font-weight:600;color:#0f172a}
.alerts-modal .modal-sub{color:#6b7280;font-size:13px;font-weight:600}

/* --- Modal footer --- */
.alerts-modal .modal-footer{
  border-top:1px solid #eef0f3;
  margin-top:60px;
  padding-top:10px;
  color:#6b7280;
  font-size:12px;
  line-height:1.5;
  padding-right:0;
  padding-left:0;
}
.alerts-modal .modal-footer .row{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0}
.alerts-modal .modal-footer .mono{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:11px;color:#94a3b8;word-break:break-all;
}
.alerts-modal .modal-footer .muted{color:#94a3b8}



.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px 12px;
  flex-wrap: wrap;           /* allows tags to slide under when needed */
}

.modal-title-alerts {
  flex: 1 1 auto;            /* title takes the main line */
  min-width: 200px;
  width:100%;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

/* On smaller screens: stack tags under title, left-aligned */
@media (max-width: 768px) {
  .modal-head {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .modal-tags {
    margin-top: 4px;
  }
}

.alerts-modal .tagbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px 8px}
.alerts-modal .tag{
  display:inline-flex;align-items:center;gap:6px;background:var(--tag-bg);color:var(--tag-tx);
  border:1px solid var(--tag-br);border-radius:999px;padding:6px 10px;font-weight:700;font-size:11px;
}
.alerts-modal .tag .k{color:#475569;font-weight:800;text-transform:uppercase;letter-spacing:.3px}
.alerts-modal .tag .v{color:#0f172a;font-weight:800}

/* Modal blocks */
.alerts-modal .block{background:#f9fafb;border:1px solid #eef0f3;border-radius:12px;padding:20px 14px;margin:12px 0}
.alerts-modal .block h3{margin:0 0 8px;font-size:14px;text-transform:uppercase;letter-spacing:.8px;color:#475569;font-weight:900}
.alerts-modal .block p{margin:0}
.alerts-modal .block pre{white-space:pre-wrap;margin:0}

/* Footer info */
.alerts-modal .footer-info{margin-top:12px;color:#334155;font-size:13px}
.alerts-modal .footer-info .row{display:flex;gap:8px;align-items:baseline;margin:6px 0}
.alerts-modal .footer-info .lbl{color:#64748b;font-weight:800;width:88px}
.alerts-modal .footer-info .val{font-weight:700}

/* Divider below the event title */
.alerts-modal .modal-divider{border-top:1px solid #e5e7eb;margin:10px 0 12px}

/* Plain meta rows */
.alerts-modal .meta-plain{margin:6px 0 8px;color:#334155;font-size:14px}
.alerts-modal .meta-plain .row{display:flex;gap:8px;align-items:baseline;margin:4px 0}
.alerts-modal .meta-plain .lbl{color:#64748b;font-weight:800;width:100px}
.alerts-modal .meta-plain .val{font-weight:600}

/* Touch / interaction hints */
.alerts-modal aside.panel,
.alerts-modal .panel-header,
.alerts-modal .tabs,
.alerts-modal .list,
.alerts-modal .card,
.alerts-modal .btn,
.alerts-modal .modal-sheet,
.alerts-modal .modal-x{
  touch-action:manipulation;
}

/* Docked chooser: same width as sidebar (uses --chooser-width set by JS) */
.alerts-modal .nws-sheet.dock-right .nws-sheet-panel{
  right:0;top:0;bottom:0;
  width:var(--chooser-width,420px);
  max-width:100vw;
  padding:14px 12px 18px 18px;
  border-left:1px solid #eef0f3;
  box-shadow:none;
}

/* Backdrop should not cover the sidebar column */
.alerts-modal .nws-sheet.dock-right .nws-backdrop{
  position:absolute;top:0;bottom:0;left:0;
  right:var(--chooser-width,420px);
  background:rgba(0,0,0,.5);
}

/* Keep the X button inside the docked panel edge */
.alerts-modal .nws-sheet.dock-right .nws-sheet-x{ right:12px; top:10px }

/* flag the sheet as "chooser" so we can alter spacing only there */
.alerts-modal .nws-sheet.chooser .nws-sheet-panel{ padding-left:10px; padding-right:0 }

/* when docked to the right, keep your top/bottom spacing but kill L/R */
.alerts-modal .nws-sheet.dock-right.chooser .nws-sheet-panel{ padding:14px 0 18px 0 }

.alerts-modal .chooser-list .chooser-card{ margin-bottom:.5rem }
.alerts-modal .chooser-list .chooser-card .chooser-actions{ margin-top:.35rem; display:flex; gap:.4rem }
.alerts-modal .nws-sheet.chooser .nws-sheet-x{ display:none!important }
.alerts-modal .nws-sheet.chooser .chooser-list{ padding:0 }
.alerts-modal .nws-sheet.chooser .btn.btn-primary{
  background:#111;border-color:#111;color:#fff!important;
}
.alerts-modal .nws-sheet.chooser .btn.btn-primary:hover{ filter:brightness(0.92) }

/* Mobile: full width bottom sheet behavior; ignore docking */
@media (max-width:1100px){
  .alerts-modal .app{grid-template-columns:1fr}
  .alerts-modal aside.panel{position:fixed;inset:auto 0 0 0;height:56vh;box-shadow:0 -16px 40px rgba(0,0,0,.45)}
}
@media (max-width:1100px){
  .alerts-modal{ --mobilePanelH:56vh }
  .alerts-modal .app{ grid-template-columns:1fr }
  .alerts-modal .map-wrap{ height: calc(100vh - var(--mobilePanelH)) }
  .alerts-modal aside.panel{
    position:fixed;left:0;right:0;bottom:0;
    height:var(--mobilePanelH);
    box-shadow:0 -16px 40px rgba(0,0,0,.45);
    background:var(--panel);
    overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
    padding-bottom:env(safe-area-inset-bottom,0);
  }
  .alerts-modal .panel-inner{height:auto;min-height:0;display:block}
  .alerts-modal .panel-header{position:static;box-shadow:none}
  .alerts-modal .tabs{position:static}
  .alerts-modal .list{flex:none;min-height:0;overflow:visible}
}


/* Bottom gap/comfort in list */
.alerts-modal #list::after{content:"";display:block;height:var(--list-bottom-gap,28px);pointer-events:none}
.alerts-modal #list .card:last-child{margin-bottom:28px}
.alerts-modal .list{padding-bottom:72px}
.alerts-modal .list .card{margin-bottom:12px}
.alerts-modal .list .card:last-child{margin-bottom:24px}

.alerts-modal .card { position: relative; }

/* bottom-right hail badge on cards/chooser cards */
.alerts-modal .hail-chip{
  position:absolute; right:12px; bottom:10px;
  background:var(--tag-bg); color:var(--tag-tx);
  border:1px solid var(--tag-br);
  border-radius:999px; padding:5px 8px;
  font-weight:800; font-size:11px; line-height:1;
}

/* hail tag styling in the detail header */
.alerts-modal .tag-hail{
  background:#fff7ed;           /* soft warm */
  border-color:#fed7aa;
  color:#9a3412;                 /* readable text */
}



.modal-head .modal-title-alerts {
  margin-bottom: -10px;  /* tighter than default */
}

.modal-head .modal-meta {
  margin: 0;       /* remove extra gap */
  font-size: 13px;     /* optional: slightly smaller line */
}

.chooser-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-right: 10px;
}

/* Fullscreen white loading canvas over the entire alerts modal */
.alerts-modal .modal-content {
  position: relative;
}

.alerts-modal .modal-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.alerts-modal .modal-loading-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Map containers */
.alerts-modal .maplibre-map {
  position: absolute;
  inset: 0;
}

#ml-map {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Attribution */
.maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 6px;
  font: 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #374151;
}

.maplibregl-ctrl-attrib a {
  color: #374151;
  text-decoration: none;
}

.maplibregl-ctrl-attrib a:hover { text-decoration: underline; }
.maplibregl-ctrl-attrib { overflow-x: auto; text-align: center;}



/* ── Top-left control (reuses your existing control aesthetic) ───────────── */
.pred-ctl{
  position:absolute; top:16px; left:16px;
  display:flex; gap:.5rem; align-items:center;
}
.pred-pill{
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.35rem .6rem; border: 1px solid #d1d5db; border-radius:10px;
  background:rgba(255,255,255,.9); color:#e5e7eb;
  font-weight:600;  cursor:default;
}
.pred-count{ font-variant-numeric: tabular-nums; min-width:1.6ch; text-align:center; }
.pred-sep{ opacity:.5; }

.pred-green{ color:#22c55e; }
.pred-yellow{ color:#fbbf24; }
.pred-blue{ color:#38bdf8; }

.pred-toggle{
  display:inline-flex; align-items:center; gap:.4rem;
  background:#565D64; color:#000; border-radius:999px; padding:.28rem .6rem;
  cursor:pointer; user-select:none;
}
.pred-toggle input{ display:none; }
.pred-toggle-ui::before{
  content: "OFF"; opacity:.6; margin-right:.45rem;
}
.pred-toggle input:checked + .pred-toggle-ui::before{
  content: "ON"; opacity:1;
}

/* ── Tracker markers  ─────────────── */
.pred-marker{
  position:relative; width:10px; height:10px; transform:translate(-50%, -50%);
}

/* Make the whole marker feel clickable; children don't steal events */
.pred-marker { cursor: pointer; }
.pred-marker * { pointer-events: none; }

/* (optional) subtle hover feedback */
.pred-marker:hover { transform: scale(1.05); }

/* solid center that stays after pulsing finishes */
.pred-core{
  position:absolute; inset:0; border-radius:999px;
  background: currentColor;
  /* optional white halo for legibility; remove if you prefer a plain dot */
  box-shadow: 0 0 0 2px #fff;
}

/* four filled circles that scale & fade */
.pred-pulse{
  position:absolute; left:50%; top:50%;
  width:16px; height:16px; border-radius:999px;
  background: currentColor;
  opacity:0; transform: translate(-50%, -50%) scale(.5);
}

/* run the pulses only while .is-live is set */
.pred-marker.is-live .pred-pulse{
  animation: pred-scaleIn var(--dur, 4s) cubic-bezier(.36, .11, .89, .32) var(--delay, 0s) var(--iters, 10) both;
}

/* soft tail after the pulse animation ends */
.pred-marker.is-ending .pred-pulse{
  animation: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(2.1);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
/* after pulses end, we do NOT show any rest halo (only the core remains) */

/* status colors (Watching uses deepskyblue exactly) */
.pred-green   { color:#22c55e; }   /* Active */
.pred-yellow  { color:#f59e0b; }   /* Idling */
.pred-blue    { color:deepskyblue; } /* Watching */

/* cale/fade keyframes (filled circle) */
@keyframes pred-scaleIn{
  from { transform: translate(-50%, -50%) scale(.5); opacity:.5; }
  to   { transform: translate(-50%, -50%) scale(2.5); opacity:0; }
}

/* MapLibre popup polish */
.maplibregl-popup { max-width: 400px; z-index: 5; }
.maplibregl-popup-content{
  padding: 12px 14px;
  border-radius: 12px;
  width:100%;
  background: var(--panel, #0f172a);        /* fallback if no CSS vars */
  color: var(--tag-tx, #e5e7eb);
  border: 1px solid var(--tag-br, #334155);
  box-shadow: var(--shadow, 0 18px 40px rgba(0,0,0,.35));
  line-height: 1.35;
  font: 13px/1.35 system-ui,-apple-system,Segoe UI,Roboto,Inter,sans-serif;
}
.maplibregl-popup-close-button{
  color: inherit;
  width: 24px; height: 24px;
  line-height: 24px;
  right: 6px; top: 6px;
  opacity: .8;
}
.maplibregl-popup-close-button:hover{ opacity: 1; }

/* Make the tip match the panel background for all anchors */
.maplibregl-popup-anchor-top    .maplibregl-popup-tip { border-bottom-color: var(--panel, #0f172a); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color:    var(--panel, #0f172a); }
.maplibregl-popup-anchor-left   .maplibregl-popup-tip { border-right-color:  var(--panel, #0f172a); }
.maplibregl-popup-anchor-right  .maplibregl-popup-tip { border-left-color:   var(--panel, #0f172a); }

/* Content blocks */
.pred-tip { min-width: 220px; }
.pred-tip__status{
  font-weight: 800;
  margin-bottom: 2px;
  letter-spacing: .2px;
  text-transform: none;
}
.pred-tip__place{
  font-weight: 700;
  margin-bottom: 2px;
}
.pred-tip__msg{
  font-size: 12px;
  opacity: .85;
  margin-top: 4px;
}

/* START: PULSING ICONS POPUP */
/* MapLibre popup reset so our card looks clean */
.maplibregl-popup .maplibregl-popup-content {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  max-width: none;
}

/* Tracker popup card */
.pred-tip {
  width: 350px;
  padding: 20px 24px 18px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #666666;
  z-index: 1055;
}

.pred-tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pred-tip-title {
  font-size: 18px;
  font-weight: 600;
  color: #777777;
}

/* Status pill in top-right */
.pred-status-pill {
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

/* Match colors to statuses */
.pred-status-pill--active {
  background: #8bc34a;
}

.pred-status-pill--idling {
  background: #ffb74d;
}

.pred-status-pill--watching {
  background: #42a5f5;
}

.pred-tip-body {
  margin-bottom: 16px;
}

.pred-tip-line {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.4;
}

.pred-tip-line strong {
  font-weight: 600;
  color: #555555;
}

/* Footer buttons */
.pred-tip-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.pred-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.pred-btn-primary {
  background: #4a7dff;
  color: #ffffff;
}

.pred-btn-primary:hover {
  background: #3b69d6;
}

.pred-btn-secondary {
  background: #ffffff;
  border: 1px solid #dee2e6;
  color: #6c757d;
}

.pred-btn-secondary:hover {
  background: #f8f9fa;
  color: #495057;
}

/* =========================== END: ALERTS MAP ===================== */


/* ------------------- START: HOME PROS SERVICES SECTION ------------------- */

.category-block {
  height: 66px;
  background: #f2f4f7;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: all 0.5s ease;
}

.category-block:hover {
  opacity: 0.7;
}

.category-img {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-img img {
  max-height: 36px;
}

.category-title {
  width: calc(100% - 36px);
  padding-left: 30px;
  font-weight: 600;
  color: #545e66;
}

/* ------------------- END: HOME PROS SERVICES SECTION --------------------- */


/* ------------------- START: MEDIA QUERIES ------------------- */

@media (min-width: 2560px) {
  .hero-banner-main {
    min-height: 75vh;
  }
}

@media (min-width: 1700px) {
  .hero-banner-main {
    min-height: 880px;
  }

  .hero-metric {
    font-size: 15px;
  }
}

@media (max-width: 1199px) {
  .hero-banner-main {
    min-height: 650px;
    height: calc(100vh - 96px);
  }

  .hero-metric {
    font-size: 15px;
    height: 64px;
  }

  .hero-info-legend {
    bottom: 85px;
  }

  .hero-banner h1 {
    font-size: 32px;
  }

  .service-image {
    height: 240px;
  }
}

@media (max-width: 1023px) {
  .button-more {
    margin-top: 40px;
  }

  .category-block {
    align-items: center;
    justify-content: center;
    gap: 1px;
  }

  .category-title {
    width: auto;
  }

  .subtitle {
    display: inline-block;
    margin-bottom: 5px;
  }
}

@media (max-width: 900px) {
  .hero-banner-main {
    min-height: 550px;
  }

  .hero-metric {
    font-size: 15px;
    height: 54px;
  }

  .hero-info-legend {
    bottom: 75px;
  }

  .hero-info-alerts {
    right: 10px;
    bottom: 75px;
  }
}

@media (max-width: 780px) {
  .hero-banner-main {
    max-height: 440px;
  }

  .hero-metric {
    height: 40px;
    font-size: 14px;
  }

  .hero-info-legend {
    bottom: 55px;
  }

  .hero-info-alerts {
    right: 10px;
    bottom: 55px;
  }
}

@media (max-width: 767px) {
  .hero-banner-main {
    height: calc(100vh - 70px);
  }

  .category-block {
    margin-top: 10px;
  }
}


.status-text-short {
    display: none;
}

@media (max-width: 699.98px) {
    .status-text-full {
        display: none;
    }

    .status-text-short {
        display: inline;
    }
}

@media (min-width: 700px) {
    .status-text-full {
        display: inline;
    }

    .status-text-short {
        display: none;
    }
}

@media (max-width: 640px) {
  .hero-info {
    top: 15px;
  }

  .hero-banner-main {
    max-height: 360px;
  }

  .hero-metric {
    height: 35px;
    font-size: 12px;
  }

  .hero-info-legend {
    bottom: 45px;
  }

  .hero-info-alerts {
    right: 10px;
    bottom: 45px;
  }
  .service-top-left h2 {
    font-size: 20px;
  }
}

@media (max-width: 500px) {
  .btn-group-sm-right {
    display: none;
  }

  /* top-right “…” menu button (mobile only) */
  .hero-quickmenu {
    display: flex;
    z-index: 6;
  }

  .hero-quickmenu-toggle {
    border: none;
    background: none;
    margin: 2px 0 0 1px;
    padding: 0 4px;
  }

  .hero-quickmenu-toggle i:hover {
    font-size: 16px;
  }

  .quick-grid {
    display: inline;
    grid-template-columns: repeat(1, 34px);
    gap: 6px;
  }

  .quick-grid .btn {
    height: 20px;
    line-height: 18px;
    padding: 0;
    text-align: center;
    border-radius: 6px;
  }

  .hero-info {
    top: 8px;
    right: 0;
    font-size: 10px;
  }

  .hero-info h5 {
    font-size: 12px;
    padding: 0;
  }

  .hero-banner-main {
    max-height: 300px;
  }

  .hero-metric {
    height: 30px;
    font-size: 12px;
  }

  .service-top-left h2 {
    font-size: 16px;
  }

  /* hide the hazard pill group that JS creates */
  .hero-info-sub-btn .spc-hazard-togglegroup {
    display: none !important;
  }

  /* hide the info button in the outlook toolbar on mobile */
  .hero-info-sub-btn .btn[data-bs-target="#outlookModal"],
  .hero-info-sub-btn .btn[data-bs-toggle="modal"][data-bs-target="#outlookModal"] {
    display: none !important;
  }

  /* fallback: hide buttons 2+ if hazards not wrapped yet */
  .hero-info-sub-btn .btn-group-sm > .btn:nth-child(n + 2) {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .hero-banner h1 {
    font-size: 24px;
  }

  .hero-info {
    top: 4px;
  }

  .hero-info-btn {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-info h5 {
    font-size: 12px;
    padding: 0;
  }

  .hero-quickmenu {
    position: relative;
    display: flex;
  }

  .hero-message {
    font-size: 12px;
  }

  .hero-banner-main {
    max-height: 300px;
  }

  .hero-metric {
    height: 30px;
    font-size: 10px;
  }

  .hero-info-legend {
    bottom: 40px;
  }

  .hero-info-alerts {
    right: 10px;
    bottom: 40px;
  }

  .subtitle {
    display: inline-block;
    margin-bottom: 10px;
    position: relative;
    font-weight: 700;
    color: #786e81;
    padding: 0;
  }

  .service-top-left h2 {
    font-size: 13px;
  }


  .hero-banner-main {
    max-height: 250px;
  }

  .service-top-right {
    width: 350px;
  }

  .hero-metric {
    font-size: 10px;
  }

  .header-right ul li a {
    padding-left: 5px;
    padding-right: 5px;
    font-size: 9px;
  }

  .header-right ul li {
    margin-left: 0;
  }
}

/* Keep CONUS in view on narrow or short screens */
@media (max-width: 1199px), (max-height: 650px) {
  /* Let width drive the height using the map's aspect ratio */
  .hero-banner-main {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1080 / 764; /* adjust if basemap differs */
  }

  .hero-banner-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  /* Basemap image: show full map (no cropping) */
  .hero-banner-img img[data-field="spc-preview"] {
    width: 100%;
    height: 100%;
    object-position: center;
  }

  /* SVG overlay keeps the same box as the image */
  .hero-banner-img #spc-svg {
    width: 100%;
    height: 100%;
  }
}

/* ------------------- END: MEDIA QUERIES ------------------- */
