/* Listing grid & cards */
.listing-grid{display:grid;gap:18px}
.card{
  display:flex;gap:14px;background:#fff;border-radius:10px;padding:12px;border:1px solid #f0e0c8;box-shadow: 0 4px 12px rgba(18,34,28,0.03);
  align-items:flex-start;
  position: relative;
  overflow: hidden;
}
.thumb{
  width:150px;height:110px;flex-shrink:0;border-radius:8px;overflow:hidden;background:#efefef;display:flex;align-items:center;justify-content:center;
}

.horizontal-card {
  /* width: 700px; */
  display: flex !important;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.horizontal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Image --- */
.horizontal-card .thumb {
  flex: 0 0 180px;
  height: 120px;
  overflow: hidden;
  border-radius: 8px;
}

.horizontal-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Card body --- */
.horizontal-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.price {
  font-weight: bold;
  color: #009879;
  margin-bottom: 0.5rem;
}

.meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: auto; /* pushes badges to bottom */
}

/* --- Badges at bottom-right --- */
.badge-row {
  display: flex;
  gap: 0.0rem;
  position: absolute;
  bottom: 0rem;
  right: 0.5rem;
}

.small-badge {
  background: firebrick;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.badge {
  background: gold;
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}
.status.enabled { color: green; font-weight: bold; }
.status.disabled { color: red; font-weight: bold; }
.status.paused { color: orange; font-weight: bold; }
.status.unknown { color: gray; font-weight: bold; }

/* --- Responsive: stack vertically --- */
@media (max-width: 768px) {
  .horizontal-card {
    flex-direction: column !important;
    text-align: center;
  }

  .horizontal-card .thumb {
    width: 100%;
    height: 200px;
  }

  .horizontal-card .card-body {
    position: relative;
    padding-bottom: 2rem; /* space for bottom badges */
  }

  .badge-row {
    justify-content: center;
    position: static;
    margin-top: 0.5rem;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 40px;
}

.page-btn {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.page-btn.active {
  background: darkcyan;
  color: #fff;
  font-weight: 600;
}

/* Featured multi-image card style */
.card.featured{
  border-color:#e9d4a7;background:linear-gradient(180deg,#fffaf2,#fff8f0)
}
.carousel-row{display:flex;gap:8px;align-items:center}
.mini-thumb{width:120px;height:70px;border-radius:6px;overflow:hidden;background:#ddd}

/* ========== Footer small ========== */
.results-meta{margin:6px 0 12px 0;color:var(--muted);font-size:14px}

/* ========== Responsive ========== */
@media (max-width: 980px){
  .container{grid-template-columns: 1fr; padding:0 14px}
  .sidebar{position:static;order:2;margin-top:12px}
  .topbar-inner{gap:10px}
  .thumb{width:120px;height:90px}
}
@media (max-width: 520px){
  .hero-search{flex-direction:column;align-items:stretch;gap:10px}
  .thumb{width:100%;height:160px}
  .card{flex-direction:column;align-items:stretch}
  .carousel-row{overflow:auto}
  .mini-thumb{min-width:120px;flex:0 0 auto}
}

/* small helpers */
.muted{color:var(--muted)}
.kicker{display:inline-block;background:#ffecc4;padding:6px 8px;border-radius:6px;font-size:12px;font-weight:700;color:#7a4b00}

#category-filter { font-family: inherit; }

.category-card-link {
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}

.category-card-link:hover {
  background-color: #f5f5f5;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}





/* --- URGENT RIBBON --- */
.urgent-ribbon {
  position: absolute;
  top: 10px;
  right: -40px;
  background: #d9534f;
  color: white;
  padding: 5px 40px;
  font-size: 0.75rem;
  font-weight: bold;
  transform: rotate(45deg);
  z-index: 20;
  text-align: center;
}

/* --- BOOST ICONS --- */
.spotlight-icon {
  width: 20px;
  height: 20px;
  margin-left: 4px;
}

/* --- FEATURED CARD LAYOUT --- */
.featured-card {
  /* width: 700px; */
  border: 1px solid #ff8400;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 0;
  position: relative;
  overflow: hidden;
  background: white;
  cursor: pointer;
}

/* GREEN FEATURED LABEL */
.featured-label {
  position: absolute;
  top: 8px;
  left: 0;
  background: #ff8400;
  color: white;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 0 5px 5px 0;
  z-index: 10;
}

/* Featured image layout */
.featured-photos {
  display: flex;
  gap: 5px;
  padding: 10px;
}

.featured-photos .photo-box {
  flex: 1;
  position: relative;
}

.featured-photos img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.photo-box .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  border-radius: 6px;
}

/* Featured card body */
.featured-body {
  padding: 10px 12px;
}

.featured-body .title {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 3px;
}

.featured-body .address {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.featured-body .price {
  color: #149777;
  font-weight: bold;
}
