/* ===== MAPA PROVA SOCIAL ===== */
.mapa-card {
  background: rgba(0,168,107,0.06);
  border: 1px solid rgba(0,168,107,0.15);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

#map {
  width: 100%;
  height: 480px;
  border-radius: 18px;
}

/* popup */
.leaflet-popup-content {
  text-align: center;
}

.thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.thumbs img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* MODAL */
.modal-img {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-img img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 14px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* mobile */
@media (max-width: 600px) {
  #map {
    height: 360px;
  }

  .thumbs img {
    width: 90px;
    height: 70px;
  }
}
.map-instruction {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px; 
  background: var(--svb, #00A86B);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: pulseInstruction 2s infinite;
  transition: opacity 0.5s ease, transform 0.5s ease;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@keyframes pulseInstruction {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.map-instruction.hide {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.contribuir-mapa {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.contribuir-mapa h3 {
    color: #00A86B;
    margin-bottom: 20px;
}

#form-contribuir {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-end;
}

.upload-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    font-size: 14px;
}

.upload-group input, .upload-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    #form-contribuir {
        flex-direction: column;
        align-items: stretch;
    }
}

.video-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.video-player {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.video-player video {
  width: 100%;
  display: block;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
  transition: 0.3s;
}

.play-overlay svg {
  width: 70px;
  height: 70px;
  opacity: 0.9;
}

.controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: center;
  gap: 14px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--svb);
  border-radius: 4px;
}

.video-cta {
  background: linear-gradient(135deg, #f4fbf7, #ffffff);
  padding: 28px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}