/* ===== Category Tabs ===== */
.tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(0,0,0,0.25);
  color: #ddd;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.tab-btn:hover {
  background: rgba(0,0,0,0.35);
}

.tab-btn.active {
  background: #087dec;
  border-color: #087dec;
  color: #fff;
}

/* ===== Listings Grid ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.listing-card {
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.listing-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: rgba(0,0,0,0.3);
}

.listing-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.listing-category {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.listing-body h3 {
  margin: 6px 0;
  font-size: 17px;
  color: #fff;
}

.listing-price {
  font-size: 18px;
  font-weight: 700;
  color: #4caf50;
  margin-bottom: 4px;
}

.listing-location {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 8px;
}

.listing-description {
  font-size: 13px;
  color: #ccc;
  flex: 1;
  margin-bottom: 8px;
  line-height: 1.4;
}

.listing-contact {
  font-size: 13px;
  color: #ddd;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.listing-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.whatsapp-btn {
  flex: 1;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1ebd5a;
}

.report-link {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
}

.report-link:hover {
  color: #ff6b6b;
}

@media (max-width: 480px) {
  .listings-grid {
    grid-template-columns: 1fr;
  }

  .tab-bar {
    justify-content: center;
  }

  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 10px;
    font-size: 13px;
  }
}
