/* Map Container */
.dm-travel-map { 
    width: 100%; 
    background: #eee; 
    border-radius: 8px; 
    margin-bottom: 20px; 
    z-index: 1; 
    border: 1px solid #ddd; 
    position: relative; /* Ensure stacking context */
}

/* CRITICAL FIX: Override Theme Image Styles */
.leaflet-pane img, 
.leaflet-tile, 
.leaflet-marker-icon, 
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    width: auto;
    padding: 0;
    box-shadow: none;
}

/* Popup Styles */
.dm-map-popup { text-align: center; min-width: 150px; }
.dm-map-popup img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; margin-bottom: 5px; }
.dm-map-popup a { text-decoration: none; color: #333; font-weight: bold; }

/* Locate Button */
.dm-map-locate-btn { 
    background: #000; border: 2px solid rgba(0,0,0,0.2); border-radius: 4px; 
    padding: 5px 10px; font-weight: bold; cursor: pointer; font-size: 12px; 
    margin-left: 10px; margin-top: 10px; 
}
.dm-map-locate-btn:hover { background: #f4f4f4; color: #000; }

/* Itinerary Sequence Markers */
.dm-marker-seq {
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: 800;
    font-family: sans-serif;
    font-size: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}