/* FlyNumber coverage — extras layered on top of rates.css.
 * Loaded by /coverage alongside rates.css. Shares the .rates-page scope so
 * the full-bleed escape, Inter override, and base table styles apply.
 */

/* Filters: own grid layout for the coverage page.
   Row 1: country + search (search grows). Row 2: capability toggles.
   Row 3: 3 segmented controls. Row 4: result count + reset. */
.rates-page.coverage-page .filter-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: end;
}
.rates-page .filter-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}
.rates-page .filter-row-3 {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}

/* Capability filter — toggle chips ("must support …") */
.cap-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rates-page .cap-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  background: white;
  border: 1px solid hsl(var(--rates-border));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--rates-fg));
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.rates-page .cap-toggle:hover { background: hsl(210 40% 96%); }
.cap-toggle .cap-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: hsl(210 40% 96%);
  color: hsl(var(--rates-muted));
}
.cap-toggle .cap-toggle-icon svg { width: 14px; height: 14px; }
.rates-page .cap-toggle.is-on {
  background: hsl(var(--rates-primary) / 0.08);
  border-color: hsl(var(--rates-primary) / 0.30);
  color: hsl(221 83% 32%);
}
.rates-page .cap-toggle.is-on .cap-toggle-icon {
  background: hsl(var(--rates-primary));
  color: white;
}

/* Segmented control (Billing / Registration / Selection) */
.seg {
  display: inline-flex;
  padding: 3px;
  background: hsl(210 40% 96%);
  border: 1px solid hsl(var(--rates-border));
  border-radius: 10px;
  width: 100%;
}
.rates-page .seg button {
  flex: 1;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--rates-muted));
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 150ms, color 150ms, box-shadow 150ms;
  white-space: nowrap;
}
.rates-page .seg button:hover { color: hsl(var(--rates-fg)); }
.rates-page .seg button.is-on {
  background: white;
  color: hsl(var(--rates-fg));
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

/* Reset / actions row */
.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: hsl(var(--rates-muted));
}
.filter-actions strong { color: hsl(var(--rates-fg)); font-weight: 600; }
.rates-page .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: white;
  border: 1px solid hsl(var(--rates-border));
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--rates-fg));
  cursor: pointer;
}
.rates-page .btn-reset:hover { background: hsl(210 40% 96%); }
.rates-page .btn-reset svg { width: 14px; height: 14px; }

/* Inline legend bar (above table) — replaces the old yellow sticky-note */
.legend-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: white;
  border: 1px solid hsl(var(--rates-border));
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  font-size: 12px;
  color: hsl(var(--rates-muted));
  flex-wrap: wrap;
}
.legend-bar > .legend-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--rates-fg));
  padding-right: 12px;
  border-right: 1px solid hsl(var(--rates-border));
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.legend-item-text { color: hsl(var(--rates-fg)); }
.legend-item-text small { color: hsl(var(--rates-muted)); }

/* Capability icon chip — small rounded box w/ glyph and tiny label */
.cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
  background: white;
  border: 1px solid hsl(var(--rates-border));
  border-radius: 6px;
  color: hsl(var(--rates-muted));
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cap-icon svg { width: 12px; height: 12px; }
.cap-icon.is-active {
  background: hsl(var(--rates-primary) / 0.08);
  border-color: hsl(var(--rates-primary) / 0.25);
  color: hsl(221 83% 36%);
}
.cap-icon.is-off {
  background: hsl(210 40% 98%);
  border-color: hsl(220 14% 93%);
  color: hsl(220 9% 78%);
}

.cap-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* Status tags (Registration / Metered / Multi-channel / Pick #) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag svg { width: 11px; height: 11px; }
.tag-reg     { background: hsl(28 96% 94%);  border-color: hsl(28 96% 86%);  color: hsl(28 88% 38%); }
.tag-metered { background: hsl(214 100% 96%); border-color: hsl(214 88% 88%); color: hsl(221 83% 40%); }
.tag-multi   { background: hsl(220 14% 96%); border-color: hsl(214 32% 88%); color: hsl(222 28% 35%); }
.tag-pick    { background: hsl(140 75% 94%); border-color: hsl(142 60% 82%); color: hsl(142 72% 29%); }

.tag-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Price cell */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
  color: hsl(var(--rates-fg));
}
.price-unit {
  font-size: 11px;
  font-weight: 500;
  color: hsl(var(--rates-muted));
}
.price-na {
  font-size: 12px;
  font-weight: 500;
  color: hsl(var(--rates-muted));
  font-variant-numeric: normal;
}

/* Vertical lockup of monthly price + optional one-time setup pill. The pill
   only appears when a row has a non-zero `setup_fee` (toll-free, mobile, a
   handful of metered destinations) so most rows still render as a single
   line. Violet to read distinct from the orange "incoming" pill on /rates. */
.price-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  line-height: 1.1;
}
.setup-sub {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: hsl(262 60% 38%);
  background: hsl(262 80% 96%);
  border: 1px solid hsl(262 60% 88%);
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Mobile capability lockup — tighter spacing */
.m-card .cap-row { gap: 3px; }
.m-card .tag-row { gap: 3px; }

/* Coverage-specific responsive tweaks. Hero / stat-strip / howto media
   queries live in landing-sections.css. */
@media (max-width: 1024px) {
  .rates-page.coverage-page .filter-row { grid-template-columns: 1fr; }
  .rates-page .filter-row-2 { grid-template-columns: 1fr; }
  .rates-page .filter-row-3 { grid-template-columns: 1fr; }
  .legend-bar > .legend-title { border-right: none; padding-right: 0; }
}
@media (max-width: 720px) {
  .legend-bar { padding: 12px 14px; gap: 10px; }
}
