/* ============================================================
   HOME DREAMERS REALTY — Properties Listing Page
   css/listings.css
   ============================================================ */

/* ── WRAP ─────────────────────────────────────────────────── */
.hdr-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── PAGE HERO ────────────────────────────────────────────── */
.hdr-listing-hero {
  background: linear-gradient(135deg, #0a502b 0%, #0c723e 100%);
  padding: 48px 0 44px;
  text-align: center;
  color: #fff;
}

.hdr-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.7);
  margin: 0 0 10px;
}

.hdr-listing-hero h1 {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 36px;
  font-weight: 600;
  color: #fff !important;
  margin: 0 0 10px;
}

.hdr-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  margin: 0;
}

/* ── AREA TABS ────────────────────────────────────────────── */
.hdr-area-tabs {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 68px;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.hdr-area-tabs-inner {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hdr-area-tabs-inner::-webkit-scrollbar { display: none; }

.hdr-area-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}

.hdr-area-tab:hover {
  color: #0c723e;
  border-bottom-color: #e8f5ee;
}

.hdr-area-tab.active {
  color: #0c723e;
  border-bottom-color: #0c723e;
}

/* ── FILTER BAR ───────────────────────────────────────────── */
.hdr-filter-bar {
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}

.hdr-filter-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hdr-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hdr-filter-group select,
.hdr-filter-group input[type="number"] {
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  color: #374151;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.hdr-filter-group input[type="number"] {
  width: 90px;
  background-image: none;
  padding-right: 12px;
}

.hdr-filter-group select:focus,
.hdr-filter-group input:focus {
  border-color: #0c723e;
  box-shadow: 0 0 0 3px rgba(12,114,62,.1);
  outline: none;
}

.hdr-price-sep {
  color: #9ca3af;
  font-weight: 600;
}

.hdr-filter-btn {
  height: 40px;
  padding: 0 20px;
  background: #0c723e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}

.hdr-filter-btn:hover { background: #0a502b; }

.hdr-clear-btn {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
  white-space: nowrap;
}

.hdr-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* ── RESULTS BAR ──────────────────────────────────────────── */
.hdr-results-wrap { padding-top: 28px; padding-bottom: 60px; }

.hdr-results-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hdr-count {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.hdr-active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hdr-chip {
  background: #e8f5ee;
  color: #0a502b;
  border: 1px solid #c8e6d4;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ── PROPERTY GRID ────────────────────────────────────────── */
.hdr-prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .hdr-prop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hdr-prop-grid { grid-template-columns: 1fr; }
}

/* ── PROPERTY CARD ────────────────────────────────────────── */
.hdr-prop-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.hdr-prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
}

/* Card image */
.hdr-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f3f4f6;
}

.hdr-card-img a { display: block; height: 100%; }

.hdr-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.hdr-prop-card:hover .hdr-card-img img {
  transform: scale(1.04);
}

.hdr-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e8f5ee, #f9fafb);
}

/* Badges */
.hdr-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hdr-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.hdr-badge-label {
  background: #f3ab1e;
  color: #fff;
}

.hdr-badge-status {
  background: rgba(10,80,43,.85);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hdr-card-type {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* Card body */
.hdr-card-body {
  padding: 18px 18px 12px;
  flex: 1;
}

.hdr-card-price {
  font-size: 20px;
  font-weight: 800;
  color: #0c723e;
  font-family: 'Nunito Sans', sans-serif;
  margin-bottom: 2px;
}

.hdr-card-pnote {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}

.hdr-card-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 0 6px !important;
  line-height: 1.4 !important;
}

.hdr-card-title a {
  color: #111827 !important;
  text-decoration: none;
}

.hdr-card-title a:hover { color: #0c723e !important; }

.hdr-card-addr {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 10px;
}

.hdr-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hdr-card-specs span {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Card footer buttons */
.hdr-card-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #f3f4f6;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 10px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .15s;
  cursor: pointer;
  border: none;
}

.hdr-btn-outline {
  background: #fff;
  color: #0c723e;
  border-right: 1px solid #f3f4f6;
}

.hdr-btn-outline:hover {
  background: #e8f5ee;
  color: #0a502b;
}

.hdr-btn-gold {
  background: #f3ab1e;
  color: #fff;
}

.hdr-btn-gold:hover {
  background: #d4920f;
  color: #fff;
}

/* ── PAGINATION ───────────────────────────────────────────── */
.hdr-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.hdr-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #374151;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: .2s;
}

.hdr-pagination .page-numbers:hover,
.hdr-pagination .page-numbers.current {
  background: #0c723e;
  color: #fff;
  border-color: #0c723e;
}

.hdr-pagination .prev,
.hdr-pagination .next {
  width: auto;
  padding: 0 16px;
}

/* ── NO RESULTS ───────────────────────────────────────────── */
.hdr-no-results {
  text-align: center;
  padding: 80px 20px;
}

.hdr-no-results-icon { font-size: 56px; margin-bottom: 16px; }
.hdr-no-results h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: #111827;
}
.hdr-no-results p {
  color: #6b7280;
  margin: 0 0 24px;
}

/* ── MOBILE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hdr-listing-hero { padding: 32px 0; }
  .hdr-listing-hero h1 { font-size: 26px !important; }

  .hdr-filter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hdr-filter-group select { width: 100%; }

  .hdr-filter-group.hdr-filter-price {
    grid-column: 1 / -1;
  }

  .hdr-filter-btn { grid-column: 1 / -1; width: 100%; }
  .hdr-clear-btn  { grid-column: 1 / -1; width: 100%; justify-content: center; }
}
