/* Places: listing, filters, search, place cards and detail. */
.listing {
  padding: 30px 35px;
  max-width: 1450px;
  margin: auto;
}

.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  gap: 15px;
}

.listing h1 {
  font-size: 27px;
  font-weight: 600;
}

.listing-header p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.filters button {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 25px;
  font-size: 11px;
}

.filters button.active {
  background: var(--text);
  color: var(--inverse);
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 21px;
}

.place-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  text-align: right;
  position: relative;
}

.place-image {
  height: 175px;
  position: relative;
  cursor: pointer;
}

.place-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.save-heart {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1b1b1b;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 2px 6px #0002;
}

.save-heart.saved {
  color: #ef6262;
}

.save-heart svg {
  width: 17px;
  height: 17px;
}

.place-info {
  padding: 15px;
}

.place-info h3 {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.place-info .meta {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 9px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.place-info p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.card-actions button {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0;
}

.card-actions svg {
  width: 14px;
  height: 14px;
}

.detail-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.detail-copy {
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
  margin: 14px 0;
}

.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input {
  width: min(300px,100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 11px;
}
