/* assets/css/pos-map.css */
.pos-map-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.pos-map-full-width {

  max-width: 100vw; /* Center the map by offsetting it */
}

.pos-map-full-width #pos-map {
  width: 100%;
  height: 500px;
}

.pos-map-normal-width #pos-map {
  width: 100%;
  height: 500px;
}

#pos-map-list {
  flex: 1;
  max-width: 300px;
}

#pos-map-list ul {
  list-style: none;
  padding: 0;
}

#pos-map-list li {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}

#pos-map-list li:hover {
  background-color: #f1f1f1;
}

#pos-map-list img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

#pos-map-list h4 {
  margin: 10px 0 5px 0;
  font-size: 1.2em;
}

#pos-map-list p {
  margin: 0;
  color: #555;
}

@media (max-width: 768px) {
  .pos-map-container {
      flex-direction: column;
  }

  #pos-map-list {
      max-width: 100%;
  }
}

#pos-map .leaflet-popup-content {
  width: 200px;
}

#pos-map .leaflet-popup-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
}

#pos-map .leaflet-popup-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
}

#pos-map .leaflet-popup-content p {
  margin: 0;
  color: #333;
}
