/* Locations pages (owner: B2) — layout specifics only, design tokens only, mobile first. */

/* Filtering (hub) ----------------------------------------------------------- */
[data-loc-item][hidden] { display: none !important; }
.loc-filter[hidden] { display: none; }

.loc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  margin-bottom: var(--s-5);
}
.loc-filter button { gap: 6px; }
.loc-filter__count {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.loc-filter button[aria-pressed="true"] .loc-filter__count { color: var(--brand-text); }

.loc-legend { font-size: var(--fs-xs); gap: var(--s-2) var(--s-4); }
.loc-legend__dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.loc-legend__dot--mobile { background: var(--brand); }
.loc-legend__dot--resi { background: var(--text-subtle); }
.loc-legend__dot--static { background: transparent; border: 2px solid var(--signal); }

/* Coverage map + index ------------------------------------------------------ */
.loc-coverage { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) {
  .loc-coverage { grid-template-columns: minmax(0, 1fr) 320px; }
}

.loc-map-card { margin: 0; padding: var(--s-3); overflow: hidden; }
.loc-map { display: block; width: 100%; height: auto; max-height: 640px; }
.loc-map__dot { fill: var(--border-strong); }
.loc-map__links line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 4; opacity: 0.8; }
.loc-map__links line.is-mobile { stroke: var(--brand); stroke-dasharray: none; opacity: 0.28; }

.loc-node { cursor: pointer; transition: opacity var(--dur) var(--ease); }
.loc-node__dot { fill: var(--text-subtle); stroke: var(--surface); stroke-width: 2; transition: transform var(--dur) var(--ease); transform-box: fill-box; transform-origin: center; }
.loc-node--mobile .loc-node__dot { fill: var(--brand); }
.loc-node__ring { fill: none; stroke: var(--signal); stroke-width: 2; }
.loc-node__pulse { fill: var(--brand); opacity: 0.16; transform-box: fill-box; transform-origin: center; animation: loc-pulse 3.2s var(--ease) infinite; }
.loc-node__label {
  fill: var(--text-muted);
  font-family: var(--font-sans, inherit);
  font-size: 12.5px;
  font-weight: 550;
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.loc-node--mobile .loc-node__label { fill: var(--text); }
.loc-node:hover .loc-node__dot,
.loc-node.is-active .loc-node__dot { transform: scale(1.35); }
.loc-node:hover .loc-node__label,
.loc-node.is-active .loc-node__label { fill: var(--brand); }
.loc-node.is-dim { opacity: 0.18; }
.loc-node.is-dim .loc-node__pulse { animation: none; opacity: 0; }

@keyframes loc-pulse {
  0% { transform: scale(0.7); opacity: 0.32; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-node__pulse { animation: none; opacity: 0.14; }
}
/* Labels become unreadable when the SVG is scaled down: the list next to the map takes over. */
@media (max-width: 639px) {
  .loc-node__label { display: none; }
}

.loc-map-card__caption {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: var(--s-2) var(--s-2) var(--s-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.loc-map-card__caption .icon { flex: none; margin-top: 2px; }

.loc-index { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) and (max-width: 1023px) {
  .loc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.loc-index__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--s-2);
}
.loc-index__count { font-family: var(--font-mono); color: var(--text-muted); font-weight: 500; }
/* "not available" marks carry information: AA contrast (--text-subtle is decorative only) */
.compare-table .is-no { color: var(--text-muted); }
.loc-index__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px var(--s-2); }
@media (min-width: 640px) {
  .loc-index__list { grid-template-columns: minmax(0, 1fr); }
}
.loc-index__link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--fs-sm);
}
.loc-index__link:hover,
.loc-index__link.is-active { background: var(--surface-2); text-decoration: none; color: var(--text); }
.loc-index__link .fi { flex: none; border-radius: 2px; }
.loc-index__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-index__tags { display: inline-flex; gap: 3px; margin-left: auto; flex: none; }
.loc-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.5;
}
.loc-tag--5g { color: var(--brand-text); border-color: var(--brand-soft-border); background: var(--brand-soft); }
.loc-tag--static { color: var(--signal-text); border-color: var(--signal-border); background: var(--signal-soft); }

/* Country cards (hub) -------------------------------------------------------- */
.loc-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  padding-top: var(--s-3);
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.loc-card__facts dt { line-height: 1.3; }
.loc-card__facts dd { color: var(--text); font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* Comparison table ----------------------------------------------------------- */
.loc-table { min-width: 760px; }
.loc-table td { white-space: nowrap; }
.loc-table td.num, .loc-table th.num { text-align: right; }
.loc-table__country { font-weight: 600; color: var(--text); }
.loc-table__country:hover { color: var(--brand-text); text-decoration: none; }
.loc-table__yes { display: inline-flex; align-items: center; gap: 6px; }
.loc-table__yes .icon { color: var(--signal); }

/* Rollout + FAQ --------------------------------------------------------------- */
.loc-history { display: grid; gap: var(--s-12); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .loc-history { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-16); }
}
.loc-flags { display: inline-flex; gap: 4px; margin-right: var(--s-2); vertical-align: -1px; }
.loc-flags .fi { border-radius: 2px; }

/* Country / carrier hero ----------------------------------------------------- */
.loc-hero__eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); }
.loc-hero__eyebrow .fi { font-size: 1.1rem; border-radius: 2px; }
.loc-avail { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.loc-avail .badge { font-size: var(--fs-xs); }
.loc-avail__off { color: var(--text-muted); }
.loc-figures .spec-list__value { min-width: 0; }

.loc-subnav { border-bottom: 1px solid var(--border); background: var(--surface); }
.loc-subnav__list {
  display: flex;
  gap: var(--s-2);
  padding-block: var(--s-3);
  overflow-x: auto;
  scrollbar-width: thin;
}
.loc-subnav__list li { flex: none; }

/* Products ------------------------------------------------------------------ */
.loc-product { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.loc-product__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-1); }
.loc-product__title { font-weight: 650; font-size: var(--fs-md); letter-spacing: -0.01em; }
.loc-product__text { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.6; }
.loc-product__price { font-weight: 600; font-size: var(--fs-sm); }
.loc-product__link { margin-top: auto; padding-top: var(--s-2); font-size: var(--fs-sm); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.loc-product--off { background: var(--surface-2); box-shadow: none; }
.loc-product--off .loc-product__title { color: var(--text-muted); }
.loc-alt { gap: var(--s-2); }
.loc-alt .pill .fi { border-radius: 2px; }

/* Carriers + pricing --------------------------------------------------------- */
.loc-carriers__name { font-weight: 600; }
.loc-carriers__note { color: var(--text-muted); font-size: var(--fs-sm); min-width: 220px; }
.loc-tech { display: inline-flex; gap: 4px; }

.loc-price__plan { display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-weight: 500; }
.loc-price__footer { display: flex; flex-direction: column; gap: var(--s-2); }
.loc-price__title { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-sm); }
.loc-price__title .icon { color: var(--brand-text); }
.loc-price__volume { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); }
.loc-price__note { font-size: var(--fs-xs); color: var(--text-muted); }
.loc-aside__title { font-weight: 650; margin-bottom: var(--s-3); }

/* Residential ------------------------------------------------------------- */
.loc-cities { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.loc-cities li {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: var(--fs-sm);
}
.loc-cities__name { font-weight: 550; }
.loc-cities__slug { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-muted); background: none; padding: 0; }
.loc-cities + .field__hint, .cred-list + .field__hint { color: var(--text-muted); }

/* Market + regulation ---------------------------------------------------------- */
.loc-prose { max-width: 70ch; }
.loc-uses { gap: var(--s-5) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.loc-reg { display: flex; flex-direction: column; gap: var(--s-2); }
.loc-reg .loc-aside__title { margin-bottom: 0; margin-top: var(--s-2); }
.loc-reg__dl dt { font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: 600; }
.loc-reg__dl dd { font-weight: 600; font-size: var(--fs-sm); margin-top: 2px; }
.loc-reg__text { font-size: var(--fs-sm); line-height: 1.6; }
.loc-reg__disclaimer { font-size: var(--fs-xs); color: var(--text-muted); padding-top: var(--s-2); border-top: 1px solid var(--border); margin-top: var(--s-1); }

/* Setup ------------------------------------------------------------------- */
.loc-setup { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); }
.loc-steps { gap: var(--s-4); }
.loc-steps .step { padding-top: var(--s-8); }
.loc-setup__code { min-width: 0; }
@media (min-width: 1024px) {
  .loc-setup { grid-template-columns: 280px minmax(0, 1fr); align-items: start; }
  .loc-steps { grid-template-columns: minmax(0, 1fr); }
}

/* FAQ --------------------------------------------------------------------- */
.loc-faq .accordion__content p { color: var(--text-muted); line-height: 1.65; }

.loc-cta { margin-top: var(--s-16); }
@media (max-width: 767px) { .loc-cta { margin-top: var(--s-12); } }
.loc-tagline { color: var(--text-muted); }

.loc-filter { flex-wrap: wrap; max-width: 100%; }
.loc-filter button { white-space: normal; }
.loc-history--faq { grid-template-columns: minmax(0, 1fr); }
.loc-history--faq > div:first-child { display: none; }
