/* Locations hub premium polish — scoped to /locations only via body.loc-hub / .loc-hub.
   Brand: navy #06162B / #07182d · lime #C2FF51. Professional services, not SaaS. */

.loc-hub {
  --loc-navy: #06162b;
  --loc-navy-2: #07182d;
  --loc-lime: #c2ff51;
  --loc-ink: #0c1a28;
  --loc-muted: #526575;
  --loc-line: rgba(7, 24, 45, 0.1);
  --loc-paper: #f4f7fa;
  --loc-card: #ffffff;
  --loc-shadow: 0 14px 36px rgba(6, 22, 43, 0.07);
  --loc-shadow-sm: 0 6px 18px rgba(6, 22, 43, 0.05);
}

/* ——— Hero ——— */
.loc-hub-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 70% 55% at 88% 0%, rgba(194, 255, 81, 0.08), transparent 55%),
    linear-gradient(155deg, #06162b 0%, #0a2944 48%, #07182d 100%);
  color: #fff;
  border-bottom: 1px solid rgba(194, 255, 81, 0.12);
}
.loc-hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 52%, rgba(255, 255, 255, 0.03) 52% 52.35%, transparent 52.35%);
  pointer-events: none;
}
.loc-hub-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.loc-hub-hero .kicker {
  color: var(--loc-lime);
  letter-spacing: 0.14em;
}
.loc-hub-hero h1 {
  margin: 18px 0 18px;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}
.loc-hub-lead {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.72;
  color: #c5d7e6;
}
.loc-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
}
.loc-hub-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c2ff51, #a8e83a);
  color: #06162b !important;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(194, 255, 81, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.loc-hub-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(194, 255, 81, 0.3);
}
.loc-hub-cta-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #e8f1f8 !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.loc-hub-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}
.loc-hub-final-cta .loc-hub-cta-secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #e8f1f8 !important;
}

/* Trust strip — subtle, not oversized */
.loc-hub-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.loc-hub-trust li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(6, 22, 43, 0.35);
}
.loc-hub-trust strong {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.loc-hub-trust span {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9db4c8;
}
.loc-hub-hero .expansion-banner {
  margin-top: 8px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.loc-hub-hero .expansion-banner strong {
  color: var(--loc-lime);
}
.loc-hub-hero .expansion-banner span {
  color: #c5d7e6;
}
.loc-hub-hero .location-disclosure {
  margin: 0;
  color: #8aa0b4 !important;
  font-size: 0.82rem !important;
}

/* ——— Map band ——— */
.loc-hub .state-map-section {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, #eef4f9 0%, #f7fafc 100%);
  border-bottom: 1px solid var(--loc-line);
}
.loc-hub .loc-map-title {
  margin-bottom: 28px;
  max-width: 640px;
}
.loc-hub .loc-map-title .kicker {
  color: #3d6a2a;
}
.loc-hub .loc-map-title h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
  color: var(--loc-navy);
}
.loc-hub .loc-map-title p {
  color: var(--loc-muted);
  line-height: 1.65;
  margin: 0;
}
.loc-hub .state-map-panel {
  border-radius: 22px;
  box-shadow: var(--loc-shadow);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.loc-hub .state-map-links a {
  border-radius: 12px;
  border-color: rgba(7, 24, 45, 0.1);
  box-shadow: var(--loc-shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.loc-hub .state-map-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(7, 24, 45, 0.22);
  background: #fff;
  box-shadow: 0 10px 24px rgba(6, 22, 43, 0.08);
}

/* ——— Directory band ——— */
.loc-hub-directory-band {
  padding: 56px 0 72px;
  background: #fff;
}
.loc-dir-intro {
  margin-bottom: 28px;
  max-width: 560px;
}
.loc-dir-intro .kicker {
  color: #3d6a2a;
}
.loc-dir-heading {
  margin: 12px 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.025em;
  color: var(--loc-navy);
  font-family: Manrope, "DM Sans", sans-serif;
}
.loc-dir-intro p {
  margin: 0;
  color: var(--loc-muted);
  line-height: 1.65;
}

/* Search / sort toolbar */
.loc-hub .location-sort-toolbar,
.loc-hub .loc-hub-toolbar {
  display: grid !important;
  grid-template-columns: minmax(240px, 1.4fr) auto !important;
  align-items: end;
  gap: 20px !important;
  margin: 0 0 32px !important;
  padding: 22px 24px !important;
  border: 1px solid var(--loc-line) !important;
  border-radius: 18px !important;
  background: var(--loc-paper) !important;
  box-shadow: var(--loc-shadow-sm);
  position: sticky;
  top: 76px;
  z-index: 20;
}
.loc-hub .location-search-label {
  margin-bottom: 8px;
  color: var(--loc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loc-hub .location-search-input {
  min-height: 48px !important;
  padding: 12px 18px !important;
  border: 1px solid rgba(7, 24, 45, 0.18) !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(6, 22, 43, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.loc-hub .location-search-input:focus {
  border-color: var(--loc-navy) !important;
  box-shadow: 0 0 0 3px rgba(194, 255, 81, 0.55) !important;
}
.loc-hub .location-sort-options button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(7, 24, 45, 0.2);
  background: #fff;
  color: var(--loc-navy-2);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.loc-hub .location-sort-options button:hover {
  box-shadow: 0 4px 12px rgba(7, 24, 45, 0.1);
}
.loc-hub .location-sort-options button[aria-pressed="true"] {
  background: var(--loc-navy-2);
  color: var(--loc-lime);
  border-color: var(--loc-navy-2);
  box-shadow: 0 6px 16px rgba(7, 24, 45, 0.16);
}
.loc-hub .location-sort-status {
  margin: 8px 0 0;
  color: var(--loc-muted);
  font-size: 0.76rem;
  text-align: right;
}
.loc-hub .location-search-empty {
  margin: 0 0 28px;
  padding: 28px 24px;
  border: 1px dashed rgba(7, 24, 45, 0.18);
  border-radius: 16px;
  color: var(--loc-muted);
  text-align: center;
  background: var(--loc-paper);
}

/* State cards */
.loc-hub .location-directory {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
  padding: 0 !important;
}
.loc-hub .loc-state-card,
.loc-hub .location-state {
  background: var(--loc-card) !important;
  border: 1px solid var(--loc-line);
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: var(--loc-shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.loc-hub .loc-state-card:hover {
  box-shadow: var(--loc-shadow);
  border-color: rgba(7, 24, 45, 0.16);
}
.loc-state-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 22px 26px 18px;
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--loc-line);
}
.loc-state-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
}
.loc-hub .location-state h2 {
  margin: 0 !important;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--loc-navy);
  line-height: 1.15;
}
.loc-city-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 22, 43, 0.06);
  color: var(--loc-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.loc-license-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 6px 12px !important;
  border-radius: 999px;
  border: 1px solid rgba(7, 24, 45, 0.12);
  background: #fff;
  font-size: 0.72rem !important;
  color: var(--loc-muted) !important;
  line-height: 1.3 !important;
}
.loc-license-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.62rem;
  color: #6a7d8c;
}
.loc-license-num {
  font-weight: 800;
  color: var(--loc-navy-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* City multi-column grid */
.loc-city-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 4px 10px 12px;
}
.loc-hub .location-state a.loc-city-link,
.loc-hub .loc-city-link {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  margin: 2px;
  border: 1px solid transparent !important;
  border-top: none !important;
  border-radius: 10px;
  text-decoration: none;
  color: var(--loc-ink);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.45;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.loc-city-name {
  flex: 1;
  min-width: 0;
}
.loc-city-go {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #087abd;
  opacity: 0.55;
  transition: opacity 0.18s, color 0.18s, transform 0.18s;
}
.loc-hub .loc-city-link:hover {
  background: var(--loc-paper);
  border-color: rgba(7, 24, 45, 0.1) !important;
  box-shadow: var(--loc-shadow-sm);
  transform: translateY(-1px);
}
.loc-hub .loc-city-link:hover .loc-city-go {
  opacity: 1;
  color: var(--loc-navy);
  transform: translateX(2px);
}
.loc-hub .loc-city-link:focus-visible {
  outline: 2px solid var(--loc-lime);
  outline-offset: 2px;
}

/* Final CTA */
.loc-hub-final-cta {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 60% 50% at 12% 20%, rgba(194, 255, 81, 0.1), transparent 50%),
    linear-gradient(145deg, #06162b 0%, #0a2f4c 55%, #07182d 100%);
  color: #fff;
  text-align: center;
  border-top: 1px solid rgba(194, 255, 81, 0.14);
}
.loc-hub-final-inner {
  max-width: 560px;
  margin-inline: auto;
}
.loc-hub-final-cta .kicker {
  color: var(--loc-lime);
}
.loc-hub-final-cta h2 {
  margin: 14px 0 14px;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
}
.loc-hub-final-cta p {
  margin: 0 0 28px;
  color: #b8cddc;
  line-height: 1.7;
}
.loc-hub-final-cta .loc-hub-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Motion — tasteful, reduced-motion safe */
@media (prefers-reduced-motion: no-preference) {
  .loc-hub .loc-state-card {
    animation: loc-fade-up 0.45s ease both;
  }
  .loc-hub .loc-state-card:nth-child(1) { animation-delay: 0.02s; }
  .loc-hub .loc-state-card:nth-child(2) { animation-delay: 0.04s; }
  .loc-hub .loc-state-card:nth-child(3) { animation-delay: 0.06s; }
  .loc-hub .loc-state-card:nth-child(4) { animation-delay: 0.08s; }
  .loc-hub .loc-state-card:nth-child(5) { animation-delay: 0.1s; }
}
@keyframes loc-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .loc-hub .loc-state-card,
  .loc-hub .loc-city-link,
  .loc-hub-cta-primary {
    transition: none !important;
    animation: none !important;
  }
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .loc-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loc-hub-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loc-hub .location-sort-toolbar,
  .loc-hub .loc-hub-toolbar {
    grid-template-columns: 1fr !important;
    top: 64px;
  }
  .loc-hub .location-sort-status {
    text-align: left;
  }
}
@media (max-width: 700px) {
  .loc-hub-hero {
    padding: 48px 0 40px;
  }
  .loc-hub-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .loc-hub-lead {
    font-size: 1rem;
  }
  .loc-hub-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .loc-hub-cta-primary,
  .loc-hub-cta-secondary {
    justify-content: center;
    width: 100%;
  }
  .loc-hub-trust {
    grid-template-columns: 1fr;
  }
  .loc-hub-trust li {
    padding: 14px 16px;
  }
  .loc-hub .state-map-section {
    padding: 44px 0 40px;
  }
  .loc-hub .state-map-panel {
    padding: 12px;
    border-radius: 16px;
  }
  .loc-hub-directory-band {
    padding: 40px 0 52px;
  }
  .loc-hub .location-sort-toolbar,
  .loc-hub .loc-hub-toolbar {
    position: static;
    padding: 16px !important;
    margin-bottom: 20px !important;
  }
  .loc-hub .location-search-input {
    min-height: 48px !important;
    font-size: 16px !important; /* prevent iOS zoom */
  }
  .loc-hub .location-sort-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .loc-hub .location-sort-options button {
    padding-inline: 6px;
    font-size: 0.75rem;
  }
  .loc-state-head {
    padding: 18px 16px 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .loc-city-grid {
    grid-template-columns: 1fr;
    padding: 4px 8px 10px;
  }
  .loc-hub .loc-city-link {
    min-height: 48px;
    padding: 14px 12px !important;
    font-size: 1.12rem;
    line-height: 1.45;
  }
  .loc-hub-final-cta {
    padding: 52px 0;
  }
}
@media (min-width: 1100px) {
  .loc-city-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Override polish.css location-directory 3-col card layout for hub */
.experience .loc-hub .location-directory {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.experience .loc-hub .location-state {
  padding: 0 !important;
}
.experience .loc-hub .location-state a {
  padding: 12px 14px !important;
  border-top: none !important;
}
.experience .loc-hub .journal-intro {
  display: none; /* legacy class unused; hero replaces it */
}

/* Beat experience.css section padding + polish.css location-state link defaults (hub only) */
.experience .loc-hub > section,
.experience .loc-hub section.loc-hub-hero,
.experience .loc-hub section.state-map-section,
.experience .loc-hub section.loc-hub-directory-band,
.experience .loc-hub section.loc-hub-final-cta {
  padding-top: unset;
  padding-bottom: unset;
}
.experience .loc-hub .loc-hub-hero { padding: 72px 0 56px !important; }
.experience .loc-hub .state-map-section { padding: 64px 0 56px !important; }
.experience .loc-hub .loc-hub-directory-band { padding: 56px 0 72px !important; }
.experience .loc-hub .loc-hub-final-cta { padding: 72px 0 !important; }
@media (max-width: 700px) {
  .experience .loc-hub .loc-hub-hero { padding: 48px 0 40px !important; }
  .experience .loc-hub .state-map-section { padding: 44px 0 40px !important; }
  .experience .loc-hub .loc-hub-directory-band { padding: 40px 0 52px !important; }
  .experience .loc-hub .loc-hub-final-cta { padding: 52px 0 !important; }
}

.experience .loc-hub .location-state a.loc-city-link,
.experience .loc-hub .loc-city-link {
  color: #06162b !important;
  border-top: none !important;
  display: flex !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.experience .loc-hub .loc-city-link .loc-city-name { color: #06162b !important; }
.experience .loc-hub .loc-city-link .loc-city-go { color: #087abd !important; font-size: 0.78rem !important; }
.experience .loc-hub .loc-city-link:hover .loc-city-name { color: #06162b !important; }
.experience .loc-hub .location-state a span { color: inherit; } /* neutralize polish.css .location-state a span */

/* Directory band sit on soft paper variation vs pure white hero→map→dir */
.experience .loc-hub .loc-hub-directory-band {
  background: linear-gradient(180deg, #f7fafc 0%, #ffffff 28%, #ffffff 100%) !important;
}

/* Spanish city discovery — compact enough to support the hero without competing with the directory. */
.loc-es-cities {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 18px 28px;
  align-items: center;
  margin: 8px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgba(194, 255, 81, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}
.loc-es-copy h2 {
  margin: 5px 0 5px;
  color: #fff;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 1.08rem;
  line-height: 1.25;
}
.loc-es-copy p {
  margin: 0;
  color: #b8cddd;
  font-size: 0.83rem;
  line-height: 1.5;
}
.loc-es-kicker {
  color: var(--loc-lime);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.loc-es-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.loc-es-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(194, 255, 81, 0.28);
  border-radius: 999px;
  color: #f4f8fc !important;
  background: rgba(6, 22, 43, 0.3);
  font-size: 0.79rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.loc-es-links a span {
  color: var(--loc-lime);
  font-size: 0.72rem;
}
.loc-es-links a:hover {
  border-color: var(--loc-lime);
  background: rgba(194, 255, 81, 0.12);
  transform: translateY(-1px);
}
.loc-es-links a:focus-visible {
  outline: 2px solid var(--loc-lime);
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .loc-es-cities {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
    padding: 16px;
  }
  .loc-es-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loc-es-links a {
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loc-es-links a {
    transition: none;
  }
}
