﻿:root {
  --bg: #0f071c;
  --bg-elev: #1a0f31;
  --card: #21113d;
  --text: #f4edff;
  --muted: #d8c8f3;
  --brand-hot: #501098;
  --brand-gold: #8d4ce0;
  --brand-rose: #b56bff;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 14px 45px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-padding-top: 28px;
}
body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(80rem 40rem at -10% -20%, #2a1253 0%, transparent 45%),
              radial-gradient(60rem 30rem at 110% 0%, #1f1040 0%, transparent 45%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.shape {
  position: absolute;
  filter: blur(35px);
  opacity: 0.28;
  animation: float 8s ease-in-out infinite;
}
.shape-a {
  width: 360px; height: 360px;
  background: linear-gradient(135deg, var(--brand-rose), var(--brand-hot));
  top: 12%; left: -90px;
}
.shape-b {
  width: 280px; height: 280px;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-hot));
  top: 58%; right: -60px;
  animation-delay: -2.5s;
}
.shape-c {
  width: 220px; height: 220px;
  background: linear-gradient(135deg, #6c2ec7, #b56bff);
  bottom: 8%; left: 46%;
  animation-delay: -5s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgb(15 3 24 / 72%);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand img {
  width: 199px;
  height: 64px;
  margin: -10px 0px;
  object-fit: contain;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-partner-logos {
  display: flex;
  align-items: center;
  gap: 4.2rem;
}

.header-partner-logos img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

.header-partner-logos img:hover {
  opacity: 1;
}

.header-partner-logos img[alt="7Venture"] {
  transform: scale(1.6);
}

.header-partner-logos img[alt="WAB Venture"] {
  transform: scale(1.3);
}

.nav-partner-logos {
  display: none;
}

nav { display: flex; gap: 1rem; align-items: center; }
nav a {
  font-size: 0.94rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s ease;
}
nav a:hover { color: var(--text); }
.nav-apply-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(181, 107, 255, 0.45);
  background: rgba(15, 9, 29, 0.78);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #f4edff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.applyLink {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.46rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(120deg, #6a1fc0 0%, #501098 52%, #b56bff 100%);
  box-shadow: 0 8px 22px rgba(80, 16, 152, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease, background-position 0.35s ease;
  background-size: 180% 180%;
  background-position: 0% 50%;
  margin: -10px 0px;
}
.applyLink:hover {
  color: #fff !important;
  transform: translateY(-1px);
  filter: brightness(1.06);
  background-position: 100% 50%;
  box-shadow: 0 12px 30px rgba(111, 52, 196, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.applyLink:active {
  transform: translateY(0);
}
.fullWidth { width: 100%; display: flex; justify-content: center; }
.marginTop { margin-top: 20px;}
.nav-tb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem 0.5rem;
  margin: -10px 0px;
  border: 1px solid rgba(181, 107, 255, 0.35);
  border-radius: 999px;
  background: rgba(15, 9, 29, 0.75);
}
.nav-tb-link img {
  height: 22px;
  width: auto;
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  padding: 5.2rem 0 3rem;
  align-items: end;
}

.hero-compact {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand-gold);
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 0.95;
}

h1 { font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.7rem); }
h3 { font-size: clamp(1.5rem, 3.3vw, 2.2rem); }

.lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
  display: inline-flex;
  justify-content: center;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--brand-hot), var(--brand-rose));
  border-color: transparent;
}
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-full { width: 100%; }

.hero-card {
  background: linear-gradient(165deg, rgba(80,16,152,0.32), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card-kicker { margin: 0; color: var(--muted); font-size: 0.86rem; }
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
}
.pill {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.83rem;
  background: rgba(0,0,0,.2);
}
.pill-link {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pill-link:hover {
  background: rgba(80, 16, 152, 0.38);
  border-color: rgba(181, 107, 255, 0.7);
  transform: translateY(-1px);
}
.muted { color: var(--muted); opacity: .9; margin: 0; }

.section { padding: 3.7rem 0; }
section[id] {
  scroll-margin-top: 26px;
}
.section-dark {
  background: linear-gradient(180deg, #120a25 0%, #0b0716 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-accent {
  background: linear-gradient(120deg, rgba(80,16,152,.2), rgba(181,107,255,.12));
  border-top: 1px solid var(--line);
}

.section-head p { color: var(--muted); max-width: 70ch; }

.featured-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.feature-card {
  grid-column: span 6;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  min-height: 320px;
}

.feature-card figure {
  margin: 0;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}
.feature-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.feature-card:hover img { transform: scale(1.06); }

.feature-card .body { padding: 1rem; }
.feature-card h3 { margin-bottom: 0.6rem; }
.feature-card p { margin: 0; color: var(--muted); }
.card-clickable {
  cursor: pointer;
}
.card-clickable:focus-visible {
  outline: 2px solid rgba(201, 149, 255, 0.95);
  outline-offset: 3px;
}

.media-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.media-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.media-card figure {
  margin: 0;
  height: 175px;
  overflow: hidden;
}
.media-card img {
  width: 100%; height: 100%; object-fit: cover;
}
.media-card .body { padding: .9rem; }
.media-card h4 { margin: 0 0 .45rem; font-size: 1rem; }
.media-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.rail {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.mini-card img {
  aspect-ratio: 1/1;
  width: 100%;
  object-fit: cover;
}
.mini-card .body { padding: .72rem; }
.mini-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.careers-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1rem;
}
.rich { color: var(--muted); }
.rich h1, .rich h2, .rich h3, .rich h4, .rich h5 { color: var(--brand-gold); margin: .6rem 0; }
.rich ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.rich li { margin: .3rem 0; }

.careers-panel {
  background: linear-gradient(180deg, rgba(80,16,152,.36), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  align-self: start;
}
.careers-panel ul { margin: .65rem 0 1rem; padding-left: 1.2rem; }
.careers-panel li { margin: .35rem 0; }

.brands-content {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255,255,255,.02);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-direction: row;
}
.brands-content a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brands-content img {
  max-height: 88px;
  width: 100%;
  object-fit: contain;
  margin-inline: auto;
}

.split-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  background: rgba(10, 6, 20, 0.55);
}
.site-footer p { color: var(--muted); margin: 0; font-size: 0.92rem; }

.footer-legal {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.88rem;
}

.footer-lower {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.footer-contact p {
  margin: 10px 0px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.footer-contact a {
  color: #f4edff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: flex-start;
  align-items: flex-end;
  margin: 10px 0px;
}

.footer-links a {
  color: #f4edff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-links a:hover {
  color: #c995ff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

body.lightbox-open {
  overflow: hidden;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 3, 12, 0.76);
  backdrop-filter: blur(8px);
}

.lightbox-modal.is-open {
  display: flex;
}

.lightbox-panel {
  width: min(980px, 100%);
  max-height: min(90vh, 960px);
  overflow: auto;
  border: 1px solid rgba(181, 107, 255, 0.35);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 10, 36, 0.98), rgba(12, 8, 23, 0.98));
  box-shadow: 0 25px 55px rgba(4, 2, 10, 0.65);
  padding: 1rem;
}

.lightbox-close {
  margin-left: auto;
  display: block;
  border: 1px solid rgba(181, 107, 255, 0.5);
  border-radius: 999px;
  background: rgba(80, 16, 152, 0.32);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.68rem;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(181, 107, 255, 0.33);
}

#lightboxTitle {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.lightbox-meta {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lightbox-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  margin-bottom: 0.8rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lightbox-gallery::-webkit-scrollbar {
  display: none;
}

.lightbox-gallery-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.lightbox-slide {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  scroll-snap-align: start;
}

.lightbox-slide img {
  width: 100%;
  max-height: min(55vh, 480px);
  object-fit: cover;
}

.lightbox-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: -0.15rem 0 0.85rem;
}

.lightbox-nav {
  border: 1px solid rgba(181, 107, 255, 0.52);
  border-radius: 999px;
  background: rgba(80, 16, 152, 0.34);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.lightbox-nav:hover:not(:disabled) {
  background: rgba(181, 107, 255, 0.34);
}

.lightbox-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lightbox-counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.05em;
}

.lightbox-body {
  color: var(--muted);
}

.lightbox-body h1,
.lightbox-body h2,
.lightbox-body h3,
.lightbox-body h4,
.lightbox-body h5 {
  color: var(--brand-gold);
  margin: 0.7rem 0 0.35rem;
}

.lightbox-body p,
.lightbox-body li {
  line-height: 1.55;
}

@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(8px, -12px); }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .feature-card { grid-column: span 12; }
  .careers-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 1150px) and (min-width: 826px) {
  nav { gap: 0.5rem; }
  .header-partner-logos { gap: 1.5rem; }
  .header-partner-logos img[alt="7Venture"] { transform: scale(1.2); }
  .header-partner-logos img[alt="WAB Venture"] { transform: scale(1); }
}

@media (max-width: 825px) {
  .nav-wrap {
    position: relative;
  }

  .nav-apply-cta {
    display: inline-flex;
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: 0.6rem;
    max-width: 100px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 260px;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px solid rgba(181, 107, 255, 0.32);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 10, 36, 0.98), rgba(12, 8, 23, 0.98));
    box-shadow: 0 16px 32px rgba(4, 2, 10, 0.55);
    z-index: 50;
  }

  .site-header.nav-open nav {
    display: flex;
  }

  .site-header nav a {
    margin: 0;
    font-size: 1.05rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
  }

  .site-header nav .applyLink {
    display: none;
  }

  .header-partner-logos {
    display: none;
  }

  .nav-partner-logos {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.35rem 0;
  }

  .nav-partner-logos img {
    height: 30px;
    width: auto;
    object-fit: contain;
  }

  .applyLink,
  .nav-tb-link {
    width: 100%;
    justify-content: center;
  }

  .container { width: min(1160px, calc(100% - 1.3rem)); }
  .section { padding: 2.8rem 0; }

  .footer-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .footer-links {
    align-items: flex-start;
    gap: 0.7rem;
  }
}



/* Locations Page: Purple Leaflet Theme */
#map {
  position: relative;
  width: 100%;
  min-height: 68vh;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(20, 8, 42, 0.55);
  overflow: hidden;
  margin-top: 0.65rem;
}

.map-info {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.state-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.state-chip {
  border: 1px solid rgba(181, 107, 255, 0.4);
  border-radius: 999px;
  background: rgba(15, 8, 29, 0.8);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.38rem 0.72rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.state-chip:hover {
  transform: translateY(-1px);
  color: #fff;
  background: rgba(80, 16, 152, 0.35);
  border-color: rgba(181, 107, 255, 0.72);
}

.state-chip.is-active {
  color: #fff;
  border-color: rgba(181, 107, 255, 0.95);
  background: linear-gradient(120deg, rgba(80, 16, 152, 0.9), rgba(181, 107, 255, 0.45));
}

.autocompleteToolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin: 1rem 0 0.4rem;
}

#autoComplete {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(181, 107, 255, 0.45);
  background: rgba(14, 8, 27, 0.85);
  color: var(--text);
  padding: 0 1rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.96rem;
  outline: none;
}

#autoComplete::placeholder {
  color: var(--muted);
}

#autoComplete:focus {
  border-color: rgba(181, 107, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(80, 16, 152, 0.28);
}

.mapResetButton {
  height: 44px;
  border: 1px solid rgba(181, 107, 255, 0.6);
  border-radius: 999px;
  padding: 0 1rem;
  color: var(--text);
  background: linear-gradient(120deg, var(--brand-hot), var(--brand-rose));
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mapResetButton:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.leaflet-container {
  background: #130a26;
  font-family: "Manrope", sans-serif;
}

.leaflet-control-zoom,
.leaflet-bar,
.leaflet-control-scale-line {
  border: none !important;
  box-shadow: 0 8px 20px rgba(6, 3, 14, 0.5) !important;
}

.leaflet-bar a {
  background: rgba(17, 10, 31, 0.92) !important;
  color: #f4edff !important;
  border-bottom-color: rgba(181, 107, 255, 0.35) !important;
}

.leaflet-bar a:hover {
  background: rgba(80, 16, 152, 0.85) !important;
}

.leaflet-control-scale-line {
  background: rgba(17, 10, 31, 0.85) !important;
  color: #e9dcff !important;
  border-color: rgba(181, 107, 255, 0.35) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: linear-gradient(180deg, rgba(20, 10, 36, 0.98), rgba(14, 8, 26, 0.98));
  color: var(--text);
  border: 1px solid rgba(181, 107, 255, 0.35);
}

.leaflet-popup-content {
  margin: 0.8rem 0.9rem;
  min-width: 220px;
}

.titleKMAC {
  color: #c995ff;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.popupMeta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.linkKMAC {
  display: inline-flex;
  margin: 0.25rem 0.6rem 0 0;
  color: #ffffff !important;
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(181, 107, 255, 0.45);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  background: rgba(80, 16, 152, 0.34);
}

.linkKMAC:hover {
  background: rgba(181, 107, 255, 0.32);
}

.kmac-pin {
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 8px 16px rgba(10, 5, 20, 0.5);
}

.kmac-pin-hq {
  background: radial-gradient(circle at 30% 30%, #d9acff, #8d4ce0);
  border: 2px solid #efe3ff;
}

.kmac-pin-store {
  background: radial-gradient(circle at 30% 30%, #b56bff, #501098);
  border: 2px solid #e6d2ff;
}

[id^="autoComplete_list_"] {
  margin: 0.4rem 0 0;
  padding: 0.3rem;
  list-style: none;
  border: 1px solid rgba(181, 107, 255, 0.4);
  border-radius: 14px;
  background: rgba(17, 10, 31, 0.96);
  box-shadow: 0 15px 35px rgba(7, 4, 15, 0.6);
  max-height: 310px;
  overflow-y: auto;
}

[id^="autoComplete_result_"] {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
}

[id^="autoComplete_result_"][aria-selected="true"],
[id^="autoComplete_result_"]:hover {
  background: rgba(80, 16, 152, 0.35);
}

.kmac-highlight {
  color: #fff;
  background: rgba(181, 107, 255, 0.42);
  padding: 0 0.1rem;
  border-radius: 4px;
}

/* ── Store-Density Heatmap ─────────────────────────────────── */
.section-heatmap {
  padding: 3.5rem 0 2.5rem;
}

.heatmap-header {
  margin-bottom: 1.4rem;
}

.heatmap-header h2 {
  margin-top: 0.25rem;
}


.heatmap-svg-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  line-height: 0; /* removes inline baseline gap */
}

#densityMap {
  width: 100%;
  height: auto;
  display: block;
}

.hm-state {
  transition: filter 0.18s ease, stroke-width 0.18s ease, stroke 0.18s ease;
  cursor: default;
}

.hm-active {
  cursor: pointer;
}

.hm-active:hover {
  filter: brightness(1.45) drop-shadow(0 0 6px rgba(181,107,255,0.55));
  stroke: rgba(255,255,255,0.55) !important;
  stroke-width: 1.4 !important;
}

.hm-tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(12, 7, 24, 0.96);
  border: 1px solid rgba(181,107,255,0.55);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  letter-spacing: 0.01em;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.legend-bar {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    #2e1660 0%,
    #501098 28%,
    #8d4ce0 58%,
    #b56bff 80%,
    #e4b0ff 100%);
  border: 1px solid rgba(181,107,255,0.4);
  box-shadow: 0 0 14px rgba(181,107,255,0.28), inset 0 1px 0 rgba(255,255,255,0.1);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot-low {
  background: #2e1660;
  border: 1px solid rgba(181,107,255,0.45);
}

.legend-dot-high {
  background: #e4b0ff;
  box-shadow: 0 0 7px rgba(181,107,255,0.7);
}

.legend-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .section-heatmap { padding: 2.5rem 0 1.5rem; }
  .heatmap-card { padding: 0.9rem 0.9rem 0.75rem; }
  .legend-label { font-size: 0.72rem; }
}

/* ── end heatmap ────────────────────────────────────────────── */

@media (max-width: 760px) {
  .brands-content {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .autocompleteToolbar {
    grid-template-columns: 1fr;
  }

  #map {
    min-height: 62vh;
  }
}
