.mapSelectorModalWrapper.hidden { display: none !important; } .mapSelectorModalWrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9999; display: flex; justify-content: center; align-items: center; } .mapSelectorModal { background-color: #fff; border-radius: 6px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); width: 90%; max-width: 1200px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; } .mapSelectorHeader { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; } .mapSelectorTitle { margin: 0; font-size: 18px; font-weight: 600; } .mapSelectorCloseBtn { background: none; border: none; font-size: 18px; cursor: pointer; color: #666; } .mapSelectorContent { display: flex; flex-direction: column; overflow: hidden; min-height: 500px; } #mapSelectorContainer { flex: 1; position: relative; min-height: 400px; } #map { width: 100%; height: 100%; min-height: 400px; } .mapSelectorControls { padding: 15px 20px; border-top: 1px solid #eee; background-color: #f9f9f9; } .mapSelectorInfo { margin-bottom: 15px; font-size: 14px; color: #666; } .mapSelectorSelectedAreas { margin-bottom: 20px; } .mapSelectorSelectedAreas .selectedAreasList .selectedAreaItem { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; } .mapSelectorSelectedAreas h3 { font-size: 16px; margin: 0 0 10px 0; } #selectedAreasList { list-style: none; margin: 0; padding: 12px; max-height: 150px; overflow-y: auto; border: 1px solid #e9ecef; border-radius: 8px; background-color: #f8f9fa; flex-wrap: wrap; display: flex; gap: 1rem; margin-bottom: 20px; } .selectedAreaItem span { font-size: 14px; color: #2c3e50; font-weight: 500; } .removeAreaBtn { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; background-color: #f8f9fa; border: none; border-radius: 50%; color: #dc3545; font-size: 16px; cursor: pointer; transition: all 0.2s ease; padding: 0; margin-left: 12px; flex-shrink: 0; } .removeAreaBtn:hover { background-color: #dc3545; color: white; transform: scale(1.1); } .no-areas { padding: 16px; font-style: italic; color: #6c757d; text-align: center; border-radius: 8px; margin: 4px 0; } .mapSelectorButtons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; } .mapBtn { padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; } .mapBtn.primaryBtn { background-color: #00394D; color: white; } .leaflet-draw-toolbar a { display: flex !important; align-items: center; justify-content: center; width: 30px; height: 30px; background-image: none !important; text-align: center; } .leaflet-draw-toolbar a i { font-size: 16px; color: #00394D; } .leaflet-draw-toolbar .leaflet-bar { margin-right: 0; } .leaflet-draw-toolbar a:hover i { color: #002535; } .leaflet-draw-toolbar .leaflet-draw-draw-polygon, .leaflet-draw-toolbar .leaflet-draw-draw-rectangle, .leaflet-draw-toolbar .leaflet-draw-draw-circle, .leaflet-draw-toolbar .leaflet-draw-edit-edit, .leaflet-draw-toolbar .leaflet-draw-edit-remove { background-image: none !important; background-position: unset !important; } .leaflet-draw-actions { margin-top: 5px; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); border-radius: 4px; overflow: hidden; } .leaflet-draw-actions a { display: flex; align-items: center; background-color: white; color: #333; padding: 8px 10px; } .leaflet-draw-actions a i { margin-right: 5px; } .leaflet-draw-actions a:hover { background-color: #f0f2f5; } /* Styles pour les marqueurs personnalisés */ .custom-marker { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background-color: #00394D; border: 3px solid white; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); color: white; font-weight: bold; } .custom-radius-marker { background-color: #ff4081; } .custom-polygon-marker { background-color: #22c55e; } #selectedAreasDisplay { border-radius: 8px; background-color: white; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; } .popupAddSearchContainer #selectedAreasDisplay { width: 300px; margin: auto; } .selectedAreasList { margin: 0; padding: 0; list-style: none; /* display: flex; flex-wrap: wrap; gap: 10px; */ } .selectedAreaItem { justify-content: space-between; align-items: center; padding: 8px 12px; background-color: #f1f5f9; border-radius: 6px; border-left: 4px solid #00394D; font-size: 14px; color: #334155; display: flex; align-items: center; transition: all 0.2s ease; max-width: 300px; margin-bottom: 8px; } .selectedAreaItem:hover { background-color: #e2e8f0; transform: translateY(-1px); } .orderFormButton { padding: 8px 12px; background-color: #f5f5f5; border: 1px solid #ddd; border-radius: 4px; cursor: pointer; font-size: 14px; transition: all 0.2s; } .orderFormButton:hover { background-color: #e9e9e9; } /* Responsive */ @media (max-width: 768px) { .mapSelectorModal { width: 100vw; position: fixed; top: 0; left: 0; overflow: hidden; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; } .mapSelectorContent { /* flex: 1 1; */ } #map { min-height: 50vh; max-height: 50vh; } .mapSelectorControls { overflow: scroll; } .mapSelectorSelectedAreas { max-height: 200px; } .leaflet-control-zoom { margin-left: 10px !important; } } .mapSelectorModeToggle { display: flex; justify-content: center; margin-bottom: 10px; gap: 20px; } .mapSelectorModeToggle label { display: flex; align-items: center; cursor: pointer; } .mapSelectorModeToggle input { margin-right: 5px; } .mapSearchControl { display: flex; } #mapSearchInput { flex-grow: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; } #mapSearchButton { padding: 8px 12px; background-color: #00394D; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; } #mapSearchButton:hover { background-color: #002535; } #mapSearchResults { margin-top: 10px; max-height: 200px; overflow-y: auto; background: white; border-radius: 4px; } .mapSearchResultsList { list-style: none; padding: 0; margin: 0; } .mapSearchResultItem { padding: 8px 10px; border-bottom: 1px solid #eee; cursor: pointer; } .mapSearchResultItem:hover { background-color: #f5f5f5; } .hidden { display: none !important; } /* Ajoutez ces styles pour les nouveaux boutons de mode */ .mapModeSwitcher { display: flex; width: 100%; margin-bottom: 10px; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } .mapModeSwitcher button { flex: 1; padding: 10px; border: none; background-color: #f5f5f5; cursor: pointer; font-weight: 500; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .mapModeSwitcher button i { margin-right: 6px; } .mapModeSwitcher button:first-child { border-right: 1px solid #ddd; } .mapModeSwitcher button.active { background-color: #00394D; color: white; } .mapModeSwitcher button:hover:not(.active) { background-color: #e0e0e0; } .mapSearchControl { display: flex; margin-top: 5px; } #mapSearchInput { flex-grow: 1; padding: 8px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; } #mapSearchButton { padding: 8px 12px; background-color: #00394D; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; } #mapSearchButton:hover { background-color: #002535; } /* Masquer le contenu */ .hidden { display: none !important; } /* Style pour les résultats de recherche */ #mapSearchResults { margin-top: 10px; max-height: 200px; overflow-y: auto; background: white; border-radius: 4px; border: 1px solid #eee; } .mapSearchResultsList { list-style: none; padding: 0; margin: 0; } .mapSearchResultItem { padding: 8px 10px; border-bottom: 1px solid #eee; cursor: pointer; } .mapSearchResultItem:hover { background-color: #f5f5f5; } .mapSearchResultItem:last-child { border-bottom: none; } /* Sélecteur de mode */ .mapModeSelector { background-color: #f8f9fa; padding: 6px; border-radius: 6px; } .modeSwitcherButtons { display: flex; align-items: center; justify-content: space-between; } .modeSwitcherBtn { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 4px; background-color: white; cursor: pointer; transition: all 0.2s ease; font-size: 13px; } .modeSwitcherBtn i { margin-right: 6px; color: #00394D; } .modeSwitcherBtn.active { border-color: #00394D; background-color: #e6f0f3; } .modeSeparator { font-weight: bold; color: #666; margin: 0 8px; font-size: 13px; } /* Conteneur de recherche */ .mapSearchInputContainer { margin-top: 8px; } .mapSearchControl { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; } #mapSearchInput { flex-grow: 1; padding: 8px 10px; border: none; outline: none; font-size: 13px; } #mapSearchButton { padding: 8px 12px; background-color: #00394D; color: white; border: none; cursor: pointer; transition: background-color 0.2s; font-size: 13px; } #mapSearchButton:hover { background-color: #002535; } /* Conteneur principal */ #mapSearchControlContainer { position: absolute; top: 10px; left: 10px; z-index: 1000; background: white; padding: 8px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); width: 260px; max-width: 90%; } /* Style pour les résultats de recherche */ #mapSearchResults { margin-top: 8px; max-height: 200px; overflow-y: auto; background: white; border-radius: 4px; border: 1px solid #eee; } .mapSearchResultsList { list-style: none; padding: 0; margin: 0; } .mapSearchResultItem { padding: 8px 10px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 13px; } .mapSearchResultItem:hover { background-color: #f5f5f5; } .mapSearchResultItem:last-child { border-bottom: none; } /* Masquer le contenu */ .hidden { display: none !important; } .disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed !important; } .mapBtn.disabled, .mapSelectorCloseBtn.disabled { opacity: 0.5; pointer-events: none; cursor: not-allowed; } #openMapSelectorBtn { background-color: #00394D; color: white; padding: 10px 20px; border-radius: 6px; border: none; font-weight: 500; transition: all 0.2s ease; } #openMapSelectorBtn:hover { background-color: #002d3d; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } #localitySearchInput{ max-width: 300px; } .localitySearchControl { position: relative; width: 100%; margin: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 5px; z-index: 2000; } .localitySearchControl button { padding: 8px 12px; background-color: #00394D; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s } .localitySearchControl button:hover { background-color: #002535 } #localitySearchContainer{ position: relative; } .popupUpdateBuyerSearch .localitySearchControl .orderFormInput { border-radius: 20px; margin-right: 20px; margin-top: 0; min-width: unset; border: solid 1px #ccc; padding: 10px 15px; } @media (max-width: 1000px) { .popupUpdateBuyerSearch .localitySearchControl .orderFormInput { width: 170px; } } #localitySearchResults { position: absolute; top: 100%; left: 0; right: 0; z-index: 2001; display: flex; flex-direction: column; align-items: center; background: white; } .localitySearchResultsList { list-style: none; margin: 0; padding: 0; max-height: 300px; max-width: 300px; overflow-y: auto; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); } .localitySearchResultItem { padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 14px; max-width: 300px; } .localitySearchResultItem:last-child { border-bottom: none } .localitySearchResultItem:hover { background-color: #f5f5f5 } .hidden { display: none !important }