.muenchen-osm {
  width: 100%;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.muenchen-osm__layout {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.muenchen-osm__map-wrap {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #d8dee2;
  min-height: 540px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.muenchen-osm__map {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 540px;
  display: block;
  box-sizing: border-box;
}

.muenchen-osm__map.leaflet-container {
  width: 100%;
  height: 100%;
}

.muenchen-osm__sidebar {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muenchen-osm__sidebar h3 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #2f3b44;
  line-height: 1.2;
}

.muenchen-osm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muenchen-osm__list button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #0f1113;
  color: #ffffff;
  padding: 7px 12px;
  font-family: inherit;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.muenchen-osm__list button:hover,
.muenchen-osm__list button:focus-visible {
  background: #1a1d20;
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

.muenchen-osm__list button:disabled {
  cursor: default;
  opacity: 0.92;
}

.muenchen-osm__list button:disabled:hover,
.muenchen-osm__list button:disabled:focus-visible {
  background: #0f1113;
  border-color: rgba(255, 255, 255, 0.14);
  transform: none;
}

.muenchen-osm__list-title {
  display: block;
}

.muenchen-osm__list-status {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.muenchen-osm__note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(47, 59, 68, 0.18);
  background: rgba(255, 255, 255, 0.64);
  font-size: 0.92rem;
  color: #2f3b44;
  line-height: 1.35;
}

.muenchen-osm__note::before {
  content: "Hinweis:";
  font-weight: 700;
  margin-right: 6px;
}

.muenchen-osm .leaflet-tile {
  filter: grayscale(100%) saturate(0%) contrast(1.08) brightness(0.96);
}

.muenchen-osm .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.75);
  color: #4c5760;
  font-size: 10px;
}

.muenchen-osm .leaflet-popup-pane {
  z-index: 760;
}

.muenchen-osm .leaflet-popup {
  transform-origin: 50% 100%;
}

.muenchen-osm .leaflet-fade-anim .leaflet-popup {
  transition: none;
}

.muenchen-osm .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  background: #0b0b0b;
  color: #ffffff;
}

.muenchen-osm .leaflet-popup-tip {
  background: #0b0b0b;
}

.muenchen-osm .leaflet-popup-content {
  margin: 9px 11px;
  font-size: 13px;
  line-height: 1.35;
  color: #ffffff;
}

.muenchen-osm .leaflet-popup-content strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
}

.muenchen-osm .muenchen-osm-popup__status {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.muenchen-osm .leaflet-popup-content a {
  color: #ffffff;
  text-decoration: underline;
}

.muenchen-osm .muenchen-osm-popup__media {
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.muenchen-osm .muenchen-osm-popup__media img {
  display: block;
  width: 100%;
  height: 116px;
  object-fit: cover;
}

.muenchen-osm .muenchen-osm-popup__actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.muenchen-osm .muenchen-osm-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.muenchen-osm .leaflet-popup-content a.muenchen-osm-popup__btn,
.muenchen-osm .leaflet-popup-content a.muenchen-osm-popup__btn:hover,
.muenchen-osm .leaflet-popup-content a.muenchen-osm-popup__btn:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.muenchen-osm .muenchen-osm-popup__btn:hover,
.muenchen-osm .muenchen-osm-popup__btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.muenchen-osm .leaflet-popup.muenchen-osm-popup--morph .leaflet-popup-content-wrapper {
  transform-origin: 50% 50%;
  transform: translate(var(--morph-x, 0px), var(--morph-y, 0px))
    scale(var(--morph-scale-x, 1), var(--morph-scale-y, 1));
  border-radius: 6px;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.22, 1), border-radius 0.28s ease;
}

.muenchen-osm .leaflet-popup.muenchen-osm-popup--morph .leaflet-popup-tip-container {
  transform-origin: 50% 0%;
  transform: translate(var(--morph-x, 0px), var(--morph-y, 0px))
    scale(var(--morph-scale-x, 1), var(--morph-scale-y, 1));
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.22, 1), opacity 0.14s ease;
}

.muenchen-osm .leaflet-popup.muenchen-osm-popup--morph.is-morph-active .leaflet-popup-content-wrapper {
  transform: translate(0, 0) scale(1, 1);
  border-radius: 8px;
}

.muenchen-osm .leaflet-popup.muenchen-osm-popup--morph.is-morph-active .leaflet-popup-tip-container {
  transform: translate(0, 0) scale(1, 1);
  opacity: 1;
  transition-delay: 0.12s;
}

.muenchen-osm-marker-host {
  background: transparent;
  border: 0;
}

.muenchen-osm-marker {
  position: relative;
  width: 170px;
  height: 58px;
}

.muenchen-osm-marker__dot {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  background: #d84a35;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.28s ease;
}

.muenchen-osm-marker__label-wrap {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 0) scale(1);
  transform-origin: 50% 100%;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
  pointer-events: auto;
}

.muenchen-osm-marker__label-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #0b0b0b transparent transparent transparent;
}

.muenchen-osm-marker__label {
  display: inline-block;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 6px;
  background: #0b0b0b;
  color: #ffffff;
  font-weight: 700;
  font-size: 10px;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.muenchen-osm-marker-host.is-label-hidden .muenchen-osm-marker__label-wrap {
  display: none;
}

.muenchen-osm-marker-host.is-opening .muenchen-osm-marker__label-wrap,
.muenchen-osm-marker-host.is-open .muenchen-osm-marker__label-wrap {
  transform: translate(-50%, 0) scale(1);
  opacity: 0;
  filter: none;
}

.muenchen-osm-marker-host.is-closing .muenchen-osm-marker__label-wrap {
  transform: translate(-50%, 3px) scale(0.92);
  opacity: 0.2;
}

.muenchen-osm-marker-host.is-opening .muenchen-osm-marker__dot,
.muenchen-osm-marker-host.is-open .muenchen-osm-marker__dot {
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(216, 74, 53, 0.18);
}

@media (max-width: 1023px) {
  .muenchen-osm {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .muenchen-osm__layout {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .muenchen-osm__map-wrap {
    width: min(100%, calc(100vw - 32px));
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: none;
    margin-inline: auto;
  }

  .muenchen-osm__map {
    min-height: 0;
    height: 100%;
  }

  .muenchen-osm__sidebar h3 {
    font-size: 1.35rem;
  }
}
