.area-finder-map-test {
  min-height: calc(100vh - 70px);
}

.area-finder-map-test .offices-intro {
  align-items: flex-end;
}

.area-finder-map-test .offices-workspace {
  --office-map-height: clamp(560px, calc(60vh + 18px), 625px);
}

.area-finder-map-test .map-layer-summary {
  display: block;
}

.map-hover-preview {
  display: grid;
  min-height: 74px;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--office-line);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--office-ink);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 22px rgba(8, 47, 73, 0.08);
}

.map-hover-preview-photo {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(8, 47, 73, 0.2);
  border-radius: 4px;
  object-fit: cover;
  object-position: center top;
  background: #e8ecea;
}

.map-hover-preview-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 2px;
}

.map-hover-preview-primary {
  display: grid;
  min-width: 0;
  gap: 0;
}

.map-hover-preview-label {
  color: var(--office-teal);
  font-family: var(--office-sans);
  font-size: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.map-hover-preview-primary strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-weight: 700;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-hover-preview-facts {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 1px;
  color: var(--office-muted);
  font-family: var(--office-sans);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.18;
}

.map-hover-preview-fact {
  min-width: 0;
  white-space: normal;
}

.map-hover-preview-fact:only-child {
  grid-column: 1 / -1;
}

.map-hover-preview-fact.is-party {
  color: var(--office-navy-950);
  font-weight: 950;
}

.area-finder-map-test .selection-fields .selection-field-party {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  border: 1px solid rgba(181, 118, 22, 0.28);
  border-left: 4px solid var(--office-gold);
  border-radius: 4px;
  padding: 7px 9px;
  background: #f6eedc;
}

.area-finder-map-test .selection-fields .selection-field-party dt {
  color: var(--office-navy-900);
}

.area-finder-map-test .selection-fields .selection-field-party dd {
  color: var(--office-navy-950);
  font-weight: 900;
}

.map-hover-preview.has-preview {
  border-color: #9aabae;
  background: #fffdf8;
}

@media (max-width: 620px) {
  .map-hover-preview {
    min-height: 76px;
    padding: 5px 8px;
  }

  .map-hover-preview-copy {
    gap: 3px;
  }

  .map-hover-preview-photo {
    width: 56px;
    height: 56px;
  }
}

.prototype-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid #9d7426;
  border-radius: 999px;
  padding: 5px 11px;
  color: #67470c;
  background: #f5e2b9;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.area-drill-controls {
  padding: 12px 14px;
  overflow: auto;
  background: #fbfaf6;
}

.area-zip-search {
  margin: 0 0 10px;
  border-bottom: 1px solid var(--office-line);
  padding: 0 0 10px;
}

.area-zip-search label {
  display: block;
  margin: 0 0 5px;
  color: var(--office-navy-950);
  font-size: 0.71rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.area-zip-search > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.area-zip-search input,
.area-zip-search button {
  min-height: 38px;
  border: 1px solid #9dacb1;
  border-radius: 4px;
  font: inherit;
}

.area-zip-search input {
  min-width: 0;
  padding: 7px 9px;
  color: var(--office-navy-950);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.area-zip-search input:focus-visible,
.area-zip-search button:focus-visible {
  outline: 3px solid #e7bb61;
  outline-offset: 2px;
}

.area-zip-search button {
  padding: 6px 12px;
  border-color: var(--office-navy-950);
  color: #fff;
  background: var(--office-navy-950);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.area-zip-search button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.area-zip-search p {
  margin: 5px 0 0;
  color: var(--office-muted);
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.35;
}

.area-zip-search p.is-error {
  color: #9d2d21;
}

.area-zip-search + .area-drill-step {
  border-top: 0;
  padding-top: 0;
}

.area-drill-step {
  margin: 0;
  border-top: 1px solid var(--office-line);
  padding: 10px 0 0;
}

.area-drill-step:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.area-drill-step + .area-drill-step {
  margin-top: 10px;
}

.area-drill-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 5px;
  color: var(--office-navy-950);
  font-size: 0.71rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.area-drill-label button {
  appearance: none;
  border: 0;
  padding: 0;
  color: #735317;
  background: transparent;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.area-drill-label button:hover {
  color: var(--office-teal);
}

.area-drill-label button:focus-visible {
  border-radius: 2px;
  outline: 3px solid #e7bb61;
  outline-offset: 2px;
}

.area-drill-label button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.area-picker-trigger {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 50px;
  padding: 6px 8px;
}

.area-picker-trigger .state-picker-shape {
  width: 32px;
  height: 32px;
}

.area-picker-trigger strong {
  font-size: 0.82rem;
}

.area-picker-trigger[aria-expanded="true"] {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.area-picker-trigger.is-selected {
  background: #f2f6f3;
}

.area-picker-popover .state-picker-options {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px 9px 10px;
  scrollbar-color: #a8b2b4 transparent;
  scrollbar-width: thin;
}

.area-picker-group-title {
  position: sticky;
  z-index: 1;
  top: -7px;
  margin: 7px -2px 4px;
  border-bottom: 1px solid var(--office-line);
  padding: 9px 4px 6px;
  color: var(--office-navy-950);
  background: #fff;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.area-picker-group-title:first-child {
  margin-top: -7px;
}

.area-picker-popover .state-picker-option {
  display: grid;
  width: 100%;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  margin-top: 5px;
  border: 1px solid var(--office-line);
  border-radius: 4px;
  padding: 6px 8px;
  color: var(--office-ink);
  background: #faf7ef;
  text-align: left;
  cursor: pointer;
}

.area-picker-popover .state-picker-option:first-child {
  margin-top: 0;
}

.area-picker-popover .state-picker-option:hover,
.area-picker-popover .state-picker-option:focus-visible {
  border-color: #8caaae;
  background: #f2f6f3;
}

.area-picker-popover .state-picker-option.is-available {
  border-left: 4px solid var(--office-teal);
}

.area-picker-popover .state-picker-option.is-selected {
  border-color: var(--office-teal);
  background: #e5f1ed;
  box-shadow: inset 3px 0 0 var(--office-teal);
}

.area-picker-popover .state-picker-option strong {
  font-size: 0.76rem;
}

.state-picker-shape {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border: 1px solid rgba(216, 173, 87, 0.45);
  border-radius: 3px;
  background: var(--office-navy-900);
  box-shadow: 0 2px 6px rgba(6, 40, 63, 0.2);
}

.area-picker-popover .state-picker-option i {
  color: var(--office-teal);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 900;
}

.area-picker-popover .state-picker-loading {
  margin: 0;
  padding: 16px 14px;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.area-drill-step select {
  width: 100%;
  min-height: 43px;
  margin: 0;
  border: 1px solid #9dacb1;
  border-radius: 4px;
  padding: 8px 34px 8px 11px;
  color: var(--office-navy-950);
  background: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
  cursor: pointer;
}

.area-drill-step select:disabled {
  color: #7b878b;
  background: #eee;
  cursor: wait;
}

.area-drill-step select:focus-visible {
  outline: 3px solid #e7bb61;
  outline-offset: 2px;
}

.area-drill-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.atlas-internals {
  display: none !important;
}

.area-finder-map-test .offices-selection {
  grid-template-rows: minmax(0, 1fr);
}

.area-finder-map-test .selection-mode-panel--selection {
  min-height: 0;
}

.area-finder-map-test .offices-selection [data-selection-content] {
  border: 0;
  border-radius: 0;
  padding: 0 3px 0 0;
  background: transparent;
}

.area-associated-map-groups {
  display: grid;
  gap: 6px;
  padding-bottom: 2px;
}

.area-associated-map-group {
  display: grid;
  gap: 3px;
}

.area-associated-map-group h4 {
  margin: 0;
  border-bottom: 1px solid var(--office-line);
  padding-bottom: 2px;
  color: var(--office-teal);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.area-associated-map-toggle {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  min-height: 34px;
  border-left-color: var(--area-map-line);
  padding: 4px 7px;
}

.area-associated-map-swatch {
  position: relative;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid var(--area-map-line);
  border-radius: 3px;
  background: var(--area-map-fill);
  box-shadow: 0 1px 2px rgba(6, 40, 63, 0.14);
}

.area-associated-map-swatch::after {
  width: 7px;
  height: 3px;
  border-bottom: 2px solid var(--area-map-line);
  border-left: 2px solid var(--area-map-line);
  content: "";
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg);
}

.area-associated-map-toggle[aria-pressed="true"] .area-associated-map-swatch::after {
  opacity: 1;
}

.area-associated-map-toggle strong {
  font-size: 0.69rem;
  line-height: 1.15;
}

.area-associated-map-toggle small {
  overflow: hidden;
  margin-top: 1px;
  font-size: 0.58rem;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.area-associated-map-empty {
  margin: 0;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.area-test-notes {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px 48px;
  width: min(1040px, 100%);
  margin: 58px auto 0;
  border-top: 1px solid var(--office-line);
  padding-top: 34px;
}

.area-test-notes > .offices-kicker {
  grid-column: 1 / -1;
  margin: 0 0 -6px;
}

.area-test-notes h2 {
  margin: 0;
  color: var(--office-navy-950);
  font-family: var(--office-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 500;
  line-height: 1.05;
}

.area-test-notes > div {
  display: grid;
  gap: 10px;
}

.area-test-notes p:not(.offices-kicker) {
  margin: 0;
  border-left: 3px solid var(--office-gold);
  padding: 12px 14px;
  background: #f7f2e7;
}

.area-test-notes strong,
.area-test-notes span {
  display: block;
}

.area-test-notes strong {
  color: var(--office-navy-950);
  font-size: 0.76rem;
}

.area-test-notes span {
  margin-top: 4px;
  color: var(--office-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .area-finder-map-test .offices-intro {
    align-items: flex-start;
  }

  .area-drill-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .area-drill-step {
    margin: 0 !important;
    border-top: 0;
    border-right: 1px solid var(--office-line);
    padding: 0 16px 0 0;
  }

  .area-test-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .area-drill-controls {
    display: block;
  }

  .area-finder-map-test .offices-atlas-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
