.xocean-locations-directory-host,
.xocean-locations-directory-host * {
  box-sizing: border-box;
}

.xocean-locations-directory-host {
  --xo-loc-bg: #02060b;
  --xo-loc-ink: #050b12;
  --xo-loc-panel: #07111c;
  --xo-loc-panel-strong: #0b1723;
  --xo-loc-panel-soft: rgba(8, 17, 28, 0.82);
  --xo-loc-text: #f7fbff;
  --xo-loc-soft: rgba(232, 242, 251, 0.76);
  --xo-loc-muted: rgba(232, 242, 251, 0.48);
  --xo-loc-faint: rgba(232, 242, 251, 0.28);
  --xo-loc-line: rgba(157, 190, 215, 0.16);
  --xo-loc-line-strong: rgba(157, 190, 215, 0.28);
  --xo-loc-accent: #f49600;
  --xo-loc-accent-strong: #ffab1f;
  --xo-loc-accent-soft: rgba(244, 150, 0, 0.14);
  --xo-loc-blue: #76afd1;
  --xo-loc-green: #54d98a;
  --xo-loc-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  container-name: xo-locations;
  container-type: inline-size;
  min-width: 0;
  width: 100%;
  color: var(--xo-loc-text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg, rgba(118, 175, 209, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(244, 150, 0, 0.055), transparent 28%),
    linear-gradient(180deg, rgba(9, 17, 27, 0.96), rgba(2, 6, 11, 0.98)),
    var(--xo-loc-bg);
}

.xo-loc {
  width: 100%;
  max-width: 1680px;
  min-height: 100vh;
  margin: 0 auto;
  border-left: 1px solid var(--xo-loc-line);
  border-right: 1px solid var(--xo-loc-line);
  background:
    linear-gradient(90deg, rgba(118, 175, 209, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(118, 175, 209, 0.028) 1px, transparent 1px);
  background-size: 112px 112px;
}

.xo-loc__topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 34px;
  border-bottom: 1px solid var(--xo-loc-line-strong);
  background:
    linear-gradient(90deg, rgba(244, 150, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(4, 11, 18, 0.98), rgba(2, 6, 11, 0.94));
}

.xo-loc__brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
}

.xo-loc__product {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--xo-loc-text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xo-loc__product::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--xo-loc-accent);
}

.xo-loc__topbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.xo-loc__status {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid var(--xo-loc-line-strong);
  border-radius: 6px;
  color: var(--xo-loc-soft);
  background: rgba(7, 17, 28, 0.72);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
}

.xo-loc__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--xo-loc-muted);
}

.xo-loc__status[data-tone="ready"] {
  color: #d8f6e5;
}

.xo-loc__status[data-tone="ready"]::before {
  background: var(--xo-loc-green);
  box-shadow: 0 0 18px rgba(84, 217, 138, 0.55);
}

.xo-loc__status[data-tone="error"] {
  color: #ffd69a;
}

.xo-loc__status[data-tone="error"]::before {
  background: var(--xo-loc-accent);
}

.xo-loc__updated {
  color: var(--xo-loc-muted);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  text-transform: uppercase;
  white-space: nowrap;
}

.xo-loc__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(420px, 0.95fr);
  min-height: calc(100vh - 68px);
}

.xo-loc__map-panel {
  position: sticky;
  top: 0;
  min-width: 0;
  height: calc(100vh - 68px);
  min-height: 680px;
  border-right: 1px solid var(--xo-loc-line-strong);
  background: #0d1b26;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.xo-loc__map {
  position: absolute;
  inset: 0 0 72px;
  width: 100%;
  min-height: 0;
  background: #d6e3e8;
}

.xo-loc__map::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 410;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 12, 20, 0.18), transparent 17%, transparent 80%, rgba(3, 12, 20, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%, rgba(2, 8, 14, 0.14)),
    rgba(10, 31, 45, 0.065);
}

.xo-loc__map-grid {
  position: absolute;
  z-index: 420;
  inset: 18px 28px auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  pointer-events: none;
  color: rgba(4, 15, 24, 0.62);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.xo-loc__map-grid span {
  display: block;
}

.xo-loc__map-grid span:not(:first-child) {
  text-align: center;
}

.xo-loc__map-grid span:last-child {
  text-align: right;
}

.xo-loc__map-rail {
  position: absolute;
  z-index: 430;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  border-top: 1px solid var(--xo-loc-line-strong);
  background: rgba(2, 7, 12, 0.94);
  backdrop-filter: blur(12px);
}

.xo-loc__legend,
.xo-loc__map-data {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 28px;
  min-width: 0;
}

.xo-loc__map-data {
  border-left: 1px solid var(--xo-loc-line);
  justify-content: flex-end;
}

.xo-loc__legend > span,
.xo-loc__map-data b {
  color: var(--xo-loc-muted);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.xo-loc__legend b,
.xo-loc__map-data span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xo-loc-soft);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
  white-space: nowrap;
}

.xo-loc__map-data span {
  display: grid;
  gap: 4px;
}

.xo-loc__legend-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: var(--xo-loc-accent);
}

.xo-loc__legend-dot--group {
  position: relative;
  width: 16px;
  height: 16px;
  border-color: rgba(255, 255, 255, 0.75);
}

.xo-loc__legend-dot--group::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 1px solid rgba(244, 150, 0, 0.42);
}

.xo-loc__legend-dot--selected {
  background: var(--xo-loc-blue);
  box-shadow: 0 0 0 5px rgba(118, 175, 209, 0.22);
}

.xo-loc__directory {
  min-width: 0;
  padding: 31px 34px 36px;
  background:
    linear-gradient(90deg, rgba(118, 175, 209, 0.045), transparent 32px),
    linear-gradient(180deg, rgba(8, 18, 29, 0.98), rgba(3, 7, 12, 0.985)),
    var(--xo-loc-ink);
}

.xo-loc__directory-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.xo-loc__title {
  margin: 0;
  color: var(--xo-loc-text);
  font-size: 24px;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0;
}

.xo-loc__meta {
  margin-top: 8px;
  color: var(--xo-loc-muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.xo-loc__count {
  flex: 0 0 auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(244, 150, 0, 0.42);
  border-radius: 6px;
  color: #ffd08a;
  background: rgba(244, 150, 0, 0.08);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.xo-loc__filters {
  margin: 0 0 22px;
  padding: 0;
}

.xo-loc__search {
  position: relative;
  display: block;
  margin: 0 0 12px;
}

.xo-loc__filter-grid {
  display: grid;
  grid-template-columns: minmax(126px, 1.15fr) minmax(86px, 0.85fr) minmax(94px, 0.9fr) minmax(108px, 0.9fr);
  gap: 12px;
}

.xo-loc__field {
  position: relative;
  display: block;
  min-width: 0;
}

.xo-loc__field::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--xo-loc-muted);
  border-bottom: 2px solid var(--xo-loc-muted);
  pointer-events: none;
  transform: translateY(-64%) rotate(45deg);
}

.xo-loc__input,
.xo-loc__select,
.xo-loc__clear {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(157, 190, 215, 0.24);
  border-radius: 6px;
  background: rgba(2, 8, 15, 0.86);
  color: var(--xo-loc-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  font: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: 0;
}

.xo-loc__input,
.xo-loc__select {
  padding: 12px 13px;
}

.xo-loc__select {
  appearance: none;
  padding-right: 34px;
}

.xo-loc__input {
  min-height: 50px;
  padding-left: 44px;
}

.xo-loc__search::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid var(--xo-loc-muted);
  border-radius: 999px;
  transform: translateY(-58%);
}

.xo-loc__search::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 30px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: var(--xo-loc-muted);
  transform: rotate(45deg);
}

.xo-loc__input::placeholder {
  color: var(--xo-loc-muted);
  opacity: 1;
}

.xo-loc__input:focus,
.xo-loc__select:focus,
.xo-loc__clear:focus-visible,
.xo-loc-card:focus-visible,
.xo-loc-popup__item:focus-visible {
  outline: 2px solid rgba(244, 150, 0, 0.76);
  outline-offset: 2px;
}

.xo-loc__clear {
  cursor: pointer;
  border-color: rgba(244, 150, 0, 0.7);
  background:
    linear-gradient(180deg, rgba(244, 150, 0, 0.16), rgba(244, 150, 0, 0.08)),
    rgba(2, 8, 15, 0.86);
  color: #ffd08a;
}

.xo-loc__clear:hover {
  background: rgba(244, 150, 0, 0.16);
  color: #ffffff;
}

.xo-loc__summary {
  position: relative;
  min-height: 28px;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--xo-loc-soft);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
  text-transform: uppercase;
}

.xo-loc__summary::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--xo-loc-line-strong);
}

.xo-loc__list {
  display: grid;
  gap: 9px;
}

.xo-loc-card {
  position: relative;
  display: grid;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(157, 190, 215, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(244, 150, 0, 0.22), transparent 2px),
    linear-gradient(180deg, rgba(10, 22, 35, 0.9), rgba(5, 13, 23, 0.9));
  color: var(--xo-loc-text);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.xo-loc-card:hover,
.xo-loc-card.is-active {
  border-color: rgba(244, 150, 0, 0.62);
  background:
    linear-gradient(90deg, rgba(244, 150, 0, 0.86), transparent 3px),
    linear-gradient(180deg, rgba(12, 25, 39, 0.98), rgba(6, 15, 26, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.xo-loc-card:hover {
  transform: translateY(-1px);
}

.xo-loc-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.xo-loc-card__identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.xo-loc-card__client {
  color: var(--xo-loc-text);
  font-size: 17px;
  line-height: 1.18;
  font-weight: 850;
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.xo-loc-card__location {
  color: var(--xo-loc-soft);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.xo-loc-card__area {
  color: var(--xo-loc-muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
}

.xo-loc-card__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(244, 150, 0, 0.72);
  border-radius: 6px;
  background: rgba(244, 150, 0, 0.11);
  color: var(--xo-loc-accent-strong);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.xo-loc-card__detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(120px, 0.8fr) 20px;
  gap: 14px;
  align-items: center;
  padding-top: 13px;
  border-top: 1px solid var(--xo-loc-line);
}

.xo-loc-card__detail span {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--xo-loc-soft);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.xo-loc-card__detail strong {
  color: var(--xo-loc-muted);
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  text-transform: uppercase;
}

.xo-loc-card__arrow {
  color: var(--xo-loc-soft);
  font-size: 25px;
  line-height: 1;
  font-weight: 300;
  justify-self: end;
}

.xo-loc__empty {
  border: 1px solid var(--xo-loc-line-strong);
  border-radius: 5px;
  padding: 24px;
  background: var(--xo-loc-panel);
}

.xo-loc__empty h3 {
  margin: 0 0 8px;
  color: var(--xo-loc-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.xo-loc__empty p {
  margin: 0;
  color: var(--xo-loc-soft);
  font-size: 14px;
  line-height: 1.5;
}

.xo-loc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xo-loc .leaflet-container {
  background: #d6e3e8;
  color: #101820;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.xo-loc .leaflet-tile {
  filter: saturate(0.56) brightness(0.9) contrast(1.12);
}

.xo-loc .leaflet-control-attribution {
  background: rgba(3, 7, 12, 0.68);
  border-radius: 4px 0 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.xo-loc .leaflet-control-attribution a {
  color: #cde9f7;
}

.xo-loc .leaflet-bottom {
  bottom: 8px;
}

.xo-loc .leaflet-bar {
  border: 1px solid var(--xo-loc-line-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--xo-loc-shadow);
}

.xo-loc .leaflet-bar a,
.xo-loc .leaflet-bar a:hover {
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: rgba(3, 12, 20, 0.92);
  border-color: var(--xo-loc-line-strong);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.xo-loc-marker-wrap {
  background: transparent;
  border: 0;
}

.xo-loc-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(244, 150, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 6px rgba(244, 150, 0, 0.13),
    0 10px 24px rgba(5, 15, 24, 0.25);
}

.xo-loc-marker::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: var(--xo-loc-accent);
}

.xo-loc-marker.is-selected {
  background: rgba(118, 175, 209, 0.2);
  border-color: #ffffff;
  box-shadow:
    0 0 0 7px rgba(118, 175, 209, 0.25),
    0 0 0 14px rgba(118, 175, 209, 0.1),
    0 12px 30px rgba(5, 15, 24, 0.28);
}

.xo-loc-marker.is-selected::before {
  background: var(--xo-loc-blue);
}

.xo-loc-marker__core {
  position: relative;
  z-index: 1;
  color: #07111d;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

.xo-loc-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 6px;
  background: #02060a;
  border: 1px solid var(--xo-loc-line-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.xo-loc-leaflet-popup .leaflet-popup-content {
  width: 360px;
  max-width: calc(100vw - 58px);
  margin: 0;
}

.xo-loc-leaflet-popup .leaflet-popup-tip {
  background: #02060a;
}

.xo-loc-leaflet-popup .leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.xo-loc-popup {
  padding: 20px;
  color: var(--xo-loc-text);
}

.xo-loc-popup__eyebrow {
  margin: 0 0 8px;
  color: var(--xo-loc-muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xo-loc-popup__title {
  margin: 0 0 14px;
  color: var(--xo-loc-text);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: 0;
}

.xo-loc-popup__meta {
  display: grid;
  border-top: 1px solid var(--xo-loc-line);
}

.xo-loc-popup__row {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.xo-loc-popup__row span {
  color: var(--xo-loc-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xo-loc-popup__row strong {
  color: var(--xo-loc-text);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.xo-loc-popup__stack {
  display: grid;
  gap: 8px;
}

.xo-loc-popup__item {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--xo-loc-line);
  border-radius: 5px;
  background: var(--xo-loc-panel);
  color: var(--xo-loc-text);
  text-align: left;
  cursor: pointer;
}

.xo-loc-popup__item.is-active,
.xo-loc-popup__item:hover {
  border-color: rgba(244, 150, 0, 0.54);
  background: var(--xo-loc-panel-strong);
}

.xo-loc-popup__client {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 850;
}

.xo-loc-popup__line {
  color: var(--xo-loc-soft);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

@container xo-locations (max-width: 1240px) {
  .xo-loc__layout {
    grid-template-columns: 1fr;
  }

  .xo-loc__map-panel {
    position: relative;
    top: auto;
    height: 640px;
    min-height: 640px;
    border-right: 0;
    border-bottom: 1px solid var(--xo-loc-line-strong);
  }

  .xo-loc__directory {
    padding: 28px;
  }
}

@media (max-width: 1240px) {
  .xo-loc__layout {
    grid-template-columns: 1fr;
  }

  .xo-loc__map-panel {
    position: relative;
    top: auto;
    height: 640px;
    min-height: 640px;
    border-right: 0;
    border-bottom: 1px solid var(--xo-loc-line-strong);
  }

  .xo-loc__directory {
    padding: 28px;
  }
}

@media (max-width: 820px) {
  .xocean-locations-directory-host {
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .xo-loc {
    width: 100%;
    border: 0;
  }

  .xo-loc__topbar {
    display: grid;
    align-items: start;
    padding: 18px 18px;
  }

  .xo-loc__brand-lockup {
    min-height: 28px;
  }

  .xo-loc__product {
    min-height: 28px;
    font-size: 12px;
  }

  .xo-loc__topbar-meta {
    justify-content: space-between;
    gap: 12px;
  }

  .xo-loc__updated {
    white-space: normal;
    text-align: right;
  }

  .xo-loc__map-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 520px;
    min-height: 520px;
  }

  .xo-loc__map {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .xo-loc__map-grid {
    display: none;
  }

  .xo-loc__map-rail {
    position: relative;
    inset: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .xo-loc__legend,
  .xo-loc__map-data {
    padding: 10px 18px;
    gap: 12px;
    overflow-x: auto;
  }

  .xo-loc__map-data {
    border-left: 0;
    border-top: 1px solid var(--xo-loc-line);
    justify-content: flex-start;
  }

  .xo-loc__directory {
    padding: 22px 18px 30px;
  }

  .xo-loc__directory-head {
    display: grid;
    gap: 10px;
  }

  .xo-loc__title {
    font-size: 21px;
  }

  .xo-loc__count {
    justify-self: start;
  }

  .xo-loc__filter-grid,
  .xo-loc-card__detail {
    grid-template-columns: 1fr;
  }

  .xo-loc-card__detail {
    gap: 10px;
  }

  .xo-loc-card__arrow {
    display: none;
  }
}

@media (max-width: 520px) {
  .xo-loc__topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px 12px;
    padding: 14px 18px;
  }

  .xo-loc__topbar-meta {
    display: contents;
  }

  .xo-loc__status {
    grid-column: 2;
    grid-row: 1;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .xo-loc__topbar-meta {
    justify-content: initial;
  }

  .xo-loc__updated {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
    font-size: 11px;
  }

  .xo-loc__map-panel {
    height: 540px;
    min-height: 540px;
  }

  .xo-loc__map {
    bottom: auto;
  }

  .xo-loc__map-rail {
    min-height: 0;
  }

  .xo-loc__legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .xo-loc__legend > span {
    grid-column: 1 / -1;
  }

  .xo-loc__legend b {
    white-space: normal;
  }

  .xo-loc__map-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }

  .xo-loc .leaflet-control-attribution {
    max-width: calc(100% - 52px);
    line-height: 1.25;
    white-space: normal;
  }

  .xo-loc-card {
    padding: 16px;
  }

  .xo-loc-card__main {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xo-loc-card__year {
    justify-self: start;
  }

  .xo-loc-leaflet-popup .leaflet-popup-content {
    width: 300px;
  }

  .xo-loc-popup__row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
