/* Small helpers that sit beside Stitch/Tailwind utilities */

.sdc-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  min-width: 2.5rem;
  padding: 0 0.65rem;
  background: #370518;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.img-placeholder {
  background: linear-gradient(135deg, #e5e2e1 0%, #d7c1c5 50%, #521a2d 160%);
}

.hero-photo {
  background-image:
    linear-gradient(180deg, rgba(28,27,27,0.2), rgba(28,27,27,0.72)),
    linear-gradient(135deg, #521a2d, #1c1b1b);
  background-size: cover;
  background-position: center;
}

.collection-photo {
  background-image: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.7)),
    linear-gradient(135deg, #2c2e2e, #521a2d);
  background-size: cover;
  background-position: center;
}

/* Exclusive Collections / Markets cards — fill card, no stretch, centered crop */
.market-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 22rem;
  aspect-ratio: 3 / 4;
  padding: 1.5rem;
  overflow: hidden;
  background: #1c1b1b;
  color: #fff;
}
@media (min-width: 768px) {
  .market-card {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
}
.market-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #2a2426;
}
.market-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.market-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}
.market-card__content {
  position: relative;
  z-index: 2;
}

details summary::-webkit-details-marker { display: none; }

/* Property detail: sticky inquire (desktop) + mobile bottom CTA */
.property-inquiry-card {
  scroll-margin-top: 6.5rem;
}

@media (min-width: 1024px) {
  .property-inquiry-card.lg\:sticky {
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }
}

.property-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(253, 248, 247, 0.96);
  border-top: 1px solid rgba(215, 193, 197, 0.45);
  box-shadow: 0 -8px 28px rgba(55, 5, 24, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.property-mobile-cta.is-hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.property-mobile-cta__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.property-mobile-cta__price {
  min-width: 0;
  flex: 1;
}

.property-mobile-cta__price-label {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6e74;
}

.property-mobile-cta__price-value {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #370518;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-mobile-cta__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.property-mobile-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #370518;
}

.property-mobile-cta__btn--primary {
  background: #370518;
  color: #fff;
}

.property-mobile-cta__btn--ghost {
  background: transparent;
  color: #370518;
}

@media (max-width: 1023px) {
  body.property-detail-page {
    padding-bottom: 5.5rem;
  }
}
