[dir="rtl"] {
    direction: ltr !important;
}

[dir="rtl"] .unfold-sidebar {
    left: 0 !important;
    right: auto !important;
}

[dir="rtl"] .unfold-main-wrapper {
    margin-left: 280px !important;
    margin-right: 0 !important;
}

/* Fix for Django GeoDjango OSMWidget in django-unfold admin theme */
/* The map container needs explicit dimensions to display properly */
.django-leaflet-map,
.leaflet-container {
    height: 400px !important;
    width: 100% !important;
    min-height: 400px;
    position: relative;
}

/* Ensure the map wrapper is visible */
.dj_map_wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0;
}

.dj_map {
    height: 400px !important;
    width: 100% !important;
    min-height: 400px;
}
