/* ══════════════════════════════════════════════════════════
   LISTINGS PAGE
   ══════════════════════════════════════════════════════════ */


/* ══ PAGE HEADER ══════════════════════════════════════════ */

.page-header {
  padding: 110px 60px 44px;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  max-width: 1320px;
  margin: 0 auto;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-eyebrow {
  margin-bottom: 10px;

  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  color: var(--white);
}

.page-count {
  margin-top: 8px;

  font-size: 0.85rem;
  color: var(--sub);
}

.page-count strong {
  color: var(--cream);
}


/* ══ LISTING TYPE TOGGLE ══════════════════════════════════ */

.type-toggle {
  display: flex;
  flex-shrink: 0;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
}

.type-toggle a {
  padding: 11px 28px;

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  color: var(--sub);
  text-decoration: none;

  transition:
    color 0.25s,
    background 0.25s;
}

.type-toggle a.active {
  background: var(--gold);
  color: var(--navy);
}

.type-toggle a:not(.active):hover {
  color: var(--cream);
}


/* ══ FILTERS ══════════════════════════════════════════════ */

.filters-wrap {
  position: sticky;
  top: 70px;
  z-index: 50;

  background: var(--navy);
  border-bottom: 1px solid var(--border);
}

.filters-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 60px;

  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-label {
  margin-right: 2px;
  flex-shrink: 0;

  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sub);
}

.filter-select {
  appearance: none;

  padding: 8px 28px 8px 12px;

  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(90,122,148,0.8)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;

  border: 1px solid var(--border);
  border-radius: 2px;

  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: var(--cream);

  outline: none;
  cursor: pointer;

  transition: border-color 0.2s;
}

.filter-select:focus {
  border-color: rgba(201, 168, 76, 0.4);
}

.filter-select option {
  background: var(--navy2);
}

.filter-pill {
  padding: 7px 16px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 20px;

  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--sub);

  cursor: pointer;
  white-space: nowrap;

  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.filter-pill.active {
  background: rgba(201, 168, 76, 0.12);
  border-color: rgba(201, 168, 76, 0.4);
  color: var(--gold);
}

.filter-pill:hover:not(.active) {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-clear {
  margin-left: auto;

  background: none;
  border: none;

  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: var(--sub);

  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;

  transition: color 0.2s;
}

.filter-clear:hover {
  color: var(--gold);
}

.view-toggle {
  display: flex;
  gap: 4px;
}

.view-btn {
  padding: 7px 9px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;

  color: var(--sub);
  cursor: pointer;

  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.view-btn.active {
  background: rgba(201, 168, 76, 0.1);
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--gold);
}

.view-btn:hover:not(.active) {
  color: var(--cream);
}




/* ══ MAIN ═════════════════════════════════════════════════ */

.main-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 60px 100px;
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 28px;
}

.results-info {
  font-size: 0.83rem;
  color: var(--sub);
}

.results-info strong {
  color: var(--cream);
}

.sort-wrap {
  font-size: 0.78rem;
  color: var(--sub);
}


/* ══ LISTINGS GRID ════════════════════════════════════════ */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  width: 100%;
}

.listings-grid.list-view {
  grid-template-columns: 1fr;
}

.list-view .property-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.list-view .card-image {
  height: 100%;
  min-height: 180px;
}

.list-view .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
}


/* ══ LIST VIEW ════════════════════════════════════════════ */

.list-view .property-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.list-view .card-image {
  height: 100%;
  min-height: 180px;
}

.list-view .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 24px 28px;
}


/* ══ VIEW MORE ════════════════════════════════════════════ */

.view-more-wrap {
  grid-column: 1 / -1;

  display: flex;
  justify-content: center;

  padding: 16px 0 4px;
}

.btn-view-more {
  position: relative;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 15px 40px;

  overflow: hidden;

  background: linear-gradient(
    135deg,
    var(--gold) 0%,
    var(--gold-lt) 50%,
    var(--gold) 100%
  );
  background-size: 200% 100%;

  border: none;
  border-radius: 2px;

  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;

  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);

  animation: listings-shimmer 3s infinite;

  transition:
    background-position 0.5s,
    transform 0.25s,
    box-shadow 0.25s;
}

.btn-view-more::before {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );

  transform: translateX(-100%);

  animation: listings-sheen 3s infinite 1s;
}

.btn-view-more:hover {
  transform: translateY(-2px);

  background-position: 100% 0;

  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.btn-view-more svg {
  transition: transform 0.25s;
}

.btn-view-more:hover svg {
  transform: translateX(4px);
}

@keyframes listings-shimmer {
  0%,
  100% {
    background-position: 0% 0;
  }

  50% {
    background-position: 100% 0;
  }
}

@keyframes listings-sheen {
  0% {
    transform: translateX(-100%);
  }

  30%,
  100% {
    transform: translateX(100%);
  }
}


/* ══ NO RESULTS ══════════════════════════════════════════ */

.no-results {
  display: none;

  padding: 80px 20px;

  text-align: center;
}

.no-results-icon {
  margin-bottom: 16px;

  font-size: 2.5rem;

  opacity: 0.4;
}

.no-results h3 {
  margin-bottom: 8px;

  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  color: var(--white);
}

.no-results p {
  font-size: 0.88rem;
  color: var(--sub);
}

.no-results a {
  color: var(--gold);
}


.listings-empty {
  max-width: 620px;
  margin: 60px auto;
  padding: 48px 32px;

  text-align: center;

  background: var(--navy2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.listings-empty-icon {
  margin-bottom: 20px;
  font-size: 2.4rem;
}

.listings-empty-title {
  margin-bottom: 12px;

  font-size: 1.6rem;
  font-weight: 600;

  color: var(--white);
}

.listings-empty-text {
  max-width: 480px;
  margin: 0 auto;

  font-size: 0.9rem;
  line-height: 1.7;

  color: var(--sub);
}



/* ══ PAGINATION ══════════════════════════════════════════ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;

  margin-top: 56px;
}

.page-btn {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;

  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  color: var(--sub);

  cursor: pointer;

  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.page-btn:hover {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);

  color: var(--navy);
  font-weight: 700;
}

.page-btn.wide {
  width: auto;
  padding: 0 14px;
}


/* ══ REVEALS ═════════════════════════════════════════════ */

.fade-in {
  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.2);
}

.fade-in.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ══ RESPONSIVE ══════════════════════════════════════════ */

@media (max-width: 960px) {
  .page-header {
    padding: 90px 24px 36px;
  }

  .filters-inner {
    padding: 12px 24px;
  }

  .main-wrap {
    padding: 32px 24px 80px;
  }

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

  .list-view .property-card {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 580px) {
  .page-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .type-toggle {
    width: 100%;
  }

  .type-toggle a {
    width: 50%;
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .filters-inner {
    align-items: stretch;
  }

  .filter-label {
    width: 100%;
  }

  .filter-select {
    flex: 1 1 calc(50% - 10px);
  }

  .filter-clear {
    margin-left: 0;
  }

  .view-toggle {
    margin-left: auto;
  }

  .results-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

  .list-view .card-image {
    min-height: 200px;
  }
}




