html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#boatramp {
  width: 100%;
  height: 100%;
}

/* django-leaflet renders a <div id="ramps"> */
#ramps {
  width: 100%;
  height: 100%;
}

/* Search control */
#search-control {
  width: 25%;
  min-width: 250px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.4);
  padding: 8px;
}

#search-control .spinner {
  text-align: center;
  padding: 8px 0;
}

#search-results {
  max-height: 200px;
  overflow-y: auto;
}

#search-results ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

#search-results li {
  padding: 2px 0;
}

#search-results a {
  color: #333;
  text-decoration: none;
}

#search-results a:hover {
  text-decoration: underline;
}

/* Popup */
.leaflet-popup-content {
  min-width: 300px;
}

.leaflet-popup-content h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.popup-photo {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0.5rem;
  display: block;
}

.popup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.popup-grid .label {
  font-weight: bold;
}

.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.popup-actions a {
  color: #0066cc;
  text-decoration: none;
}

.popup-actions a:hover {
  text-decoration: underline;
}
