.route-marker-clearance {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  visibility: hidden;
  pointer-events: none;
}

.route-marker-overlay {
  position: absolute;
  inset: 0;
  z-index: 700;
  overflow: hidden;
  pointer-events: none;
}

.route-marker-overlay > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #53204a;
  stroke-width: 1.5;
  stroke-opacity: .8;
}

.route-marker {
  position: absolute;
  inset: 0 auto auto 0;
  width: 48px;
  height: 40px;
}

.route-marker.is-selected { z-index: 1; }

.route-marker-overlay [hidden] { display: none; }

.route-marker .route-marker-pin {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.route-marker .route-marker-pin:hover { background: transparent; }
.route-marker .route-marker-pin:focus-visible { outline: 2px solid #2c1638; outline-offset: 1px; }
.route-marker .route-marker-pin img { display: block; width: 100%; height: auto; pointer-events: none; }

.route-marker .route-marker-more {
  position: absolute;
  right: -3px;
  top: -3px;
  min-height: 21px;
  min-width: 21px;
  padding: 1px 4px;
  border: 1px solid #faf3df;
  border-radius: 20px;
  background: #482051;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  touch-action: manipulation;
}

.route-marker-chooser {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 10px;
  width: min(255px, calc(100% - 12px));
  padding: 8px;
  border: 1px solid #b498b9;
  border-radius: 8px;
  background: #fffaf3f4;
  color: #2c1732;
  box-shadow: 0 2px 12px #2912314a;
  pointer-events: auto;
}

.route-marker-chooser .route-marker-chooser-close {
  min-height: 28px;
  padding: 0 6px;
  font-size: 19px;
}

.route-marker-chooser-list {
  display: grid;
  grid-column: 1 / -1;
  max-height: 120px;
  overflow: auto;
}

.route-marker-chooser-list button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  color: #2c1732;
  text-align: left;
}

.route-marker-chooser-list button:hover { background: #e9d9eb; }
