/* Resale & Rentals — editorial catalog aligned with projects page */

.hh-resale-page {
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.hh-resale-page #topcontrol,
.hh-resale-page .topcontrol {
  display: none !important;
}

.hh-resale-page h1,
.hh-resale-page h2,
.hh-resale-page h3,
.hh-resale-page .hh-display,
.hh-resale-page .hh-hero__title,
.hh-resale-page .hh-cta__title,
.hh-resale-page .hh-resale-empty__title,
.hh-resale-page .hh-resale-card__body h3 {
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hh-resale-page #main-content {
  padding-top: 0;
  margin-top: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.hh-resale-page .container {
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
}

/* ---- Hero ---- */
.hh-resale-page .hh-hero {
  min-height: min(62vh, 520px);
  overflow: hidden;
  align-items: flex-start;
}

.hh-resale-page .hh-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  padding: calc(var(--hh-header-height, 96px) + var(--hh-nav-inset, 16px) + 1.75rem)
    1.25rem 3.75rem;
  width: 100%;
  max-width: 1140px;
  box-sizing: border-box;
}

.hh-resale-page .hh-hero__copy {
  max-width: 40rem;
  min-width: 0;
  width: 100%;
}

.hh-resale-page .hh-hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 4.25rem) !important;
  overflow-wrap: break-word;
}

.hh-resale-page .hh-hero__text {
  max-width: 30rem;
}

.hh-resale-page .hh-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hh-resale-page .hh-hero__jump a {
  font-family: "Outfit", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.hh-resale-page .hh-hero__jump a:hover,
.hh-resale-page .hh-hero__jump a:focus {
  color: var(--hh-gold-light, #e0bc4a) !important;
}

.hh-resale-page .hh-hero__jump a:focus-visible {
  outline: 2px solid var(--hh-gold, #c9a227);
  outline-offset: 4px;
}

/* ---- Catalog ---- */
.hh-resale-catalog {
  padding: 5rem 0 0;
  background: var(--hh-surface-0, #050505);
}

.hh-resale-catalog__intro {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

/* ---- Filters (interaction toolbar, not marketing pills) ---- */
.hh-resale-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: flex-end;
  padding: 0 0 1.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: calc(var(--hh-header-height, 96px) + var(--hh-nav-inset, 16px) + 0.35rem);
  z-index: 20;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 5, 0.97) 0%,
    rgba(5, 5, 5, 0.92) 70%,
    rgba(5, 5, 5, 0.85) 100%
  );
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hh-resale-filters__group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.hh-resale-filters__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 228, 217, 0.42) !important;
}

.hh-resale-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  align-items: center;
}

.hh-resale-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 228, 217, 0.62) !important;
  font-family: "Outfit", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.hh-resale-chip::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 1px;
  background: transparent;
  transition: background 0.2s ease;
}

.hh-resale-chip:hover,
.hh-resale-chip:focus {
  color: #fff !important;
}

.hh-resale-chip.is-active {
  color: var(--hh-gold-light, #e0bc4a) !important;
}

.hh-resale-chip.is-active::after {
  background: var(--hh-gold, #c9a227);
}

.hh-resale-chip:focus-visible {
  outline: 2px solid var(--hh-gold, #c9a227);
  outline-offset: 3px;
}

/* ---- Main listing area ---- */
.hh-resale-main {
  padding: 2.5rem 0 1rem;
  background: var(--hh-surface-0, #050505);
}

/* ---- Empty / coming soon ---- */
.hh-resale-empty {
  max-width: 36rem;
  margin: 0 0 3.5rem;
  padding: 0 0 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.hh-resale-empty__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 1.4rem + 1.5vw, 2.75rem) !important;
  line-height: 1.12 !important;
  color: #fff !important;
}

.hh-resale-empty p:not(.hh-eyebrow) {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.72) !important;
  max-width: 30rem;
}

/* ---- Building bands (case-study style) ---- */
.hh-resale-building {
  padding: 3.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: calc(var(--hh-header-height, 96px) + 48px);
}

.hh-resale-building:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.hh-resale-building__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem 3rem;
  align-items: center;
  margin-bottom: 0;
}

.hh-resale-building--flip .hh-resale-building__photo {
  order: 2;
}

.hh-resale-building--flip .hh-resale-building__copy {
  order: 1;
}

.hh-resale-building__photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #0e0e0e;
  border-radius: 2px;
}

.hh-resale-building__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-resale-building:hover .hh-resale-building__photo img {
  transform: scale(1.04);
}

.hh-resale-building__copy {
  min-width: 0;
}

.hh-resale-building__index {
  margin: 0 0 0.65rem;
  font-family: "Outfit", sans-serif !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--hh-gold, #c9a227) !important;
}

.hh-resale-building__intro h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem) !important;
  line-height: 1.08 !important;
  color: #fff !important;
}

.hh-resale-building__intro p:not(.hh-eyebrow):not(.hh-resale-building__index) {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  line-height: 1.7;
  color: rgba(232, 228, 217, 0.7) !important;
}

.hh-resale-building__none {
  margin: 1.5rem 0 0;
  color: rgba(232, 228, 217, 0.48) !important;
  font-size: 0.95rem;
}

.hh-resale-building__ask {
  margin-top: 1.5rem;
}

/* ---- Listing grid ---- */
.hh-resale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 2.25rem;
}

.hh-resale-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hh-resale-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #111;
  overflow: hidden;
  border-radius: 2px;
}

.hh-resale-slides {
  position: absolute;
  inset: 0;
}

.hh-resale-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hh-resale-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hh-resale-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hh-resale-card:hover .hh-resale-slide.is-active img {
  transform: scale(1.03);
}

.hh-resale-prev,
.hh-resale-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(5, 5, 5, 0.62);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.hh-resale-card:hover .hh-resale-prev,
.hh-resale-card:hover .hh-resale-next,
.hh-resale-card:focus-within .hh-resale-prev,
.hh-resale-card:focus-within .hh-resale-next {
  opacity: 1;
}

.hh-resale-prev:hover,
.hh-resale-next:hover {
  background: rgba(5, 5, 5, 0.85);
  border-color: rgba(201, 162, 39, 0.45);
}

.hh-resale-prev {
  left: 0.6rem;
}

.hh-resale-next {
  right: 0.6rem;
}

.hh-resale-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.hh-resale-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hh-resale-dot.is-active {
  background: var(--hh-gold, #c9a227);
}

.hh-resale-card__body {
  padding: 1.15rem 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.hh-resale-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.hh-resale-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hh-resale-badge--offer {
  color: var(--hh-gold-light, #e0bc4a) !important;
}

.hh-resale-badge--status {
  color: rgba(232, 228, 217, 0.55) !important;
}

.hh-resale-status--booked,
.hh-resale-status--sold,
.hh-resale-status--rented {
  opacity: 0.7;
}

.hh-resale-id {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(232, 228, 217, 0.4);
  letter-spacing: 0.06em;
}

.hh-resale-card__body h3 {
  margin: 0.2rem 0 0;
  font-size: 1.55rem !important;
  color: #fff !important;
  line-height: 1.15 !important;
}

.hh-resale-card__type {
  margin: 0;
  font-size: 0.8125rem;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  color: rgba(232, 228, 217, 0.5) !important;
}

.hh-resale-card__meta {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
  color: rgba(232, 228, 217, 0.72) !important;
}

.hh-resale-card__price {
  margin: 0.5rem 0 0.85rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hh-gold-light, #e0bc4a) !important;
}

.hh-resale-wa {
  margin-top: auto;
  text-align: center;
  width: 100%;
}

.hh-resale-page .hh-cta {
  margin-top: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hh-resale-page .hh-hero {
    min-height: 0;
  }

  .hh-resale-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 88px) + var(--hh-nav-inset, 12px) + 1.5rem)
      1.15rem 3.25rem;
  }

  .hh-resale-building__intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hh-resale-building--flip .hh-resale-building__photo,
  .hh-resale-building--flip .hh-resale-building__copy {
    order: unset;
  }

  .hh-resale-catalog {
    padding-top: 3.75rem;
  }
}

@media (max-width: 767px) {
  .hh-resale-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 80px) + var(--hh-nav-inset, 10px) + 1.25rem)
      1rem 2.75rem;
  }

  .hh-resale-page .hh-hero__jump {
    justify-content: flex-start;
    gap: 0.5rem 0.85rem;
    margin-top: 1.35rem;
    padding-top: 1.1rem;
  }

  .hh-resale-filters {
    position: static;
    gap: 1.15rem;
    padding-bottom: 1.35rem;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hh-resale-catalog {
    padding-top: 3rem;
  }

  .hh-resale-catalog__intro {
    margin-bottom: 1.75rem;
  }

  .hh-resale-building {
    padding: 2.5rem 0;
  }

  .hh-resale-building__photo {
    aspect-ratio: 16 / 10;
  }

  .hh-resale-empty {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
  }

  .hh-resale-prev,
  .hh-resale-next {
    opacity: 1;
  }

  .hh-resale-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hh-resale-page .hh-hero__inner {
    padding: calc(var(--hh-header-height, 80px) + var(--hh-nav-inset, 10px) + 1rem)
      0.85rem 2.25rem;
  }

  .hh-resale-chip {
    padding: 0.35rem 0.55rem;
    font-size: 0.8125rem;
  }

  .hh-resale-chip::after {
    left: 0.55rem;
    right: 0.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hh-resale-slide,
  .hh-resale-building__photo img,
  .hh-resale-slide img,
  .hh-resale-prev,
  .hh-resale-next,
  .hh-resale-chip,
  .hh-resale-chip::after {
    transition: none;
  }

  .hh-resale-building:hover .hh-resale-building__photo img,
  .hh-resale-card:hover .hh-resale-slide.is-active img {
    transform: none;
  }
}
