:root { --unit-marker-size: 40px; }

/* Every selector uses the same centre line and the same visible diameter. */
.unit-hotspot[data-target] {
  top: 50.7%;
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.unit-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--unit-marker-size);
  height: var(--unit-marker-size);
  border: 1.5px solid #01a75b;
  border-radius: 50%;
  color: #01a75b;
  background: #fff;
  display: block;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 18px #063f2630;
  transition: background 180ms, box-shadow 180ms;
  box-sizing: border-box;
}
.unit-marker svg { display: block; width: 100%; height: 100%; overflow: hidden; fill: none; }
.unit-marker svg path, .unit-marker svg circle {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.unit-marker .marker-fill { fill: currentColor; stroke: none; }
.unit-marker text { fill: currentColor; font-family: Manrope, Arial, sans-serif; font-size: 17px; font-weight: 500; text-anchor: middle; }
.unit-marker[data-marker-style="disc"] { background: #01a75b; color: #fff; border-color: #fff; }
.unit-marker[data-marker-style="corner"] { background: #fff; border-color: #d5e9dc; }
.unit-marker[data-marker-style="eye"] { border-color: #fff; }
.marker-eye-closed, .marker-eye-open {
  transform-origin: 24px 24px;
  transition: transform 280ms cubic-bezier(0.22, 0.72, 0.2, 1), opacity 180ms ease;
}
.marker-eye-closed { opacity: 1; transform: scaleY(1); }
.marker-eye-open { opacity: 0; transform: scaleY(0.08); }
.unit-hotspot:is(:hover, :focus-visible) .marker-eye-closed,
.sample button:is(:hover, :focus-visible) .marker-eye-closed {
  opacity: 0;
  transform: scaleY(0.15);
}
.unit-hotspot:is(:hover, :focus-visible) .marker-eye-open,
.sample button:is(:hover, :focus-visible) .marker-eye-open {
  opacity: 1;
  transform: scaleY(1);
}
.unit-marker[data-marker-style="glass"] { background: #ffffff60; border-color: #ffffffd9; color: #025d33; backdrop-filter: blur(8px); }
.unit-marker[data-marker-style="double"] { border-color: #01a75b; background: #f2fff8; }
.unit-marker[data-marker-style="chevron"] { border-color: #fff; background: #01a75b; color: #fff; }
.unit-marker[data-marker-style="chevron"] path { stroke-width: 2.4; }
.unit-marker[data-marker-style="door"] { background: #f2fff8; border-color: #01a75b; }
.unit-marker[data-marker-style="number"] { border-color: #01a75b; background: #fff; }
.unit-marker[data-marker-style="dark"] { background: #025d33; color: #fff; border-color: #fff; }
.unit-hotspot:hover .unit-marker, .unit-hotspot:focus-visible .unit-marker {
  box-shadow: 0 0 0 4px #01a75b25, 0 7px 22px #063f2638;
}
@media (max-width: 680px) { :root { --unit-marker-size: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .unit-marker, .marker-eye-closed, .marker-eye-open { transition: none; }
}
