body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
}

.headerBar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #f9f9f9;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.headerBar h1 {
  text-align: center;
  margin: 0 0 10px;
}

.searchRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

#searchInput {
  flex: 1;
  min-width: 180px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#itemCount {
  margin-left: auto;
  background: rgba(0, 0, 0, 0.05);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.9em;
  color: #333;
}

.checkboxRow {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.checkboxRow label {
  font-size: 0.95em;
}

#results {
  width: 95%;
  max-width: 600px;
  margin: 20px auto;
}

.place {
  background: #fff;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.wantToGo {
  background: #d9f8d9;
}

.favouritePlace {
  background: #ffe0e0;
}

.placeRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.placeLeft {
  flex: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.placeRight {
  flex: 0 0 auto;
  text-align: center;
  min-width: 80px;
}

.place h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

.place h3 a {
  text-decoration: none;
  color: #0066cc;
}

.place h3 a:hover {
  text-decoration: underline;
}

.place p {
  margin: 5px 0;
  line-height: 1.4;
  font-size: 0.95em;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.tagContainer {
  margin-top: 10px;
}

.tagBadge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #333;
  padding: 4px 6px;
  margin: 0 6px 6px 0;
  border-radius: 12px;
  font-size: 0.6em;
  box-sizing: border-box;
}

.tagBadge img {
  width: 2em;
  height: 2em;
  margin-bottom: 2px;
}

.statusMessage {
  max-width: 600px;
  margin: 20px auto;
  color: #444;
}

@media (max-width: 640px) {
  .checkboxRow {
    gap: 14px;
  }

  .placeRow {
    flex-direction: column;
  }

  .placeRight {
    width: 100%;
    text-align: left;
  }
}
