/* ../assets/css/contact.css */

body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #697367;
  color: #fff;
}

* {
  box-sizing: border-box;
}

.wrapper {
  width: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: 100px auto 0;
}

#map {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 700px;
  margin-top: 10px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px 5px #464d45;
  background: #464d457e;
  z-index: 1;
}

.top-bar {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.add {
  background: #464d45;
  color: #fff;
  padding: 5px;
  margin-bottom: 5px;
  font-size: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.add:hover {
  background: #323631;
}

.leaflet-popup-content {
  max-width: 250px;
  max-height: 250px;
  overflow: auto;
  margin: 13px 4px 8px 20px;
  padding: 0 20px 0 0;
}

.leaflet-popup-content h2 {
  margin-bottom: 10px;
}

#edit-marker-popup::-webkit-scrollbar,
.leaflet-popup-content::-webkit-scrollbar {
  width: 8px;
}

#edit-marker-popup::-webkit-scrollbar-track,
.leaflet-popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#edit-marker-popup::-webkit-scrollbar-thumb,
.leaflet-popup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

#edit-marker-popup::-webkit-scrollbar-thumb:hover,
.leaflet-popup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.image-gallery,
#edit-marker-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container img,
.image-gallery img {
  max-height: 100px;
  max-width: 200px;
  width: auto;
  margin-bottom: 10px;
}

#image-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-popup img {
  max-width: 80%;
  height: auto;
  border-radius: 5px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#image-popup .corner {
  position: absolute;
  display: flex;
  align-items: center;
  top: 5px;
  right: 10px;
  font-size: 20px;
  color: #fff;
}

#add-marker-popup,
#edit-marker-popup {
  width: 50%;
  max-width: 400px;
  background-color: #697367;
  color: #fff;
}

#edit-marker-popup {
  width: 400px;
  height: 650px;
  overflow: auto;
}

#add-marker-form,
#edit-marker-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 50%;
}

.form-group + .form-group {
  padding-top: 10px;
  border-top: 1px solid #697367;
}

.form-group {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  padding-bottom: 10px;
}

.popup-head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popup-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px;
}

#no-link {
  text-decoration: none;
  color: #000;
}

.edit-button:hover,
#no-link:hover {
  color: #0000ff;
}

.edit-delete-buttons {
  display: flex;
  align-items: center;
}

.edit-button,
.delete-button {
  background: none;
  border: none;
  cursor: pointer;
}

.edit-button {
  margin-right: 10px;
}

.image-counter {
  align-self: self-end;
}

.close-button {
  background-color: transparent;
  padding: 0;
  margin-left: 10px;
  border: none;
  cursor: pointer;
}

#add-marker-form button,
#edit-marker-form button {
  align-self: center;
  width: 100%;
  padding: 4px 6px;
  cursor: pointer;
  background-color: #464d45;
  border: none;
  border-radius: 4px;
  color: #fff;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.file-input-wrapper {
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

#edit-fotos,
#fotos {
  width: 100%;
  background-color: #464d45;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#edit-file-upload-button:hover,
#edit-fotos:hover,
#file-upload-button:hover,
#fotos:hover {
  background-color: #323631;
}

.image-container {
  position: relative;
  display: inline-block; /* Toegevoegd */
}

.remove-photo-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #fa0000;
  cursor: pointer;
}

.image-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prev-button,
.next-button {
  color: white;
  padding: 5px 10px;
  border-radius: 50%;
}

.prev-button {
  margin-left: 10px;
}

.next-button {
  margin-right: 10px;
}

.nav-button {
  cursor: pointer;
}

.nav-button:hover {
  font-size: 32px;
}

@media (max-width: 768px) {
  #map {
    width: 100%;
    height: 300px;
  }

  .leaflet-popup-content {
    width: 200px;
    height: 150px;
    overflow: auto;
  }

  .leaflet-popup-content h1 {
    font-size: 1rem;
  }

  .leaflet-popup-content h2 {
    font-size: 0.8rem;
  }

  .image-gallery img {
    max-height: 75px;
    max-width: 100px;
    width: auto;
    margin-bottom: 10px;
  }
}

.leaflet-popup-close-button {
  display: none;
}
