/* Mapa lokalizacji: legenda z boku + wysoka mapa */
.ds-location-map,
.ds-location-map * {
  box-sizing: border-box;
}

.ds-location-map {
  --ds-loc-ink: #14244b;
  --ds-loc-accent: #c5b29d;
  --ds-loc-muted: #5a6478;
  --ds-loc-bg: #f4f1ea;
  --ds-loc-panel: #ffffff;
  --ds-loc-line: rgba(20, 36, 75, 0.12);
  --ds-loc-chip: #efebe3;
  margin: 1.25rem 0 1.75rem;
  color: var(--ds-loc-ink);
  width: 100%;
  max-width: 100%;
}

/* Elementor Tabs / Shortcode: nie dziedzicz stylów listy / przycisków motywu */
.elementor-widget-shortcode .ds-location-map,
.elementor-tab-content .ds-location-map,
.e-n-tabs-content .ds-location-map,
.elementor-tabs-content-wrapper .ds-location-map {
  width: 100% !important;
  max-width: 100% !important;
}

@media (min-width: 821px) {
  .elementor-widget-shortcode .ds-location-map__layout,
  .elementor-tab-content .ds-location-map__layout,
  .e-n-tabs-content .ds-location-map__layout {
    display: grid !important;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr) !important;
    width: 100% !important;
  }
}

.ds-location-map.ds-theme-dark {
  --ds-loc-ink: #f2efe8;
  --ds-loc-accent: #c5b29d;
  --ds-loc-muted: #b8b2a6;
  --ds-loc-bg: #121820;
  --ds-loc-panel: #1a222c;
  --ds-loc-line: rgba(242, 239, 232, 0.12);
  --ds-loc-chip: #243040;
}

.ds-location-map__layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) 1fr;
  gap: 0;
  border: 1px solid var(--ds-loc-line);
  background: var(--ds-loc-panel);
  overflow: hidden;
  width: 100%;
  min-height: 760px;
}

.ds-location-map__legend {
  order: 0;
  background: var(--ds-loc-bg);
  border-right: 1px solid var(--ds-loc-line);
  padding: 14px 12px 16px;
  max-height: none;
  overflow: auto;
  align-self: stretch;
}

.ds-location-map__mode {
  position: absolute;
  top: 12px;
  left: 52px;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(20, 36, 75, 0.14);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(20, 36, 75, 0.14);
}

.ds-location-map__mode-btn {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ds-loc-ink) !important;
  font: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  min-height: 0 !important;
  white-space: nowrap !important;
}

.ds-location-map__mode-btn.is-active {
  background: rgba(195, 158, 118, 0.35) !important;
  border-color: #c5b29d !important;
  color: #6e5230 !important;
}

.ds-location-map.ds-theme-dark .ds-location-map__mode {
  background: rgba(26, 34, 44, 0.96);
  border-color: rgba(242, 239, 232, 0.14);
}

.ds-location-map.ds-theme-dark .ds-location-map__mode-btn.is-active {
  color: #f2efe8 !important;
}

.ds-location-map__legend-toggle {
  display: none !important;
}

.ds-location-map__legend-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  counter-reset: none !important;
}

.ds-location-map__legend-list > li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  counter-increment: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ds-location-map__legend-list > li::marker {
  content: '' !important;
  font-size: 0 !important;
  color: transparent !important;
}

.ds-location-map__legend-list > li::before,
.ds-location-map__legend-list > li::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  border: 0 !important;
}

.ds-location-map__legend-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--ds-loc-ink) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 7px 6px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

.ds-location-map__legend-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.ds-location-map__legend-label {
  display: block !important;
  color: inherit !important;
}

.ds-location-map__legend-dist {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--ds-loc-muted) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .01em;
}

.ds-location-map__legend-dist-val {
  display: inline !important;
}

.ds-location-map__mode-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 16px !important;
  height: 16px !important;
  color: #8f6a3f !important;
  flex: 0 0 auto !important;
  opacity: .9;
}

.ds-location-map__mode-icon svg {
  display: block !important;
  width: 14px !important;
  height: 14px !important;
}

.ds-location-map__mode {
  display: none !important;
}

.ds-location-map__legend-item:hover,
.ds-location-map__legend-item.is-active {
  background: rgba(195, 158, 118, 0.16) !important;
}

.ds-location-map.ds-theme-dark .ds-location-map__legend-item:hover,
.ds-location-map.ds-theme-dark .ds-location-map__legend-item.is-active {
  background: rgba(195, 158, 118, 0.22) !important;
}

.ds-location-map__badge {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  margin-top: 1px !important;
  border-radius: 50% !important;
  background: #c5b29d !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 1px 4px rgba(20, 36, 75, 0.28) !important;
}

.ds-location-map.ds-theme-dark .ds-location-map__badge {
  background: var(--ds-loc-accent) !important;
  color: #fff !important;
}

.ds-location-map__canvas-wrap {
  order: 1;
  position: relative;
  width: 100% !important;
  min-width: 0;
  min-height: 760px;
  background: #dfe4ea;
  z-index: 1;
  align-self: stretch;
  overflow: hidden;
}

.ds-location-map__canvas,
.ds-location-map__canvas.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  min-height: 760px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1 !important;
  background: #dfe4ea !important;
  font: inherit;
}

/* WordPress/Elementor: img{max-width:100%} rozjeżdża kafle Leaflet — nie tykać zdjęć w dymkach */
.ds-location-map .leaflet-container img.leaflet-tile,
.ds-location-map .leaflet-container img.leaflet-marker-icon,
.ds-location-map .leaflet-container img.leaflet-marker-shadow,
.ds-location-map .leaflet-tile-container img {
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ds-location-map .leaflet-tile-pane {
  opacity: 1 !important;
  visibility: visible !important;
}

.ds-loc-pin-wrap,
.ds-loc-site-wrap,
.ds-loc-area-wrap {
  background: transparent !important;
  border: 0 !important;
  overflow: visible !important;
}

.ds-loc-pin {
  background: #c5b29d;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgba(41, 47, 41, 0.45),
    0 4px 14px rgba(20, 36, 75, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ds-loc-pin span {
  display: block;
  transform: translateY(0.5px);
}

.ds-loc-pin:hover,
.ds-loc-pin.is-active {
  transform: scale(1.18);
  background: #6e5230;
  box-shadow:
    0 0 0 3px #c0392b,
    0 0 0 6px rgba(192, 57, 43, 0.25),
    0 6px 18px rgba(20, 36, 75, 0.45);
  z-index: 10;
}

.ds-loc-pin--ev {
  background: #0f766e;
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(15, 118, 110, 0.45),
    0 4px 14px rgba(15, 118, 110, 0.4);
}
.ds-loc-pin--ev .ds-loc-pin__bolt {
  display: block;
  width: 18px;
  height: 18px;
}
.ds-loc-pin--ev:hover,
.ds-loc-pin--ev.is-active {
  background: #0d9488;
  box-shadow:
    0 0 0 3px #14b8a6,
    0 0 0 6px rgba(20, 184, 166, 0.28),
    0 6px 18px rgba(15, 118, 110, 0.45);
}

.ds-loc-pin--ski {
  background: #1d4ed8;
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(29, 78, 216, 0.4),
    0 4px 14px rgba(29, 78, 216, 0.4);
}
.ds-loc-pin--ski .ds-loc-pin__ski {
  display: block;
  width: 18px;
  height: 18px;
}
.ds-loc-pin--ski:hover,
.ds-loc-pin--ski.is-active {
  background: #2563eb;
  box-shadow:
    0 0 0 3px #60a5fa,
    0 0 0 6px rgba(96, 165, 250, 0.28),
    0 6px 18px rgba(29, 78, 216, 0.45);
}

.ds-loc-pin--from {
  width: 16px;
  height: 16px;
  background: #6e5230;
  border-width: 2px;
  box-shadow: 0 1px 6px rgba(20, 36, 75, 0.4);
}

/* Pulsująca kropka na mapie — numer tylko w dymku */
.ds-loc-pin-wrap--pulse {
  pointer-events: auto;
}

.ds-loc-pin--dot {
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 50%;
}

.ds-loc-pin--dot.ds-loc-pin--lg {
  width: 52px;
  height: 52px;
}

.ds-loc-pin--dot .ds-loc-pin__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #8f6a3f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(20, 36, 75, 0.35);
  z-index: 2;
}

.ds-loc-pin--dot.ds-loc-pin--lg .ds-loc-pin__core {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}

.ds-loc-pin--dot.ds-loc-pin--poi .ds-loc-pin__core {
  background: #8f6a3f;
}

.ds-loc-pin--dot.ds-loc-pin--site .ds-loc-pin__core {
  background: #3a3a3a;
}

.ds-loc-pin--dot.ds-loc-pin--ev .ds-loc-pin__core {
  background: #0f766e;
}

.ds-loc-pin--dot.ds-loc-pin--ski .ds-loc-pin__core {
  background: #1d4ed8;
}

.ds-loc-pin--dot .ds-loc-pin__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #8f6a3f;
  opacity: 0.85;
  animation: ds-loc-pulse-ring 1.85s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  z-index: 1;
}

.ds-loc-pin--dot.ds-loc-pin--lg .ds-loc-pin__ring {
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
}

.ds-loc-pin--dot.ds-loc-pin--poi .ds-loc-pin__ring {
  border-color: #8f6a3f;
}

.ds-loc-pin--dot.ds-loc-pin--site .ds-loc-pin__ring {
  border-color: #3a3a3a;
}

.ds-loc-pin--dot.ds-loc-pin--ev .ds-loc-pin__ring {
  border-color: #0f766e;
}

.ds-loc-pin--dot.ds-loc-pin--ski .ds-loc-pin__ring {
  border-color: #1d4ed8;
}

.ds-loc-pin--dot:hover .ds-loc-pin__core,
.ds-loc-pin--dot.is-active .ds-loc-pin__core {
  transform: scale(1.25);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(192, 57, 43, 0.55);
}

@keyframes ds-loc-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  70% {
    transform: scale(3.15);
    opacity: 0;
  }
  100% {
    transform: scale(3.15);
    opacity: 0;
  }
}

.ds-location-map__badge--ev {
  background: #0f766e !important;
  font-size: 14px !important;
}
.ds-location-map__badge--ev svg {
  width: 14px;
  height: 14px;
  display: block;
}
.ds-location-map__badge--ski {
  background: #1d4ed8 !important;
  font-size: 14px !important;
}
.ds-location-map__badge--ski svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ds-location-map .ds-loc-route {
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(20, 36, 75, 0.35));
}

.ds-location-map .ds-loc-route--walk,
.ds-location-map .ds-loc-route--bike {
  stroke-dasharray: 6 8;
}

.ds-location-map .ds-loc-route--drive,
.ds-location-map .ds-loc-route--drive-plan {
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-loc-walker-wrap,
.ds-loc-bike-wrap,
.ds-loc-car-wrap {
  background: transparent !important;
  border: 0 !important;
}

.ds-loc-bike {
  position: relative;
  width: 36px;
  height: 28px;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 2px 3px rgba(20, 36, 75, 0.35));
}

.ds-loc-bike.is-flip {
  transform: scaleX(-1);
}

.ds-loc-bike__body {
  position: absolute;
  inset: 0;
  animation: ds-loc-bike-bob 0.34s ease-in-out infinite;
}

.ds-loc-bike.is-arrived .ds-loc-bike__body {
  animation: none;
}

.ds-loc-bike__wheel {
  position: absolute;
  bottom: 2px;
  width: 11px;
  height: 11px;
  border: 2px solid #1f3a2e;
  border-radius: 50%;
  background: radial-gradient(circle at center, #cfe8da 0 28%, transparent 30%),
    conic-gradient(from 0deg, #1f3a2e 0 12%, transparent 12% 50%, #1f3a2e 50% 62%, transparent 62%);
  animation: ds-loc-bike-spin 0.45s linear infinite;
}

.ds-loc-bike.is-arrived .ds-loc-bike__wheel {
  animation: none;
}

.ds-loc-bike__wheel--r {
  left: 2px;
}

.ds-loc-bike__wheel--f {
  right: 2px;
}

.ds-loc-bike__frame {
  position: absolute;
  left: 8px;
  top: 10px;
  width: 20px;
  height: 8px;
  border: 2px solid #2f9e6a;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  transform: skewX(-18deg);
}

.ds-loc-bike__seat {
  position: absolute;
  left: 10px;
  top: 7px;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: #1f3a2e;
}

.ds-loc-bike__handle {
  position: absolute;
  right: 7px;
  top: 5px;
  width: 2px;
  height: 8px;
  background: #1f3a2e;
  border-radius: 1px;
}

.ds-loc-bike__handle::after {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 2px;
  background: #1f3a2e;
  border-radius: 1px;
}

.ds-loc-bike__rider {
  position: absolute;
  left: 14px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c5b29d;
  box-shadow: 0 7px 0 -1px #8a735a;
}

@keyframes ds-loc-bike-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

@keyframes ds-loc-bike-spin {
  to {
    transform: rotate(360deg);
  }
}

.ds-loc-walker {
  --ds-hop: 380ms;
  position: relative;
  width: 32px;
  height: 44px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 4px rgba(20, 36, 75, 0.38));
}

.ds-loc-walker.is-flip {
  transform: scaleX(-1);
}

.ds-loc-walker__shadow {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 20px;
  height: 5px;
  margin-left: -10px;
  background: rgba(20, 36, 75, 0.24);
  border-radius: 50%;
  animation: ds-walker-shadow calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker__body {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 5px;
  transform-origin: 50% 100%;
  animation: ds-walker-skip calc(var(--ds-hop) * 2) cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.ds-loc-walker__head {
  position: absolute;
  top: 1px;
  left: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8b882 0%, #d4a574 100%);
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 3;
  animation: ds-walker-head calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker__head::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 3px;
  width: 8px;
  height: 3px;
  background:
    radial-gradient(circle at 2px 1.5px, #14244b 1.3px, transparent 1.4px),
    radial-gradient(circle at 6px 1.5px, #14244b 1.3px, transparent 1.4px);
}

.ds-loc-walker__head::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 3px;
  width: 8px;
  height: 4px;
  border-bottom: 1.5px solid #14244b;
  border-radius: 0 0 8px 8px;
}

.ds-loc-walker__torso {
  position: absolute;
  top: 14px;
  left: 10px;
  width: 12px;
  height: 13px;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(180deg, #e85d4a 0%, #cf4a38 100%);
  border: 1.5px solid #fff;
  box-sizing: border-box;
  z-index: 2;
}

.ds-loc-walker__arm,
.ds-loc-walker__leg {
  position: absolute;
  border-radius: 2px;
  transform-origin: top center;
  z-index: 1;
}

.ds-loc-walker__arm {
  top: 15px;
  width: 3px;
  height: 11px;
  background: linear-gradient(180deg, #e8b882 0%, #d4a574 100%);
}

.ds-loc-walker__arm--l {
  left: 7px;
  animation: ds-walker-arm-l calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker__arm--r {
  left: 20px;
  animation: ds-walker-arm-r calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker__leg {
  top: 26px;
  width: 4px;
  height: 12px;
  background: #3d4f6f;
  border-radius: 2px 2px 3px 3px;
}

.ds-loc-walker__leg--l {
  left: 10px;
  animation: ds-walker-leg-l calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker__leg--r {
  left: 16px;
  animation: ds-walker-leg-r calc(var(--ds-hop) * 2) ease-in-out infinite;
}

.ds-loc-walker.is-arrived .ds-loc-walker__shadow,
.ds-loc-walker.is-arrived .ds-loc-walker__body,
.ds-loc-walker.is-arrived .ds-loc-walker__head,
.ds-loc-walker.is-arrived .ds-loc-walker__arm--l,
.ds-loc-walker.is-arrived .ds-loc-walker__arm--r,
.ds-loc-walker.is-arrived .ds-loc-walker__leg--l,
.ds-loc-walker.is-arrived .ds-loc-walker__leg--r {
  animation: none;
}

@keyframes ds-walker-skip {
  0%,
  50%,
  100% {
    transform: translateY(0) scaleY(1.04);
  }
  25% {
    transform: translateY(-12px) scaleY(0.92);
  }
  75% {
    transform: translateY(-12px) scaleY(0.92);
  }
}

@keyframes ds-walker-shadow {
  0%,
  50%,
  100% {
    transform: scaleX(1);
    opacity: 0.28;
  }
  25%,
  75% {
    transform: scaleX(0.55);
    opacity: 0.1;
  }
}

@keyframes ds-walker-leg-l {
  0%,
  50%,
  100% {
    transform: rotate(10deg);
  }
  25% {
    transform: rotate(-52deg);
  }
  75% {
    transform: rotate(18deg);
  }
}

@keyframes ds-walker-leg-r {
  0%,
  50%,
  100% {
    transform: rotate(-10deg);
  }
  25% {
    transform: rotate(18deg);
  }
  75% {
    transform: rotate(52deg);
  }
}

@keyframes ds-walker-arm-l {
  0%,
  50%,
  100% {
    transform: rotate(32deg);
  }
  25% {
    transform: rotate(-58deg);
  }
  75% {
    transform: rotate(32deg);
  }
}

@keyframes ds-walker-arm-r {
  0%,
  50%,
  100% {
    transform: rotate(-32deg);
  }
  25% {
    transform: rotate(58deg);
  }
  75% {
    transform: rotate(-32deg);
  }
}

@keyframes ds-walker-head {
  0%,
  50%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-10deg) translateY(-1px);
  }
  75% {
    transform: rotate(10deg) translateY(-1px);
  }
}

.ds-loc-car {
  position: relative;
  width: 28px;
  height: 44px;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 2px 4px rgba(20, 36, 75, 0.45));
  will-change: transform;
}

.ds-loc-car.is-flip {
  transform: none;
}

.ds-loc-car__body {
  position: absolute;
  inset: 0;
}

.ds-loc-car.is-arrived .ds-loc-car__body {
  filter: none;
}

/* Widok z góry — przód u góry */
.ds-loc-car__chassis {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  bottom: 3px;
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(180deg, #3a5f8f 0%, #2f4f78 55%, #243e5f 100%);
  border: 1.5px solid #fff;
  box-sizing: border-box;
}

.ds-loc-car__hood {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 5px;
  height: 9px;
  border-radius: 6px 6px 2px 2px;
  background: rgba(255, 255, 255, 0.18);
}

.ds-loc-car__windshield {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 13px;
  height: 7px;
  border-radius: 2px;
  background: #9ec4ef;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-sizing: border-box;
}

.ds-loc-car__cabin {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 20px;
  height: 10px;
  border-radius: 2px;
  background: rgba(20, 36, 75, 0.22);
}

.ds-loc-car__trunk {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  height: 6px;
  border-radius: 2px 2px 4px 4px;
  background: rgba(255, 255, 255, 0.12);
}

.ds-loc-car__wheel {
  position: absolute;
  width: 5px;
  height: 9px;
  border-radius: 2px;
  background: #1a1a1a;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.ds-loc-car__wheel--fl {
  left: 1px;
  top: 9px;
}

.ds-loc-car__wheel--fr {
  right: 1px;
  top: 9px;
}

.ds-loc-car__wheel--rl {
  left: 1px;
  bottom: 8px;
}

.ds-loc-car__wheel--rr {
  right: 1px;
  bottom: 8px;
}

.ds-loc-car.is-arrived .ds-loc-car__wheel {
  opacity: 0.95;
}













@keyframes ds-loc-walk-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes ds-loc-swing-a {
  0%,
  100% {
    transform: rotate(28deg);
  }
  50% {
    transform: rotate(-28deg);
  }
}

@keyframes ds-loc-swing-b {
  0%,
  100% {
    transform: rotate(-28deg);
  }
  50% {
    transform: rotate(28deg);
  }
}

.ds-loc-route-meta {
  color: #6e5230;
  font-weight: 600;
}

.ds-loc-site {
  background: #fff;
  color: #14244b;
  border: 2px solid #c5b29d;
  border-radius: 4px;
  padding: 6px 10px 5px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  box-shadow: 0 3px 12px rgba(10, 16, 51, 0.22);
  white-space: nowrap;
}

.ds-loc-site small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: #5a6478;
}

.ds-loc-area {
  background: rgba(90, 130, 90, 0.18);
  color: #2f5a36;
  border: 1px solid rgba(47, 90, 54, 0.35);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ds-location-map__footer {
  margin: 20px 0 10px;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ds-loc-muted);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .ds-location-map__footer {
    font-size: 16px;
    padding: 0 12px;
  }
}

.ds-location-map__distances {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px 16px !important;
}

.ds-location-map__distances li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px;
  color: var(--ds-loc-ink);
}

.ds-location-map__distances li::before {
  content: none !important;
}

.ds-location-map__distances strong {
  color: var(--ds-loc-accent);
  margin-right: 4px;
}

.ds-location-map .leaflet-popup-content-wrapper {
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10, 16, 51, 0.18);
}

.ds-location-map .leaflet-popup-content {
  margin: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
}

/* Dymki z cienką przerywaną linią od pinezki */
.ds-loc-callout-wrap,
.ds-loc-callout-dot-wrap {
  background: transparent !important;
  border: 0 !important;
}

/* Leaflet ustawia inline width/height z iconSize — bez tego dymek zwija się w kolumnę 1px */
.ds-location-map .leaflet-marker-icon.ds-loc-callout-wrap,
.ds-loc-callout-wrap {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.ds-loc-callout {
  position: relative;
  width: max-content;
  max-width: 240px;
  filter: drop-shadow(0 4px 14px rgba(20, 36, 75, 0.2));
  pointer-events: none;
}

/* Kotwica (0,0) = koniec linii; dymek przesunięty tak, by ogonek siedział na tym punkcie */
.ds-loc-callout-wrap--tr .ds-loc-callout {
  transform: translate(8px, calc(-100% - 8px));
}

.ds-loc-callout-wrap--tl .ds-loc-callout {
  transform: translate(calc(-100% - 8px), calc(-100% - 8px));
}

.ds-loc-callout-wrap--br .ds-loc-callout {
  transform: translate(8px, 8px);
}

.ds-loc-callout-wrap--bl .ds-loc-callout {
  transform: translate(calc(-100% - 8px), 8px);
}

.ds-loc-callout__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(197, 178, 157, 0.7);
  border-radius: 8px;
  padding: 10px;
  width: 240px;
  max-width: 240px;
  overflow: visible;
  color: #14244b;
}

.ds-loc-callout__body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.ds-loc-callout__num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8f6a3f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(20, 36, 75, 0.25);
}

.ds-loc-callout__num--ev {
  background: #0f766e;
}

.ds-loc-callout__num--ski {
  background: #1d4ed8;
}

.ds-loc-callout__num--site {
  background: #3a3a3a;
}

.ds-loc-callout__text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}

.ds-location-map .ds-loc-callout__text strong,
.ds-loc-callout__text strong {
  display: block !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.01em;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: none;
}

.ds-location-map .ds-loc-callout__text small,
.ds-loc-callout__text small {
  display: block !important;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  color: #5a6478;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.ds-location-map .ds-loc-callout__img,
.ds-loc-callout__img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 160px !important;
  object-fit: contain !important;
  object-position: center center !important;
  flex: 0 0 auto !important;
  border-radius: 6px;
  margin: 0 !important;
  background: #fff;
  border: 1px solid rgba(20, 36, 75, 0.08);
}

.ds-location-map .ds-loc-callout__img--logo,
.ds-loc-callout__img--logo {
  max-height: 88px !important;
  padding: 8px 10px;
  box-sizing: border-box;
}

.ds-loc-callout__tail {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-right: 1px solid rgba(197, 178, 157, 0.7);
  border-bottom: 1px solid rgba(197, 178, 157, 0.7);
  transform: rotate(45deg);
}

.ds-loc-callout--tr .ds-loc-callout__tail {
  left: 12px;
  bottom: -5px;
}

.ds-loc-callout--tl .ds-loc-callout__tail {
  right: 12px;
  bottom: -5px;
}

.ds-loc-callout--br .ds-loc-callout__tail {
  left: 12px;
  top: -5px;
  transform: rotate(225deg);
}

.ds-loc-callout--bl .ds-loc-callout__tail {
  right: 12px;
  top: -5px;
  transform: rotate(225deg);
}

.leaflet-overlay-pane path.ds-loc-callout-line {
  stroke-width: 1px !important;
  stroke-opacity: 0.95 !important;
  stroke-linecap: round;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
}

.leaflet-overlay-pane path.ds-loc-callout-line--poi {
  stroke: #6e5230 !important;
}

.leaflet-overlay-pane path.ds-loc-callout-line--ev {
  stroke: #0d9488 !important;
}

.leaflet-overlay-pane path.ds-loc-callout-line--ski {
  stroke: #2563eb !important;
}

.leaflet-overlay-pane path.ds-loc-callout-line--site {
  stroke: #3a3a3a !important;
  stroke-width: 2px !important;
  stroke-dasharray: 5 7;
}

.leaflet-overlay-pane path.ds-loc-callout-line--site.ds-loc-callout-line--animated,
.leaflet-overlay-pane path.ds-loc-callout-line--animated {
  animation: ds-loc-callout-dash 0.85s linear infinite;
}

@keyframes ds-loc-callout-dash {
  to {
    stroke-dashoffset: 24;
  }
}

.ds-location-map.ds-theme-dark .ds-loc-callout__inner {
  background: #1a222c;
  border-color: rgba(197, 178, 157, 0.45);
  color: #f2efe8;
}

.ds-location-map.ds-theme-dark .ds-loc-callout__text small {
  color: #b8b2a6;
}

.ds-location-map.ds-theme-dark .ds-loc-callout__tail {
  background: #1a222c;
  border-color: rgba(197, 178, 157, 0.45);
}

/* Ukryj całą mapę lokalizacji na telefonie (opcja w ustawieniach DS / hide_mobile="yes") */
@media (max-width: 782px) {
  .ds-location-map.ds-location-map--hide-mobile {
    display: none !important;
  }
}

@media (max-width: 820px) {
  .ds-location-map__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ds-location-map__legend {
    order: 2;
    border-right: 0;
    border-top: 1px solid var(--ds-loc-line);
    max-height: none;
  }

  .ds-location-map__legend-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .ds-location-map__legend-item {
    width: auto !important;
    border: 1px solid var(--ds-loc-line) !important;
    background: var(--ds-loc-chip) !important;
    border-radius: 999px !important;
    padding: 5px 10px 5px 5px !important;
    font-size: 12px !important;
  }

  .ds-location-map__canvas-wrap,
  .ds-location-map__canvas,
  .ds-location-map__canvas.leaflet-container {
    order: 1;
    min-height: 420px !important;
  }
}

/* Popup miejsca po dojechaniu — 5% góra/dół; boki 20% desktop / 5% tablet+telefon */
.ds-loc-place {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  --ds-loc-gal-cols: 3;
  --ds-loc-gal-gap: 10px;
  --ds-loc-gal-min-h: 120px;
  --ds-loc-gal-ratio: 4 / 3;
  --ds-loc-gal-fit: cover;
}

.ds-loc-place.is-open {
  display: block;
}

.ds-loc-place.is-open.is-entering {
  display: block;
}

.ds-loc-place__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 12, 0.55);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.ds-loc-place.is-open .ds-loc-place__backdrop {
  opacity: 1;
}

.ds-loc-place.is-entering .ds-loc-place__backdrop {
  animation: dsLocBackdropIn 0.85s ease both;
}

.ds-loc-place__route-wrap {
  position: relative;
  flex: 0 0 58%;
  min-height: 300px;
  max-height: 62%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ds-loc-place__route-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #5c4a32;
  letter-spacing: 0.02em;
}

.ds-loc-place__route-meta[hidden] {
  display: none !important;
}

.ds-loc-place__route-meta-text {
  line-height: 1.35;
}

.ds-loc-place.is-entering.is-route-ready .ds-loc-place__route-meta {
  animation: dsLocRouteMetaIn 0.62s cubic-bezier(0.22, 1.2, 0.36, 1) 0.48s both;
}

.ds-loc-place.is-entering.is-route-ready .ds-loc-place__route {
  animation: dsLocRouteMapIn 0.68s cubic-bezier(0.22, 1.15, 0.36, 1) 0.38s both;
}

.ds-loc-place.is-entering.is-route-ready .ds-loc-place__scroll {
  animation: dsLocPlaceContentIn 0.72s cubic-bezier(0.22, 1.1, 0.36, 1) 0.58s both;
}

@keyframes dsLocBackdropIn {
  0% {
    opacity: 0;
    background: rgba(18, 16, 12, 0);
    backdrop-filter: blur(0);
  }
  100% {
    opacity: 1;
    background: rgba(18, 16, 12, 0.62);
    backdrop-filter: blur(7px);
  }
}

@keyframes dsLocRouteMetaIn {
  0% {
    opacity: 0;
    transform: translateY(-22px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes dsLocRouteMapIn {
  0% {
    opacity: 0;
    transform: scale(0.82);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes dsLocPlaceContentIn {
  0% {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.ds-loc-place__dialog {
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: 20%;
  right: 20%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffaf4;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(20, 16, 10, 0.35);
  transform-origin: center center;
  will-change: transform, opacity;
}

.ds-loc-place.is-entering .ds-loc-place__dialog {
  animation: dsLocPlaceIn 1.05s cubic-bezier(0.22, 1.55, 0.28, 1) both;
}

@keyframes dsLocPlaceIn {
  0% {
    opacity: 0;
    transform: scale(0.38) translateY(110px);
    filter: blur(10px);
    box-shadow: 0 0 0 rgba(20, 16, 10, 0);
  }
  42% {
    opacity: 1;
    transform: scale(1.12) translateY(-18px);
    filter: blur(0);
    box-shadow: 0 48px 120px rgba(20, 16, 10, 0.5);
  }
  62% {
    transform: scale(0.94) translateY(10px);
    box-shadow: 0 20px 60px rgba(20, 16, 10, 0.32);
  }
  78% {
    transform: scale(1.04) translateY(-5px);
  }
  92% {
    transform: scale(0.98) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    box-shadow: 0 28px 80px rgba(20, 16, 10, 0.35);
  }
}

.ds-loc-place__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.ds-loc-place__close:hover {
  background: #fff;
}

.ds-loc-place.is-entering .ds-loc-place__close {
  animation: dsLocCloseIn 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) 0.72s both;
}

@keyframes dsLocCloseIn {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ds-loc-place__route {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: #e8e4dc;
}

.ds-loc-place__route .leaflet-container {
  height: 100% !important;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  background: #e8e4dc;
}

.ds-loc-place__route .leaflet-pane,
.ds-loc-place__route .leaflet-map-pane {
  z-index: 0;
}

.ds-loc-place__route .ds-loc-route {
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(20, 36, 75, 0.35));
}

.ds-loc-place__route .ds-loc-route--walk,
.ds-loc-place__route .ds-loc-route--bike {
  stroke-dasharray: 6 8;
}

.ds-loc-place__route .ds-loc-route--drive,
.ds-loc-place__route .ds-loc-route--drive-plan {
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-loc-place__route .leaflet-overlay-pane {
  z-index: 450 !important;
}

.ds-loc-place__route .leaflet-marker-pane {
  z-index: 650 !important;
}

.ds-loc-place__route .ds-loc-route-arrow-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  opacity: 0;
  transition: opacity 0.14s ease-out;
}

.ds-loc-place__route .ds-loc-route-arrow-wrap.is-visible {
  opacity: 1 !important;
}

.ds-loc-route-arrow-wrap {
  background: transparent !important;
  border: 0 !important;
}

.ds-loc-route-arrow-svg {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95));
  pointer-events: none;
  user-select: none;
}

.ds-loc-place__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 28px 32px;
  position: relative;
  z-index: 2;
  background: #fffaf4;
}

.ds-loc-place__title {
  margin: 0 0 12px;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #14244b;
}

.ds-loc-place__content {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #24314a;
}

.ds-loc-place__content p {
  margin: 0 0 0.85em;
}

.ds-loc-place__content p:last-child {
  margin-bottom: 0;
}

.ds-loc-place__logo {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.ds-loc-place__logo img {
  max-width: min(280px, 70%);
  max-height: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.ds-loc-place__gallery {
  margin-top: 18px;
}

.ds-loc-place__gallery[hidden] {
  display: none !important;
}

.ds-loc-place__gallery-head {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #14244b;
  letter-spacing: 0.02em;
}

.ds-loc-place__gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--ds-loc-gal-cols, 3), minmax(0, 1fr));
  gap: var(--ds-loc-gal-gap, 10px);
}

.ds-loc-place__gallery button {
  display: block;
  padding: 0;
  border: 0;
  background: #efebe3;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: var(--ds-loc-gal-ratio, 4 / 3);
  min-height: var(--ds-loc-gal-min-h, 120px);
}

.ds-loc-place--gal-ratio-auto .ds-loc-place__gallery button {
  aspect-ratio: auto;
  height: auto;
}

.ds-loc-place__gallery img {
  width: 100%;
  height: 100%;
  min-height: var(--ds-loc-gal-min-h, 120px);
  object-fit: var(--ds-loc-gal-fit, cover);
  display: block;
}

.ds-loc-place--gal-ratio-auto .ds-loc-place__gallery img {
  height: auto;
  min-height: var(--ds-loc-gal-min-h, 120px);
  max-height: min(280px, 42vh);
}

.ds-loc-place__lb {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.88);
  cursor: zoom-out;
}

.ds-loc-place__lb.is-open {
  display: flex;
}

.ds-loc-place__lb img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .ds-loc-place__dialog {
    left: 5%;
    right: 5%;
  }

  .ds-loc-place__route-wrap {
    flex: 0 0 52%;
    min-height: 240px;
    max-height: 55%;
  }
}

.ds-loc-place.ds-theme-dark .ds-loc-place__dialog {
  background: #1a222c;
  color: #f2efe8;
}

.ds-loc-place.ds-theme-dark .ds-loc-place__scroll {
  background: #1a222c;
}

.ds-loc-place.ds-theme-dark .ds-loc-place__title {
  color: #f2efe8;
}

.ds-loc-place.ds-theme-dark .ds-loc-place__content {
  color: #d8d2c8;
}

.ds-loc-place.ds-theme-dark .ds-loc-place__close {
  background: rgba(26, 34, 44, 0.92);
  color: #f2efe8;
}
