/* ==========================================================================
   AI Lab Solutions — Locations page (loaded after styles.css)
   ========================================================================== */

/* ---------- Dark map hero ---------- */
.loc-hero { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; padding: 64px 0 72px; --bg: var(--navy-950); }
.loc-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 70% 40%, rgba(37, 99, 235, .35), transparent 65%); }
.loc-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 90%);
}
.loc-hero .container { position: relative; z-index: 1; }
.loc-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 36px; }
.loc-head h1 { color: #fff; margin-bottom: 12px; }
.loc-head .lead { color: rgba(255, 255, 255, .8); max-width: 560px; margin: 0; }
.loc-stage { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
.loc-stage .us-map { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.loc-stage .legend { grid-column: 1 / -1; }

/* ---------- Map ---------- */
.us-map { width: 100%; height: auto; display: block; }
.us-map .land { fill: #0f2148; stroke: #2a4a86; stroke-width: 1.5; stroke-linejoin: round; }
.us-map .dot { fill: rgba(255, 255, 255, .12); }
.us-map .pin-planned { fill: #4b6db8; }
.us-map .pin-soon { fill: var(--navy-950); stroke: var(--blue-300); stroke-width: 3; }
.us-map .pin-open { fill: var(--blue-300); stroke: #fff; stroke-width: 3; }
.us-map .pulse { fill: var(--blue-300); opacity: .35; }
/* SVG units: the map scales to its column, so these render ~0.8x on desktop */
.us-map .lbl { font-family: var(--font); font-size: 16px; font-weight: 700; fill: #fff; pointer-events: none; }
.us-map .lbl.soon { font-size: 14.5px; font-weight: 600; fill: rgba(255, 255, 255, .82); }
.us-map .pin-group circle { transition: transform .15s, fill .15s; transform-box: fill-box; transform-origin: center; }
.us-map .pin-group:hover circle { transform: scale(1.35); }
.us-map .pin-group:hover .pin-planned { fill: var(--blue-300); }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .8); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .open i { background: var(--blue-300); outline: 3px solid rgba(96, 165, 250, .3); }
.legend .soon i { background: var(--navy-950); border: 2.5px solid var(--blue-300); }
.legend .planned i { background: #4b6db8; }

/* ---------- Headquarters spotlight ---------- */
.hq-card { padding: 26px 28px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hq-card h2 { color: #fff; font-size: 1.6rem; margin: 14px 0 6px; }
.hq-card .sub { color: rgba(255, 255, 255, .7); font-size: .9rem; margin: 0 0 18px; }
.hq-card dl { margin: 0 0 20px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .88rem; }
.hq-card dt { color: rgba(255, 255, 255, .6); font-weight: 500; }
.hq-card dd { margin: 0; color: #fff; font-weight: 600; }
.hq-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status-tag.open { background: rgba(37, 99, 235, .25); color: #bfdbfe; }
.status-tag.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); outline: 3px solid rgba(96, 165, 250, .3); }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: 1fr 1.2fr 1.8fr; gap: 20px; align-items: start; }
.phase { position: relative; padding: 28px; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); background: #fff; }
.phase .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-500); color: #fff; font-weight: 800; margin-bottom: 14px; }
.phase.future .num { background: var(--ink-200); color: var(--ink-700); }
.phase h3 { font-size: 1.05rem; margin-bottom: 2px; }
.phase .when { font-size: .82rem; color: var(--ink-500); font-weight: 600; margin-bottom: 16px; }
.phase .cities { display: flex; flex-wrap: wrap; gap: 8px; }
.phase .cities span { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink-200); color: var(--ink-700); background: var(--ink-50); cursor: default; }
.phase.now .cities span { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); }
.phase.next .cities span { background: #fff; border-color: var(--blue-300); color: var(--blue-700); }
.phase .cities .none { font-style: italic; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .roadmap { grid-template-columns: 1fr; }
  .loc-stage { grid-template-columns: 1fr; }   /* keep the map wide enough for its labels */
  .hq-card { max-width: 520px; }
}
@media (max-width: 900px) {
  .loc-hero { padding: 48px 0 56px; }
  .loc-head { grid-template-columns: 1fr; align-items: start; gap: 20px; margin-bottom: 28px; }
  .us-map .lbl.soon { display: none; }
  .us-map .lbl { font-size: 18px; }
}
@media (max-width: 600px) {
  .us-map .lbl { display: none; }   /* the spotlight card names the HQ directly below */
  .hq-card { padding: 20px; }
  .hq-card .actions .btn { flex: 1 1 auto; justify-content: center; }
}
