/* ============================================================
   Locations Map — interactive US map with hubs, satellite dots,
   flight-path animation, and live stats
   ============================================================ */
.loc-map {
  background: #0a0a0a;
  color: #f5f1ea;
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

/* Vestaboard-style flap tiles used in the side panel */
.lfb {
  display: inline-flex;
  gap: 2px;
  white-space: pre;
  vertical-align: middle;
}
.lfb--lg { gap: 4px; }
.lfb-char {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #1a1815 0%, #1a1815 49%, #0d0c0b 50%, #161412 100%);
  border-radius: 2px;
  font-family: 'SF Mono','Menlo','Roboto Mono',monospace;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: #f5f1ea;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  flex: none;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.lfb-char::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0,0,0,0.55);
  z-index: 2;
  pointer-events: none;
}
.lfb-char.is-flipping {
  filter: brightness(1.3);
  animation: lfbFlap 90ms ease-in-out;
}
@keyframes lfbFlap {
  0%   { transform: scaleY(1); }
  50%  { transform: scaleY(0.92); }
  100% { transform: scaleY(1); }
}
.lfb--xl .lfb-char { width: 48px; height: 72px; font-size: 50px; border-radius: 3px; }
.lfb--lg .lfb-char { width: 24px; height: 36px; font-size: 22px; }
.lfb--md .lfb-char { width: 30px; height: 44px; font-size: 24px; border-radius: 3px; }
.lfb--sm .lfb-char { width: 14px; height: 20px; font-size: 11px; }
.lfb--amber .lfb-char { color: #f5f1ea; }
.lfb--orange .lfb-char { color: #d97a4f; }

.loc-map-head {
  max-width: 1480px;
  margin: 0 auto 48px;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}
.loc-map-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.loc-map-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.loc-map-head h2 em { font-weight: 700; }
.loc-map-head p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(245,241,234,0.65);
  margin: 0;
  max-width: 38ch;
}

.loc-map-grid {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.loc-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 500;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, #0e0e0e 0%, #050505 100%);
  border: 1px solid rgba(245,241,234,0.06);
  padding: 0;
  overflow: hidden;
}

/* Live counter floating top-left of stage */
.loc-map-counter {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  z-index: 4;
}
.loc-map-counter .led {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 100%;
  background: #6fbf7a;
  margin-right: 8px;
  box-shadow: 0 0 6px #6fbf7a;
  animation: locLed 1.6s ease-in-out infinite;
}
@keyframes locLed { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

/* Map SVG */
.loc-map-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.loc-map-stage { padding: 12px; }
.loc-map-dots circle { fill: rgba(245,241,234,0.5); }

/* HQ marker */
.loc-hq text {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: #d97a4f;
}

/* Hub pin */
.loc-hub { cursor: pointer; outline: none; }
.loc-hub .hit { cursor: pointer; }
.loc-hub .ring {
  fill: none;
  stroke: rgba(245,241,234,0.7);
  stroke-width: 1.6;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}
.loc-hub .dot {
  fill: #f5f1ea;
  transition: fill 0.25s ease, r 0.25s ease;
}
.loc-hub .label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  fill: rgba(245,241,234,0.7);
  pointer-events: none;
  transition: fill 0.25s ease;
}
.loc-hub .pulse-ring {
  fill: rgba(217,122,79,0.22);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: locHubPulse 2.8s ease-out infinite;
}
.loc-hub .pulse-ring--2 { animation-delay: 1.4s; }
.loc-hub:hover .ring,
.loc-hub:focus-visible .ring,
.loc-hub.is-active .ring { stroke: #d97a4f; stroke-width: 2; }
.loc-hub:hover .dot,
.loc-hub:focus-visible .dot,
.loc-hub.is-active .dot { fill: #d97a4f; r: 10.5; }
.loc-hub:hover .label,
.loc-hub:focus-visible .label,
.loc-hub.is-active .label { fill: #f5f1ea; }
.loc-hub.is-active .pulse-ring { opacity: 1; }
@keyframes locHubPulse {
  0%   { transform: scale(0.6); opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}
.loc-map-dots circle {
  fill: rgba(245,241,234,0.16);
}
.loc-map-arcs path {
  fill: none;
  stroke: rgba(217,122,79,0.5);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.loc-map-arcs .pulse {
  fill: rgba(217,122,79,0.95);
}

/* Satellite restaurant dots */
.loc-sat circle {
  fill: rgba(217,122,79,0.55);
  transition: fill 200ms, r 200ms;
}
.loc-sat circle:hover { fill: #f5f1ea; }

/* Hub pin */
.loc-hub {
  cursor: pointer;
}
.loc-hub .pulse-ring {
  fill: rgba(217,122,79,0.18);
  transform-box: fill-box;
  transform-origin: center;
  animation: locHubPulse 2.6s ease-out infinite;
}
.loc-hub .pulse-ring--2 { animation-delay: 1.3s; }
.loc-hub .ring {
  fill: none;
  stroke: rgba(217,122,79,0.8);
  stroke-width: 1.4;
}
.loc-hub .dot {
  fill: #f5f1ea;
}
.loc-hub.is-active .ring { stroke: #f5f1ea; stroke-width: 2; }
.loc-hub.is-active .dot { fill: #f5f1ea; }
.loc-hub .label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  fill: rgba(245,241,234,0.85);
  pointer-events: none;
}
.loc-hub.is-active .label { fill: #f5f1ea; }
@keyframes locHubPulse {
  0%   { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Side panel */
.loc-map-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: #0e0e0e;
  border: 1px solid rgba(245,241,234,0.06);
  padding: 28px 32px;
}
.loc-map-big {
  font-family: 'SF Mono','Menlo','Roboto Mono',monospace;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #f5f1ea;
}
.loc-map-big-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
  margin-top: 16px;
}

.loc-map-active {
  border-top: 1px solid rgba(245,241,234,0.1);
  padding-top: 28px;
}
.loc-map-active-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #f5f1ea;
  margin-bottom: 10px;
}
.loc-map-active-city {
  font-family: 'SF Mono','Menlo','Roboto Mono',monospace;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.loc-map-active-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.55);
  margin-bottom: 18px;
}
.loc-map-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(245,241,234,0.92);
  height: 140px;
  overflow: hidden;
  align-content: flex-start;
}
.loc-map-active-list span {
  display: inline-block;
}
.loc-map-active-list span:not(:last-child)::after {
  content: ' \00B7';
  color: rgba(245,241,234,0.3);
  margin-left: 4px;
}

.loc-map-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(245,241,234,0.1);
}
.loc-map-stat-n {
  font-family: 'SF Mono','Menlo','Roboto Mono',monospace;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #f5f1ea;
}
.loc-map-stat-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
  margin-top: 8px;
}

/* Tablet */
@media (max-width: 1100px) {
  .loc-map { padding: 72px 0 60px; }
  .loc-map-head, .loc-map-grid { padding: 0 28px; gap: 32px; }
  .loc-map-head { grid-template-columns: 1fr; }
  .loc-map-grid { grid-template-columns: 1fr; }
  .loc-map-side { padding: 28px; }
  .loc-map-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .loc-map-stats { grid-template-columns: 1fr 1fr; }
}
