/* Force RTL */
@font-face {
    font-family: 'Cairo';
    src: url('assets/fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('assets/fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
.card,
.navbar,
.sidebar-link,
.dropdown-menu,
button,
input,
select,
textarea {
    font-family: 'Cairo', sans-serif !important;
}


body {
    direction: rtl;
    text-align: right;
    /* font-family: 'cairo-font', sans-serif; */

}

/* Sidebar */
.left-sidebar {
    right: 0;
    left: auto;
}

/* Main content */
.body-wrapper {
    margin-right: 260px;
    margin-left: 0;
}

/* Navbar */
.navbar-nav {
    padding-right: 0;
}

/* Dropdown menus */
.dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

/* Cards */
.card-title,
.card-subtitle {
    text-align: right;
    font-weight: bold;
    font-size: 22px;
}

/* Sidebar icons spacing */
.sidebar-link i {
    margin-left: 10px;
    margin-right: 0;
}

.dropdown-menu-end[data-bs-popper] {
    right: auto !important;
    left: -9px !important;
}

/* Active sidebar item */
.sidebar-item.active>.sidebar-link {
    background-color: #0d6efd;
    /* Flexy primary color */
    color: #fff;
    font-weight: 600;
    border-radius: 5px;
}

/* Change icon color for active item */
.sidebar-item.active>.sidebar-link i {
    color: #fff;
}

/* Hover effect for inactive items */
.sidebar-item>.sidebar-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

/* Keep active submenu visible */
.sidebar-item.active>ul.collapse {
    display: block !important;
}

/* Optional: add a small left border for active item */
.sidebar-item.active>.sidebar-link::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 100%;
    background-color: #fff;
    /* highlight bar color */
    margin-inline-end: 8px;
    /* RTL-friendly spacing */
    border-radius: 2px;
    vertical-align: middle;
}


.acf-field input[type=text],
.acf-field input[type=password],
.acf-field input[type=date],
.acf-field input[type=datetime],
.acf-field input[type=datetime-local],
.acf-field input[type=email],
.acf-field input[type=month],
.acf-field input[type=number],
.acf-field input[type=search],
.acf-field input[type=tel],
.acf-field input[type=time],
.acf-field input[type=url],
.acf-field input[type=week],
.acf-field textarea,
.acf-field select {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.acf-field input[type=text]:focus,
.acf-field input[type=password]:focus,
.acf-field input[type=date]:focus,
.acf-field input[type=datetime]:focus,
.acf-field input[type=datetime-local]:focus,
.acf-field input[type=email]:focus,
.acf-field input[type=month]:focus,
.acf-field input[type=number]:focus,
.acf-field input[type=search]:focus,
.acf-field input[type=tel]:focus,
.acf-field input[type=time]:focus,
.acf-field input[type=url]:focus,
.acf-field input[type=week]:focus,
.acf-field textarea:focus,
.acf-field select:focus

 {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}


.button-primary  {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    border-radius: .25rem;
    transition: color .15s 
ease-in-out, background-color .15s 
ease-in-out, border-color .15s 
ease-in-out, box-shadow .15s 
ease-in-out;
  color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.logo {
    /* Ensures the image never exceeds its original width */
    max-width: 30%;
    /* Allows the height to adjust automatically to maintain aspect ratio */
    height: auto;
    /* Optional: Ensures the image stays within the container's bounds */
    display: block;
}


.select2-container.-acf
 {
    z-index: 49 !important;
}

.acf-field .acf-label label{
    color: #000;
    /* font-weight: bold; */
    font-weight: 600 !important;
}

.txt-bold{font-weight: bolder;}





.map-marker {
    width: 42px;
    height: 42px;
    border: 4px solid #555;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 6px rgba(0,0,0,.4);
}

.map-marker img {
    width: 30px !important;
    height: 30px !important;
    /* object-fit: contain; */
     border-radius: 90%; /* Make the square corners round, creating a circle */
  object-fit: cover;

}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    font-size: 13px;
    max-width: 220px;
    z-index: 1000;
}

.map-legend h6 {
    margin-bottom: 8px;
    font-weight: bold;
}

.legend-section {
    margin-bottom: 10px;
}

.map-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.legend-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
}


.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    font-size: 13px;
    max-width: 220px;
    z-index: 1000;
}

.map-legend h6 { margin-bottom: 8px; font-weight: bold; }
.legend-section { margin-bottom: 10px; }
.map-legend ul { list-style: none; padding:0; margin:0; }
.map-legend li { display:flex; align-items:center; margin-bottom:6px; cursor:pointer; }
.legend-icon, .legend-color { width:18px; height:18px; margin-right:8px; }
.legend-color { border-radius:50%; }
.legend-disabled { opacity:0.4; }
