/* Map + modal styles for the Gokarn Tour Map route.
   Global layout/typography is handled by the Tailwind theme in index.php. */

/* Map container (height is set on the element in index.php) */
#map {
  width: 100%;
  z-index: 0;
}

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

.modal {
  display: none; /* Hidden by default, JS will change this to 'flex' */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  margin: 0;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.close:hover {
  color: black;
}

.modal-title {
  color: #14532d;
  margin-bottom: 20px;
  margin-top: 0;
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.photos-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ecf0f1;
}

.photos-grid img:hover {
  transform: scale(1.08);
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Custom marker style */
.custom-pin-marker {
  font-size: 38px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Leaflet popup customization */
.leaflet-popup-content {
  font-family: "Google Sans Flex", 'Segoe UI', sans-serif !important;
  min-width: 250px;
}

.leaflet-popup-content h3 {
  margin-top: 0;
  color: #14532d;
}

.leaflet-popup-content p {
  margin: 10px 0;
  color: #555;
}

.leaflet-attribution-flag {
  display: none !important;
}
