.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -24px 0 22px;
}
.map-filter {
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s;
}
.map-filter span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 50%;
  background: #fff;
}
.map-filter:hover,
.map-filter:focus-visible,
.map-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  outline: 0;
}
.map-filter.active span { color: var(--ink); }
.map-canvas { cursor: grab; touch-action: none; outline: none; }
.map-canvas:focus-visible { box-shadow: inset 0 0 0 3px var(--orange); }
.map-canvas.dragging { cursor: grabbing; }
.map-world { position: absolute; inset: 0; transform-origin: center; will-change: transform; }
.map-world svg { position: absolute; inset: 0; }
.map-controls {
  position: absolute;
  z-index: 6;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 5px 18px #17372f20;
}
.map-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
}
.map-controls button:last-child { border: 0; }
.map-controls button:hover,
.map-controls button:focus-visible { background: var(--ink); color: #fff; outline: 0; }
.map-card[hidden] { display: none !important; }
.map-card {
  top: auto;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: minmax(190px,42%) 1fr;
  width: min(580px,calc(100% - 48px));
  height: 220px;
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(23,55,47,.1);
  border-radius: 3px;
  box-shadow: 0 16px 42px rgba(23,55,47,.18);
  animation: map-card-in .42s cubic-bezier(.22,.7,.24,1);
}
.map-card > img { width: 100%; height: 100%; object-fit: cover; }
.map-card > div { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 22px 28px; }
.map-card h3 { margin: 5px 0 8px; font-size: 32px; line-height: 1; }
.map-card p { display: -webkit-box; overflow: hidden; margin: 4px 0 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.map-card .map-close { z-index: 2; box-shadow: 0 4px 14px rgba(23,55,47,.14); }
.map-card .map-close { cursor: pointer; }
.pin { transition: opacity .2s; }
.pin[hidden] { display: none; }
.pin:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.pin.active i { background: #fff; border-color: var(--orange); box-shadow: 0 0 0 6px #c96c3c40; }
.map-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.map-card a { display: inline-block; margin-top: 8px; border-bottom: 1px solid var(--ink); }
.map-shell { background: transparent; }
.map-shell .real-map { inset: 78px 0 0; background: #eef0e9; cursor: grab; z-index: 1; }
.map-shell .real-map::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  background:
    linear-gradient(90deg,#eef0e9 0,transparent 4%,transparent 96%,#eef0e9 100%),
    linear-gradient(180deg,#eef0e9 0,transparent 5%,transparent 95%,#eef0e9 100%);
}
.map-shell .map-top { left: 38px; top: 20px; }
.real-map:active { cursor: grabbing; }
.real-map .leaflet-tile-pane {
  filter: grayscale(.82) sepia(.2) hue-rotate(68deg) saturate(.62) brightness(1.07) contrast(.9);
  transform: translateZ(0);
}
.real-map .leaflet-tile { outline: 1px solid transparent; }
.real-map .leaflet-bar {
  border: 1px solid rgba(23,55,47,.18);
  box-shadow: none;
}
.real-map .leaflet-bar a {
  border-color: rgba(23,55,47,.12);
  background: rgba(255,255,255,.92);
}
.real-map .leaflet-control-zoom a { color: var(--ink); }
.real-map .leaflet-control-attribution { font-size: 9px; line-height: 14px; }
.real-map .leaflet-bottom.leaflet-right { right: auto; left: 0; }
.real-map .leaflet-control-attribution svg {
  position: static;
  width: 12px;
  height: 8px;
  vertical-align: baseline;
}
.destination-marker { position: relative; border: 0; background: transparent; }
.destination-marker span {
  position: relative;
  z-index: 2;
  display: block;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 4px 15px rgba(23,55,47,.38),0 0 0 2px var(--orange);
  transition: transform .34s cubic-bezier(.22,.7,.24,1),box-shadow .34s cubic-bezier(.22,.7,.24,1);
}
.destination-marker span img { width: 100%; height: 100%; object-fit: cover; }
.destination-marker > i {
  position: absolute;
  z-index: 1;
  left: 17px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-width: 0 2px 2px 0;
  background: var(--orange);
  box-shadow: 3px 3px 7px rgba(23,55,47,.2);
  transform: rotate(45deg);
}
.destination-marker > b {
  position: absolute;
  left: 50%;
  top: -29px;
  padding: 4px 7px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  font: 700 8px/1.2 Manrope,sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,5px);
  transition: opacity .3s ease,transform .3s cubic-bezier(.22,.7,.24,1);
}
.destination-marker:hover span,
.destination-marker:focus span,
.destination-marker.is-active span { transform: translateY(-3px) scale(1.08); box-shadow: 0 5px 18px rgba(23,55,47,.42),0 0 0 4px rgba(201,108,60,.28); }
.destination-marker:hover > b,
.destination-marker:focus > b,
.destination-marker.is-active > b { opacity: 1; transform: translate(-50%,0); }
.map-reset {
  display: block;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: 700 18px/30px Manrope, sans-serif;
}
.map-reset:hover,
.map-reset:focus-visible { background: var(--ink); color: #fff; outline: 0; }
.map-loading {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%,-50%);
  margin: 0;
  padding: 13px 18px;
  background: #fff;
  box-shadow: 0 8px 30px #17372f22;
  font-size: 11px;
  white-space: nowrap;
}
.map-loading.error { color: #9d3f2d; }
@media (min-width: 901px) {
  .map-shell { height: clamp(620px,40vw,780px); }
}
@keyframes map-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .map-filters { margin-top: -32px; overflow: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .map-filter { white-space: nowrap; }
  .map-controls { left: 12px; bottom: 245px; }
  .pin small { display: none; }
  .pin:focus small,
  .pin.active small { display: block; }
  .map-card { left: 12px; right: 12px; bottom: 12px; z-index: 7; width: auto; height: 200px; grid-template-columns: 38% 1fr; }
  .map-card > div { padding: 18px 20px; }
  .map-card h3 { font-size: 27px; }
  .map-card p { -webkit-line-clamp: 2; }
  .map-shell .real-map { inset: 72px 0 0; }
  .map-shell .map-top { left: 18px; top: 15px; }
}
@media (max-width: 560px) {
  .map-card { height: 176px; grid-template-columns: 34% 1fr; }
  .map-card > div { padding: 15px 16px; }
  .map-card h3 { font-size: 24px; }
  .map-card p { display: none; }
  .map-card a { margin-top: 4px; }
}
