[data-listing-gallery][data-carousel-ready] .property-grid {
  --listing-gap: clamp(13px, 2vw, 27px);
  position: relative;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--listing-gap)) / 2);
  gap: var(--listing-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

[data-carousel-ready] .property-grid::-webkit-scrollbar { display: none; }
[data-carousel-ready] .property-grid:focus-visible,
[data-carousel-ready] .property-link:focus-visible { outline-offset: -4px; }
[data-carousel-ready] .property { min-width: 0; scroll-snap-align: start; }
.property-price { margin-top: 8px; color: var(--navy); font-weight: 650; }
.listing-empty { padding-block: 18px; color: var(--body-ink); }

.property-text-only .property-link { min-height: clamp(240px, 24vw, 340px); background: var(--navy); color: var(--white); }
.property-text-only .property-copy { display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 27px; }
.property-text-only .label, .property-text-only .property-detail { color: var(--blue-muted); }
.property-text-only .property-price { color: var(--white); }
.property-text-only .property-arrow { top: auto; bottom: 23px; border-color: var(--blue-muted); }
.property-text-only .property-link:hover .property-arrow { background: var(--white); color: var(--navy); }


.listing-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 19px;
}

.listing-pagination {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-mid);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.listing-pagination::before {
  width: 54px;
  height: 2px;
  background: linear-gradient(to right, var(--navy) var(--listing-progress, 0%), var(--rule) 0);
  content: '';
}

.listing-arrows { display: flex; gap: 8px; }
.listing-arrows button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.35rem;
  cursor: pointer;
}

.listing-arrows button:hover:not([aria-disabled='true']) {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.listing-arrows button[aria-disabled='true'] { opacity: .45; cursor: default; }

@media (max-width: 780px) {
  [data-listing-gallery][data-carousel-ready] .property-grid { grid-auto-columns: calc(100% - 30px); }
  [data-listing-gallery][data-carousel-ready] .property-grid[data-single-listing] { grid-auto-columns: 100%; }
  .listing-controls { margin-top: 14px; }
}
