.mapView {
  display: flex;
  height: calc(100vh - 64px);
  width: 100vw;
  overflow-y: hidden;
  overflow-x: hidden;
}

.cnow-mapview-container {
  height: calc(100vh - 164px);
  width: calc(100vw - 380px);
}

.cnow-mapview-container-lg-notiles {
  height: calc(100vh - 64px);
  width: calc(100vw - 380px);
  position: relative;
}

.cnow-mapview-container-lg-notiles-full {
  height: calc(100vh - 64px);
  width: 100vw;
  position: relative;
}

.cnow-mapview-container-lg-tiles {
  height: calc(100vh - 164px);
  width: calc(100vw - 380px);
}

.cnow-mapview-container-sm-notiles {
  height: calc(100vh - 64px);
  width: calc(100vw - 64px);
  position: relative;
}

.cnow-mapview-container-sm-notiles-full {
  height: calc(100vh - 64px);
  width: 100vw;
  position: relative;
}

.cnow-mapview-tiler-list {
  position: absolute;
  bottom: 25px;
  left: 0px;
  right: 0px;
  z-index: 99;
}

.cnow-mapview-container-sm-tiles {
  height: calc(100vh - 164px);
  width: calc(100vw - 64px);
}

.sitemap-mapoverlay-list {
  background-color: #ffffff;
  height: 140px;
  /* height: 125px; */
}

.sitemap-mapoverlay-drag-drop {
  height: 100%;
  width: 100%;
  overflow-y: hidden;
  overflow-x: auto;
}

.relationship-v2-canvas {
  mix-blend-mode: normal;
}

.map-header-relationship-slot {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 38px;
  margin-right: 2px;
}

.relationship-v2-toolbar-fallback {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
}

.relationship-v2-mode-control {
  position: relative;
  z-index: 110;
  color: inherit;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: inherit;
  line-height: 1;
}

.relationship-v2-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  min-width: 124px;
  border: 1px solid #707070;
  border-radius: 3px;
  background-color: #ededed;
  color: #404040;
  padding: 0 10px;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.relationship-v2-toolbar-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.relationship-v2-mode-control.off .relationship-v2-toolbar-button {
  background-color: #404040;
  color: #ffffff;
}

.relationship-v2-notification {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 1200;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  pointer-events: none;
}

.relationship-v2-notification.success {
  background: #007bff;
  color: #000000;
}

.relationship-v2-notification.error {
  background: #a82829;
  color: #ffffff;
}

.relationship-v2-explore-suppression-notice {
  top: 72px;
}

.relationship-v2-toolbar-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 112px;
  border: 1px solid #707070;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.relationship-v2-toolbar-menu-item {
  display: block;
  width: 100%;
  min-height: 26px;
  border: 0;
  border-bottom: 1px solid #cccccc;
  background: #ffffff;
  color: #000000;
  padding: 5px 6px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.relationship-v2-toolbar-menu-item:last-child {
  border-bottom: 0;
}

.relationship-v2-toolbar-menu-item.selected {
  background: #ededed;
  font-weight: 700;
}

.relationship-v2-toolbar-menu-item.disabled,
.relationship-v2-toolbar-menu-item:disabled {
  color: #000000;
  cursor: not-allowed;
  opacity: 0.72;
}

.relationship-v2-between-dialog {
  max-width: 980px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.relationship-v2-between-dialog-content {
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.relationship-v2-between-dialog .modal-body {
  padding: 24px 28px 26px;
}

.relationship-v2-between-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 4px solid #707070;
}

.relationship-v2-between-heading h2 {
  margin: 0 0 8px;
  color: #a82829;
  font-size: 18px;
  font-weight: 700;
}

.relationship-v2-between-heading button {
  width: 34px;
  height: 34px;
  border: 1px solid #707070;
  border-radius: 3px;
  background: #ffffff;
  color: #000000;
  font-size: 28px;
  line-height: 28px;
}

.relationship-v2-between-dialog p {
  margin: 18px 0;
  color: #303030;
  font-size: 16px;
}

.relationship-v2-between-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.relationship-v2-between-fields > span {
  color: #a82829;
  font-size: 30px;
  font-weight: 700;
}

.relationship-v2-between-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.relationship-v2-between-actions button {
  min-width: 110px;
  min-height: 40px;
  border: 1px solid #a0a0a0;
  border-radius: 3px;
  background: #ffffff;
  color: #303030;
}

.relationship-v2-between-actions button.primary {
  border-color: #a82829;
  background: #a82829;
  color: #ffffff;
}

.relationship-v2-between-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.relationship-v2-between-error,
.relationship-v2-between-empty {
  margin-top: 10px;
  color: #a82829;
  font-size: 12px;
  font-weight: 600;
}

.relationship-v2-loading-overlay,
.relationship-v2-feedback-overlay {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(242, 241, 238, 0.78);
  backdrop-filter: blur(2px);
}

.relationship-v2-loading-overlay {
  cursor: progress;
  pointer-events: auto;
}

.relationship-v2-loading-card,
.relationship-v2-feedback-card {
  width: min(430px, calc(100% - 32px));
  border: 1px solid #a82829;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: #303030;
}

.relationship-v2-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 20px 28px 18px;
  text-align: center;
}

.relationship-v2-loading-logo {
  margin-bottom: 10px;
}

.relationship-v2-loading-title,
.relationship-v2-feedback-card > strong {
  color: #a82829;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.relationship-v2-loading-detail {
  margin-top: 6px;
  color: #707070;
  font-size: 13px;
}

.relationship-v2-loading-shimmer {
  position: relative;
  width: 100%;
  height: 4px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: #e4e4e4;
}

.relationship-v2-loading-shimmer::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, #a82829, transparent);
  transform: translateX(-100%);
  animation: relationship-v2-shimmer 1.25s ease-in-out infinite;
}

@keyframes relationship-v2-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .relationship-v2-loading-shimmer::after {
    animation: none;
    transform: none;
  }
}

.relationship-v2-feedback-overlay {
  align-items: flex-start;
  padding-top: 32px;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.relationship-v2-feedback-card {
  min-height: 160px;
  padding: 24px;
  pointer-events: auto;
  text-align: left;
}

.relationship-v2-feedback-card p {
  margin: 10px 0 18px;
  color: #505050;
  font-size: 14px;
  line-height: 1.45;
}

.relationship-v2-feedback-card button {
  min-height: 40px;
  border: 1px solid #a82829;
  border-radius: 3px;
  padding: 8px 16px;
  background: #a82829;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

.relationship-v2-feedback-card button:hover,
.relationship-v2-feedback-card button:focus-visible {
  background: #8f2021;
}

.sitemap-mapoverlay-list.relationship-v2-split-panel {
  height: 125px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: 0;
  align-items: stretch;
  background-color: transparent;
  padding-left: 0 !important;
  padding-right: 0 !important;
  pointer-events: none;
  transition: grid-template-columns 220ms ease, column-gap 220ms ease;
}

.relationship-v2-historic-section {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border-top: 0.5px solid #707070;
  border-left: 1px solid #a82829;
  padding-left: 8px;
  background-color: #ffffff;
  pointer-events: auto;
  transition: opacity 180ms ease, visibility 180ms ease, transform 220ms ease;
  display: flex;
  flex-direction: column;
}

.relationship-v2-historic-section > .row {
  min-width: 0;
  height: 20px;
  align-items: center;
}

.relationship-v2-historic-section > .row.pt-1 {
  padding-top: 0 !important;
}

.relationship-v2-historic-head {
  display: grid;
  grid-template-columns: 18px auto;
  gap: 8px;
  min-height: 18px;
  align-items: center;
}

.relationship-v2-historic-title {
  font-size: 12px;
  line-height: 18px;
}

.relationship-v2-historic-maps {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.relationship-v2-no-historic-maps {
  grid-template-columns: 0fr minmax(0, 1fr);
  column-gap: 0;
}

.relationship-v2-no-historic-maps .relationship-v2-historic-section {
  width: 0;
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  border-left: 0;
  padding-left: 0;
}

.relationship-v2-split-panel .sitemap-mapoverlay-drag-drop {
  height: 100%;
  padding-top: 0 !important;
  align-items: flex-start;
}

.relationship-v2-controls-pane {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-right: 125px;
  min-width: 0;
  height: 100%;
  border-top: 0.5px solid #707070;
  border-left: 1px solid #a82829;
  padding: 5px 8px 8px 10px;
  color: #707070;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 13px;
  background-color: #ffffff;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.relationship-v2-controls-head,
.relationship-v2-legend {
  display: flex;
  align-items: center;
}

.relationship-v2-controls-head {
  display: grid;
  grid-template-columns: 18px auto minmax(0, 1fr);
  gap: 8px;
  min-height: 18px;
  margin-bottom: 0;
  align-items: center;
}

.relationship-v2-title {
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 18px;
}

.relationship-v2-status {
  display: none;
}

.relationship-v2-off-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #000000;
  padding: 0;
}

.relationship-v2-branch-summary {
  max-width: 260px;
  color: #6c757d;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-v2-control-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
  padding-top: 6px;
  --relationship-slider-rail-height: 2px;
  --relationship-slider-thumb-size: 12px;
  --relationship-slider-thumb-radius: 6px;
  --relationship-slider-thumb-offset: calc((var(--relationship-slider-rail-height) - var(--relationship-slider-thumb-size)) / 2);
}

.relationship-v2-control-grid.between-entities {
  grid-template-columns: minmax(260px, 1fr);
}

.relationship-v2-degree,
.relationship-v2-temporal {
  min-height: 78px;
  display: flex;
  flex-direction: column;
}

.relationship-v2-branch-empty,
.relationship-v2-branch-list {
  margin-top: 7px;
  border: 1px solid #ececec;
  background-color: #fafafa;
}

.relationship-v2-branch-empty {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  color: #8a8a8a;
  font-size: 11px;
}

.relationship-v2-branch-list {
  display: flex;
  gap: 4px;
  min-height: 42px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 5px;
}

.relationship-v2-branch-row {
  flex: 0 0 188px;
  display: grid;
  grid-template-columns: 22px 14px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 42px;
  border: 1px solid transparent;
  background-color: #ffffff;
  color: #404040;
  padding: 3px 6px;
  text-align: left;
}

.relationship-v2-branch-row.active {
  background-color: #fff4f4;
  border-color: #a82829;
  box-shadow:
    inset 0 0 0 1px rgba(168, 40, 41, 0.22),
    0 0 0 2px rgba(168, 40, 41, 0.08),
    0 6px 14px rgba(168, 40, 41, 0.12);
}

.relationship-v2-branch-row.dimmed {
  opacity: 0.35;
  cursor: not-allowed;
}

.relationship-v2-branch-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--branch-color, #a82829);
  color: var(--branch-color, #a82829);
  font-size: 11px;
  font-weight: 700;
}

.relationship-v2-branch-color {
  width: 12px;
  height: 12px;
  border: 2px solid var(--branch-color);
  background-color: #ffffff;
  border-radius: 50%;
}

.relationship-v2-branch-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.relationship-v2-branch-text strong,
.relationship-v2-branch-text small,
.relationship-v2-branch-map-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.relationship-v2-branch-text strong {
  color: #111111;
  font-size: 11px;
  line-height: 1.15;
}

.relationship-v2-branch-title-link {
  color: inherit;
  text-decoration: none;
}

.relationship-v2-branch-title-link:hover,
.relationship-v2-branch-title-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.relationship-v2-branch-text small {
  color: #6c757d;
  font-size: 10px;
  line-height: 1.1;
}

.relationship-v2-branch-map-note {
  color: #6c757d;
  font-size: 10px;
  font-style: italic;
  line-height: 1.1;
}

.relationship-v2-sidebar-panel {
  margin-top: 12px;
  padding: 8px 0 2px;
  border-top: 1px solid #d0d0d0;
}

.relationship-v2-sidebar-summary {
  color: #a82829;
  font-size: 13px;
  font-style: italic;
  line-height: 1.25;
  margin-bottom: 4px;
}

.relationship-v2-branch-list.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: none;
  background-color: #ffffff;
  overflow: visible;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-row {
  flex: 0 0 auto;
  width: 100%;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 38px;
  border: 1px solid transparent;
  padding: 5px 4px;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-row + .relationship-v2-branch-row {
  border-top-color: #f0f0f0;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-row.active {
  background-color: #fff1f1;
  border-color: rgba(168, 40, 41, 0.55);
  box-shadow:
    inset 3px 0 0 #a82829,
    0 0 0 2px rgba(168, 40, 41, 0.1),
    0 8px 18px rgba(168, 40, 41, 0.14);
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-index {
  border-radius: 50%;
  margin-top: 1px;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-color {
  display: none;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-text strong,
.relationship-v2-branch-list.sidebar .relationship-v2-branch-text small,
.relationship-v2-branch-list.sidebar .relationship-v2-branch-map-note {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-text strong {
  font-size: 13px;
}

.relationship-v2-branch-list.sidebar .relationship-v2-branch-text small,
.relationship-v2-branch-list.sidebar .relationship-v2-branch-map-note {
  font-size: 12px;
}

.relationship-v2-degree h3,
.relationship-v2-temporal h3 {
  color: #a82829;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.relationship-v2-scale-row,
.relationship-v2-temporal-layout,
.relationship-v2-temporal-output {
  display: block;
  align-items: center;
  color: #707070;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
}

.relationship-v2-degree-density,
.relationship-v2-degree-scale {
  position: relative;
  display: block;
  text-align: center;
}

.relationship-v2-degree-density {
  min-height: 13px;
}

.relationship-v2-degree-density span,
.relationship-v2-degree-scale button {
  position: absolute;
  top: 0;
  left: calc(6px + (100% - 12px) * var(--relationship-degree-ratio, 0));
  width: 24px;
  transform: translateX(-50%);
}

.relationship-v2-degree-density .unloaded {
  color: #8c8c8c;
}

.relationship-v2-degree-slider {
  position: relative;
  height: 12px;
  margin-top: 2px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

.relationship-v2-degree input[type="range"] {
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

.relationship-v2-degree input[type="range"]:focus,
.relationship-v2-degree input[type="range"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.relationship-v2-degree input[type="range"]::-webkit-slider-runnable-track {
  height: var(--relationship-slider-rail-height);
  background: linear-gradient(
    to right,
    transparent 0 var(--relationship-slider-thumb-radius),
    #a82829 var(--relationship-slider-thumb-radius),
    #a82829 var(--relationship-degree-progress-position, var(--relationship-slider-thumb-radius)),
    #707070 var(--relationship-degree-progress-position, var(--relationship-slider-thumb-radius)),
    #707070 calc(100% - var(--relationship-slider-thumb-radius)),
    transparent calc(100% - var(--relationship-slider-thumb-radius)) 100%
  );
}

.relationship-v2-degree input[type="range"]::-moz-range-track {
  height: var(--relationship-slider-rail-height);
  background: linear-gradient(
    to right,
    transparent 0 var(--relationship-slider-thumb-radius),
    #707070 var(--relationship-slider-thumb-radius),
    #707070 calc(100% - var(--relationship-slider-thumb-radius)),
    transparent calc(100% - var(--relationship-slider-thumb-radius)) 100%
  );
}

.relationship-v2-degree input[type="range"]::-moz-range-progress {
  height: var(--relationship-slider-rail-height);
  background: linear-gradient(
    to right,
    transparent 0 var(--relationship-slider-thumb-radius),
    #a82829 var(--relationship-slider-thumb-radius),
    #a82829 100%
  );
}

.relationship-v2-degree input[type="range"]::-webkit-slider-thumb,
.relationship-v2-range-inputs input[type="range"]::-webkit-slider-thumb {
  width: var(--relationship-slider-thumb-size);
  height: var(--relationship-slider-thumb-size);
  margin-top: var(--relationship-slider-thumb-offset);
  border: 1px solid #707070;
  border-radius: 50%;
  background: #a82829;
  box-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.relationship-v2-degree input[type="range"]::-moz-range-thumb,
.relationship-v2-range-inputs input[type="range"]::-moz-range-thumb {
  width: var(--relationship-slider-thumb-size);
  height: var(--relationship-slider-thumb-size);
  border: 1px solid #707070;
  border-radius: 50%;
  background: #a82829;
  box-shadow: none;
  cursor: pointer;
}

.relationship-v2-degree-scale button,
.relationship-v2-link-btn,
.relationship-v2-warning button {
  border: 0;
  background: transparent;
  color: #707070;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
  padding: 0;
}

.relationship-v2-degree-scale {
  min-height: 13px;
}

.relationship-v2-degree-scale button.active {
  color: #a82829;
  font-weight: 700;
}

.relationship-v2-degree-scale button:disabled,
.relationship-v2-link-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.relationship-v2-link-btn {
  color: #707070;
  white-space: nowrap;
}

.relationship-v2-temporal-track {
  position: relative;
  height: 29px;
  --relationship-temporal-rail-center-offset: 7.5px;
  --relationship-temporal-rail-bottom: calc(var(--relationship-temporal-rail-center-offset) - (var(--relationship-slider-rail-height) / 2));
}

.relationship-v2-temporal-bars {
  position: absolute;
  inset: -2px var(--relationship-slider-thumb-radius) 9.5px var(--relationship-slider-thumb-radius);
}

.relationship-v2-temporal-bars span {
  position: absolute;
  bottom: 0;
  left: var(--bar-left);
  width: 2px;
  min-height: 3px;
  height: var(--bar-height);
  background-color: #8a8a8a;
  border-radius: 1px 1px 0 0;
  transform: translateX(-50%);
}

.relationship-v2-temporal-band {
  position: absolute;
  left: var(--relationship-slider-thumb-radius);
  right: var(--relationship-slider-thumb-radius);
  bottom: var(--relationship-temporal-rail-bottom);
  height: var(--relationship-slider-rail-height);
  background-color: #707070;
}

.relationship-v2-range-inputs {
  position: relative;
  height: 0;
}

.relationship-v2-range-inputs input[type="range"] {
  position: absolute;
  left: 0;
  top: -13.5px;
  width: 100%;
  height: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.relationship-v2-range-inputs input[type="range"]::-webkit-slider-runnable-track {
  height: var(--relationship-slider-rail-height);
  background: transparent;
}

.relationship-v2-range-inputs input[type="range"]::-moz-range-track {
  height: var(--relationship-slider-rail-height);
  background: transparent;
}

.relationship-v2-range-inputs input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}

.relationship-v2-range-inputs input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

.relationship-v2-range-inputs #relationship-date-start {
  z-index: 2;
}

.relationship-v2-range-inputs #relationship-date-end {
  z-index: 3;
}

.relationship-v2-range-inputs.collapsed #relationship-date-start {
  z-index: 4;
}

.relationship-v2-range-inputs.collapsed #relationship-date-end {
  z-index: 5;
}

.relationship-v2-range-inputs.collapsed:not(.collapsed-at-start):not(.collapsed-at-end) #relationship-date-start::-webkit-slider-thumb {
  transform: translateX(-6px);
}

.relationship-v2-range-inputs.collapsed:not(.collapsed-at-start):not(.collapsed-at-end) #relationship-date-end::-webkit-slider-thumb {
  transform: translateX(6px);
}

.relationship-v2-range-inputs.collapsed:not(.collapsed-at-start):not(.collapsed-at-end) #relationship-date-start::-moz-range-thumb {
  transform: translateX(-6px);
}

.relationship-v2-range-inputs.collapsed:not(.collapsed-at-start):not(.collapsed-at-end) #relationship-date-end::-moz-range-thumb {
  transform: translateX(6px);
}

.relationship-v2-range-inputs.collapsed-at-start #relationship-date-start::-webkit-slider-thumb,
.relationship-v2-range-inputs.collapsed-at-end #relationship-date-end::-webkit-slider-thumb {
  transform: translateX(0);
}

.relationship-v2-range-inputs.collapsed-at-start #relationship-date-start::-moz-range-thumb,
.relationship-v2-range-inputs.collapsed-at-end #relationship-date-end::-moz-range-thumb {
  transform: translateX(0);
}

.relationship-v2-range-inputs.collapsed-at-start #relationship-date-end::-webkit-slider-thumb {
  transform: translateX(12px);
}

.relationship-v2-range-inputs.collapsed-at-start #relationship-date-end::-moz-range-thumb {
  transform: translateX(12px);
}

.relationship-v2-range-inputs.collapsed-at-end #relationship-date-start::-webkit-slider-thumb {
  transform: translateX(-12px);
}

.relationship-v2-range-inputs.collapsed-at-end #relationship-date-start::-moz-range-thumb {
  transform: translateX(-12px);
}

/* Single-year domain (min===max): force end thumb to the far right via RTL flip */
.relationship-v2-range-inputs.collapsed-single #relationship-date-end {
  direction: rtl;
}
.relationship-v2-range-inputs.collapsed-single #relationship-date-end::-webkit-slider-thumb {
  transform: translateX(0);
}
.relationship-v2-range-inputs.collapsed-single #relationship-date-end::-moz-range-thumb {
  transform: translateX(0);
}

.relationship-v2-temporal-output {
  position: relative;
  margin-top: 2px;
  height: 30px;
}

.relationship-v2-temporal-edge-years {
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.relationship-v2-temporal-output output {
  color: #707070;
  font-size: 11px;
  font-weight: 400;
  line-height: 13px;
}

.relationship-v2-temporal-selected-years {
  position: absolute;
  inset: 14px 0 0 0;
  pointer-events: none;
}

.relationship-v2-temporal-selected-years output {
  position: absolute;
  top: 0;
  left: var(--relationship-temporal-output-left, 0%);
  transform: translateX(-50%);
  white-space: nowrap;
}

.relationship-v2-temporal-selected-start {
  text-align: left;
}

.relationship-v2-temporal-selected-end {
  text-align: right;
}

.relationship-v2-temporal-sr-range {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.relationship-v2-temporal-empty {
  height: 76px;
  display: flex;
  align-items: center;
  color: #707070;
  font-size: 12px;
}

.relationship-v2-legend {
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.relationship-v2-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #000000;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

.relationship-v2-legend-item span {
  width: 10px;
  height: 10px;
  border: 2px solid var(--legend-color);
  background-color: #ffffff;
  border-radius: 50%;
}

.relationship-v2-legend-item strong {
  font-weight: 400;
}

.relationship-v2-stat-row {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.relationship-v2-stat-row strong {
  color: #a82829;
}

.relationship-v2-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: min(520px, calc(100vw - 32px));
  padding: 18px 22px;
  border: 1px solid #d0d0d0;
  border-left: 4px solid #a82829;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
  color: #404040;
  transform: translate(-50%, -50%);
}

.relationship-v2-warning div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
}

.relationship-v2-warning span {
  color: #6c757d;
  font-size: 11px;
}

.relationship-v2-warning button {
  border-color: #d0d0d0;
  background-color: #ffffff;
  color: #404040;
}

.relationship-v2-warning button.primary {
  border-color: #a82829;
  background-color: #a82829;
  color: #ffffff;
}

.sitemap-top-nav {
  background-color: #404040;
  color: #ffffff;
  width: 100vw;
  height: 64px;
}

.sitemap-info-leftpanel {
  display: inline-block;
  height: calc(100vh - 64px);
  width: 380px;
  overflow-y: auto;
}

.sitemap-info-leftpanel::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

.sitemap-info-leftpanel::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background-color: #f5f5f5;
}

.sitemap-info-leftpanel::-webkit-scrollbar-thumb {
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
}

.sitemap-map-container {
  display: inline-block;
}

.map-infopanel-image {
  height: 160px;
  width: 380px;
}

.map-infopanel-controlbar {
  height: 38px;
  width: 100%;
  background-color: #ededed;
  padding: 2px;
}

.map-infopanel-controlbar-sm {
  height: calc(100vh - 64px);
  width: 100%;

  height: 100vh;
  background-color: #ededed;
  padding: 12px;
}

.btn-list-sm {
  display: block;
}

.btn-list-sm > .btn {
  margin-top: 8px;
}

.map-navbar-btn {
  /* d-flex justify-content-between align-items-center */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #404040;
  width: 120px;
  height: 38px;
}

.btn-list-map .map-navbar-btn {
  width: auto;
  min-width: 124px;
  padding: 0 10px;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 400;
}

.site-maptiles {
  /* height: 80px; */
  height: 62px;
  width: 100px;
  margin: 10px;
}

.cnow-map-mobile-view {
  height: 100vh;
  width: 100vw;
}

.map-controlbar-btn {
  width: 43px;
  height: 30px;
  margin: 2px;
}

.map-info-listview-title {
  width: 358px;
  height: 24px;
}

.map-tab {
  background: #ededed 0% 0% no-repeat padding-box;
  border: 1px solid #9d9d9d;
}

.map-tab.map-tab-active {
  border-bottom: 4px solid #404040;
  font-weight: bold;
}

.map-tab-title {
  color: #9d9d9d;
  font-size: 13px;
}

.map-tab-title.map-tab-title-active {
  color: #000000;
}

.w-33 {
  width: 33.33%;
}

.map-info-listview-listtitles {
  background-color: #ededed;
  padding-left: 8px;
  padding-right: 8px;
  border: 1px solid #404040;
  cursor: pointer;
  height: 40px;
}

.map-info-listview-listitem:hover {
  background-color: #ededed;
}

.map-info-activelist {
  background-color: #404040 !important;
  color: #ffffff !important;
  font-weight: bold;
}

.map-sub-tab {
  cursor: pointer;
  font-size: 10px;
  height: 40px;
  border: 1px solid #d0d0d0;
  background-color: #ededed;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #404040;
}

.map-sub-tab-active {
  border-bottom: 4px solid #000000 !important;
  background-color: #ffffff;
}

.map-info-listitem-closebtn {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-site-list {
  width: 75px;
  height: 60px;
}

.nearby-btn-active,
.nearby-btn-active:focus {
  background-color: #a82829;
}

.explore-btn-active,
.explore-btn-active:focus {
  background-color: #ededed !important;
  color: #404040 !important;
}

.listMarkerInfoWindow {
  min-width: 160px;
  max-height: 80px;
  color: #000000;
  border: #9d9d9d 1px solid;
  background-color: #ffffff;
  font: normal bold 10px;
  padding: 4px;
  overflow-wrap: break-word;
  overflow-y: auto;
}

.listMarkerInfo {
  min-width: 139px;
  min-height: 22px;
  color: #000000;
  border: #9d9d9d 1px solid;
  font: normal 14px;
  border-radius: 5px;
  background-color: #ffffff;
  margin-bottom: 10px;
  padding: 4px;
  position: absolute;
  top: -33px;
  left: 16px;
  z-index: 9999 !important;
}

.listMarker {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -100%);
  background-repeat: round;
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
}

.imagemarker {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -100%);
}

.maprelations-container {
  height: calc(100vh - 64px);
  width: 100vw;
}

.map-mobile-menu {
  display: none;
}

@media only screen and (max-width: 768px) {
  .cnow-mapview-container-sm-notiles {
    height: calc(100vh - 64px);
    position: relative;
    width: 100vw;
  }
}


@media only screen and (max-width: 1023px) {
  .mapView {
    flex-direction: column;
    height: 100% !important;
    flex-direction: column-reverse;
  }

  .sitemap-map-container {
    width: 100% !important;
  }

  .cnow-mapview-container-lg-notiles {
    width: 100% !important;
    height: calc(53vh - 64px) !important;
  }

  .sitemap-info-leftpanel {
    height: auto !important;
    overflow-x: hidden;
    width: 100% !important;
  }

  .vertical {
    display: none;
  }

  .map-mobile-menu {
    display: block;
    text-align: right;
  }

  .mobile-map-none {
    display: none !important;
  }

  .mobile-map-block {
    display: block !important;
  }

  .sitemap-top-nav {
    height: auto !important;
  }

  .btn-list-map {
    flex-direction: column;
  }

  .navbar-search {
    margin: 0px !important;
    /* display: block; */
  }

  .map-mobile-pb {
    margin-bottom: 10px !important;
  }

  .map-mobile-pt {
    margin-top: 10px !important;
  }

  .map-res-one {
    display: flex;
    flex-direction: column-reverse;
  }

  .sitemap-mapoverlay-list.relationship-v2-split-panel {
    height: 420px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 72px minmax(316px, 1fr);
    row-gap: 6px;
    overflow-y: auto;
  }

  .relationship-v2-historic-section {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .relationship-v2-split-panel .sitemap-mapoverlay-drag-drop {
    height: 68px;
  }

  .relationship-v2-no-historic-maps {
    grid-template-rows: minmax(316px, 1fr);
    row-gap: 0;
  }

  .relationship-v2-no-historic-maps .relationship-v2-historic-section {
    max-height: 0;
  }

  .relationship-v2-controls-pane {
    grid-column: 1;
    grid-row: 3;
    min-height: 316px;
    border-left: none;
    border-top: 1px solid #d0d0d0;
    padding: 12px;
    overflow: visible;
  }

  .relationship-v2-no-historic-maps .relationship-v2-controls-pane {
    grid-row: 1;
  }

  .relationship-v2-controls-head {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .relationship-v2-controls-head .relationship-v2-legend {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .relationship-v2-control-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .relationship-v2-title {
    font-size: 12px;
    line-height: 25px;
  }

  .relationship-v2-legend {
    gap: 14px;
  }

  .relationship-v2-legend-item,
  .relationship-v2-scale-row,
  .relationship-v2-temporal-layout,
  .relationship-v2-temporal-output,
  .relationship-v2-degree-scale button,
  .relationship-v2-temporal-output output {
    font-size: 12px;
    line-height: 14px;
  }

  .relationship-v2-branch-summary {
    max-width: 180px;
  }

  .relationship-v2-branch-row {
    flex-basis: 142px;
  }
}

.explore-btn {
  border: 1px solid #707070;
  cursor: pointer;
  border-radius: 0.2rem;
  margin-right: 2px;
  background-color: #404040;
  color: #ffffff;
}

.explore-btn-disabled,
.explore-btn-disabled:focus,
.explore-btn-disabled:hover {
  background-color: #8a8a8a !important;
  border-color: #8a8a8a;
  color: #d6d6d6 !important;
  cursor: not-allowed;
  opacity: 0.75;
}

.explore-btn-disabled .explore-btn-disabled-icon {
  opacity: 0.36;
}

.cnow-marker {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -100%);
  font-weight: bold;
  cursor: pointer;
}

.location-index-number {
  display: flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #a82829;
  background: #ffffff 0% 0% no-repeat;
  align-items: center;
  justify-content: center;
}

/* Maps Slider CSS start*/

input[type="range"][orient="vertical"] {
  position: relative;
  margin: 0;
  height: 67px;
  width: 15px;
  position: relative;
  writing-mode: vertical-lr;
  direction: rtl;
  opacity: 0;
  cursor: pointer;
}

.range-slider {
  width: 4px;
  position: relative;
  text-align: center;
  height: 300px;
  max-height: 60px;
  right: -4px;
  bottom: 0px;
}

.range-slider:before {
  position: absolute;
  top: -2em;
  left: 0.5em;
  content: "";
  color: white;
  font-size: 90%;
}

.cnow-range-slider {
  left: 0px;
  bottom: 0px;
  position: absolute;
  background: #707070;
  pointer-events: none;
  border-radius: 0;
  width: 4px;
  height: calc(100% + 0px);
}

.cnow-range-slider-percent {
  position: absolute;
  left: 3px;
  width: 35px;
  height: 1px;
  line-height: 1px;
  color: #777;
  font-size: 9px;
  border-radius: 50%;
  pointer-events: none;
  padding-left: 0px;
  z-index: 9;
  text-align: right;
}

.cnow-range-slider-percent:after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 0;
  height: 0;
  border-top: 5px solid #70707000;
  border-right: 10px solid #707070;
  border-bottom: 5px solid #70707000;
}

/* Maps Slider CSS ends*/

.map-nav-input-box {
  background-color: #a82829;
}

.map-nav-input,
.map-nav-input:focus-visible,
.map-nav-input::placeholder {
  color: #f5f5f5;
  background: transparent;
  border: none;
  height: 60px;
  width: 100%;
  outline-style: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.map-nav-btn {
  display: flex;
  height: 60px;
  width: 100%;
  background-color: #ededed;
  justify-content: start;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
}

.map-nav-btn-show-border {
  border: 2px solid #a82829 !important;
}

.map-nav-hr {
  background-color: #ededed;
}

.suggestion-item {
  border: 1px solid #ededed;
  cursor: pointer;
  padding: 0.5rem;
  width: 100%;
}

.suggestion-item:hover {
  background-color: #ededed;
}

.map-nav-option-btn {
  background: transparent;
  border: 1.5px solid #ededed;
  width: 40px;
}

.map-nav-option-btn-active {
  border: 1.5px solid #ededed;
  width: 40px;
}

.mapViews-overlays-scrollBar::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

.mapViews-overlays-scrollBar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background-color: #f5f5f5;
}

.mapViews-overlays-scrollBar::-webkit-scrollbar-thumb {
  border-radius: 5px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
}

.nav-line {
  border-left: 2px dashed white;
  position: absolute;
  left: 15px;
  top: 20%;
}

.inputMarker {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  border: 2px solid white;
  background: #a82829;
  z-index: 9;
  left: 6px;
  font-size: 13px;
  text-align: center;
  top: -10px;
}
