/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 *= require hotwire_combobox
 *= require terrafreight
 *= require pagy.tailwind
 */

/* Leaflet Map Styles */
/* Leaflet CSS is loaded via CDN in the view templates */

/* Custom Map Marker Styles */
.custom-marker {
  transition: transform 0.2s ease;
}

.custom-marker:hover {
  z-index: 10;
}

/* OpenStreetMap credit (utils/base_map.js). It must stay visible on the map;
   faded until hovered. Three classes outrank leaflet.css, which some pages
   load after this file. Its default link colour is blue. */
.leaflet-container .leaflet-bottom .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.5);
  color: #6b7280;
  font-size: 10px;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.leaflet-container .leaflet-bottom .leaflet-control-attribution:hover {
  opacity: 1;
}
.leaflet-container .leaflet-bottom .leaflet-control-attribution a {
  color: inherit;
}

/* Leaflet Popup Styles */
.leaflet-popup-content-wrapper {
  @apply rounded-lg shadow-xl border border-gray-200 p-4;
}

.leaflet-popup-close-button {
  @apply text-gray-400 hover:text-gray-600;
}

.rate-schedule-map-container {
  position: relative;
  z-index: 0;
}

.rate-schedule-map-container .leaflet-container {
  z-index: 0 !important;
}

.rate-schedule-map-container .leaflet-pane {
  z-index: 0 !important;
}

.rate-schedule-map-container .leaflet-control-container {
  z-index: 1 !important;
}

.rate-schedule-map-container .leaflet-popup-pane {
  z-index: 10 !important;
}
