/* Boating control button styling */
.leaflet-control-boating-arrow {
  width: 30px;
  height: 30px;
  display: inline-block;
  background-image: url(images/assets/icon.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.leaflet-control-boating-arrow.following {
  background-image: url(images/assets/icon.following.svg);
}

.leaflet-control-boating-arrow.locating {
  background-image: url(images/assets/icon.locating.svg);
}

.leaflet-control-boating-arrow.requesting {
  background-image: url(images/assets/icon.requesting.svg);
  animation: spin 2s linear infinite;
}

/* Legend panel styling */
.leaflet-control-boating-legend {
  padding: 5px 8px;
  background: white;
}

.leaflet-control-boating-legend th {
  font-weight: normal;
  color: rgba(0, 0, 0, 0.7); /* FIXED: Changed rgb() to rgba() */
}

.leaflet-control-boating-legend td {
  text-align: center;
}

.leaflet-control-boating-legend td.double {
  font-size: large;
}

.leaflet-control-boating-legend td div.line {
  width: 50%;
  float: left;
  height: 3px;
  margin-top: 4px;
}

.leaflet-control-boating-legend td div.hours {
  width: 100%;
  float: left;
  display: flex;
  justify-content: space-between;
}

/* Boat marker icon */
.boat {
  background: transparent !important;
  border: none !important;
}

/* Spin animation for requesting state */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Icon preloading - FIXED: Moved to html element for better compatibility */
html::after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
  content: url(images/assets/icon.svg) url(images/assets/icon.locating.svg) url(images/assets/icon.following.svg) url(images/assets/icon.requesting.svg);
}
