.property-catalog {
  --property-deep: #65452d;
  --property-soft: #f4ebe0;
  margin-bottom: 1.5rem;
}

.property-catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-bottom: .85rem;
}

.property-catalog h2 {
  margin: 0;
  font-size: 1.32rem;
  letter-spacing: -.025em;
}

.property-catalog-head > span, .property-location {
  color: var(--muted);
  font-size: .87rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e6ddd1;
  border-radius: 17px;
  background: var(--panel);
  box-shadow: 0 8px 20px -17px #452d22;
}

.property-media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid #e6ddd1;
  background: var(--property-soft);
}

.property-photo { position: absolute; inset: 0; display: block; }
.property-photo:focus-visible { outline-offset: -4px; }
.property-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.property-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .7rem;
  color: var(--property-deep);
  background:
    repeating-linear-gradient(90deg, #fff0 0 21px, #9c744917 21px 22px),
    repeating-linear-gradient(0deg, #fff0 0 21px, #9c744917 21px 22px),
    linear-gradient(130deg, #f6f0e6, #eee0ce);
  font-size: .76rem;
  font-weight: 600;
}

.property-silhouette {
  position: relative;
  width: 2.55rem;
  height: 1.7rem;
  margin-top: .8rem;
  border: 2px solid #947653;
  border-top: 0;
  border-radius: 0 0 3px 3px;
}

.property-silhouette::before {
  content: "";
  position: absolute;
  top: -.83rem;
  left: .26rem;
  width: 1.7rem;
  height: 1.7rem;
  transform: rotate(45deg);
  border-top: 2px solid #947653;
  border-left: 2px solid #947653;
  border-radius: 3px 0 0;
}

.property-silhouette::after {
  content: "";
  position: absolute;
  inset: .53rem .76rem 0;
  border: 1px solid #947653;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.property-card-body { flex: 1; padding: 1.1rem 1.15rem; }
.property-card h3 {
  margin: .3rem 0 0;
  font-size: 1.12rem;
  line-height: 1.27;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}

.property-kind {
  margin: 0;
  color: var(--property-deep);
  font-size: .76rem;
  font-weight: 700;
}

.property-location { margin: .35rem 0 0; line-height: 1.45; overflow-wrap: anywhere; }

.property-purposes {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  padding: 0;
  margin: .85rem 0 0;
}

.property-purposes li {
  padding: .22rem .55rem;
  border-radius: 6px;
  background: var(--property-soft);
  color: var(--property-deep);
  font-size: .75rem;
  font-weight: 650;
}

.property-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: .65rem .75rem;
  padding: .75rem;
  margin: .85rem 0 0;
  border-radius: 10px;
  background: #faf7f2;
}

.property-facts dt { color: var(--muted); font-size: .74rem; }
.property-facts dd { margin: .18rem 0 0; font-weight: 650; overflow-wrap: anywhere; }
.property-facts small { color: var(--muted); font-weight: normal; }

.property-description { margin-top: .75rem; }
.property-description p {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.property-description summary,
.property-upload summary {
  width: fit-content;
  color: var(--property-deep);
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.property-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: start;
  padding: .8rem 1.15rem;
  border-top: 1px solid #eae2d6;
  border-radius: 0 0 16px 16px;
  background: #fcfaf7;
}

.property-upload summary { padding: .55rem 0; }
.property-upload form { display: grid; gap: .45rem; margin: .35rem 0 0; }
.property-upload label { color: var(--muted); font-size: .78rem; }
.property-upload input { min-width: 0; width: 100%; font-size: .8rem; }
.property-upload form button { justify-self: start; }
.property-card-footer [data-remove-item] { margin: 0; }
