* {
    font-family: arian-amu;
    color: white;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #F1F1F1;
}

a {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-transform: none;
    color: unset;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
h1 b {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-weight: unset;
    color: #25364B;
}


#page-heading {
    position: relative;
    display: block;
    width: calc(100% - 44px);
    /* 44px is width of add button: filters.css */
    text-align: center;
    float: left;
}

#page-heading h1 {
    font-size: 24px;
    color: #00043C;
}

#dashboard-no-data {
    position: relative;
    display: block;
    text-align: center;
    font-size: 36px;
    color: #00043C;
}

/* Map part */
#map-block,
#map,
#map-route-stops {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    /* margin-bottom: 15px; */
    z-index: 1;
}

#map *,
#map-route-stops *,
.leaflet-routing-geocoder-result * {
    color: black !important;
}

.leaflet-control-attribution.leaflet-control {
    min-width: 150px;
}

.leaflet-control-layers-toggle {
    background-image: url('/img/leaflet/layers.png') !important;
    background-size: 42px 42px !important;
    background-position: center;
}

.leaflet-touch .leaflet-control-layers-toggle {
    width: 42px !important;
    height: 42px !important;
}

.leaflet-control-layers,
.leaflet-touch .leaflet-control-layers {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.leaflet-control-layers-toggle {
    background-color: transparent !important;
    box-shadow: none !important;
}

.leaflet-control-layers-expanded .leaflet-control-layers-list,
.leaflet-control-layers-expanded {
    background: #fff !important;
    border-radius: 4px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3) !important;
    padding: 10px;
    color: black !important;
}

.leaflet-control-layers-separator {
    display: none;
}

.leaflet-control-layers-list label span {
    color: #333 !important;
    font-size: 14px;
    font-family: Arial, sans-serif;
    font-weight: 500;
}

.leaflet-control-layers-list label:hover span {
    color: #007bff !important;
}

.leaflet-control-attribution {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 5px;
    padding: 2px 5px !important;
}

.leaflet-control-attribution span {
    display: inline-block;
}

/* Geocoder navigation block start */

.leaflet-routing-container {
    border: 1px solid #CECECE !important;
    border-radius: 9px !important;
    font-size: 19px !important;
    color: black !important;
    background: white !important;
}

.leaflet-routing-geocoder {
    display: flex;
    align-items: center;
}

.leaflet-routing-geocoder::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url('../img/markers/geocoder_end.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.leaflet-routing-geocoder:first-child:before {
    background-image: url('../img/markers/geocoder_start.png');
}

.leaflet-routing-geocoder input {
    border: none !important;
    outline: none !important;
    font-size: 18px !important;
}

.leaflet-routing-geocoder+.leaflet-routing-geocoder input {
    border-top: 1px solid #CECECE !important;
    /* margin-top: 10px !important;  */
    padding-top: 10px !important;
}

.leaflet-routing-alt,
.leaflet-routing-geocoders,
.leaflet-routing-error {
    padding: 6px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    border-bottom: none !important;
}

/* Geocoder navigation block end */

/* Map part end */

.flatpickr-calendar * {
    color: black;
}

.year-picker-mode .flatpickr-innerContainer,
.year-picker-mode .flatpickr-weekdayContainer {
    display: none;
}

.year-picker-mode .flatpickr-month {
    display: block;
}

.year-picker-mode .flatpickr-current-month .flatpickr-monthDropdown-months {
    display: none;
}

.year-picker-mode .numInputWrapper {
    width: 100% !important;
}

.year-picker-mode .flatpickr-calendar {
    width: auto;
}

.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.vertical-center {
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.horizontal-center {
    left: 50%;
    transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}

.transition {
    transition: .35s;
    -ms-transition: .35s;
    -webkit-transition: .35s;
    -moz-transition: .35s;
    -o-transition: .35s;
}

#alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    max-width: 90%;
    animation: slideInOut 5s ease-in-out forwards;
}

#alert-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-success #alert-block {
    background-color: #444694;
    color: #444694;
    border: 1px solid #444694;
}

.alert-error #alert-block {
    background-color: #ff818c;
    color: #721c24;
    border: 1px solid #ff818c;
}

#text-block {
    font-family: sans-serif;
    font-weight: 500;
}

#close-block {
    width: 18px;
    height: 18px;
    margin-left: 15px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#close-block:hover {
    opacity: 1;
}

#close-block svg {
    fill: currentColor;
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}

@keyframes slideInOut {
    0% {
        top: -100px;
        opacity: 0;
    }

    10% {
        top: 20px;
        opacity: 1;
    }

    90% {
        top: 20px;
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}