/* ==========================================================================
   NAP Checking — naps.ebisudps.com
   Palette: navy #003B70 · corporate blue #0072CE · light blue #F2F8FD
            ink #172B4D · white surfaces
   ========================================================================== */
:root {
  --navy: #003B70;
  --blue: #0072CE;
  --blue-dark: #005A9E;
  --bg: #F2F8FD;
  --ink: #172B4D;
  --muted: #5E6D8C;
  --border: #DCE6F2;
  --white: #ffffff;
  --green: #18804B;
  --green-bg: #E6F5ED;
  --yellow: #9A6700;
  --yellow-bg: #FFF4D5;
  --red: #B3261E;
  --red-bg: #FBE9E7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 43, 77, 0.06), 0 8px 24px rgba(23, 43, 77, 0.07);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* Elements we toggle with the hidden attribute must always hide,
   even when their class sets a display value (e.g. .modal-backdrop flex) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ============================== Header ============================== */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 33, 61, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.brand-logo {
  height: 40px; width: 40px; object-fit: contain;
  background: var(--white); border-radius: 8px; padding: 3px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-company { font-size: 0.82rem; font-weight: 600; opacity: 0.92; letter-spacing: 0.01em; }
.brand-app { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.12); }

.site-nav a.active { color: var(--white); background: rgba(255, 255, 255, 0.18); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; display: block; }

/* ============================== Hero ============================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
}

.hero-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9CC8F5;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-sub {
  max-width: 560px;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.stat-chip {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 16px 18px;
  backdrop-filter: blur(4px);
}

.stat-chip .stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-chip .stat-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); font-weight: 500; margin-top: 2px; }

.stat-chip.ready { background: var(--white); border-color: transparent; color: var(--ink); }
.stat-chip.ready .stat-label { color: var(--muted); }
.stat-chip.ready .stat-value.c-green { color: var(--green); }
.stat-chip.ready .stat-value.c-yellow { color: var(--yellow); }
.stat-chip.ready .stat-value.c-red { color: var(--red); }

.stat-chip.skeleton { min-height: 74px; }
.stat-chip.skeleton:not(.ready)::after {
  content: "";
  display: block;
  width: 70%;
  height: 12px;
  margin: 8px 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ============================== Search ============================== */
.search-section { padding: 0 0 64px; }

.search-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 5;
}

.search-row { display: flex; align-items: center; gap: 10px; }

.search-icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }

#searchInput {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 12px 16px 12px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding-left: 0;
  color: var(--ink);
}
#searchInput { padding-left: 14px; }
.search-row { gap: 0; }
.search-icon { margin-right: -34px; margin-left: 14px; position: relative; z-index: 1; pointer-events: none; }
#searchInput { padding-left: 48px; }

#searchInput:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

#searchInput::placeholder { color: #9AA8BF; }

.btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }
.btn-icon { width: 16px; height: 16px; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.filter-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.chip-group { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.12s ease;
}

.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  font-weight: 600;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.active .dot { outline: 2px solid rgba(255, 255, 255, 0.6); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--green); }
.dot-yellow { background: #E1A700; }
.dot-red { background: var(--red); }
.dot-gray { background: #9AA8BF; }

/* ============================== Summary bar ============================== */
.summary-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}

.summary-chip {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.summary-chip:hover { border-color: var(--blue); }
.summary-chip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.summary-chip.active { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.summary-chip .val { font-size: 1rem; font-weight: 800; }
.summary-chip.skeleton-chip { min-width: 130px; min-height: 40px; }
.skeleton-chip::after {
  content: ""; display: block; width: 80%; height: 10px; margin-top: 5px;
  border-radius: 6px; background: var(--border);
  animation: pulses 1.2s ease-in-out infinite;
}
@keyframes pulses { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ============================== View toggle ============================== */
.view-toggle {
  display: inline-flex;
  background: #E4ECF6;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 14px;
}

.view-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.view-btn.active { background: var(--white); color: var(--navy); box-shadow: var(--shadow); }
.view-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ============================== Map ============================== */
.map-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}

#map { height: 520px; width: 100%; background: #DDEBF5; }

.map-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 500;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}

.legend-title { font-weight: 700; color: var(--navy); text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.06em; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }

.legend-pin { width: 13px; height: 19px; flex-shrink: 0; filter: drop-shadow(0 1px 1px rgba(23,43,77,0.3)); }

/* Teardrop map pins (like the app's pinColor markers) */
.nap-pin-wrap { background: transparent; border: 0; }
.nap-pin-wrap svg { filter: drop-shadow(0 2px 3px rgba(23, 43, 77, 0.35)); }

/* Canvas pin layer — one <canvas> carries every pin (no page cap) */
.nap-pin-canvas { position: absolute; top: 0; left: 0; cursor: default; }
.nap-pin-canvas:hover { cursor: pointer; }

/* Hover label for canvas pins */
.nap-pin-tip {
  position: absolute;
  z-index: 800;
  display: none;
  transform: translate(-50%, -100%);
  padding: 5px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(23, 43, 77, 0.35);
  pointer-events: none;
}
.nap-pin-tip.show { display: block; }
.nap-pin-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  border-bottom: 0;
}

/* App-style bottom selection sheet — tap a pin, a bar slides up above the
   map's bottom edge (same interaction as the mobile app; no map popups) */
.nap-sheet {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(560px, calc(100% - 24px));
  z-index: 800;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(23, 43, 77, 0.22);
  padding: 8px;
  animation: sheet-up 0.18s ease-out;
}
@keyframes sheet-up {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.nap-sheet[hidden] { display: none; }
.nap-sheet .sheet-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}
.nap-sheet .sheet-bar:hover { background: var(--bg); }
.nap-sheet .sheet-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nap-sheet .sheet-info b { color: var(--ink); font-size: 0.95rem; }
.nap-sheet #sheetSub {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nap-sheet .sheet-details {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}
.nap-sheet .sheet-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(23, 43, 77, 0.18);
}
.nap-sheet .sheet-close:hover { color: var(--red); border-color: var(--red); }
.nap-sheet .ns-head {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
  padding: 4px 6px 8px;
}
/* Stack rows inside the sheet (same look as before, now standalone) */
.nap-sheet .ns-rows { display: flex; flex-direction: column; gap: 5px; max-height: 240px; overflow-y: auto; }
.nap-sheet .ns-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  font: inherit;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.nap-sheet .ns-row:hover { background: var(--blue); border-color: var(--blue); }
.nap-sheet .ns-row:hover .ns-name,
.nap-sheet .ns-row:hover .ns-avail { color: #fff; }
.nap-sheet .ns-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.nap-sheet .ns-name { font-weight: 700; color: var(--ink); font-size: 0.85rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nap-sheet .ns-avail { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }

/* Selection sheet + stack rows (moved to the .nap-sheet block) */

.marker-dot {
  display: inline-block;
  width: 18px;
  text-align: center;
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1.35;
}
.marker-dot.m-green { background: var(--green); }
.marker-dot.m-yellow { background: #E1A700; }
.marker-dot.m-red { background: var(--red); }
.marker-dot.m-gray { background: #8494AB; }

.map-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 500;
  background: rgba(23, 43, 77, 0.92);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 130px);
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 600;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Informational only — must never block map interaction while loading */
  pointer-events: none;
}

.map-overlay-inner { max-width: 420px; padding: 20px; }
.map-overlay button { pointer-events: auto; }
.map-overlay h3 { color: var(--ink); margin-bottom: 6px; }
.map-overlay p { color: var(--muted); font-size: 0.95rem; }

/* ============================== Results (list) ============================== */
.results-status { min-height: 1.4em; margin: 26px 0 10px; color: var(--muted); font-size: 0.9rem; }

.results-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 14px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.nap-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-align: left;
  font: inherit;
  width: 100%;
}

.nap-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.nap-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.nap-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.nap-id { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.01em; color: var(--navy); word-break: break-all; }

.nap-loc { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }

.nap-ports { display: flex; gap: 14px; font-size: 0.82rem; color: var(--ink); margin-bottom: 10px; }
.nap-ports strong { font-size: 0.95rem; }

.port-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.port-bar-fill { height: 100%; border-radius: 999px; }

.pb-green { background: var(--green); }
.pb-yellow { background: #E1A700; }
.pb-red { background: var(--red); }
.pb-gray { background: #8494AB; }

.status-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.st-inservice { background: var(--green-bg); color: var(--green); }
.st-planned { background: #E8EEF7; color: var(--muted); }
.st-defective { background: var(--red-bg); color: var(--red); }

/* States */
.state-block { text-align: center; padding: 60px 20px; color: var(--muted); }
.state-icon { font-size: 2.2rem; margin-bottom: 12px; }
.state-block h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.15rem; }
.state-block p { max-width: 420px; margin: 0 auto 18px; }

.state-error .btn { margin-top: 4px; }

.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================== Footer ============================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer strong { color: var(--white); }
.footer-inner a { color: #9CC8F5; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ============================== Modal ============================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 48, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Must beat Leaflet's internal panes (up to 700) and the map's own chrome
     (legend/sheet/controls at 500-800) or the map paints OVER the modal */
  z-index: 2000;
  animation: fadeIn 0.15s ease;
}

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

.modal {
  background: var(--white);
  border-radius: 18px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  position: relative;
  animation: slideUp 0.18s ease;
}

@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg);
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { background: var(--border); color: var(--ink); }
.modal-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

#modalBody h2.dl-title {
  color: var(--navy);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  padding-right: 40px;
  word-break: break-all;
}

/* App-style detail panel */
.dl-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dl-header .dl-sub { color: var(--muted); font-size: 0.88rem; }
.dl-rows { display: flex; flex-direction: column; margin-bottom: 4px; }
.dl-row {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.dl-row:last-child { border-bottom: 0; }
.dl-row .k { width: 88px; flex-shrink: 0; color: var(--muted); }
.dl-row .v { font-weight: 600; color: var(--ink); flex: 1; word-break: break-word; }

.port-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.port-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
}
.port-box .pv { font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.port-box .pk {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.dl-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 12px;
}

.modal-map { height: 280px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.leaflet-container { width: 100%; height: 100%; }

/* Leaflet popup typography */
.leaflet-popup-content b { color: var(--navy); }

/* ============================== Responsive ============================== */
@media (max-width: 760px) {
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .brand-company { display: none; }
  .hero { padding: 40px 0 56px; }
  .search-row { flex-wrap: wrap; gap: 10px; }
  .search-icon { display: none; }
  #searchInput { flex-basis: 100%; padding-left: 14px; }
  .btn-primary { flex: 1; }
  .filter-label { display: inline-block; margin-top: 4px; }
  .modal { padding: 20px; }
}

@media (max-width: 420px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
