/* Reset and general styling */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f4f4;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header h1 {
  margin: 0;
  color: #333;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.main-content {
  flex: 1;
  min-width: 300px;
  width: 100%;
}

/* Map */
#map {
  height: 400px;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Places list */
#places-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.place-card {
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.place-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.place-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="gray"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"/></svg>') no-repeat center;
  background-size: 50px;
}

.place-card h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #333;
}

.place-card p {
  margin: 5px 0;
  font-size: 0.9em;
  color: #666;
}

.place-card p.rating {
  color: #f39c12;
  font-weight: bold;
}

/* Filter dropdown */
#filter-container {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#menu-filter {
  padding: 8px;
  font-size: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
}

.marker-info {
    align-items: center;
    
    display: flex;
    position: relative;
    
    justify-content: center;
    width: 32px;
    font-size: 1.5rem;
    
    flex-direction: row;
}

.marker-info .marker-body {
    display: none;
}

.marker-info.marker-content .marker-body {
    display: flex;
    position: absolute;
    bottom: 50%;
    
    background-color: rgb(245, 245, 245);
    
    padding: 6px;
    
    border-radius: 12px;
    border-color: black;
    border-width: 3px;
    
    z-index: 5;
}

/* General */
h2 {
  color: #333;
}

p.error {
  color: red;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .main-content {
    width: 100%;
    min-width: 0;
  }
  #map {
    height: 300px;
    margin-bottom: 15px;
  }
  .place-card img {
    height: 120px;
  }
  #places-list {
    grid-template-columns: 1fr;
  }
}