body {
  margin: 0;
  background: linear-gradient(to top right, #480070, #090081, #000);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75dvh;
}

.iphone-frame {
  width: 100%;
  height: 75dvh;
  background-color: white;
  border: 5px solid #CFCFCF;
  border-radius: 40px;
  box-shadow: 4px 4px 1px #616161;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.search-bar {
  position: absolute;
  top: 60px;
  left: 20px;
  right: 20px;
  height: 60px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 30px;
  padding: 0 10px;
  box-sizing: border-box;
  box-shadow: 3px 3px 1px rgba(207, 207, 207, 0.438);
  z-index: 9999;
}

.search-icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  margin-left: 10px;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 22px;
  color: #480070;
  font-weight: bold;
  outline: none;
  height: 100%;
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.search-input::placeholder {
  color: #480070;
  opacity: 1;
}

#filter-button {
  position: absolute;
  top: 130px;
  left: 20px;
  background: white;
  border: none;
  padding: 8px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 1px rgba(207, 207, 207, 0.438);
  transition: background-color 0.3s ease;
  z-index: 9999;
}

#filter-button img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

#position-button {
  position: absolute;
  top: 130px;
  left: 80px;
  background: white;
  border: none;
  padding: 8px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 1px rgba(207, 207, 207, 0.438);
  transition: background-color 0.3s ease;
  z-index: 9999;
}

#position-button img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 12px;
}

#filter-panel {
  position: absolute;
  top: -1000px; /* Start versteckt oberhalb */
  height: 170px;
  width: 100%;
  background: white;
  border-radius: 15px;
  box-shadow: 3px 3px 1px rgba(207, 207, 207, 0.438);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 5px;
  z-index: 99999;
  transition: top 0.4s ease;
}

#filter-panel.visible {
  top: 0;
}

#filter-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 99998;
}

.hidden {
  display: none;
}

.filter-title {
  font-size: 18px;
  font-weight: bold;
  color: #480070;
  text-align: center;
  margin-top: 50px;
}

.filter-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.filter-label {
  font-size: 12px;
  color: #480070;
  font-weight: bold;
}

#filter-buttons {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
}

.filter-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
}

.filter-btn img {
  width: 100%;
  max-height: 25px;
  border-radius: 13px;
}

#filter-close {
  background: none;
  border: none;
  width: 70px;
  height: 20px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: bold;
  line-height: 12px;
  cursor: pointer;
  margin-bottom: 2px;
  user-select: none;
  align-self: center;
  color: #480070;
}

#map {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  bottom: 60px;
  z-index: 0;
}

#scroll-panel {
  position: absolute;
  top: 55.5%;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 5px rgba(207, 207, 207, 0.438);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

#panel-handle {
  width: 40px;
  height: 6px;
  background-color: rgba(207, 207, 207, 0.438);
  border-radius: 3px;
  margin: 8px auto 6px;
  cursor: grab;
}

.panel-content {
  flex: 1;
  overflow-y: auto;
  box-sizing: border-box;
    padding-bottom: 80px; /* Platz über der bottom-nav */
}

.tile-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  margin: 25px;
}

.tile {
  flex: 1;
  overflow: hidden;
  box-shadow: 3px 3px 1px rgba(207, 207, 207, 0.438);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -15px;
  cursor: pointer;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.panel-content::-webkit-scrollbar {
  display: none; 
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #fff;
  border-top: 1px solid #480070;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-sizing: border-box;
  padding: 0 10px;
  z-index: 99999;
}

.nav-icon {
  width: 26px;
  height: 26px;
  margin-top: -10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-icon img {
  width: 100%;
  height: auto;
  transition: 0.2s ease;
  cursor: pointer;
}

.center-icon {
  width: 40px;
  height: 40px;
}

.center-icon :hover {
    transform: scale(1.1);
}