/* ILECO III — the map (peta.js) */
.pt-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border-radius: 14px;
  border: 1px solid var(--line, #eadca8);
  background: #e9e6da;
  background-image:
    linear-gradient(rgba(20, 33, 61, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 61, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  isolation: isolate;
}
.pt-map.drag {
  cursor: grabbing;
}
.pt-tiles,
.pt-markers,
.pt-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pt-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pt-tile {
  position: absolute;
  left: 0;
  top: 0;
  width: 256px;
  height: 256px;
  max-width: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.pt-tile.on {
  opacity: 1;
}
.pt-tile.bad {
  display: none;
}
.pt-mkw {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pt-acc {
  position: absolute;
  display: none;
  left: 0;
  top: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(31, 107, 255, 0.14);
  border: 1.5px solid rgba(31, 107, 255, 0.45);
  pointer-events: none;
}
.pt-mk {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 34px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.15s ease;
}
.pt-mk:hover,
.pt-mkw.sel .pt-mk {
  transform: translate(-50%, -100%) scale(1.15);
  z-index: 3;
}
.pt-mk:focus-visible {
  outline: 3px solid #1f6bff;
  outline-offset: 2px;
  border-radius: 8px;
}
.pt-pin {
  width: 34px;
  height: 44px;
  display: block;
}
.pt-lb {
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 99px;
  background: #14213d;
  color: #ffc72c;
  font:
    700 11px/1.3 'Segoe UI',
    system-ui,
    sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.pt-ctrl {
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}
.pt-ctrl button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(20, 33, 61, 0.25);
  background: #fff;
  color: #14213d;
  font:
    700 20px/1 'Segoe UI',
    system-ui,
    sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.pt-ctrl button:hover:not(:disabled) {
  background: #ffc72c;
}
.pt-ctrl button:disabled {
  opacity: 0.4;
  cursor: default;
}
.pt-ctrl .pt-fit {
  font-size: 18px;
}
.pt-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.8);
  font:
    11px/1.4 system-ui,
    sans-serif;
  border-top-left-radius: 8px;
}
.pt-attr a {
  color: #14213d;
  text-decoration: none;
}
.pt-note {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  max-width: 70%;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #f0d98a;
  color: #5c4400;
  font:
    600 12px/1.35 'Segoe UI',
    system-ui,
    sans-serif;
}
.pt-pop {
  position: absolute;
  z-index: 6;
  min-width: 200px;
  max-width: min(300px, 86%);
  padding: 12px 14px 12px;
  border-radius: 14px;
  background: #fff;
  color: #1c2233;
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.35);
  font:
    13px/1.45 'Segoe UI',
    system-ui,
    sans-serif;
  cursor: default;
}
.pt-pop b {
  display: block;
  padding-right: 22px;
  font-size: 15px;
  color: #14213d;
}
.pt-pop .pt-l {
  color: #5b6275;
}
.pt-pop .pt-mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
}
.pt-pop .pt-g {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #14213d;
  color: #ffc72c;
  font-weight: 700;
  text-decoration: none;
}
.pt-pop .pt-g:hover {
  box-shadow: 0 0 12px rgba(20, 33, 61, 0.4);
}
.pt-pop[hidden] {
  display: none;
}
.pt-x {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #5b6275;
}
.pt-x:hover {
  background: #f1ecda;
}
/* the car of a field crew: its middle is the position, its nose the direction of travel */
.pt-mk.pt-car {
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}
.pt-mk.pt-car:hover,
.pt-mkw.sel .pt-mk.pt-car {
  transform: translate(-50%, -50%) scale(1.15);
}
.pt-kotse {
  width: 40px;
  height: 40px;
  display: block;
  transition: transform 0.6s ease;
}
.pt-mk.pt-car:not(.moving) .pt-kotse {
  opacity: 0.82;
}
.pt-mk.pt-car .pt-lb {
  top: calc(100% + 2px);
}
.pt-bd {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 99px;
  background: #fff;
  color: #5b6275;
  border: 1.5px solid #9aa0ad;
  font:
    700 11px/1.3 'Segoe UI',
    system-ui,
    sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.pt-bd.moving {
  background: #14532d;
  color: #fff;
  border-color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .pt-kotse {
    transition: none;
  }
}
@media (max-width: 520px) {
  .pt-map {
    min-height: 320px;
  }
  .pt-ctrl button {
    width: 42px;
    height: 42px;
  }
}
@media print {
  .pt-ctrl {
    display: none;
  }
}
