/* ────────────────────────────────
   LISTING TOOLBAR — result count + sort
──────────────────────────────── */
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--surface);
  flex-wrap: wrap;
}

.listing-toolbar__count {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
}

.listing-toolbar__search {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--graphite);
  background: var(--white);
}

.listing-toolbar__search:focus {
  outline: none;
  border-color: var(--steel);
}

.listing-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-toolbar__sort label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--graphite);
}

.listing-toolbar__sort select {
  border: 1px solid var(--surface);
  border-radius: var(--radius-full);
  padding: 8px 32px 8px 16px;
  font-size: 13px;
  color: var(--navy);
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6B78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 12px center / 12px;
}

/* ────────────────────────────────
   PROPERTY CARD — listing grid component
──────────────────────────────── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 30px;
}

.property-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10, 26, 47, 0.04),
    0 1px 8px rgba(10, 26, 47, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgba(10, 26, 47, 0.12);
}

.property-card__media {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .property-card__media img {
  transform: scale(1.05);
}

.property-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 26, 47, 0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.property-card__body {
  padding: 24px;
}

.property-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 16px;
}

.property-card__location .icon {
  color: var(--steel);
  flex-shrink: 0;
}

.property-card__meta {
  font-size: 12.5px;
  color: var(--graphite);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--surface);
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.property-card__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 2px;
}

.property-card__price {
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
}

.property-card__cta {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.property-card__cta:hover {
  background: var(--ocean);
  transform: scale(1.08);
}

/* ────────────────────────────────
   SPOTLIGHT CARD — hand-picked featured listing
──────────────────────────────── */
.spotlight-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface);
}

.spotlight-card__media {
  display: block;
  position: relative;
  min-height: 420px;
}

.spotlight-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(10, 26, 47, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.spotlight-card__body {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight-card__body h3 {
  font-size: clamp(28px, 2.8vw, 38px);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-card__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 20px;
}

.spotlight-card__location .icon {
  color: var(--steel);
}

.spotlight-card__desc {
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 20px;
  max-width: 460px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-card__meta {
  font-size: 13px;
  color: var(--graphite);
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--surface);
}

.spotlight-card__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.spotlight-card__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}

.spotlight-card__price {
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
}

.spotlight-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.listing-empty {
  text-align: center;
  padding: 60px 0;
  font-size: 15px;
  color: var(--graphite);
}

/* ────────────────────────────────
   NO-RESULTS POPUP — shown right after a deliberate Search (on-page
   submit, or landing here from the home page hero search) turns up
   nothing, on top of the quiet inline .listing-empty text
──────────────────────────────── */
.listing-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 26, 47, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.listing-modal.is-open {
  display: flex;
}

.listing-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.listing-modal__card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--navy);
}

.listing-modal__card p {
  font-size: 14px;
  color: var(--graphite);
  line-height: 1.6;
  margin-bottom: 24px;
}

.listing-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
  border: none;
  border-radius: 50%;
  color: var(--graphite);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.listing-modal__close:hover {
  background: var(--surface);
}

/* ────────────────────────────────
   PAGINATION — shared with the blog listing's pattern
──────────────────────────────── */
.listing-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}

.listing-pagination a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
  border: 1px solid var(--surface);
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
}

.listing-pagination a:hover {
  border-color: var(--steel);
}

.listing-pagination a.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.listing-pagination a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .spotlight-card {
    grid-template-columns: 1fr;
  }

  .spotlight-card__media {
    min-height: 200px;
  }

  .spotlight-card__body {
    padding: 24px;
  }

  .spotlight-card__location {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .spotlight-card__body h3 {
    font-size: 24px;
  }
  .spotlight-card__meta {
    font-size: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .spotlight-card__desc {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .spotlight-card__price {
    font-size: 22px;
  }

  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .spotlight-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .listing-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .listing-toolbar__search {
    max-width: none;
  }
}
