/* ============================================
   PROPERTIES PAGE STYLES
   ============================================ */

/* --- Filter Bar --- */
.filter-bar {
  position: relative;
  z-index: 10;
  margin-top: -40px;
  margin-bottom: 40px;
}
.filter-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
.filter-group {
  display: flex;
  flex-direction: column;
}
.filter-group label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.filter-group select {
  padding: 12px 36px 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23A09D98' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: all 0.3s;
  cursor: pointer;
}
.filter-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-muted);
}
.filter-search-btn {
  padding: 12px 32px;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-search-btn svg {
  width: 16px;
  height: 16px;
}

/* --- Tabs Row --- */
.tabs-section {
  padding: 0 0 20px;
}
.tabs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-50);
  border: 1.5px solid transparent;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.tab-btn:hover {
  color: var(--navy);
  background: var(--gray-100);
}
.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.tab-count {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* --- Listings Section --- */
.listings-section {
  padding: 20px 0 80px;
}
.listings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.listings-header p {
  font-size: 0.88rem;
  color: var(--gray-500);
}
.listings-header p strong {
  color: var(--navy);
}
.sort-select {
  padding: 8px 36px 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--gray-600);
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23A09D98' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.load-more-wrap {
  text-align: center;
  margin-top: 48px;
}
.load-more-btn {
  padding: 14px 40px;
}

/* --- Featured Property --- */
.featured-section {
  padding: 80px 0;
  background: var(--off-white);
}
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.featured-image {
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gray-100) 100%);
}
.featured-image .badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 8px 16px;
  font-size: 0.75rem;
}
.featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 12px;
}
.featured-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.featured-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 500;
  margin-bottom: 16px;
}
.featured-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.featured-desc {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 24px;
}
.featured-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.featured-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
}
.featured-spec svg {
  width: 18px;
  height: 18px;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.featured-price {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--navy);
  font-weight: 400;
  margin-bottom: 4px;
}
.featured-price-note {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.featured-buttons {
  display: flex;
  gap: 12px;
}

/* --- Explore by Location --- */
.locations-section {
  padding: 100px 0;
}
.locations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.location-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--navy-2);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,20,38,0.95) 0%, rgba(11,20,38,0.3) 50%, rgba(11,20,38,0.15) 100%);
  z-index: 1;
}
.location-card-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy-3) 100%);
}
.location-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--white);
}
.location-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
}
.location-content h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 4px;
}
.location-region {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.location-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* --- Investment Guide --- */
.guide-section {
  padding: 100px 0;
  background: var(--off-white);
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all 0.4s var(--ease);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.guide-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}
.guide-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.guide-card > p {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.guide-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 7px;
}

/* --- Comparison Section --- */
.compare-section {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.compare-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.compare-section .container {
  position: relative;
  z-index: 1;
}
.compare-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table thead th {
  padding: 16px 24px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
}
.compare-table thead th:first-child {
  color: rgba(255,255,255,0.3);
}
.compare-table thead th:nth-child(2) {
  color: var(--gold);
}
.compare-table thead th:nth-child(3) {
  color: rgba(255,255,255,0.3);
}
.compare-table tbody td {
  padding: 18px 24px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.compare-table tbody td:first-child {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.compare-table tbody td:nth-child(2) {
  color: var(--white);
}
.compare-table tbody td:nth-child(3) {
  color: rgba(255,255,255,0.35);
}
.compare-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compare-check svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

/* --- CTA Section --- */
.properties-cta {
  padding: 100px 0;
  background: var(--cream);
  text-align: center;
}
.properties-cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto 12px;
}
.properties-cta h2 em {
  color: var(--gold-dark);
  font-style: italic;
}
.properties-cta p {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ============================================
   PROPERTIES PAGE RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .filter-card {
    grid-template-columns: 1fr 1fr;
  }
  .filter-search-btn {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-image {
    min-height: 300px;
  }
  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .filter-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .tabs-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
  .listings-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .featured-body {
    padding: 32px 24px;
  }
  .featured-specs {
    grid-template-columns: 1fr 1fr;
  }
  .featured-buttons {
    flex-direction: column;
  }
  .locations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .compare-table thead th,
  .compare-table tbody td {
    padding: 14px 16px;
    font-size: 0.82rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .featured-specs {
    grid-template-columns: 1fr;
  }
}


.featured-section {
    display: none !important;
  }