.oit-map {
  --om-brand: var(--brand, #1664df);
  --om-strong: var(--brand-strong, #104da9);
  --om-soft: var(--brand-soft, #eaf2ff);
  --om-paper: var(--paper, #fff);
  --om-line: var(--line, #dce5ef);
  --om-ink: var(--ink, #11243b);
  --om-muted: var(--muted, #50647b);
  --om-height: clamp(450px, 43vw, 535px);
  --om-water: #d8e9f1;
  color: var(--om-ink);
  display: grid;
  gap: 16px;
}
.oit-map-job-link:hover, .oit-map-footer a:hover { text-decoration: underline; }
.oit-map-search, .oit-map-card {
  min-width: 0;
  border: 1px solid var(--om-line);
  border-radius: var(--radius, 17px);
  background: var(--om-paper);
  box-shadow: var(--shadow, 0 7px 26px #1339680d);
}
.oit-map-search {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
}
.oit-map-field { display: grid; gap: 5px; min-width: 0; }
.oit-map-field > span {
  color: var(--om-muted);
  font-weight: 740;
  font-size: .75rem;
  line-height: 1.25;
}
.oit-map-field select, .oit-map-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--om-ink);
  background: var(--om-paper);
  border: 1px solid var(--om-line);
  border-radius: 9px;
  font-size: .875rem;
}
.oit-map-field input::placeholder { color: var(--om-muted); opacity: 1; }
.oit-map-field select:disabled { color: var(--om-muted); cursor: default; }
.oit-map-view-options { display: flex; flex-wrap: wrap; gap: 8px; }
.oit-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--om-ink);
  background: var(--om-paper);
  border: 1px solid var(--om-line);
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
}
.oit-map-button:hover:not(:disabled), .oit-map-button[aria-pressed="true"] {
  background: var(--om-soft);
  color: var(--om-strong);
  border-color: var(--om-brand);
}
.oit-map-street-note { padding: 0 14px 9px; font-size: .8125rem; color: var(--om-muted); }
.oit-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .43fr);
  gap: 16px;
  align-items: start;
}
.oit-map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 14px;
}
.oit-map-card-head h2 { font-size: clamp(1.16rem, 2.1vw, 1.5rem); }
.oit-map-kicker {
  color: var(--om-muted);
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.oit-map-view-options { justify-content: flex-end; flex-shrink: 0; }
.oit-map-view-options .oit-map-button { min-height: 40px; font-size: .8125rem; }
.oit-map-view-options [data-streets] { color: var(--om-strong); border-color: var(--om-brand); }

.oit-map-viewport {
  height: var(--om-height);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--om-water);
  border-block: 1px solid #c5dbe7;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.oit-map-viewport.is-dragging { cursor: grabbing; }
.oit-map-viewport:focus-visible { outline-offset: -4px; z-index: 1; }
.oit-map-surface, .oit-map-roads, .oit-map-labels, .oit-map-markers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.oit-map-surface path, .oit-map-surface circle {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.oit-map-land { fill: #e8e9df; fill-rule: evenodd; stroke: #b1b8ad; stroke-width: 1px; }
.oit-map-country { fill: #f2f2df; fill-rule: evenodd; stroke: #8c9c86; stroke-width: 1.2px; }
.oit-map-lakes { fill: var(--om-water); stroke: #b2d0df; stroke-width: .6px; }
.oit-map-rivers { fill: none; stroke: #9cbfcf; stroke-width: .85px; }
.oit-map-gridline { fill: none; stroke: #466a8521; stroke-width: 1px; }
.oit-map-gridline.has-streets { opacity: 0; }
.oit-map-label, .oit-map-origin, .oit-map-marker {
  position: absolute;
  left: var(--om-x, 0);
  top: var(--om-y, 0);
}
.oit-map-label {
  transform: translate(7px, -50%);
  color: #3d5565;
  font-size: .72rem;
  line-height: 1;
  font-weight: 740;
  white-space: nowrap;
  text-shadow: 1px 1px #f7f8ed, -1px 1px #f7f8ed, -1px -1px #f7f8ed, 1px -1px #f7f8ed;
}
.oit-map-label--city, .oit-map-label--major { color: #263f4d; }
.oit-map-label--city::before, .oit-map-label--major::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  translate: 0 -50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.oit-map-label--major { font-weight: 850; }
.oit-map-label--country {
  color: #52664e;
  font-size: .7rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.oit-map-label--water { color: #335d75; font-style: italic; }
.oit-map-origin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--om-brand);
  box-shadow: 0 0 0 2px var(--om-brand);
}
.oit-map-origin { pointer-events: none; transform: translate(-50%, -50%); }
.oit-map-marker {
  pointer-events: auto;
  z-index: 1;
  transform: translate(-50%, calc(-100% - 3px));
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  color: white;
  background: var(--om-brand);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px #11243b52;
  font-size: .8125rem;
  font-weight: 850;
  line-height: 1;
}
.oit-map-marker::after {
  content: "";
  position: absolute;
  top: calc(100% - 2px);
  left: 50%;
  width: 9px;
  height: 9px;
  background: inherit;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: translateX(-50%) rotate(45deg);
}
.oit-map-marker:hover, .oit-map-marker[aria-pressed="true"] {
  z-index: 2;
  background: var(--om-strong);
  box-shadow: 0 0 0 3px #ffffffae, 0 3px 9px #11243b68;
}
.oit-map-marker.is-group { border-radius: 30px; }
.oit-map-controls {
  position: absolute;
  z-index: 3;
  inset: 10px 10px 31px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}
.oit-map-zoom {
  display: grid;
  overflow: visible;
  border: 1px solid #b8c9d6;
  border-radius: 9px;
  background: var(--om-paper);
  box-shadow: 0 3px 10px #122a4430;
}
.oit-map-controls button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 7px;
  background: var(--om-paper);
  color: var(--om-strong);
  font-size: 1.12rem;
  font-weight: 760;
}
.oit-map-controls button:hover:not(:disabled) { background: var(--om-soft); }
.oit-map-controls button:focus-visible { z-index: 1; }
.oit-map-zoom button + button { border-top: 1px solid var(--om-line); }
.oit-map-scale, .oit-map-osm {
  position: absolute;
  z-index: 3;
  bottom: 6px;
  color: #233b4e;
  background: #fffffff2;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: .6875rem;
  line-height: 1.3;
}
.oit-map-scale { left: 7px; pointer-events: none; }
.oit-map-scale::after {
  content: "";
  display: block;
  width: var(--om-scale, 0);
  height: 3px;
  border: solid currentColor;
  border-width: 0 1px 1px;
}
.oit-map-osm { right: 7px; }
.oit-map-osm a { text-decoration: underline; }
.oit-map-stage { position: relative; scroll-margin-block: 80px; }
.oit-map-selection {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: 12px;
  display: grid;
  justify-items: start;
  gap: 9px;
  width: min(330px, calc(100% - 24px));
  max-height: calc(100% - 63px);
  overflow: auto;
  padding: 13px;
  border: 1px solid var(--om-line);
  border-radius: 13px;
  background: var(--om-paper);
  box-shadow: 0 8px 27px #11243b3b;
}
.map-selection-head { width: 100%; display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.map-selection-head .icon-button { min-height: 36px; width: 36px; }
.oit-map-selection h3 { font-size: 1.07rem; }
.oit-map-selection p { margin-top: 3px; color: var(--om-muted); font-size: .83rem; overflow-wrap: anywhere; }
.oit-map-selection .oit-map-field { width: 100%; }
.oit-map-selection .badge, .oit-map-job-list .badge { margin-bottom: 4px; }
.oit-map-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 13px;
  padding: 10px 14px;
  color: var(--om-muted);
  font-size: .72rem;
}
.oit-map-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.oit-map-results .oit-map-card-head { padding-bottom: 8px; }
.oit-map-result-summary {
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--om-line);
  font-size: .8125rem;
  color: var(--om-muted);
}
.oit-map-result-summary:empty { display: none; }
.oit-map-result-body { min-height: 126px; max-height: var(--om-height); overflow: auto; padding: 10px; }
.oit-map-result-foot {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--om-line);
  color: var(--om-muted);
  font-size: .75rem;
}
.oit-map-notice {
  display: grid;
  justify-items: start;
  gap: 11px;
  padding: 14px;
  border-radius: 11px;
  background: var(--om-soft);
}
.oit-map-notice h3 { font-size: 1rem; }
.oit-map-notice p { margin-top: 5px; color: var(--om-muted); font-size: .84rem; }
.oit-map-notice-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid var(--om-line);
  border-radius: 10px;
  color: var(--om-strong);
  background: var(--om-paper);
}
.oit-map-job-list {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}
.oit-map-job-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 9px;
  border: 1px solid var(--om-line);
  border-radius: 9px;
}
.oit-map-job-list li.is-selected { background: var(--om-soft); border-color: var(--om-brand); }
.oit-map-job-list h3 { font-size: .9375rem; letter-spacing: -.014em; }
.oit-map-job-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--om-strong);
  font: inherit;
  font-weight: 750;
  text-align: start;
  overflow-wrap: anywhere;
}
.oit-map-company, .oit-map-distance { margin-top: 3px; font-size: .78rem; overflow-wrap: anywhere; }
.oit-map-company { color: var(--om-muted); }
.oit-map-distance { color: var(--om-strong); font-weight: 760; }
.oit-map-job-pin {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--om-line);
  border-radius: 9px;
  color: var(--om-strong);
  background: var(--om-paper);
}
.oit-map-job-pin:hover, .oit-map-job-pin[aria-pressed="true"] { border-color: var(--om-brand); background: var(--om-soft); }
.oit-map-result-foot a { color: var(--om-strong); font-weight: 730; text-decoration: underline; }
.map-page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; }
.map-page-head .page-head { margin: 0; }
.map-mode-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  background: var(--brand-soft);
}
.map-mode-strip .symbol { background: var(--paper); }
.map-mode-strip p { color: var(--muted); font-size: .85rem; }
.oit-map--demo .map-mode-strip, .oit-map--demo .badge { background: #fff4dd; border-color: #eddaa9; color: #7b510a; }
.oit-map--demo .map-mode-strip .symbol { color: #7b510a; }
.oit-map-field > .map-search-input { display: block; position: relative; }
.map-search-input svg { position: absolute; top: 50%; left: 11px; transform: translateY(-50%); color: var(--om-strong); pointer-events: none; }
.map-search-input input { padding-inline-start: 37px; }
.map-filter-notes { display: grid; gap: 6px; color: var(--om-muted); font-size: .85rem; }
.map-filter-notes:not(:has(> :not([hidden]):not(:empty))), .map-filter-notes p:empty { display: none; }

.address-picker { width: min(760px, calc(100% - 24px)); --om-height: clamp(235px, 45vh, 405px); }
.address-picker:not([open]) { display: none; }
.address-picker .dialog-inner { gap: 11px; }
.address-picker .oit-map-viewport { border: 1px solid var(--om-line); border-radius: 12px; cursor: crosshair; }
.address-picker .oit-map-viewport.is-dragging { cursor: grabbing; }
.oit-map-crosshair {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffffe8;
  color: var(--om-strong);
  box-shadow: 0 2px 7px #11243b38;
  pointer-events: none;
}
.address-picker [data-origin-dot] { width: 19px; height: 19px; box-shadow: 0 0 0 3px var(--om-brand), 0 3px 10px #11243b60; }
.address-picker .oit-map-street-note { padding: 0; }
.address-picker-tools .button { min-height: 40px; }
.address-picker-credits { justify-self: end; color: var(--muted); font-size: .72rem; }
.address-picker-credits a:hover { text-decoration: underline; }
.address-picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px 15px; }
.address-picker-status { display: grid; gap: 3px; overflow-wrap: anywhere; }
.address-picker-footer .button { flex-shrink: 0; }

@media (max-width: 820px) {
  .oit-map { --om-height: clamp(345px, 58vw, 440px); }
  .oit-map-layout { grid-template-columns: minmax(0, 1fr); }
  .oit-map-result-body { max-height: none; min-height: 0; overflow: visible; }
  .oit-map-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .oit-map-field--query { grid-column: 1 / -1; }
  .address-picker { --om-height: clamp(225px, 42vh, 390px); }
}
@media (max-width: 550px) {
  .oit-map { gap: 11px; }
  .oit-map-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 11px; }
  .oit-map-search > .button { grid-column: 1 / -1; }
  .oit-map-card-head { flex-wrap: wrap; padding: 11px; }
  .oit-map-view-options { justify-content: flex-start; flex-shrink: 1; gap: 5px; }
  .oit-map-view-options .oit-map-button { min-height: 39px; padding-inline: 8px; }
  .oit-map-footer { padding-inline: 11px; }
  .oit-map-field input { font-size: 1rem; }
  .map-mode-strip { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .map-mode-strip .actions { grid-column: 1 / -1; }
  .address-picker-footer { display: grid; grid-template-columns: minmax(0, 1fr); }
  .address-picker-footer .button { width: 100%; }
}
