/* Стили блока On the road для встраивания в внутренние страницы */
.otr-embed {
  margin: 0 0 60px;
  padding: 0;
}

.otr-embed .page-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.otr-embed .otr-section {
  position: relative;
  padding: 40px 20px 50px;
  background: radial-gradient(circle at 20% 0%, #2b2b33 0, #050509 40%, #020307 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.9);
}

.otr-embed .otr-inner {
  max-width: 900px;
  margin: 0 auto;
}

.otr-embed .otr-title {
  margin-bottom: 24px;
  text-align: center;
}

.otr-embed .otr-title h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: #fff;
}

.otr-embed .otr-title p {
  margin: 0;
  opacity: 0.7;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
}

.otr-embed .otr-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 10% 120%, rgba(255,255,255,0.08), transparent 60%),
              radial-gradient(circle at 90% -20%, rgba(255,255,255,0.05), transparent 60%),
              #05060b;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 24px 48px rgba(0,0,0,0.85);
}

.otr-embed .otr-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.otr-embed #otrRoute {
  stroke: rgba(255,255,255,0.75);
  stroke-width: 4;
  stroke-linecap: round;
}

.otr-embed #otrRouteGlow {
  stroke: rgba(255,255,255,0.18);
  stroke-width: 18;
  stroke-linecap: round;
  filter: blur(14px);
}

.otr-embed .otr-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  color: #fff;
}

.otr-pin {
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  transform-origin: center;
  transition: filter 0.2s ease;
  will-change: transform;
}

.otr-pin-head,
.otr-pin-photo {
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.15s ease;
}

.otr-pin:hover {
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6));
}

.otr-pin:hover .otr-pin-head {
  transform: scale(1.05);
}

.otr-pin:hover .otr-pin-photo {
  transform: scale(1.03);
}

.otr-stop-dot {
  pointer-events: none;
}

.otr-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.otr-modal[data-active="true"] {
  pointer-events: auto;
  opacity: 1;
}

.otr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}

.otr-modal__inner {
  position: relative;
  background: #0b0d15;
  border-radius: 14px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 40px rgba(0,0,0,0.6);
  max-width: min(90vw, 960px);
  max-height: min(80vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.otr-modal__img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 10px;
}

.otr-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.otr-modal__close:hover {
  background: rgba(255,255,255,0.16);
  transform: scale(1.05);
}

.otr-modal__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  border: 0;
  color: #fff;
  width: 42px;
  height: 70px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.otr-modal__nav-btn:hover {
  background: rgba(255,255,255,0.24);
  transform: translateY(-50%) scale(1.04);
}

.otr-modal__nav-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.otr-modal__nav-btn--prev {
  left: 6px;
}

.otr-modal__nav-btn--next {
  right: 6px;
}

.otr-modal__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.otr-modal__zone--prev {
  left: 0;
}

.otr-modal__zone--next {
  right: 0;
}

@media (max-width: 768px) {
  .otr-embed {
    margin: 28px 0 40px;
  }

  .otr-embed .otr-section {
    padding: 28px 14px 32px;
    border-radius: 18px;
  }
}
