/* Directory map lightbox (desktop) */

html.b-editorial body.page-app .b-directory-hero__toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

html.b-editorial body.page-app .b-directory-hero__toolbar .b-searchbar {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

html.b-editorial body.page-app .b-directory-map-btn {
  display: none;
}

@media (min-width: 901px) {
  html.b-editorial body.page-app .b-directory-hero__toolbar {
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
  }

  html.b-editorial body.page-app .b-directory-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 58px;
    padding-inline: 20px;
    white-space: nowrap;
  }

  html.b-editorial body.page-app .b-directory-map-btn .ph {
    font-size: 1.15rem;
  }

  html.b-editorial body.page-app .b-directory-map-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
}

html.b-editorial .b-directory-map-modal[hidden] {
  display: none !important;
}

html.b-editorial .b-directory-map-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 32px);
  box-sizing: border-box;
}

html.b-editorial .b-directory-map-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

html.b-editorial .b-directory-map-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
}

html.b-editorial .b-directory-map-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1.5px solid #000;
}

html.b-editorial .b-directory-map-modal__title {
  margin: 0;
  font-family: var(--b-font-display, inherit);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.b-editorial .b-directory-map-modal__close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  padding: 0;
  cursor: pointer;
}

html.b-editorial .b-directory-map-modal__close .ph {
  font-size: 1.2rem;
}

html.b-editorial .b-directory-map-modal__close:hover {
  background: var(--b-gray-100);
}

html.b-editorial .b-directory-map-modal__close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

html.b-editorial .b-directory-map-modal__empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--b-gray-100, #f4f4f4);
  text-align: center;
  box-sizing: border-box;
}

html.b-editorial .b-directory-map-modal__empty[hidden] {
  display: none !important;
}

html.b-editorial .b-directory-map-modal__empty p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--b-muted, #666);
}

html.b-editorial .b-directory-map-modal__map[hidden] {
  visibility: hidden;
}

html.b-editorial .b-directory-map-modal__body {
  position: relative;
  flex: 1 1 auto;
  min-height: min(62vh, 640px);
}

html.b-editorial .b-directory-map-modal__map {
  position: absolute;
  inset: 0;
  background: var(--b-gray-100, #f4f4f4);
}

html.b-editorial .b-directory-map-modal__map .maplibregl-map {
  width: 100%;
  height: 100%;
}

html.b-editorial .b-directory-map-modal__map .b-directory-map-marker {
  cursor: pointer;
  padding: 0;
  background: #000;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

html.b-editorial .b-directory-map-modal__map .b-directory-map-marker::after {
  border-top-color: #000;
}

html.b-editorial .b-directory-map-modal__map .b-directory-map-marker:hover,
html.b-editorial .b-directory-map-modal__map .b-directory-map-marker:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

html.b-editorial .b-directory-map-popover {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, calc(-100% - 14px));
  min-width: 180px;
  max-width: 240px;
  padding: 12px 14px;
  border: 1.5px solid #000;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  box-sizing: border-box;
}

html.b-editorial .b-directory-map-popover[hidden] {
  display: none !important;
}

html.b-editorial .b-directory-map-popover__name {
  margin: 0 0 10px;
  font-family: var(--b-font-display, inherit);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
}

html.b-editorial .b-directory-map-popover__kpis {
  display: grid;
  gap: 8px;
}

html.b-editorial .b-directory-map-popover__kpi {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

html.b-editorial .b-directory-map-popover__kpi-icon {
  flex: 0 0 auto;
  line-height: 1;
  color: #000;
}

html.b-editorial .b-directory-map-popover__kpi-icon .ph {
  font-size: 1rem;
}

html.b-editorial .b-directory-map-popover__kpi-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}

html.b-editorial .b-directory-map-popover__kpi-value {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

html.b-editorial .b-directory-map-popover__kpi-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b-muted, #666);
}

html.b-editorial .b-directory-map-modal__foot {
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

html.b-editorial .b-directory-map-modal__attribution {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--b-muted, #666);
  letter-spacing: 0.04em;
  text-wrap-style: balance;
}
