/* ==========================================================================
   Dubai Interactive Map - English Road & Street Names (since 1.3.2)
   Plain map-style road/street text drawn over the satellite imagery by
   public/js/map-labels.js. Labels are intentionally not boxed or highlighted;
   they appear progressively by road class as the map is zoomed in.
   ========================================================================== */

.leaflet-dubaiMapLabels-pane {
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.leaflet-dubaiMapLabels-pane.dm-road-labels--zooming {
  opacity: 0;
  transition: none;
}

.dm-road-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-family: var(--font-main, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 5px rgba(0,0,0,.75);
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: dmRoadLabelIn 0.18s ease-out both;
}

.dm-road-label--major {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255,255,255,.96);
}

.dm-road-label--minor {
  font-size: 9.5px;
  font-weight: 450;
  color: rgba(255,255,255,.86);
}

.dm-road-labels-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
}

.dm-road-labels-measure .dm-road-label {
  animation: none;
}

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

/* Data credit required by OpenFreeMap / OpenStreetMap; shown only with the names. */
.dm-road-labels-credit {
  display: none !important;
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 800;
  max-width: calc(100% - 20px);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 23, 31, 0.62);
  color: rgba(245, 246, 250, 0.78);
  font-family: var(--font-main, 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: auto;
}

.dm-road-labels-credit a {
  color: inherit;
  text-decoration: none;
}

.dm-road-labels-credit a:hover,
.dm-road-labels-credit a:focus-visible {
  color: var(--primary-gold, #e2ca8d);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .dm-road-label {
    font-size: 10.5px;
  }

  .dm-road-label--major {
    font-size: 11px;
  }

  .dm-road-label--minor {
    font-size: 10px;
  }

  /* Sit above the bottom filter dock on phones and tablets. */
  .dm-road-labels-credit {
    left: 8px;
    bottom: 58px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-road-label {
    animation: none;
  }

  .leaflet-dubaiMapLabels-pane {
    transition: none;
  }
}
