/* Locations — all offices (map + two-column list). Figma: Catalog — Locations › "Location — 05 All locations" (1311:1834).
   Components: Catalog — Design system › Locations › "Locations map / State heading", "/ List row", "/ Pin popover". */
.lm {
  background: #0b0d0f;
  color: #fff;
}
.lm .eyebrow {
  color: #f58220;
  padding-left: 20px;
} /* 20px inset, as in Figma 05 */

/* Title band: heading left, intro right */
.lm-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 56px;
  padding-bottom: 32px;
  pointer-events: none;
} /* Figma 05: intro under the title; the map runs up behind this band, so only the text takes the pointer */
.lm-title > * {
  pointer-events: auto;
}
.lm-title__h {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.lm-title__intro {
  max-width: 440px;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #aeb6bd;
}
.lm-title__touch {
  display: none;
}

/* Panel: as tall as the window under the sticky nav. List column lines up with the page gutter; map bleeds to the right edge. */
.lm-panel {
  --lm-left: max(var(--gutter), calc((100vw - var(--content)) / 2));
  display: grid;
  grid-template-columns: calc(var(--lm-left) - 16px + 524px) minmax(0, 1fr);
  column-gap: 0;
  height: clamp(560px, calc(100svh - 84px), 960px);
} /* Figma 05: list column 524px from the row inset, map from there to the right edge */

/* List (scrolls on its own) */
.lm-list-wrap {
  position: relative;
  min-height: 0;
  padding-left: calc(var(--lm-left) - 16px);
}
.lm-list {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
  padding: 8px 14px 24px 40px;
} /* 40px left margin; two columns, 24px apart (Figma 05) */
.lm-col {
  min-width: 0;
}
.lm-list-wrap::before,
.lm-list-wrap::after {
  content: '';
  position: absolute;
  left: calc(var(--lm-left) - 16px);
  right: 17px;
  height: 56px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
.lm-list-wrap::before {
  top: 0;
  background: linear-gradient(#0b0d0f, rgba(11, 13, 15, 0));
}
.lm-list-wrap::after {
  bottom: 0;
  background: linear-gradient(rgba(11, 13, 15, 0), #0b0d0f);
}
.lm-list-wrap.is-top::before,
.lm-list-wrap.is-bottom::after {
  opacity: 0;
}
/* Custom scrollbar, as in Figma: 3px, faint track, light thumb (Chrome, Safari, Edge). Firefox gets its thin scrollbar in the same colours. */
.lm-list::-webkit-scrollbar {
  width: 3px;
}
.lm-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin: 12px 0;
}
.lm-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}
.lm-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}
@supports not selector(::-webkit-scrollbar) {
  .lm-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.06);
  }
}

/* State heading stays pinned while its offices scroll under it */
.lm-state ul {
  margin: 0;
  padding: 0 0 0 15px;
  list-style: none;
} /* rows indented 15px under the state heading */
.lm-state__h {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 20px 16px 8px;
  background: #0b0d0f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0bbc3;
} /* Figma: Locations map / State heading (1069:8302) */

/* Row */
.lm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.lm-row__pin {
  position: relative;
  flex: 0 0 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(245, 130, 32, 0.18);
  transition: background 0.15s;
}
.lm-row__pin::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #f58220;
}
.lm-row--soon .lm-row__pin {
  background: rgba(245, 130, 32, 0.08);
}
.lm-row--soon .lm-row__pin::after {
  background: none;
  box-shadow: inset 0 0 0 1.5px #f58220;
}
.lm-row__city {
  flex: 0 1 auto;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  transition: color 0.15s;
}
.lm-row__soon {
  padding: 3px 8px;
  border-radius: 980px;
  background: #fff1e0;
  color: #b45a00;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lm-row__arrow {
  margin-left: auto;
  color: #ff9706;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.15s;
}
.lm-row.is-active {
  background: rgba(255, 255, 255, 0.07);
}
.lm-row.is-active .lm-row__city {
  color: #ff9706;
}
.lm-row.is-active .lm-row__pin {
  background: rgba(245, 130, 32, 0.35);
}
.lm-row.is-active .lm-row__arrow {
  opacity: 1;
}
.lm-row:focus-visible {
  outline: 2px solid #ff9706;
  outline-offset: -2px;
}

/* Map: names hidden until the office is active (hovered here or in the list, or its popover is open) */
.lm-map {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin-left: -160px;
  margin-top: -160px;
} /* Figma 05 "Map (move / resize freely)": pulled left under the edge of the list (its left side is open ocean) and up into the empty right side of the title band — taller box = bigger map */
.lm-list-wrap {
  z-index: 1;
}
@media (min-width: 901px) {
  /* the map keeps its Figma size: it shrinks on short windows but never grows past 880px tall (scale is set by height only) */
  .lm-map .map {
    width: auto;
    max-width: none;
    height: min(100%, 880px);
    aspect-ratio: 2033.3/898;
    overflow: visible; /* draw the land that runs past the bottom of the crop; .lm-map still clips it, so the page doesn't get taller */
  }
  .lm-map {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
  } /* the land fades into the black at the bottom of the panel instead of stopping on a hard edge */
}
.map--labels-on-hover .map__state-labels text {
  font-size: 16px;
}
.map--labels-on-hover .map__pin-label,
.map--labels-on-hover .map__pin-flag {
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.map--labels-on-hover .map__pin-label {
  font-size: 15px;
  font-weight: 700;
  fill: #ff9706;
  paint-order: stroke;
  stroke: #0b0d0f;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.map--labels-on-hover .map__pin-flag {
  font-size: 9px;
  paint-order: stroke;
  stroke: #0b0d0f;
  stroke-width: 3px;
}
.map--labels-on-hover .map__pin:hover .map__pin-label {
  text-decoration: none;
}
.map--labels-on-hover .map__pin.is-active .map__pin-label,
.map--labels-on-hover .map__pin.is-active .map__pin-flag {
  opacity: 1;
}
.map--labels-on-hover .map__pin.is-active .map__pin-ring {
  r: 15;
  fill-opacity: 0.3;
}
.map--labels-on-hover .map__pin.is-active .map__pin-dot {
  r: 6;
}
.map--labels-on-hover .map__pin-dot {
  transition: r 0.15s;
}

/* Narrow: title stacks; under 900px the map sits above the list and the list scrolls with the page */
@media (max-width: 900px) {
  .lm-panel {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
  }
  .lm-map {
    height: min(520px, 90vw);
    margin: 0;
  }
  .lm-list-wrap {
    padding: 0 calc(var(--gutter) - 16px) 48px;
  }
  .lm-list {
    height: auto;
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }
  .lm-list-wrap::before,
  .lm-list-wrap::after {
    display: none;
  }
  .lm-state__h {
    top: 84px;
  } /* below the sticky nav */
  .map--labels-on-hover .map__pin-label {
    font-size: 22px;
  }
}
/* Phones — Figma: Catalog — Locations › "Location — 07 All locations · Mobile": title, the map full width in the portrait
   crop (661 × 952), then one column of offices 10px from the edge. Tapping a city opens its page; a pin opens the popover. */
@media (max-width: 720px) {
  .lm-title {
    gap: 12px;
    padding: 40px var(--gutter) 28px;
  }
  .lm .eyebrow {
    padding-left: 0;
    font-size: 12px;
  }
  .lm-title__h {
    margin-top: 12px;
    font-size: var(--fs-heading-xl);
    line-height: 1.1;
    letter-spacing: -0.04em;
  } /* PCLI/Heading XL */
  .lm-title__intro {
    max-width: none;
    padding-left: 0;
  }
  .lm-title__hover {
    display: none;
  }
  .lm-title__touch {
    display: inline;
  }
  .lm-map {
    height: auto;
    aspect-ratio: 661/952;
    background: #000;
  }
  .lm-map .map {
    width: 100%;
    height: 100%;
  }
  .lm-map .map__pin-label,
  .lm-map .map__pin-flag,
  .lm-map .map__state-labels {
    display: none;
  } /* as the home page's phone map */
  .lm-map .map__pin-dot {
    r: 7px;
    stroke-width: 2.5;
  }
  .lm-map .map__pin-ring {
    r: 15px;
  }
  .lm-list-wrap {
    padding: 16px 10px 48px;
  }
  .lm-state__h {
    top: 56px;
  } /* tucks right under the 56px phone nav bar (mobile-nav.css), so cities scroll out of sight behind it */
}
@media (max-width: 560px) {
  .lm-list {
    grid-template-columns: minmax(0, 1fr);
  }
} /* phones: one column */

/* 721–1280px: inset the title band by the gutter (48px here) — .inner has no side padding of its own */
@media (min-width: 721px) and (max-width: 1280px) {
  .lm-title {
    padding-inline: var(--gutter);
  }
}
