/* Roomier cards and a photo-first property dialog. */
.properties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 30px;
}
.property {
  background: #fff;
  border: 1px solid #e3e8de;
  border-radius: 15px;
  padding: 13px 13px 22px;
}
.property-picture {
  height: 330px;
}
.property .location,
.property h3,
.property .spec,
.card-description,
.card-address,
.property .price {
  margin-left: 12px;
  margin-right: 12px;
}
.property h3 {
  font-size: 24px;
}
.card-description {
  font-size: 14px;
  color: #75816f;
  margin-bottom: 13px;
}
.card-address {
  font-size: 13px;
  color: #5f715e;
  margin-top: -4px;
}
.property .spec {
  font-size: 14px;
  margin-bottom: 12px;
}
.property .price {
  margin-top: 20px;
  padding-top: 18px;
}
.property .price strong {
  font-size: 15px;
}
#detail {
  width: 1100px;
  max-width: calc(100vw - 48px);
  max-height: 90vh;
  padding: 0;
  overflow: auto;
  border-radius: 18px;
}
#detail .close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 12px #172c2520;
  line-height: 1;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.detail-gallery {
  background: #f0f3eb;
  padding: 18px;
  min-width: 0;
}
.gallery-stage {
  position: relative;
  height: 460px;
  border-radius: 11px;
  overflow: hidden;
  background: #dce4d5;
}
#gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 36px;
  height: 42px;
  border-radius: 6px;
  background: #fffffff0;
  color: #315f47;
  font-size: 30px;
}
.gallery-arrow.previous {
  left: 12px;
}
.gallery-arrow.next {
  right: 12px;
}
#gallery-counter {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 30px;
  background: #19382dc9;
  color: white;
}
.gallery-disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 15px 12px;
  background: linear-gradient(transparent, #12281eaa);
  color: white;
  font-size: 10px;
}
#gallery-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
#gallery-thumbnails button {
  width: 84px;
  height: 65px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  opacity: 0.6;
}
#gallery-thumbnails button[aria-pressed="true"] {
  opacity: 1;
  border-color: #315f47;
}
#gallery-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info {
  padding: 48px 33px 32px;
}
#detail .eyebrow {
  font-size: 9px;
  line-height: 1.7;
  margin-bottom: 16px;
}
#detail h2 {
  font-size: 34px;
  letter-spacing: -1.3px;
  margin-bottom: 24px;
}
.detail-facts {
  margin: 0 0 28px;
}
.detail-facts > div {
  padding: 12px 0;
  border-bottom: 1px solid #e1e7dc;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
}
.detail-facts dt {
  color: #7b8775;
  font-size: 12px;
}
.detail-facts dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}
.detail-info h3 {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 12px;
}
#detail-copy {
  font-size: 13px;
  line-height: 1.85;
}
#detail-cta {
  display: flex;
  margin-top: 25px;
}
@media (max-width: 760px) {
  .properties {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .property-picture {
    height: 280px;
  }
  .property h3 {
    font-size: 21px;
  }
  #detail {
    max-width: calc(100vw - 20px);
    max-height: 94vh;
    border-radius: 13px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    padding: 12px;
  }
  .gallery-stage {
    height: 300px;
  }
  .detail-info {
    padding: 25px 22px;
  }
  #detail h2 {
    font-size: 29px;
  }
  .detail-facts > div {
    grid-template-columns: 100px 1fr;
  }
  #gallery-thumbnails button {
    height: 54px;
    width: 75px;
  }
}
/* Actual property details. */
#detail-features,
#detail-uses {
  padding-left: 18px;
  margin: 0 0 25px;
  color: #61705d;
  font-size: 13px;
  line-height: 1.9;
}
#detail-features li::marker {
  color: #527b52;
}
.listing-availability {
  background: #eaf1df;
  color: #315f47;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 12px;
  margin: 0 0 25px;
}
#detail .rent-note {
  font-size: 11px;
  color: #7c8777;
}
#detail:has(#detail-extra:not([hidden])) .gallery-stage {
  height: 350px;
}
.detail-gallery {
  align-self: start;
  position: sticky;
  top: 0;
}
@media (max-width: 760px) {
  .detail-gallery {
    position: static;
  }
  #detail:has(#detail-extra:not([hidden])) .gallery-stage {
    height: 260px;
  }
}
#gallery-thumbnails {
  overflow-x: auto;
  padding-bottom: 4px;
}
#gallery-thumbnails button {
  flex-shrink: 0;
}
/* Consistent content rows and bottom-aligned prices in each card row. */
.properties {
  align-items: stretch;
}
.property {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.property[hidden] {
  display: none;
}
.property-picture {
  flex-shrink: 0;
}
.property .location {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 10px;
  line-height: 1.6;
  min-height: 1.6em;
}
.property h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 23px;
  line-height: 1.35;
  min-height: 2.7em;
}
.property .card-description {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.65;
  min-height: 3.3em;
}
.property .spec {
  margin-top: 0;
  margin-bottom: 9px;
  font-size: 13px;
  line-height: 1.65;
  min-height: 1.65em;
}
.property .card-address {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.65;
  min-height: 3.3em;
}
.property .price {
  margin-top: auto;
  padding-top: 19px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: start;
  min-height: 83px;
}
.property .price strong {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}
.property .price > span {
  font-size: 11px;
  line-height: 1.6;
  color: #78836f;
}
@media (max-width: 760px) {
  .property h3 {
    font-size: 21px;
    min-height: 0;
  }
  .property .card-description,
  .property .card-address {
    min-height: 0;
  }
  .property .price {
    min-height: 0;
    padding-bottom: 2px;
  }
}
