/* ═══════════════════════════════════════
   ROSHAN AASHIYANA — listings.css
   Browse / Listings page
═══════════════════════════════════════ */

/* ═══════ HERO BANNER ═══════ */
.listings-hero {
  position: relative;
  background-color: var(--navy);
  padding: 72px 0 56px;
  overflow: hidden;
  color: #fff;
}

.listings-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://t3.ftcdn.net/jpg/03/22/06/68/360_F_322066808_CANrp7u5Cdiz7700TJReqKD299d2AZtD.jpg');
  background-size: cover;
  background-position: center;
  opacity: .12;
}

.listings-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 50%, rgba(7,26,52,0.8) 100%);
}

.listings-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left text */
.listings-hero-text { max-width: 560px; }

.lh-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.listings-hero-text h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 14px;
}

.listings-hero-text h1 span { color: var(--green); }

.lh-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* Right stats */
.lh-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 24px 32px;
}

.lh-stat { text-align: center; }
.lh-num  { display: block; font-size: 28px; font-weight: 800; color: var(--green); line-height: 1; }
.lh-name { display: block; font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 4px; }

.lh-stat-div {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ═══════ SEARCH STRIP ═══════ */
.search-strip {
  background: var(--navy);
  padding: 0 0 28px;
  position: relative;
  z-index: 10;
}

.search-bar {
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.sb-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  min-width: 0;
}

.sb-field > i {
  color: var(--navy);
  font-size: 15px;
  flex-shrink: 0;
}

.sb-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sb-inner label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  margin-bottom: 2px;
}

.sb-inner input,
.sb-inner select {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  font-family: inherit;
  width: 100%;
}

.sb-inner input::placeholder { color: #aab4c4; font-weight: 400; }

.sb-div {
  width: 1px;
  height: 36px;
  background: #e5e7eb;
  flex-shrink: 0;
}

.sb-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0 28px;
  height: 100%;
  min-height: 56px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.sb-btn:hover { background: var(--green-dark); }

/* ═══════ MAIN BODY ═══════ */
.listings-body {
  background: var(--light-gray);
  padding: 36px 0 80px;
}

.listings-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

/* ═══════ SIDEBAR ═══════ */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 84px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border);
}

.sidebar-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-header h3 i { color: var(--green); font-size: 15px; }

.clear-link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  transition: color .2s;
}
.clear-link:hover { color: #e53935; }

/* Filter group */
.filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; margin-bottom: 20px; }

.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}

/* Radio pills */
.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}
.pill input[type="radio"] { display: none; }
.pill:hover { border-color: var(--green); color: var(--green); }
.pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* Select wrap */
.select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color .2s;
}
.select-wrap:focus-within { border-color: var(--green); }
.select-wrap i { color: var(--green); font-size: 13px; flex-shrink: 0; }
.select-wrap select {
  border: none; outline: none; background: transparent;
  font-size: 13px; font-family: inherit; width: 100%; color: var(--text);
  cursor: pointer;
}

/* Apply button */
.apply-btn {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background .2s;
}
.apply-btn:hover { background: var(--green); }

/* ═══════ LISTINGS PANEL ═══════ */
.listings-panel { flex: 1; min-width: 0; }

.listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.listing-top h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.listing-top h2 .count {
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

/* ═══════ PROPERTY CARDS ═══════ */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

.card-image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.card-img-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
  display: block;
  background: none;
}
.card:hover .card-image img { transform: scale(1.06); }

/* Badge */
.tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--green);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  z-index: 3;
}
.tag-rent { background: #1976d2; }

/* Favourite button — no color set here; child <i> controls colour */
.fav-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform .2s, background .2s;
  z-index: 5;
}
.fav-btn:hover { transform: scale(1.12); background: #fff; }
/* Unfavourited heart */
.fav-btn .fa-regular.fa-heart { color: var(--text-muted); }
/* Favourited heart — red */
.fav-btn .fa-solid.fa-heart { color: #e53935 !important; }

/* Card content */
.card-link { text-decoration: none; color: inherit; display: block; }

.card-content { padding: 18px 18px 16px; }

.card-content h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.location i { color: var(--green); font-size: 11px; }

.price {
  font-size: 19px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 14px;
}

.property-info {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.property-info span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.property-info i { color: #8096b0; font-size: 12px; }

/* ═══════ EMPTY STATE ═══════ */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.no-results i {
  font-size: 56px;
  color: var(--border);
  display: block;
  margin-bottom: 20px;
}
.no-results h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.no-results p  { font-size: 14px; }

/* ═══════ PAGINATION ═══════ */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page {
  min-width: 42px; height: 42px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--card-shadow);
  transition: background .2s, color .2s, transform .15s;
  padding: 0 8px;
  text-decoration: none;
}
.page:hover { background: var(--green-light); color: var(--green); transform: translateY(-2px); }
.page.active { background: var(--green); color: #fff; box-shadow: 0 4px 16px rgba(60,182,72,0.35); }
.page-arrow { font-size: 13px; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  .listings-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; }
  .radio-pills { flex-direction: row; }
}

@media (max-width: 900px) {
  .listings-hero-text h1 { font-size: 34px; }
  .lh-stats { padding: 18px 24px; gap: 16px; }
  .lh-num { font-size: 22px; }
}

@media (max-width: 768px) {
  .listings-hero { padding: 52px 0 40px; }
  .listings-hero-content { flex-direction: column; align-items: flex-start; gap: 24px; }
  .lh-stats { width: 100%; justify-content: space-around; }

  .search-bar { flex-direction: column; align-items: stretch; border-radius: 12px; }
  .sb-field { padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
  .sb-field:last-of-type { border-bottom: none; }
  .sb-div { display: none; }
  .sb-btn { width: 100%; justify-content: center; min-height: 50px; border-radius: 0 0 12px 12px; }

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

@media (max-width: 480px) {
  .listings-hero-text h1 { font-size: 28px; }
  .sidebar { padding: 20px 16px; }
}