:root {
  color-scheme: dark;
  --agm-bg: #122035;
  --agm-bg-accent: #1a2c46;
  --agm-surface: #223650;
  --agm-surface-raised: #2a4262;
  --agm-surface-soft: #355277;
  --agm-border: rgba(164, 201, 237, 0.18);
  --agm-border-strong: rgba(191, 224, 255, 0.28);
  --agm-text-strong: #edf6ff;
  --agm-text: #dfebf8;
  --agm-text-muted: #c1d3e6;
  --agm-text-soft: #a6bad0;
  --agm-link: #d1e5ff;
  --agm-link-hover: #f7fbff;
  --agm-shadow: 0 1rem 2.5rem rgba(5, 16, 30, 0.38);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  overflow-x: clip;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 640px) {
  html {
    scroll-padding-top: 7rem;
  }
}

a {
  color: var(--agm-link);
}

a:hover,
a:focus {
  color: var(--agm-link-hover);
}

p a[href]:not(.no-underline) {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

:where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid #c7e4ff !important;
  outline-offset: 2px;
}

.accessible-card-link:focus-visible {
  outline: 2px solid #08111c !important;
  outline-offset: -4px;
  box-shadow: inset 0 0 0 4px #f7fbff;
}

code {
  color: var(--agm-text-strong);
  background: rgba(160, 171, 183, 0.08);
  border: 1px solid var(--agm-border);
  border-radius: 0.5rem;
  padding: 0.15rem 0.4rem;
}

.map-viewer--fullscreen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #1a2b42;
}

.map-viewer__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-viewer__layout {
  display: flex;
  min-height: 0;
}

.map-viewer__sidebar {
  display: flex;
  flex-shrink: 0;
  height: 100%;
  overflow: hidden;
  background: #14262d;
  color: #b1c7c7;
  border-right: 1px solid #2b4956;
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1100;
  width: min(376px, calc(100vw - 40px));
  visibility: hidden;
  transform: translateX(-100%);
  transition: transform 180ms ease, visibility 180ms ease;
}

.map-viewer__sidebar--open {
  visibility: visible;
  transform: translateX(0);
}

.map-viewer__sidebar [hidden] { display: none !important; }
.map-sidebar-rail { display: flex; flex-direction: column; flex: 0 0 52px; min-height: 0; overflow-y: auto; scrollbar-width: none; border-right: 1px solid #2b4956; background: #0f1e24; }
.map-sidebar-rail::-webkit-scrollbar { width: 0; }
.map-sidebar-rail > a, .map-sidebar-rail > button { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 100%; height: 48px; padding: 0; border: 0; background: transparent; color: #7e999c; cursor: pointer; }
.map-sidebar-rail > .map-sidebar-home { height: 46px; border-bottom: 1px solid #2b4956; color: #cf9d51; }
.map-sidebar-rail svg { width: 19px; height: 19px; }
.map-sidebar-home svg { width: 12px; height: 16px; }
.map-sidebar-rail > .map-viewer__sidebar-close { position: static; height: 40px; box-shadow: none; }
.map-sidebar-rail > [data-sidebar-view="settings"] { margin-top: auto; border-top: 1px solid #2b4956; }
.map-sidebar-rail > [aria-pressed="true"], .map-sidebar-rail > button:hover { background: #1e363c; color: #cf9d51; }
.map-sidebar-rail > [aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: #cf9d51; }
.map-sidebar-panel { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.map-sidebar-panel > * { flex-shrink: 0; }
.map-sidebar-scroll { flex: 1 1 0; min-height: 0; overflow-y: scroll; }
/* Standard scrollbar properties override Chromium's pseudo-element styling. */
@supports not selector(::-webkit-scrollbar) {
  .map-sidebar-scroll { scrollbar-width: thin; scrollbar-color: #2b4956 transparent; }
}
.map-sidebar-scroll::-webkit-scrollbar { width: 10px; }
.map-sidebar-scroll::-webkit-scrollbar-track { background: transparent; box-shadow: inset 1px 0 0 #2b4956; }
.map-sidebar-scroll::-webkit-scrollbar-thumb {
  background-color: #2b4956;
  border: 2px solid transparent;
  background-clip: content-box;
}
.map-sidebar-scroll:hover::-webkit-scrollbar-thumb { background-color: #416a77; }
.map-sidebar-scroll::-webkit-scrollbar-thumb:active { background-color: #cf9d51; }
.map-sidebar-category-count { font: 600 11.5px "Spectral", Georgia, serif; color: #7e999c; white-space: nowrap; }
.map-sidebar-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; padding: 11px 10px; background: #1c333b; border-bottom: 1px solid #2b4956; }
.map-sidebar-identity h1 { margin: 0; font: 600 18px/1.3 "Spectral", Georgia, serif; color: #cfdedc; overflow-wrap: anywhere; }
.map-sidebar-identity a { font-size: 12px; color: #7e999c; }
.map-sidebar-identity a:hover { color: #cfdedc; }
.map-sidebar-visibility { display: flex; margin: 0; padding: 0 10px 11px; background: #1c333b; border-bottom: 1px solid #2b4956; }
.map-sidebar-visibility button { flex: 1; min-height: 32px; border: 1px solid #2b4956; background: transparent; color: #b1c7c7; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.map-sidebar-visibility button + button { border-left: 0; }
.map-sidebar-visibility button:hover { background: #294750; color: #cfdedc; }
#map-sidebar-groups { padding: 2px 10px; }
.map-sidebar-surface { padding: 12px 10px; font-size: 12.5px; }
.map-sidebar-surface p { margin: 0 0 12px; }
.map-sidebar-surface a { color: #cf9d51; }
.map-sidebar-settings-group, .map-sidebar-layer { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 8px; border: 0; border-bottom: 1px solid #2b4956; background: transparent; color: #b1c7c7; text-align: left; font-size: 12.5px; }
.map-sidebar-settings-group:hover { background: #1e363c; color: #cf9d51; }
.map-sidebar-layer input { accent-color: #cf9d51; }
.map-sidebar-search { display: flex; gap: .5rem; }
.map-sidebar-search__field {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex: 1;
  min-width: 0;
  padding: .65rem;
  border: 1px solid #2b4956;
  background: #0f1e24;
  color: #b1c7c7;
}
.map-sidebar-search__field:focus-within { outline: 2px solid #acd1ff; outline-offset: 1px; }
.map-sidebar-search__field svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.map-sidebar-search__field input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: #cfdedc; font-size: 12px; }
.map-sidebar-search .site-button { padding: 7px 10px; }
.map-sidebar-empty { margin: 1.5rem 0; color: #b1c7c7; font-size: 12.5px; }
.map-sidebar-ad { padding-top: 6px; margin-bottom: 12px; border-top: 1px solid #2b4956; }
.map-sidebar-ad-label { padding: 0 12px 5px; color: #7e999c; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.map-sidebar-ad-slot { display: grid; place-items: center; width: 100%; max-width: 300px; height: 250px; margin-inline: auto; background: #0f1e24; color: #416a77; font-size: 11.5px; }
.map-sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 44px;
  padding: 7px 10px;
  border-top: 1px solid #2b4956;
  background: #14262d;
  color: #7e999c;
  font-size: 11px;
}
.map-sidebar-footer nav { display: flex; gap: 12px; }
.map-sidebar-footer a:hover { text-decoration: underline; }
.map-sidebar-footer summary { border: 0; background: transparent; padding: 6px 0; border-radius: 0; font-size: 11px; line-height: inherit; color: inherit; }
.map-sidebar-footer details > ul { left: 0; right: auto; background: #1c333b; }

.map-viewer__sidebar-toggle,
.map-viewer__sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b4956;
  color: #cfdedc;
  background: #14262d;
  box-shadow: 0 0.6rem 1.5rem rgba(2, 10, 20, 0.34);
  cursor: pointer;
}

.map-viewer__sidebar-toggle:hover,
.map-viewer__sidebar-close:hover {
  border-color: #416a77;
  background: #1c333b;
}

.map-viewer__sidebar-toggle:focus-visible,
.map-viewer__sidebar-close:focus-visible {
  outline: 2px solid #c7e4ff;
  outline-offset: 2px;
}

.map-viewer__sidebar-toggle {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1040;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-viewer__sidebar-toggle-icon {
  display: flex;
  width: 1rem;
  flex-direction: column;
  gap: 0.2rem;
}

.map-viewer__sidebar-toggle-icon > span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
}

.map-viewer__sidebar-close {
  position: absolute;
  top: 0.65rem;
  right: 1.5rem;
  z-index: 1;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.5rem;
  line-height: 1;
}

.map-viewer__sidebar-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1050;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 10, 19, 0.4);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.map-viewer__content {
  position: relative;
  min-height: 0;
}

.leaflet-container.map-point-hover { cursor: pointer; }

.map-viewer__canvas.leaflet-container,
.map-viewer__canvas .leaflet-container {
  background: #1b2d45;
}

.map-sidebar-group-item:focus-visible { outline: 2px solid #cf9d51; outline-offset: -2px; }

.map-group-display-dialog {
  width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.25rem;
  overflow-y: auto;
  border: 1px solid #2b4956;
  background: #14262d;
  color: #cfdedc;
  font-size: .875rem;
}
.map-group-display-dialog::backdrop { background: rgb(3 10 19 / 40%); }
.map-group-display-dialog h2 { margin: 0; font: 600 1.25rem "Spectral", Georgia, serif; }
.map-group-display-dialog p { margin: .5rem 0 1rem; color: #b1c7c7; }
.map-group-display-dialog label { display: grid; gap: .3rem; margin-bottom: .8rem; }
.map-group-display-dialog [hidden] { display: none; }
.map-group-display-dialog input,
.map-group-display-dialog select { width: 100%; padding: .45rem; border: 1px solid #2b4956; border-radius: 0; background: #0f1e24; color: #cfdedc; }
.map-group-display-dialog fieldset { margin: .8rem 0; padding: 0; border: 0; }
.map-group-display-dialog fieldset:disabled { opacity: .5; }
.map-group-display-dialog input[type="color"] { height: 2.5rem; padding: .2rem; cursor: pointer; }
.map-group-display-dialog legend { margin-bottom: .65rem; font-weight: 600; }
.map-group-display-dialog small { color: #b1c7c7; font-size: .75rem; }
.map-group-display-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .5rem 1rem; }
.map-group-display-actions button { min-height: 2rem; }
.map-group-display-actions button[name="restore"] { margin-right: auto; }
.map-group-display-dialog :focus-visible { outline-color: #cf9d51 !important; outline-offset: 2px; }

.map-sidebar-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2px 6px;
}

.map-sidebar-category-title {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfdedc;
}

.map-sidebar-category {
  padding: 6px 0;
  border-bottom: 1px solid #2b4956;
}
.map-sidebar-category-collapse { display: grid; place-items: center; flex-shrink: 0; width: 20px; height: 28px; border: 0; background: transparent; color: #7e999c; }
.map-sidebar-category-collapse svg { width: 10px; height: 10px; }
.map-sidebar-category-collapse[aria-expanded="false"] svg { transform: rotate(-90deg); }
.map-sidebar-category-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  cursor: pointer;
}
.map-sidebar-category-toggle::before { content: ""; flex-shrink: 0; width: 13px; height: 13px; border: 1px solid #cf9d51; }
.map-sidebar-category-toggle[aria-pressed="mixed"]::before { background: #cf9d51; box-shadow: inset 0 0 0 3px #14262d; }
.map-sidebar-category-toggle[aria-pressed="true"]::before { background: #cf9d51; }
.map-sidebar-category-toggle:hover { color: #cf9d51; }
.map-sidebar-category-toggle:focus-visible { outline: 2px solid #a9d4ff; outline-offset: 2px; }
.map-sidebar-category-toggle[aria-pressed="false"] { color: #7e999c; }
.map-sidebar-category:last-child { margin-bottom: 0; }

.map-sidebar-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: 32px;
  gap: 0.25rem;
  padding: 0 8px;
  text-align: left;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #cfdedc;
  font-size: 12.5px;
  line-height: 1.3;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.map-sidebar-group-item:not(.map-sidebar-group-item--inactive) {
  background: #1e363c;
}

.map-sidebar-group-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
}

.map-sidebar-group-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-sidebar-group-icon {
  display: block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.88;
  border-radius: 0;
  background: none;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  object-fit: contain;
}

.map-sidebar-group-item:hover {
  color: #ffffff;
  background: rgba(133, 191, 247, 0.1);
}

.map-sidebar-group-count {
  flex-shrink: 0;
  font: 600 11.5px "Spectral", Georgia, serif;
  font-variant-numeric: tabular-nums;
  color: #b1c7c7;
}

.map-sidebar-group-item--inactive {
  color: #7e999c;
}
.map-sidebar-group-item--inactive .map-sidebar-group-icon { opacity: .32; }

.map-context-menu {
  position: absolute;
  z-index: 760;
  min-width: 8.4rem;
  margin: 0;
  padding: 0.18rem;
  list-style: none;
  border: 1px solid rgba(88, 171, 205, 0.32);
  border-radius: 0.25rem;
  background: linear-gradient(180deg, rgba(22, 38, 49, 0.98), rgba(14, 24, 34, 0.98));
  box-shadow: 0 0.35rem 1rem rgba(3, 10, 18, 0.38);
  color: #d9e9ee;
  font-size: 0.76rem;
  line-height: 1.25;
}

.map-context-menu[hidden] {
  display: none;
}

.map-context-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.7rem;
  border-radius: 0.16rem;
  padding: 0.34rem 0.62rem;
  cursor: default;
  text-align: left;
  white-space: nowrap;
  user-select: none;
}

.map-context-menu-item:hover,
.map-context-menu-item:focus {
  background: rgba(37, 126, 147, 0.34);
  color: #f1fbfd;
  outline: none;
}

.custom-marker-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: transparent;
  padding: 1rem;
}

.custom-marker-modal[open] { display: flex; }
.custom-marker-modal::backdrop { background: rgba(4, 11, 20, 0.42); }

.custom-marker-modal__panel {
  width: min(100%, 27rem);
  margin-block: auto;
  overflow-x: hidden;
  border: 1px solid rgba(88, 171, 205, 0.28);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(18, 33, 48, 0.99), rgba(11, 21, 32, 0.99));
  box-shadow: 0 1.25rem 3rem rgba(2, 8, 16, 0.48);
  color: #e7f4f8;
}

.custom-marker-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(88, 171, 205, 0.16);
  padding: 0.9rem 1rem;
}

.custom-marker-modal__eyebrow {
  margin: 0;
  color: rgba(156, 213, 226, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.custom-marker-modal__title {
  margin: 0.18rem 0 0;
  color: #f4fbfd;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.custom-marker-modal__close {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(88, 171, 205, 0.2);
  border-radius: 0.35rem;
  background: rgba(88, 171, 205, 0.1);
  color: #e7f4f8;
  font-size: 1.1rem;
  line-height: 1;
}

.custom-marker-modal__body {
  padding: 1rem;
}

.custom-marker-modal__form {
  display: grid;
  gap: 0.85rem;
}

.custom-marker-modal__notice {
  margin: 0;
  border: 1px solid rgba(88, 171, 205, 0.18);
  border-radius: 0.35rem;
  background: rgba(18, 45, 59, 0.58);
  color: rgba(219, 237, 242, 0.86);
  padding: 0.7rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.custom-marker-modal__coordinates {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.45rem;
}

.custom-marker-modal__coordinates span {
  min-width: 0;
  border: 1px solid rgba(88, 171, 205, 0.14);
  border-radius: 0.35rem;
  background: rgba(7, 18, 29, 0.66);
  color: rgba(209, 232, 238, 0.78);
  padding: 0.5rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .custom-marker-modal__coordinates {
    grid-template-columns: 1fr;
  }
}

.custom-marker-modal__field {
  display: grid;
  gap: 0.35rem;
}

.custom-marker-modal__field label {
  color: rgba(156, 213, 226, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.custom-marker-modal__field input,
.custom-marker-modal__field textarea {
  width: 100%;
  border: 1px solid rgba(186, 230, 253, 0.5);
  border-radius: 0.35rem;
  background: rgba(7, 18, 29, 0.9);
  color: #effbfe;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  outline: none;
  padding: 0.65rem 0.75rem;
}

.custom-marker-modal__field textarea {
  resize: vertical;
}

.custom-marker-modal__field input:focus,
.custom-marker-modal__field textarea:focus {
  border-color: rgba(112, 201, 220, 0.54);
  box-shadow: 0 0 0 2px rgba(37, 126, 147, 0.24);
}

.custom-marker-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.custom-marker-modal__primary,
.custom-marker-modal__secondary {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  padding: 0.52rem 0.85rem;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.custom-marker-modal__primary {
  border: 1px solid rgba(112, 201, 220, 0.42);
  background: rgba(37, 126, 147, 0.74);
  color: #f3fcfd;
}

.custom-marker-modal__primary:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.custom-marker-modal__secondary {
  border: 1px solid rgba(88, 171, 205, 0.18);
  background: rgba(88, 171, 205, 0.09);
  color: rgba(231, 244, 248, 0.82);
}

@media (max-width: 640px) {
  .custom-marker-modal {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .custom-marker-modal__coordinates {
    grid-template-columns: 1fr;
  }

  .custom-marker-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.map-viewer__canvas .leaflet-control-layers {
  border: 1px solid var(--agm-border);
  border-radius: 0.75rem;
  background: rgba(34, 53, 79, 0.97);
  color: var(--agm-text);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.26);
}

.map-viewer__canvas .leaflet-bar {
  border-color: var(--agm-border);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.22);
}

.map-viewer__canvas .leaflet-bar a,
.map-viewer__canvas .leaflet-bar a:hover,
.map-viewer__canvas .leaflet-bar a:focus {
  background: rgba(34, 53, 79, 0.97);
  border-bottom-color: var(--agm-border);
  color: var(--agm-text);
}

.map-viewer__canvas .leaflet-control-layers-toggle {
  filter: invert(0.92) brightness(1);
}

.map-viewer__canvas .leaflet-control-layers-list label {
  color: #d1e3f7;
}

/* Global marker search results (individual markers matched by content). */
.map-marker-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  padding: 6px 8px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #cfdedc;
  transition: background 0.12s ease;
}

.map-marker-result:hover,
.map-marker-result:focus-visible {
  background: rgba(156, 206, 255, 0.12);
}

.map-marker-result:focus-visible {
  outline: 2px solid #8dceff;
  outline-offset: -2px;
}

.map-marker-result-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.map-marker-result-subtitle {
  font-size: 0.7rem;
  color: #7e999c;
}

.map-marker-result-empty {
  margin: 0;
  padding: 8px;
  font-size: 0.78rem;
  color: #7e999c;
}

.map-viewer__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
  color: var(--agm-text);
}

.map-viewer__canvas.leaflet-fade-anim .leaflet-popup,
.map-viewer__canvas .leaflet-fade-anim .leaflet-popup {
  transition: opacity 0.1s linear;
}

.map-viewer__canvas .leaflet-popup-content-wrapper,
.map-viewer__canvas .leaflet-popup-tip {
  background: rgba(36, 55, 82, 0.98);
  color: var(--agm-text);
  box-shadow: 0 0.85rem 1.6rem rgba(0, 0, 0, 0.28);
}

.map-viewer__canvas .leaflet-popup-content {
  margin: 0.75rem 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.map-viewer__canvas .map-marker-popup .leaflet-popup-content-wrapper {
  padding-top: 1.75rem;
}

.map-viewer__canvas .map-marker-popup .leaflet-popup-content {
  min-width: 14rem;
}

.map-viewer__canvas .map-marker-popup .leaflet-popup-close-button {
  top: 0.45rem;
  right: 0.5rem;
}

.map-transitions-toggle,
.map-viewer__canvas .map-marker-transition-link {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #64748b;
  background: #112134;
  color: #edf6ff;
  font-size: 0.8rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.map-transitions-toggle[aria-pressed="true"] {
  background: #1e363c;
  border-color: #cf9d51;
  color: #cf9d51;
}

.map-transitions-toggle:hover,
.map-viewer__canvas .map-marker-transition-link:hover {
  background: #2b4663;
}

.map-transitions-toggle:focus-visible,
.map-viewer__canvas .map-marker-transition-link:focus-visible {
  outline: 2px solid #bae6fd;
  outline-offset: 2px;
}

.map-marker-transitions {
  margin-top: 0.75rem;
  border-top: 1px solid #64748b;
}

.map-viewer__canvas .map-marker-transitions p {
  margin: 0.5rem 0 0.25rem;
}

.map-viewer__canvas .map-marker-found-toggle {
  white-space: nowrap;
  position: absolute;
  top: 0.35rem;
  right: 2rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(191, 224, 255, 0.16);
  border-radius: 999px;
  background: rgba(209, 229, 255, 0.1);
  color: #edf6ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-viewer__canvas .map-marker-found-toggle:hover,
.map-viewer__canvas .map-marker-found-toggle:focus {
  border-color: rgba(191, 224, 255, 0.24);
  background: rgba(209, 229, 255, 0.18);
  color: #ffffff;
}

.map-viewer__canvas .map-marker-found-toggle[data-found="true"] {
  border-color: rgba(150, 197, 153, 0.4);
  background: rgba(88, 146, 93, 0.18);
  color: #eaf8ea;
}

.map-viewer__canvas .leaflet-popup-content strong {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--agm-text-strong);
}

.map-viewer__canvas .map-marker-icon {
  filter: drop-shadow(0 0.18rem 0.35rem rgba(10, 18, 30, 0.55));
}

.map-viewer__canvas .map-marker-edit,
.map-viewer__canvas .map-marker-delete {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #fca5a5;
  border-radius: 0.25rem;
  background: #7f1d1d;
  color: #fee2e2;
  cursor: pointer;
}

.map-viewer__canvas .map-marker-edit {
  margin-right: 0.5rem;
  border-color: #93c5fd;
  background: #1e3a5f;
  color: #dbeafe;
}

.map-viewer__canvas .map-marker-edit:disabled,
.map-viewer__canvas .map-marker-delete:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (min-width: 1024px) {
  .map-viewer__sidebar {
    position: relative;
    inset: auto;
    z-index: 20;
    width: 376px;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .map-viewer__sidebar-toggle,
  .map-sidebar-rail > .map-viewer__sidebar-close,
  .map-viewer__sidebar-backdrop {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --agm-border: rgba(191, 224, 255, 0.52);
    --agm-border-strong: rgba(214, 235, 255, 0.78);
    --agm-text-soft: #cbdced;
  }
}

@media (forced-colors: active) {
  a[href] {
    text-decoration: underline;
  }

  button,
  input,
  select,
  textarea,
  summary {
    border: 1px solid ButtonText;
  }

  [aria-current],
  [aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }

  :where(a[href], button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline-color: Highlight !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    /* A nonzero duration introduces transitions even on Leaflet's direct drag positioning. */
    transition-duration: 0s !important;
  }
}

.map-viewer__canvas .map-composite-piece-label {
  width: auto !important;
  height: auto !important;
  border: 0;
  background: transparent;
}

.map-viewer__canvas .map-composite-piece-label span {
  display: block;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 14rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #47617e;
  border-radius: 0.45rem;
  background: #0f1a29;
  color: #edf6ff;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.45);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.map-viewer--fullscreen .leaflet-top {
  top: 4.75rem;
}

.map-viewer--fullscreen .leaflet-left {
  left: 1rem;
}

.map-viewer--fullscreen .leaflet-right {
  right: 1rem;
}

.map-viewer--fullscreen .leaflet-bottom {
  bottom: 1rem;
}

.map-viewer--fullscreen .leaflet-control-layers-expanded {
  max-height: calc(100dvh - 7.5rem);
  overflow: auto;
}

@media (min-width: 640px) {
  .map-viewer--fullscreen .leaflet-top {
    top: 5.75rem;
  }

  .map-viewer--fullscreen .leaflet-left {
    left: 1.5rem;
  }

  .map-viewer--fullscreen .leaflet-right {
    right: 1.5rem;
  }

  .map-viewer--fullscreen .leaflet-bottom {
    bottom: 1.5rem;
  }
}
