* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  overflow: hidden;
}

/* De kaart vult het hele scherm */
#map {
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

/* Plus knop */
.add-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.add-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.add-button:active {
  transform: scale(0.95);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

.modal-content h2 {
  color: #333;
  margin-bottom: 8px;
  font-size: 24px;
}

.uitleg {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #ff6b9d;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: #fff5f8;
}

.upload-zone:hover {
  border-color: #ff8a65;
  background: #fff0f5;
}

.upload-zone.dragover {
  border-color: #ff8a65;
  background: #ffe8ee;
  transform: scale(1.02);
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder svg {
  margin-bottom: 15px;
}

.upload-placeholder p {
  color: #333;
  font-size: 16px;
  margin-bottom: 8px;
}

.upload-placeholder .hint {
  color: #999;
  font-size: 12px;
}

.preview-image {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain;
}

.preview-image.hidden {
  display: none;
}

/* Submit knop */
.submit-btn {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 107, 157, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-loading.hidden {
  display: none;
}

.btn-text.hidden {
  display: none;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Resultaat */
.resultaat {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.resultaat.hidden {
  display: none;
}

.resultaat.success {
  background: #e8f5e9;
}

.resultaat.error {
  background: #ffebee;
}

.resultaat-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.resultaat.success .resultaat-icon::before {
  content: ' smile ';
}

.resultaat.error .resultaat-icon::before {
  content: ' sad ';
}

.resultaat-tekst {
  color: #333;
  font-size: 14px;
}

/* Foto popup op kaart */
.foto-popup {
  text-align: center;
  min-width: 200px;
}

.foto-popup img {
  width: 100%;
  max-width: 250px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.foto-popup .datum {
  color: #666;
  font-size: 12px;
}

/* Custom marker styling */
.lach-marker {
  background: none;
  border: none;
}

.lach-marker img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid #ff6b9d;
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.5);
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s;
}

.lach-marker img:hover {
  transform: scale(1.1);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 15px;
}

/* Titel op kaart */
.map-title {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-title h1 {
  font-size: 18px;
  color: #333;
  font-weight: 600;
}

.map-title .count {
  background: linear-gradient(135deg, #ff6b9d, #ff8a65);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Handmatige locatie sectie */
.manual-location {
  margin-top: 20px;
  padding: 15px;
  background: #fff5f8;
  border-radius: 12px;
  border: 1px solid #ff6b9d;
}

.manual-location.hidden {
  display: none;
}

.location-title {
  color: #333;
  font-size: 14px;
  margin-bottom: 12px;
  font-weight: 500;
}

.location-inputs {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #ff6b9d;
}

.location-hint {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

/* Responsive */
@media (max-width: 600px) {
  .modal-content {
    padding: 20px;
    margin: 10px;
  }
  
  .modal-content h2 {
    font-size: 20px;
  }
  
  .upload-zone {
    padding: 20px;
  }
  
  .map-title {
    bottom: 20px;
    padding: 10px 18px;
  }
  
  .map-title h1 {
    font-size: 14px;
  }
}

/* Pause overlay */
.pause-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.pause-overlay.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pause-content {
  text-align: center;
  padding: 40px;
}

.pause-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.pause-content h1 {
  color: #ffd93d;
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(255, 217, 61, 0.3);
}

.pause-content p {
  color: white;
  font-size: 1.4rem;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .pause-logo {
    width: 100px;
    height: 100px;
  }
  
  .pause-content h1 {
    font-size: 2rem;
  }
  
  .pause-content p {
    font-size: 1.1rem;
  }
}