/* Map container */
#map {
  height: calc(100vh - var(--map-height-offset));
  border-radius: var(--map-radius);
}

/* Popup-Layout */
.map-popup { max-width: var(--map-popup-max-width); }
.map-popup img { width: 100%; height: auto; border-radius: var(--map-popup-img-radius); }
.map-popup h6 { margin: .5rem 0 .25rem; }
.map-popup a { text-decoration: underline; }

/* Eigene Marker-Icons */
.custom-marker { background: transparent; border: none; }
.custom-marker i {
  font-size: var(--map-marker-size);
  line-height: var(--map-marker-size);
  filter: var(--map-marker-shadow);
}
.custom-marker.image-marker i { color: var(--map-marker-image); }
.custom-marker.blog-marker  i { color: var(--map-marker-blog); }

/* --- Search Row (wie Gallery) --- */
.search-row{
  display: flex;
  align-items: center;
  gap: var(--search-gap);
}

.search-with-clear { position: relative; }
.search-with-clear .search-input { padding-right: 2.5rem; }

.search-clear{
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
  width: var(--search-clear-size);
  height: var(--search-clear-size);
  border-radius: 50%;
  border: 1px solid var(--search-clear-border);
  background: transparent;
  color: var(--ui-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, color .15s ease, border-color .15s ease, background-color .15s ease, transform .05s ease;
}
.search-with-clear.has-value .search-clear{
  opacity: 1; visibility: visible; pointer-events: auto;
}
.search-clear:hover{
  color: var(--ui-hover);
  border-color: var(--ui-hover);
  background: var(--search-clear-bg-hover);
}
.search-clear:active{ transform: scale(.98); }

.search-submit{
  height: var(--search-submit-height);
  padding: 0 .9rem;
  font-weight: 600;
  border: 1px solid var(--ui-text);
  color: var(--ui-text);
  background: transparent;
  border-radius: var(--search-submit-radius);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.search-submit:hover{
  background-color: var(--ui-hover);
  border-color: var(--ui-hover);
  color: var(--ui-hover-text);
}
.search-submit:active{ transform: scale(.98); }

.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
