:root {
    --text-color: rgb(7, 40, 129);
}

html {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    text-align: center;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: "Arial", sans-serif;
    color: var(--text-color);
    background-color: rgb(97, 97, 97);
    text-align: center;
}
/* 
.header-banner-title {
    text-align: center;
    color: var(--text-color);
    background-color: rgb(255, 255, 255) !important;
    margin-bottom: 0;
} */

.overlay-container {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.full-screen-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.redirect_login_btn {
    z-index: 2;
    font-size: 24px;
    padding: 10px 20px;
}

.redirect_login_btn a {
    text-decoration: none;
    color: white;
}

/* Image de fond */
.bg-accueil {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    object-fit: cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
    visibility: visible;
}

/* Masquer l'image */
.bg-accueil:not(.show) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Carte initialement masquée */
#map {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    opacity: 0; /* Carte masquée au début */
    transition: opacity 0.8s ease; /* Transition pour l'apparition */
}




/* Flouter la carte si l'utilisateur n'est pas connecté */
.overlay-container #map {
    filter: blur(10px); /* Appliquer un flou à la carte */
    pointer-events: none; /* Empêcher toute interaction */
}

.section-hidden-input {
    display: none;
    position:absolute;
    top: 0;
    left: 0;
}
.marker-cluster-small div {
    background-color: blue !important;
}

.marker-cluster span {
    color: white
}

.leaflet-popup-content-wrapper {
    background-color: #343846;
    border: thick double #03c9a9;
}
.leaflet-popup-content {
    text-align: center;
    color: white;
    /* color: var(--text-color); */
}
.leaflet-popup-content>p {
    color: #03c9a9;
}
.leaflet-popup-content>p>span>b {
    color: white;
}
.leaflet-popup-content>p>b {
    color: white;
}

.btn-success {
    background-color: #09ff00 !important;
}
.btn-info {
    border-radius: 50px !important;
    color : white !important;
    background-color: #03c9a9 !important;
}
.btn-ok {
    border-radius: 5px !important;
    color : white !important;
    background-color: #03c9a9 !important;
    font-weight: 600;
}
.btn-no {
    border-radius: 5px !important;
    color : white !important;
    background-color: #575757 !important;
    font-weight: 600;
}

.btn-call {
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
}
.btn-call a {
    text-decoration: none;
    font-weight: bold;
    color: var(--text-color);
}

.command {
    /* padding: 4px 6px; */
    background: white;
    /* font: 14px/16px Arial, Helvetica, sans-serif; */
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 80px;
}

.check-cat {
    margin-bottom: 5px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    cursor: pointer;
}

input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
}

.leaflet-control-layers-toggle,
#searchControl,
/* .leaflet-control-traffic, */
.leaflet-control-toggle-poi,
#routingControl,
#dispoFlash {
    width: 44px !important;
    height: 44px !important;
}



.leaflet-control-layers{
    /* margin-right: 17px !important; */
    border: none !important;    
    box-shadow: 1px 1px 8px rgb(0, 0, 0) !important;
}
.leaflet-control-layers-toggle {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 8px black;
    background-size: 30px 30px;
}
.leaflet-control-traffic {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 1px 1px 8px black;
    width: 44px !important;
    height: 30px;
    /* margin-right: 17px !important; */
}
.leaflet-control-toggle-poi {
    height: 44px !important;
    /* margin-right: 17px !important; */
}
.leaflet-control-layers-expanded {
    width: 126px !important; 
}
#searchControl {
    cursor: pointer;
    /* margin-right: 17px !important;  */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    box-shadow: 1px 1px 8px black;
}

#routingControl>img, #dispoFlash>img {
    background-color: #ccc;
    border-radius: 5px; color: white;
    width: 44px !important;
    /* margin-right: 5px !important; */
    border: none !important;
    /* filter: drop-shadow(1 1 15px rgba(0, 0, 0, 0.2)); */
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.8));
}

.command {
    background: none !important;
    box-shadow: none !important;
    /* background: rgba(255, 255, 255, 0); */
}

.label-cat {
    margin-top: 2px;
    height: 45px;
    width: 45px;
    background: #fd0123e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    box-shadow: 1px 1px 8px black;
}

input[type=checkbox]:checked+label {
    color: var(--text-color);
    height: 45px;
    width: 45px;
    background: #01b67a;
}



.chekbox-form {
    padding-left: 30%;
}

.icon-perso {
    width: 65px;
    height: 35px;
    z-index: 100;
}

.leaflet-tooltip {
    background-color: rgba(255, 255, 255, 0.8);
    border: none !important;
    /* color: green; */
    border-radius: 40px !important;
    font-weight: 900;
    /*font-size: 1.7em;
    */
    -webkit-border-radius: 40px !important;
    -moz-border-radius: 40px !important;
    -ms-border-radius: 40px !important;
    -o-border-radius: 40px !important;
    -webkit-border-radius: 40px !important;
}

.green {
    color: green;
}

.red {
    color: red;
}


/** ********** FORM + CHAMP VILLE *********** */

#formVille {
    width: 300px;
    justify-content: end;
    /* margin: 0 30px 10px; */
    /* padding-right: 20px; */
    position: absolute;
    right: 50px;
    top: 4px;
}
#champ-ville {
    max-width: 190px!important;
}

::-webkit-input-placeholder {
    text-align: center;
}

 :-moz-placeholder {
    /* Firefox 18- */
    text-align: center;
}

 ::-moz-placeholder {
    /* Firefox 19+ */
    text-align: center;
}

 :-ms-input-placeholder {
    text-align: center;
}


/** ********** SPINNER *********** */

/* Personnalisation des flèches haut et bas du spinner */
.ui-spinner-button {
    width: 30px !important; /* Largeur des boutons */
    height: 50% !important; /* Hauteur des boutons */
    background-color: #03c9a9 !important; /* Couleur de fond des boutons */
    border: none; /* Suppression des bordures */
    color: #fff; /* Couleur du texte */
}

.ui-spinner-button .ui-icon {
    background-color: #03c9a9 !important; /* Couleur de fond de l'icône */
    border: none !important;
    color: #fff !important; /* Couleur des flèches */
}

.ui-spinner {
    display: inline-flex;
}

.ui-spinner input {
    width: 50px; /* Ajuster la largeur selon les besoins */
    height: 50px; /* Ajuster la hauteur selon les besoins */
    text-align: center; /* Centrer le texte */
}

.ui-spinner-button {
    display: block !important; /* S'assurer que les boutons sont affichés */
    width: 20px; /* Largeur des boutons */
    height: 50%; /* Hauteur égale à celle de l'input */
    background-color: #03c9a9 !important; /* Couleur de fond */
    border: none !important; /* Supprimer les bordures */
}

.ui-spinner-button .ui-icon {
    background-color: #03c9a9 !important; /* Couleur de fond des icônes */
    width: 100%; /* S'assurer que les icônes remplissent les boutons */
    height: 50%; /* S'assurer que les icônes remplissent les boutons */
    display: block !important; /* S'assurer que les icônes sont affichées */
    color: #fff !important; /* Couleur des flèches */
}
.ui-spinner {
    position: relative;
    width: 100px; /* Ajuste la largeur pour laisser de l'espace aux flèches */
}

.ui-spinner-up {
    right: 0; /* Positionne la flèche du haut */
    border-bottom: 1px solid white !important; 
}

.ui-spinner-down {
    right: 0; /* Positionne la flèche du bas */
    border-top: 1px solid white !important; 
}

.ui-spinner-button .ui-icon {
    display: none;

}

/* Ajouter les icônes Font Awesome pour la flèche vers le haut */
.ui-spinner-up::before {
    font-family: 'Font Awesome 6 Free'; /* Spécifie la famille de police Font Awesome */
    font-weight: 900; /* Assure que l'icône est en version solid */
    content: '\f0d8'; /* Code Unicode de l'icône Font Awesome pour la flèche vers le haut */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* Couleur de la flèche */
}

/* Ajouter les icônes Font Awesome pour la flèche vers le bas */
.ui-spinner-down::before {
    font-family: 'Font Awesome 6 Free'; /* Spécifie la famille de police Font Awesome */
    font-weight: 900; /* Assure que l'icône est en version solid */
    content: '\f0d7'; /* Code Unicode de l'icône Font Awesome pour la flèche vers le bas */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* Couleur de la flèche */
}

/* S'assurer que les boutons sont affichés correctement */
.ui-spinner-button {
    width: 20px; /* Largeur des boutons */
    height: 50%; /* Hauteur des boutons */
    background-color: #03c9a9 !important; /* Couleur de fond des boutons */
    border: none; /* Suppression des bordures */

}

/* Style général du spinner */
.ui-spinner {
    display: inline-flex;
}

/* Custom spinner icons if needed */
.ui-icon.ui-icon-triangle-1-n {
    background-position: -64px -16px;
}

.ui-icon.ui-icon-triangle-1-s {
    background-position: -64px -32px;
}

.info-dispo-restante {
    min-width: 350px;
    margin: auto;
    background-color: white;
    font-weight: bold;
    color: green;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    text-align: center;
}


/* ***********************************************/


.modal-content, .modal2-content {
    color: #03c9a9;
    font-weight: 700;
    border: thick double #03c9a9;    
    background-color:  #343a40 !important;
}


#contextMenu {
    display: none;
    position: absolute;
    z-index: 1000;
    color: white !important;
    background-color: rgb(97, 97, 97) !important;
    border: 2px solid  #03c9a9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgb(97, 97, 97);
    top: -10px; /* Position it above the context menu */
    left: 50%;
    transform: translateX(-50%);
}

#contextMenu::before {
    content: "";
    position: absolute;
    top: -12px; /* Slightly above the triangle to create the border effect */
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #03c9a9; /* Same color as the border of the contextMenu */
}


.list-group-item {
    cursor: pointer;
    padding: 8px 12px;
}
.list-group-item:hover {
    background-color: #f5f5f5;
}

.swal2-popup {
    color: #03c9a9 !important;
    font-weight: 700 !important;
    border: thick double #03c9a9 !important;
    background-color: #343a40 !important;
}
.swal2-input, .swal2-select{
    color: white !important;
    background-color: rgb(97, 97, 97) !important;
}
#address {
    min-width: 300px !important;
    /* height: 6rem !important; */
    overflow: auto !important;
}
.info_add_dispo {
 color: white !important;
}

select * {
    font-weight: bold;
    background-color: #03c9a9 !important; /* Changez la couleur de fond ici */
    color: #000000 !important; /* Changez la couleur du texte ici */
}

.leaflet-top {
    top: 110px;
}

/* Styles pour les POIs */
.leaflet-control-layers-expanded-poi {
    display: none; 
}
/* 
.poi-marker-hospital {
    border: 2px solid red; 
}
.poi-marker-pharmacy {
    border: 2px solid green; 
}
.poi-marker-clinic {
    border: 2px solid blue;  
}    
 */


/* Styles pour la liste des POIs */
.leaflet-control-layers-expanded-poi{
    background-color: #343846;  /* Couleur de fond pour les POIs sélectionnés */
}
#poi-form>label{
    color: #03c9a9;
    font-weight: 700;
    /* background-color: lightblue!important;  */
}
.listPoiIcon {
    width: 15px;
    height: 15px;
}

.leaflet-control-toggle-info, .leaflet-control-toggle-refresh {
    /* margin-left: 12px !important; */
    text-align: center;
    background-color: #343846; 
    padding: 5px; 
    width: 34px; 
    height: 34px; 
    border-radius: 50px; color: white;
    color: #03c9a9;
    font-size: 1rem;
    font-weight: bold;
}
.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    opacity: 0.8;
}

.leaflet-control-attribution>a>svg {
    margin-bottom: 3px;
}

/*********** ROUTING ************/
#toggle-routing {
    background-color: #ccc;
    border-radius: 50px; color: white;
    width: 44px !important;
    margin-right: 17px !important;
    border: none !important;    
}
.leaflet-routing-alt>h3 {
    font-weight: bold;
    font-size: large;
    color: #03c9a9;
}
.leaflet-routing-geocoders  {
    padding: 30px 0 0 0;
}

/* #routingControl, #dispoFlash {
    background-color: #ccc;
    border-radius: 50px; color: white;
    width: 44px !important;
    margin-right: 17px !important;
    border: none !important;  
} */



.ui-autocomplete {
    z-index: 10000; /* Assurez-vous que la liste est au-dessus des autres éléments */
}

/* #end, #start{
    height: 45px;
} */
#geoButton {
    background-color: #03c9a9;
    border-radius: 50px; color: white;
    width: 20px !important;
    height: 20px;
    /* margin-right: 17px !important; */
    border: none !important; 
    align-items: center;
    padding-top: 3px;
}
#instructions {
    background-color: #343846;
}
#instructions>h5 {
    margin: 10px auto auto 8px;
}

#route-panel {
    border-radius: 20px 20px 0 0;
    max-width: 600px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(43, 48, 53, 1);
    height: 30%;
    padding: 5px 10px;
    display: none;
    z-index: 1070;
    color: white;
    transition: transform 0.5s ease-in-out;
    transform: translateY(100%); /* Par défaut, caché */
} 



#route-panel h4,
#route-panel .input-group,
#route-panel #routeInfo {
    margin-bottom: 10px; /* Pour gérer les espacements */
}

#instructions {
    flex-grow: 1; /* Permet à la div de prendre tout l'espace restant */
    overflow-y: auto; /* Permet le défilement si le contenu est trop grand */
    margin-top: 10px; /* Pour la marge entre le contenu précédent */
    padding-bottom: 10px; /* Pour éviter que le contenu touche le bas */
}

#route-panel.open {
    transform: translateY(0);
    transition: bottom 0.5s;
    display: block;
}

#route-panel.closed {
    transform: translateY(100%);
    transition: bottom 0.5s;
}

#horizontal-line {
    width: 40px;
    height: 3px;
    background-color: white;
    margin: 3px auto;
    border-radius: 2px;
    cursor: pointer; /* Ajout du curseur de pointeur */
}
.routeInfoDistance, .routeInfoDuration {
    font-weight: bold;
    color: #03c9a9;
    margin-bottom: 0 !important;
}
.fa-arrow-down {
    color: #03c9a9;
}

/* @media (max-width: 600px) {
    #route-panel {
        height: calc(100% - 15px);
    }
}

@media (min-width: 601px) {
    #route-panel {
        display: flex;
        flex-direction: column;
    }

    #instructions {
        margin-top: 0;
        margin-left: 20px;
        flex: 1;
    }
} */


/* Style pour la pop-up */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60%;
    max-width: 700px;
    background-color: rgba(0, 0, 0, 0.65);

    display: none;
    flex-direction: column;
    align-items: center;

    z-index: 9999999;
    transition: opacity 0.3s ease;

    color: #03c9a9;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
}



.popup-content {
    background-color: #343846;
    border: thick double #03c9a9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.popup.show {
    display: flex;
    visibility: visible;
    opacity: 1;
}

/* Effet de blur sur la carte */
.map-blurred {
    filter: blur(6px);
    /* transition: filter 0.8s ease; */
    pointer-events: none; /* Empêche toute interaction */
}

.map-loader {
    position: fixed;
    inset: 0;
    background: #2f3640;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    color: #03c9a9;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(3, 201, 169, 0.2);
    border-top: 5px solid #03c9a9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
