.map {
    width: 100%;
    background-color: #0057a6;
    overflow: hidden;
}
.map.fullscreen {
    position: absolute !important;
    top: 0px;
    left: 0px;
    z-index: 1000;
    width: 100%;
}

/* Contenu infoWindow personnalisé */
.customInfoWindow {
    position: relative;
}
.customInfoWindow .titreInfoWindow {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1em;
}
.customInfoWindow > button {
    background: none;
    display: block;
    border: 0px;
    margin: 0;
    padding: 0px;
    position: absolute;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    width: 20px;
    height: 20px;
    bottom: 0px;
    right: 0px;
}
.customInfoWindow > button:focus {
    outline: none;
}
.customInfoWindow > button:active {
    background-color: #0057A6;
}

/* Classe générale des contrôles personnalisés - taille normale */
.gMapsCustomControl {
    user-select: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    border-radius: 2px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    width: 40px;
    margin: 10px;
}
.gMapsCustomControl > button {
    background: none;
    display: block;
    border: 0px;
    margin: 0px;
    padding: 0px;
    position: relative;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    width: 40px;
    height: 40px;
    top: 0px;
    left: 0px;
}
.gMapsCustomControl > button:focus {
    outline: none;
}
.gMapsCustomControl > button.active,
.gMapsCustomControl > button:active {
    background-color: #0057A6;
}
.gMapsCustomControl > .separatorV {
    position: relative;
    overflow: hidden;
    width: 30px;
    height: 1px;
    margin: 0px 5px;
    background-color: rgb(230, 230, 230);
}
.gMapsCustomControl > .separatorH {
    position: relative;
    float: left;
    overflow: hidden;
    width: 1px;
    height: 30px;
    margin: 5px 0px;
    background-color: rgb(230, 230, 230);
}

/* Classe générale des contrôles personnalisés - petite taille */
.gMapsCustomControl.small {
    width: 26px;
    margin: 6px;
}
.gMapsCustomControl.small > button {
    width: 26px;
    height: 26px;
}
.gMapsCustomControl.small > button > img {
    width: 18px !important;
    height: 18px !important;
}
.gMapsCustomControl.small > .separatorV {
    width: 20px;
    margin: 0px 3px;
}
.gMapsCustomControl.small > .separatorH {
    height: 20px;
    margin: 3px 0px;
}

/*************************************************************/
/* Règles normalement injectées par l'API dans le DOM        */
/* Ne fonctionne pas en mode iframe, donc ajoutées à la main */
.gm-control-active>img{
	box-sizing:content-box;
	display:none;
	left:50%;
	pointer-events:none;
	position:absolute;
	top:50%;
	transform:translate(-50%,-50%)
}
.gm-control-active>img:nth-child(1){display:block}

.gm-control-active:hover>img:nth-child(1),
.gm-control-active:active>img:nth-child(1){display:none}

.gm-control-active:hover>img:nth-child(2),
.gm-control-active:active>img:nth-child(3){display:block}


/****************************************/
/* Personnalisation selon les contrôles */
/* Contrôle de dessin                   */
.customDrawingUI {
    height: 204px;
}
.customDrawingUI.small {
    height: 134px;
}
.customDrawingUI > button.active > img:nth-child(1) {
    display: none;
}
.customDrawingUI > button.active > img:nth-child(3) {
    display: block;
}
/****************************************/
/* Contrôle de recherche                */
.customSearchUI {
    width: calc(100% - 64px);
    max-width: 500px;
}
.customSearchUI.small {
    width: calc(100% - 72px);
    max-width: 100%;
}
.customSearchUI > button {
    float: left;
}
.customSearchUI > button > img {
    box-sizing: content-box;
    display: none;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
}
.customSearchUI > button.hidden > img:nth-child(1) {
    display: none;
}
.customSearchUI > button.hidden > img:nth-child(2) {
    display: block;
}
.searchUI {
    float: left;
    overflow: hidden;
    height: 30px;
    width: calc(100% - 51px); /* 33 = (toggle) 40 + (separator) 1 + (2 * marges searchUI) 10 */
    margin: 5px;
    border-bottom: 1px solid rgb(230, 230, 230);
}
.customSearchUI.small .searchUI {
    height: 20px;
    width: calc(100% - 33px); /* 33 = (toggle) 26 + (separator) 1 + (2 * marges searchUI) 6 */
    margin: 3px;
}
.searchUI > .searchInput {
    border: none;
    width: 100%;
    height: 100%;
}
.customSearchUI.small .searchInput {
    font-size: 14px !important;
}
.autocompletePanelUI {
    display: none;
    user-select: none;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 4px -1px;
    border-radius: 2px;
    cursor: pointer;
    background-color: rgb(255, 255, 255);
    width: 100%;
    margin: 0px;
    z-index: 100;
}
.resultatsDiv .resultatItem:last-child {
    margin-bottom: 0;
}
.resultatItem {
    margin: 0 10px 5px 10px;
    border-bottom: 1px solid rgb(230, 230, 230);
    padding-bottom: 5px;
}
.resultatItem:hover {
    text-decoration: underline;
    color: #0057a6;
}
.resultatItem img {
    vertical-align: middle;
    margin-right: 5px;
}
/****************************************/
/* Contrôle de plein écran              */
.map:not(.fullscreen) .customFullscreenUI > button:nth-child(1) {
    display: block;
}
.map:not(.fullscreen) .customFullscreenUI > button:nth-child(2) {
    display: none;
}
.map.fullscreen .customFullscreenUI > button:nth-child(1) {
    display: none;
}
.map.fullscreen .customFullscreenUI > button:nth-child(2) {
    display: block;
}
/*********************************************/
/* Contrôle d'affichage des données globales */
.customGlobalData {
    width: auto;
    margin: 20px 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid black;
    border-radius: 4px;
    display: none; /* Initialement masqué */
    pointer-events: none;
    font-size: 1.1em;
}
.customGlobalData.small {
    width: auto;
    margin: 20px 0;
    font-size: 1.2em;
}
.customGlobalData:hover {
    background-color: rgba(87, 87, 87, 1);
    color: rgba(255, 255, 255, 1);
}
.customGlobalData #alertePortes {
    color: rgba(255, 127, 127, 0.9);
}
/**********************************************/
/* Contrôle d'affichage de l'aide + fermeture */
.customHelp, .customHelp.small, 
.customClose, .customClose.small {
    width: 24px;
    height: 24px;
    border: none;
    margin-left: 0;
    z-index: 1 !important;
}
.customHelp > button, .customHelp.small > button,
.customClose > button, .customClose.small > button {
    width: 24px;
    height: 24px;
}
.mapsHelpContainer {
    display: none;
    position: absolute;
    width: 90%;
    height: auto;
    max-height: 90%;
    overflow: auto;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid black;
    border-radius: 4px;
}
.mapsHelpContainer #BtnCloseHelp {
    background: none;
    display: block;
    border: 0px;
    margin: 0;
    padding: 0px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    width: 15px;
    height: 15px;
    float: right;
    position: sticky;
    right: 5px;
    top: 5px;
}
.mapsHelpContainer h6 {
    margin-top: 15px;
}
.mapsHelpContainer .topic {
    overflow: hidden;
    cursor: initial;
    user-select: text;
}
.mapsHelpContainer .topic span {
    line-height: 24px;
}
.mapsHelpContainer .topic img {
    float: left;
    margin: 0 10px;
}
.mapsHelpContainer > p > img {
    margin: 0 5px;
    vertical-align: middle;
}