* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f0;
  color: #1c1c1c;
}

body {
  display: flex;
  flex-direction: column;
}

#tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  font-size: 15px;
  color: #666;
  cursor: pointer;
}

.tab.active {
  color: #1c1c1c;
  font-weight: 600;
  border-bottom: 2px solid #4a7c3c;
}

#filters {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
}

#filters label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

#filters select {
  font-size: 13px;
  padding: 4px;
}

.view {
  flex: 1;
  min-height: 0;
  position: relative;
}

#map {
  height: 100%;
  width: 100%;
}

#view-list {
  overflow-y: auto;
  padding: 8px;
}

.bench-card {
  display: flex;
  gap: 10px;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bench-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
  flex-shrink: 0;
}

.bench-card .details {
  min-width: 0;
}

.bench-card .comment {
  font-weight: 600;
  margin: 0 0 4px;
  overflow-wrap: break-word;
}

.bench-card .meta {
  font-size: 12px;
  color: #777;
  margin: 0;
}

.popup-photo {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 6px;
}

#status {
  padding: 8px 12px;
  font-size: 13px;
  color: #a33;
  text-align: center;
}

#status:empty {
  display: none;
}
