/* ================================================================
   Hospitals.co.zw — styles.css
   UX overhaul: transitions, card polish, search UX, mobile nav,
   skeleton loader, footer nav layout, micro-interactions
   ================================================================ */

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: light;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --primary:       #0b5f5b;
  --primary-dark:  #08433f;
  --primary-light: #e6f4f3;
  --secondary:     #f4f6f8;
  --border:        #dbe1e8;
  --border-hover:  #b0bec8;
  --text:          #0f1b2c;
  --muted:         #4d5b6c;
  --faint:         #8fa0b0;
  --warning-bg:    #fff7e6;
  --warning-text:  #8a6100;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xs:     6px;

  --shadow-sm: 0 1px 3px rgba(9,45,62,.06), 0 1px 2px rgba(9,45,62,.04);
  --shadow-md: 0 4px 12px rgba(9,45,62,.08), 0 2px 4px rgba(9,45,62,.05);
  --shadow-lg: 0 8px 24px rgba(9,45,62,.12), 0 4px 8px rgba(9,45,62,.06);
  --shadow-focus: 0 0 0 3px rgba(11,95,91,.25);

  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-snap: cubic-bezier(.34,1.56,.64,1);
  --t-fast:    120ms;
  --t-mid:     200ms;
  --t-slow:    300ms;
}

/* ── Reset / base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;        /* sticky header height */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
p { max-width: 72ch; }

/* ── Focus ring ─────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ── Interactive defaults ───────────────────────────────────────── */
a, button, [role="button"] {
  transition:
    color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-snap),
    filter var(--t-fast) var(--ease-out);
}
button:active, a:active { transform: scale(.97); }

/* ── Skip link ──────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px; left: 1rem;
  background: var(--primary); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius-xs);
  font-weight: 700; text-decoration: none; z-index: 999;
}
.skip-link:focus { top: 1rem; }

/* ── Emergency banner ───────────────────────────────────────────── */
.emergency-banner {
  background: #fff5f5;
  color: #6b1111;
  border-bottom: 1px solid #f3c7c7;
}
.emergency-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
}
.emergency-banner__label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #ffe0e0;
}
.emergency-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(198,40,40,.2);
}
.emergency-banner__cta:hover { filter: brightness(.92); }
.emergency-banner__cta--desktop { display: none; }
.emergency-banner__hint { color: #7c2b2b; font-weight: 500; line-height: 1.4; }
.emergency-banner a:focus-visible { outline: 2px solid #ffb703; outline-offset: 3px; }

/* ── Connectivity banner ────────────────────────────────────────── */
.connectivity-banner {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-bottom: 1px solid #f1d6a6;
  padding: .5rem 1rem;
  font-weight: 600;
  text-align: center;
}

/* ── Top bar ────────────────────────────────────────────────────── */
.topbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow var(--t-mid) var(--ease-out);
}
.topbar.scrolled { box-shadow: var(--shadow-md); }

.topbar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Brand ──────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .5px;
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-snap), box-shadow var(--t-fast) var(--ease-out);
}
.brand:hover .brand__logo {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(11,95,91,.3);
}
.brand__title  { margin: 0; font-weight: 700; }
.brand__tagline { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }

/* ── Top-bar action buttons ─────────────────────────────────────── */
.topbar__actions { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

.toggle-button {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: .45rem .9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
}
.toggle-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.toggle-button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.toggle-button[aria-pressed="true"]:hover { filter: brightness(.92); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, #0b5f5b 0%, #0e8680 55%, #15a89f 100%);
  color: #fff;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* subtle noise texture on hero */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { margin: 0 0 .75rem; font-size: clamp(1.5rem, 4vw, 2.25rem); line-height: 1.2; }
.hero p  { margin: 0 auto; font-size: clamp(.95rem, 2vw, 1.05rem); opacity: .9; max-width: 65ch; line-height: 1.6; }

/* ── Main container ─────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

/* ── Search & filter controls ───────────────────────────────────── */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .85rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem .9rem;
  box-shadow: var(--shadow-sm);
}

.control label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .3rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.control input,
.control select,
.control button {
  width: 100%;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .975rem;
  color: var(--text);
  background: #fff;
  transition:
    border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}
.control input:hover,
.control select:hover { border-color: var(--border-hover); }
.control input:focus,
.control select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}
/* Search input — slightly more prominent */
.control--search input {
  font-size: 1rem;
  padding: .65rem .85rem .65rem 2.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234d5b6c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") .75rem center/16px no-repeat;
}
.control--search input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
}

.control--location button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
}
.control--location button:hover { filter: brightness(.92); }

.location-status {
  margin: .3rem 0 0;
  font-size: .875rem;
  color: var(--muted);
}
.location-status.error { color: #9d1b1b; }

/* Checkbox control — inline */
.control--checkbox label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: .975rem;
  color: var(--text);
  cursor: pointer;
}
.control--checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  border-radius: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ── Quick filters ──────────────────────────────────────────────── */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1rem;
}
.quick-button {
  border: 1.5px solid var(--border);
  background: #fff;
  padding: .3rem .8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition:
    background var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-snap);
}
.quick-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.quick-button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.quick-button:active { transform: scale(.95); }
.quick-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── Results summary ────────────────────────────────────────────── */
.results-summary {
  font-weight: 700;
  font-size: .9rem;
  color: var(--muted);
  margin: .1rem 0 .85rem;
  letter-spacing: .02em;
}

/* ── Ad unit ────────────────────────────────────────────────────── */
.ad-unit {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary);
  margin-bottom: 1.25rem;
}

/* ── Monetisation CTA ───────────────────────────────────────────── */
.monetization-cta {
  border: 1px solid #b7e4d8;
  background: linear-gradient(135deg, #ecfbf6 0%, #f0faf7 100%);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.monetization-cta h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.monetization-cta p  { margin: 0 0 .85rem; color: #114a45; font-size: .95rem; }
.monetization-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.monetization-cta__button {
  text-decoration: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: .48rem .95rem;
  font-weight: 700;
  font-size: .875rem;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
}
.monetization-cta__button--alt {
  background: #0a7a6f;
  border-color: #0a7a6f;
}
.monetization-cta__button--ghost {
  background: #fff;
  color: var(--primary);
  border-color: #9fcfc5;
}
.monetization-cta__button:hover { filter: brightness(.9); }

/* ── City sponsor ───────────────────────────────────────────────── */
.city-sponsor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #cfe3ff;
  background: #f4f8ff;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  animation: fadeSlideIn var(--t-mid) var(--ease-out);
}
.city-sponsor__label { font-weight: 700; color: #1d3b6a; }
.city-sponsor__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.city-sponsor__link:hover { opacity: .8; }
.city-sponsor__logo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dbe7ff;
}

/* ── Admin panel ────────────────────────────────────────────────── */
.admin-panel {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.admin-panel__header h2 { margin: 0 0 .2rem; }
.admin-panel__header p  { margin: 0 0 .85rem; color: var(--muted); }
.admin-panel__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem;
  align-items: end;
}
.admin-panel__form label {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.admin-panel__toggle { flex-direction: row; align-items: center; gap: .5rem; }
.admin-panel__toggle input { width: auto; }
.admin-panel__save {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* ── Featured section ───────────────────────────────────────────── */
.featured-section {
  border: 1px solid #ffe4b5;
  background: #fffaf2;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.featured-section__header h2 { margin: 0 0 .2rem; }
.featured-section__header p  { margin: 0 0 .85rem; color: var(--muted); font-size: .9rem; }
.results--featured .card {
  border-color: #f3c17f;
  box-shadow: 0 4px 16px rgba(170,110,30,.1), 0 1px 3px rgba(170,110,30,.08);
}

/* ── Results grid ───────────────────────────────────────────────── */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* ── Hospital card ──────────────────────────────────────────────── */
.card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-out);
  animation: cardIn var(--t-slow) var(--ease-out) both;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Staggered card entrance — first 12 cards only */
.results .card:nth-child(1)  { animation-delay:   0ms; }
.results .card:nth-child(2)  { animation-delay:  30ms; }
.results .card:nth-child(3)  { animation-delay:  60ms; }
.results .card:nth-child(4)  { animation-delay:  90ms; }
.results .card:nth-child(5)  { animation-delay: 120ms; }
.results .card:nth-child(6)  { animation-delay: 150ms; }
.results .card:nth-child(7)  { animation-delay: 180ms; }
.results .card:nth-child(8)  { animation-delay: 210ms; }
.results .card:nth-child(9)  { animation-delay: 240ms; }
.results .card:nth-child(10) { animation-delay: 270ms; }
.results .card:nth-child(11) { animation-delay: 300ms; }
.results .card:nth-child(12) { animation-delay: 330ms; }

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

.card--verified { border-top: 3px solid #138a36; }
.card--featured  { border-top: 3px solid #d17c00; }

.card.is-highlighted {
  outline: 3px solid #ffb703;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255,183,3,.15), var(--shadow-md);
}

/* Card typography */
.card__title { margin: 0; font-size: 1rem; line-height: 1.3; }
.card__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
}

/* Badges */
.card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .1rem 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #f6faf9;
  color: var(--primary-dark);
}
.badge--tier       { background: #e8f3f1; border-color: #b8d6d0; }
.badge--ownership  { background: #eef0ff; border-color: #c5cdfa; color: #3730a3; }
.badge--sponsor    { background: #fff1d6; border-color: #f3c17f; color: #8a4b00; }
.badge--verified   { background: #e0f5e8; border-color: #9fd6b4; color: #0f6b32; }
.badge--claimed    { background: #e6f0ff; border-color: #b7ccff; color: #1d4ed8; }
.badge--unverified { background: #f3f4f6; border-color: #d1d5db; color: #6b7280; }

/* Card body text */
.card__meta    { color: var(--muted); font-size: .9rem; margin: 0; }
.card__contact,
.card__services,
.card__flags,
.card__hours,
.card__verified,
.card__updated,
.card__actions { margin: 0; font-size: .9rem; }
.card__verified { color: var(--primary); font-weight: 600; }
.card__updated  { color: var(--faint); font-size: .82rem; }

/* Card action links */
.card__actions a {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.card__actions a:hover { border-bottom-color: var(--primary); }

/* Card toggle button */
.card__toggle {
  margin-top: auto;
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: .5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: .875rem;
  align-self: flex-start;
  transition:
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-snap);
}
.card__toggle:hover {
  background: var(--primary);
  color: #fff;
}
.card__toggle:active { transform: scale(.96); }

/* Expanded card details */
.card__details {
  margin-top: .6rem;
  padding-top: .7rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: #2f3640;
  animation: expandIn var(--t-mid) var(--ease-out);
}
.card__details p { margin: .25rem 0; }
@keyframes expandIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Map panel ──────────────────────────────────────────────────── */
.map-panel {
  margin: .75rem 0 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.map { height: 420px; width: 100%; }
.map-hint {
  margin: .5rem 1rem .85rem;
  color: var(--muted);
  font-size: .9rem;
}

/* ── Tier chip ──────────────────────────────────────────────────── */
.tier-chip {
  background: #e8f3f1;
  border: 1px solid #b8d6d0;
  color: #0b3e3b;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-size: .9rem;
  text-align: center;
  margin: 0 auto 1.25rem;
}

/* ── Notes / disclaimers ────────────────────────────────────────── */
.mohcc-note {
  margin: .25rem auto 1.25rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  background: #eef5f4;
  border-left: 4px solid var(--primary);
  color: #0b3a38;
  line-height: 1.4;
  font-size: .93rem;
}
.mohcc-disclaimer {
  margin: 0 auto 1.75rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: #f7f2ff;
  border-left: 4px solid #7b61ff;
  color: #2b2452;
  line-height: 1.45;
  font-size: .9rem;
  box-shadow: var(--shadow-sm);
}

/* ── About section ──────────────────────────────────────────────── */
.about-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.about-section h2 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: .65rem;
}
.about-section p {
  color: #444;
  line-height: 1.7;
  max-width: 72ch;
  font-size: .95rem;
  margin-top: .6rem;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.footer {
  background: #0b5f5b;
  color: rgba(255,255,255,.9);
  padding: 1.75rem 1.5rem 1.25rem;
  margin-top: 3rem;
}
.footer__nav {
  max-width: 1100px;
  margin: 0 auto 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  align-items: center;
  justify-content: center;
}
.footer__nav a {
  color: #e3f7f2;
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  padding: .2rem .1rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.footer__nav a:hover { border-bottom-color: rgba(227,247,242,.5); opacity: 1; }
.footer__support,
.footer__legal {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  margin: .4rem auto 0;
  max-width: 700px;
  line-height: 1.55;
}
.footer__support a,
.footer__legal a {
  color: #e3f7f2;
  font-weight: 700;
}

/* ── No-results empty state ─────────────────────────────────────── */
.results > p,
.results--featured > p {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  font-size: .97rem;
}

/* ── Skeleton loader (used in JS when needed) ───────────────────── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f2f4 25%, #e4e8ec 50%, #f0f2f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-xs);
}

/* ── Install / offline buttons ──────────────────────────────────── */
#install-app,
#download-offline-data { white-space: nowrap; }

/* ── Reduced-motion overrides ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive: tablet ─────────────────────────────────────────── */
@media (min-width: 768px) {
  .emergency-banner__inner { padding: .65rem 1.5rem; }
  .emergency-banner__cta--mobile  { display: none; }
  .emergency-banner__cta--desktop { display: inline-flex; }
}

/* ── Responsive: mobile ─────────────────────────────────────────── */
@media (max-width: 720px) {
  .controls {
    grid-template-columns: 1fr 1fr;
    padding: .85rem .9rem .7rem;
  }
  .control--search { grid-column: 1 / -1; }

  .topbar__inner {
    padding: .65rem 1rem;
    flex-wrap: wrap;
    gap: .5rem;
  }
  .topbar__actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: .15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .topbar__actions::-webkit-scrollbar { display: none; }
  .toggle-button { flex-shrink: 0; }

  .hero { padding: 2rem .85rem 1.75rem; }

  .results {
    grid-template-columns: 1fr;
  }

  .card { padding: .9rem; }
  .card__toggle { width: 100%; text-align: center; align-self: stretch; }

  .footer { padding: 1.5rem 1rem 1rem; }
  .footer__nav { gap: .3rem .65rem; justify-content: center; }
  .footer__nav a { font-size: .82rem; }
}
