/**
 * Styles pour le plugin Map Location Digisense
 * v5.5 (Ajout Info Box)
 */

/* =================================================================== */
/* 1. Conteneur de Recherche & Filtres
/* =================================================================== */

#digisense-search-container {
    display: flex;
    flex-wrap: wrap; 
    align-items: center;
    gap: 15px; 
    margin-top: 20px;
    margin-bottom: 20px;
}

#digisense-search-input {
    flex: 1;
    width: auto;
}

/* Style commun pour tous les boutons et filtres */
#digisense-search-button,
#location-filter-label,
#premium-filter-label,
#reset-map-view,
#share-map-url {
    padding: 13px;
    background-color: #77CED9 !important; /* Bleu-vert */
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    border: none;
    cursor: pointer;
}

/* Style pour les labels des filtres */
#location-filter-label,
#premium-filter-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Style spécifique pour le bouton "Rechercher" */
#digisense-search-button {
    padding: 10px 20px;
    display: none; /* Caché par défaut */
}
#digisense-search-button.visible {
    display: inline-block;
}

/* Style spécifique pour le bouton "Partager" */
#share-map-url {
    background-color: #001B48 !important; /* Bleu foncé */
    transition: background-color 0.3s ease;
}
#share-map-url.copied {
    background-color: #28a745 !important; /* Vert succès */
}

/* Style pour le bouton "Reset" */
#reset-map-view {
    background-color: #001B48 !important; /* Bleu foncé */
	border-radius: 5px;
	font-weight: 600;
	font-size: 16px;
	padding: 13px;
	background-color: #e4f5f8 !important;
	color: #77CED9 !important;
	border: 1px solid transparent !important;
}
#reset-map-view:hover{
	border: 1px solid #77CED9 !important;
}

/* Visibilité des boutons (gérée par JS) */
#reset-map-view,
#share-map-url {
    display: none;
}
#reset-map-view.visible,
#share-map-url.visible {
    display: inline-block;
}

#premium-filter-checkbox {
    accent-color: #E70C83;
}

#underListContainer{
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-top: 20px;
	gap: 20px;
}

#show-more-results{
	border-radius: 5px;
	font-weight: 600;
	font-size: 16px;
	margin-left: auto;
	padding: 13px;
	background-color: #e4f5f8 !important;
	color: #77CED9 !important;
	border: 1px solid transparent !important;
}
#show-more-results:hover{
	border: 1px solid #77CED9 !important;
}


/* =================================================================== */
/* 2. Styles de la Carte Google Maps & InfoWindow
/* =================================================================== */

/* Cache des boutons Map/Satellite et StreetView */
#map-container-digisense .gm-style .gm-style-mtc-bbw, 
#map-container-digisense .gm-style .gm-svpc {
    display: none;
}

/* Conteneur de l'infobulle */
#map-container-digisense .gm-style .gm-style-iw-c {
    padding: 10px 30px !important;
    overflow: visible !important;
}

/* Bouton "Fermer" (X) de l'infobulle */
#map-container-digisense .gm-style .gm-style-iw-c .gm-style-iw-chr button {
    color: black;
    border-radius: 0 !important;
}
#map-container-digisense .gm-style .gm-style-iw-c .gm-style-iw-chr .gm-ui-hover-effect {
    position: absolute !important;
    left: calc(100% + 10px) !important;
    top: 0% !important;
    background-color: white !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 7px 1px rgba(0,0,0,.3);
}
#map-container-digisense .gm-style .gm-style-iw-c .gm-style-iw-chr .gm-ui-hover-effect span {
    /* display: none !important; */
}
#map-container-digisense .gm-style .gm-style-iw-c .gm-style-iw-chr .gm-ui-hover-effect::before {
    position: absolute;
    color: black !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    height: 20px;
    width: 20px;
    content: "\f00d";
    font-weight: 900;
    font-family: "Font Awesome 6 Pro", 'poppins light', sans-serif;
    font-size: 20px;
}


/* =================================================================== */
/* 3. Styles de la Liste des Résultats
/* =================================================================== */

/* Cadre d'info pour le filtre Location */
.location-info-box {
    background-color: #e4f5f8; /* Fond rose très clair (LavenderBlush) */
    border-left: 4px solid #77CED9; /* Bordure rose */
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

/* Cadre d'info pour le filtre Premium */
.premium-info-box {
    background-color: #FFF0F5; /* Fond rose très clair (LavenderBlush) */
    border-left: 4px solid #E70C83; /* Bordure rose */
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}

/* Conteneur principal de l'item (li) */
.revendeur-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 5px;
    cursor: pointer;
}

/* Conteneur pour les icônes à droite */
.revendeur-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

/* Icônes cliquables (Téléphone, Site) */
.revendeur-actions a {
    text-decoration: none;
    font-size: 1.5em; /* Agrandit un peu les icônes FA */
}

/* Tag "Location" rose */
.location-tag {
    background-color: #77CED9; /* Bleu - vert */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

/* Tag "Premium" orange */
.premium-tag {
    background-color: #E70C83; /* Orange */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

/* Style pour revendeur "Premium" (jaune/orange) */
#map-list-container-digisense li.revendeur-premium {
    border-left: 4px solid #E70C83;
    padding-left: 10px !important;
}
#map-list-container-digisense li.revendeur-premium:hover {
    background-color: #FFF0F5;
}

/* Style pour revendeur "Sélectionné" (bleu) */
#map-list-container-digisense li.revendeur-selectionne {
    background-color: #eaf2fa;
    border-left: 4px solid #0073aa;
    padding-left: 10px !important;
}

/* Priorité : le "sélectionné" (bleu) gagne sur le "premium" (orange) */
#map-list-container-digisense li.revendeur-premium.revendeur-selectionne {
    background-color: #eaf2fa;
    border-left: 4px solid #0073aa;
}

/* Numéro de téléphone sur la liste pour desktop */
#telDesktop {
    color: #001B48;
    margin: 0 10px;
}

/* Tag "Achat" bleu */
.achat-tag {
    background-color: #001B48; /* Bleu foncé */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}


/* =================================================================== */
/* 4. Responsive (Media Query)
/* =================================================================== */

@media all and (max-width: 1000px) {
    #telDesktop {
        display: none;
    }
}