#map_logia_asl {
  height: 500px !important;
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert.alert-warning {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.alert.alert-success {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}

.alert.alert-success p,
.alert.alert-warning p {
  margin: 0;
  color: black;
}

span.alert-close {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  margin-bottom: -12px;
}

.logia_asl_container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.logia_asl_list {
  display: flex;
  flex-direction: column;
  width: 35%;
  max-height: 500px;
  padding: 0px 10px 20px 0px;
  overflow-y: auto;
  position: relative;
}

#geocoder {
  position: sticky;
  top: 0px;
}

/* Geocoder Styling */
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100%;
  border: 1px solid black;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

input.mapboxgl-ctrl-geocoder--input {
  max-width: 100% !important;
  padding-left: 15px;
  color: #494949;
}

input.mapboxgl-ctrl-geocoder--input::placeholder {
  color: #494949;
}

svg.mapboxgl-ctrl-geocoder--icon.mapboxgl-ctrl-geocoder--icon-search {
  left: unset;
  right: 10px !important;
  top: 50%;
  transform: translate(0%, -50%);
}

/* Hide Mapbox attribution */
.mapboxgl-ctrl-attrib,
.mapbox-ctrl-attrib,
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left {
  display: none !important;
}

/* Store List Items */
.logia_asl_item {
  border: none;
  background: white;
  padding: 15px;
  display: flex;
  gap: 0.2rem;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.item-info {
  flex: 1;
  margin-left: 16px;
}

.logia_asl_item.active {
  background-color: #05131f;
}

.logia_asl_item.active p,
.logia_asl_item.active h3 {
  color: white;
}

.logia_asl_item:hover {
  background-color: #05131f;
}

.logia_asl_item:hover .item-info h3,
.logia_asl_item:hover .item-info p {
  color: white;
}

.logia_asl_item h3 {
  font-size: 1.1rem !important;
  font-weight: 400 !important;
}

.logia_asl_item p {
  margin: 0;
  color: #494949;
}

/* List Sections */
.logia_asl_list_other_content,
.logia_asl_list_nearby_content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.logia_asl_list_nearby {
  display: none;
}

.logia_asl_list_nearby.active {
  display: block;
}

.logia_asl_list_nearby + .logia_asl_list_other h2 {
  display: none;
}

.logia_asl_list_nearby.active + .logia_asl_list_other h2 {
  display: block;
}

.logia_asl_list_other[data-count='0'] {
  display: none;
}

.logia_asl_list.search-active .logia_asl_list_other h2 {
  display: block !important;
}

.logia_asl_list_nearby h2,
.logia_asl_list_other h2 {
  font-size: 20px !important;
  margin-bottom: 16px;
}

/* Icons */
.logia_asl_item #mapIcon {
  font-weight: 400;
  font-size: 18px;
  color: #333;
  background-color: #f3f3f3;
  border-radius: 50%;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.logia_asl_item.active #mapIcon,
.logia_asl_item.active #phoneIcon {
  background-color: #e60209;
  color: white;
}

.logia_asl_item #phoneIcon {
  font-weight: 400;
  font-size: 18px;
  color: #f3f3f3;
  background-color: #494949;
  border-radius: 50%;
  padding: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#phoneIcon:hover {
  background-color: #e60209;
}

/* Google Maps Button - Only show in nearby section */
.google-maps-btn {
  display: none !important;
  background-color: #e60209;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
  transition: background-color 0.3s ease;
  align-items: center;
  gap: 6px;
}

.logia_asl_list_nearby .google-maps-btn {
  display: inline-flex !important;
}

.google-maps-btn:hover {
  background-color: #e60209de;
  color: white;
  text-decoration: none;
}

.google-maps-btn:focus {
  color: white !important;
}

.google-maps-btn i {
  font-size: 12px;
}

/* Popup Styling */
.logia-asl-popup h4 {
  margin: 0 0 10px 0 !important;
  color: #333 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
}

.logia-asl-popup p {
  margin: 5px 0 !important;
  color: #666 !important;
  font-size: 14px !important;
}

.mapboxgl-popup-content {
  padding: 20px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  background: white !important;
  color: #333 !important;
}

/* Cluster hover popups - dark theme */
.cluster-hover-popup .mapboxgl-popup-tip {
  border-top-color: rgba(0, 0, 0, 0.9) !important;
}

.cluster-hover-popup .mapboxgl-popup-content {
  background: rgba(0, 0, 0, 0.9) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  min-width: 80px !important;
}

.cluster-hover-popup .mapboxgl-popup-content div {
  text-align: center !important;
  margin: 0 !important;
  color: white !important;
}

.cluster-hover-popup .mapboxgl-popup-content strong,
.cluster-hover-popup .mapboxgl-popup-content small {
  color: white !important;
}

/* Responsive Design */
@media all and (max-width: 1024px) {
  .logia_asl_container {
    flex-direction: column;
  }

  .logia_asl_list {
    width: 100%;
  }

  canvas.mapboxgl-canvas {
    width: 100% !important;
  }

  div#map_logia_asl {
    flex: auto;
  }
}

ul.suggestions {
  list-style: none !important;
}

.mapboxgl-ctrl-geocoder--powered-by {
  display: none !important;
}
