.osm-poi-map {
  width: 100%;
}

.osm-poi-intro {
  margin-bottom: 2rem;
}

.osm-poi-intro h2 {
  margin-top: 0;
}

.osm-search {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 0.7fr auto auto;
  gap: 0.75rem;
  align-items: center;
  margin: 2rem 0 1rem;
}

.osm-search input,
.osm-search select,
.osm-search button {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bbb;
  background: #fff;
  box-sizing: border-box;
}

.osm-search button {
  cursor: pointer;
  font-weight: 700;
  border-color: #222;
  color:#666;
}

.osm-search button:hover {
  background: #222;
  color: #fff;
}

.osm-status {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

#osmMap {
  height: 560px;
  width: 100%;
  min-height: 380px;
}

/* Popup */

.osm-popup {
  width: 230px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.osm-popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.7rem;
}

.osm-popup-title {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.osm-popup-type {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.45rem;
}

.osm-popup p {
  margin: 0.45rem 0 0.7rem;
  line-height: 1.4;
}

.osm-popup-link {
  display: inline-block;
  margin-top: 0.2rem;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Leaflet Popup eckig passend zu deiner Seite */

.leaflet-popup-content {
  margin: 14px 16px;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 0;
}

/* Eigene Fähnchen / Marker */

.osm-marker {
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(45deg);
}

.osm-marker::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  left: 5px;
  top: 5px;
}

.osm-marker,
.osm-marker::after {
  border-radius: 50% 50% 50% 0;
}

.marker-baeckerei {
  background: #c98235;
}

.marker-supermarkt {
  background: #4b8f5a;
}

.marker-restaurant {
  background: #b24b3f;
}

.marker-bar {
  background: #6e4a8e;
}

.marker-camping {
  background: #2f6f73;
}

.marker-sehenswuerdigkeit {
  background: #58768a;
}

.marker-velo-service {
  background: #e00ca8;
}


.marker-toilette {
  background: #4ce00c;
}

.marker-standard {
  background: #777;
}

/* Standortmarker */

.osm-location-marker {
  width: 22px;
  height: 22px;
  background: #111;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

@media (max-width: 1050px) {
  .osm-search {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .osm-search {
    grid-template-columns: 1fr;
  }

  #osmMap {
    height: 430px;
  }
}

.osm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.osm-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.osm-filter-item.is-inactive {
  opacity: 0.45;
}

.osm-filter-all {
  font-weight: 700;
  padding-right: 0.8rem;
  margin-right: 0.2rem;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.osm-filter input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #a6a6a6;
}

.osm-legend-marker {
  width: 14px;
  height: 14px;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: rotate(45deg);
  border-radius: 50% 50% 50% 0;
}

@media (max-width: 650px) {
  .osm-filter-all {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }
}
