/**
 * Property Archive Styles
 * Version: 2.5 (Definitive - Professional Color Palette)
 */

/* 1. FONT SETUP */
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-v34-latin-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-v34-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-v34-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/open-sans-v34-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. BASE & LAYOUT */
.property-archive-page {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7f9fc; /* Soft Gray Page Background */
}
.property-archive-page .site-main {
    padding-top: 0 !important;
    margin: 0 auto !important;
    max-width: 1400px;
}
.property-grid {
    padding: 16px;
    display: grid;
    gap: 20px;
}
/* Responsive Grid Columns */
@media (min-width: 600px) { .property-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .property-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .property-grid { grid-template-columns: repeat(4, 1fr); } }


/* 3. FILTER BAR & HEADER */
.filter-bar-container {
  background: white;
  border-bottom: 1px solid #e4e7ea; /* Pale Gray Border */
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  background: #f1f2f3;
  border: 1px solid #e4e7ea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #222e3a; /* Primary Text */
}
.filter-chip.active, .filter-chip:hover {
  background: #e9ecef;
  border-color: #d1d3d4;
}
.results-header {
  background: white;
  padding: 16px;
  border-bottom: 1px solid #e4e7ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-count { font-size: 16px; font-weight: 400; color: #6a7686; } /* Cool Gray */
.results-count strong { font-weight: 700; color: #222e3a; } /* Primary Text */
.sort-options { display: flex; gap: 8px; font-size: 13px; }
.sort-btn { background: none; border: none; color: #6a7686; cursor: pointer; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
.sort-btn.active { color: #1877f2; background: #f0f7ff; } /* Soft Blue Accent */

/* 4. PROPERTY CARD */
.property-card {
  background: #fff; /* Pure White Card */
  border: 1px solid #e4e7ea; /* Pale Gray Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(20,40,60,0.07); /* Soft Shadow */
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: #222e3a; /* Default Text Color */
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(20,40,60,0.1); /* Slightly darker on hover */
}
.property-card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #e9ecef;
}
img.property-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.property-card:hover img.property-card-image { transform: scale(1.05); }
.favorite-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.4);
  color: white; border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 18px; transition: background 0.2s;
}
.favorite-btn:hover { background: rgba(0,0,0,0.6); }

/* 5. PROPERTY CARD CONTENT (PROFESSIONAL PALETTE) */
.property-card-content {
  padding: 12px 16px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.property-card-price {
  font-size: 20px;
  font-weight: 700;
  color: #1640d6; /* Blue Brand Color */
  margin: 0 0 4px;
}
.property-card-details {
  display: flex;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  color: #6a7686; /* Cool Gray */
  margin-bottom: 8px;
}
.property-card-details strong { font-weight: 600; color: #222e3a; } /* Primary Text for emphasis */
.property-card-details .detail-separator { color: #8b98a9; } /* Mid Gray */
.property-card-location {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 4px;
  color: #222e3a; /* Primary Text */
}
.property-card-sub-location {
  font-size: 14px;
  color: #6a7686; /* Cool Gray */
  margin-bottom: 8px;
}
.property-card-publisher {
  font-size: 12px;
  color: #b6bdc6; /* Light Gray */
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}

/* 6. LOAD MORE & EMPTY STATE */
.load-more-container { padding: 24px 16px; text-align: center; }
.load-more-btn {
  background: #1877f2; /* Soft Blue Accent */
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.load-more-btn:hover { background: #1640d6; } /* Darker Blue on hover */
.empty-state {
  padding: 40px 20px;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  grid-column: 1 / -1;
}
.empty-state h2 { font-size: 20px; font-weight: 700; color: #222e3a; }
.empty-state p { font-size: 16px; color: #6a7686; }
/**
 * Property Archive Styles
 * Version: 4.2 (Final - Price Styling Only)
 */

.property-card-price {
  display: flex;
  align-items: baseline; /* Aligns the text nicely */
  flex-wrap: wrap; /* Allows text to wrap on small screens */
  gap: 8px; /* Space between the two price parts */
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-main {
  color: #1640d6; /* Blue color for the main price figure */
}

.price-secondary {
  font-size: 16px; /* Slightly smaller */
  font-weight: 600; /* Regular weight, not bold */
  color: #6a7686; /* Gray color for the secondary text */
}

/* 7. PROPERTY CARD ACTION BUTTONS - Single Row Layout with Swapped Colors */
.ziiz-card-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  flex-wrap: nowrap !important;
}

.ziiz-card-btn {
  flex: 1 1 50% !important;
  padding: 10px 12px !important;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  font-size: 14px !important;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.2;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

.ziiz-btn-details {
  background-color: #28a745; /* GREEN - View Details */
  color: white;
  border: 1px solid #28a745;
}

.ziiz-btn-details:hover {
  background-color: #218838;
  border-color: #218838;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.ziiz-btn-contact {
  background-color: #1640d6; /* BLUE - Show Contact */
  color: white;
  border: 1px solid #1640d6;
}

.ziiz-btn-contact:hover {
  background-color: #1230a8;
  border-color: #1230a8;
  color: white;
  transform: translateY(-1px);
}

/* Keep buttons side-by-side even on mobile */
@media (max-width: 600px) {
  .ziiz-card-actions {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 12px 10px 16px !important;
  }

  .ziiz-card-btn {
    flex: 1 1 50% !important;
    padding: 10px 8px !important;
    font-size: 13px !important;
  }
}