/* ============================================================
 * Home – Latest Listings
 * ==========================================================*/

.latest-listings h2 {
  margin-bottom: 0.75rem;
}

/* Grid layout */
.home-latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .home-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .home-latest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.home-latest-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  background: var(--site-card-bg, #ffffff);
  border: 1px solid var(--site-border, #e5e7eb);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: var(--site-text, #0f172a);
}

.home-latest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  border-color: var(--site-accent, #2563eb);
}

/* Cover image */
.home-latest-cover {
  padding-top: 56%; /* 16:9 */
  background-size: cover;
  background-position: center;
  background-color: #e5e7eb;
}

/* Body */
.home-latest-body {
  padding: 10px 12px 12px;
}

.home-latest-title {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.home-latest-meta {
  font-size: 0.85rem;
  color: var(--site-muted, #6b7280);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* "View all listings" link */
.home-latest-more {
  margin-top: 10px;
  text-align: right;
}

.home-more-link {
  font-size: 0.9rem;
  color: var(--site-accent, #2563eb);
  text-decoration: none;
}

.home-more-link:hover {
  text-decoration: underline;
}
/* ================================
   LATEST LISTINGS – CARD GRID
   ================================ */

.latest-listings {
  margin-top: 8px;
}

.latest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.latest-header h2 {
  margin: 0;
}

.latest-link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--link, #60a5fa);
}

.latest-link:hover {
  text-decoration: underline;
}

/* Grid container (same pattern as profile/business cards) */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* Listing card */
.listing-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card, #101828);
  border: 1px solid var(--border, #1f2937);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.8);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.listing-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.listing-card .thumb {
  height: 140px;
  background: #020617;
  background-size: cover;
  background-position: center;
}

/* Body */
.listing-card .body {
  padding: 10px 12px 12px;
}

.listing-card .title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text, #e5e7eb);
}

/* Meta row (category / location) */
.listing-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted, #9ca3af);
}

.listing-card .meta span::before {
  content: "•";
  margin-right: 4px;
  opacity: 0.6;
}

.listing-card .meta span:first-child::before {
  content: "";
  margin-right: 0;
}

/* Hover */
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

/* Empty-state text */
.home-latest-empty {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted, #6b7280);
}
/* =========================
   LATEST LISTINGS GRID
   ========================= */

.latest-listings h2 {
  margin-bottom: 0.5rem;
}

.listings{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:12px;
  margin-top:12px;
}

.listing-card{
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--lc-border, #e5e7eb);
  background:var(--lc-card, #ffffff);
  box-shadow:0 4px 12px rgba(15,23,42,0.06);
}

.listing-card a{
  display:block;
  color:inherit;
  text-decoration:none;
}

.listing-card .thumb{
  height:150px;
  background:#f3f4f6 center/cover no-repeat;
}

.listing-card .body{
  padding:10px 12px 12px;
}

.listing-card .title{
  font-weight:600;
  font-size:0.98rem;
  margin:0 0 4px;
}

.listing-card .meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:0.8rem;
  color:var(--lc-muted, #6b7280);
}

.listing-card .meta span + span::before{
  content:'•';
  margin:0 4px;
}

/* generic muted text (also used by the "No listings yet" message) */
.muted{
  color:var(--lc-muted, #6b7280);
  font-size:0.9rem;
}

/* ============================================================
 * FEATURED LISTINGS SECTION
 * ============================================================ */

.featured-section {
  margin-top: 0;
}

.featured-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.featured-section__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.featured-section__icon {
  font-size: 1.4rem;
}

.featured-section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lc-text, #0f172a);
}

.featured-section__see-all {
  font-size: 0.9rem;
  color: var(--lc-accent, #2563eb);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.featured-section__see-all:hover {
  text-decoration: underline;
}

/* Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Card */
.featured-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--lc-card, #ffffff);
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 16px rgba(245,158,11,0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(245,158,11,0.2);
  border-color: #d97706;
}

.featured-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail with badge */
.featured-card__thumb {
  position: relative;
  height: 155px;
  background: #f3f4f6 center/cover no-repeat;
}

.featured-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Body */
.featured-card__body {
  padding: 12px 14px 14px;
}

.featured-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lc-text, #0f172a);
  line-height: 1.35;
}

.featured-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--lc-muted, #6b7280);
}

.featured-card__loc {
  font-size: 0.82rem;
}

/* Dark theme support */
.site-theme-dark .featured-card,
body.dark .featured-card {
  background: var(--card, #1a2332);
  border-color: #d97706;
}

.site-theme-dark .featured-card__title,
body.dark .featured-card__title {
  color: var(--text, #e2e8f0);
}

/* Compact grid for category-tab featured strip */
.featured-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.featured-card--sm .featured-card__thumb {
  height: 120px;
}
.featured-card--sm .featured-card__title {
  font-size: .88rem;
}
.featured-cat-section {
  padding-top: 0;
  margin-top: -8px;
}

/* Mobile */
@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-grid--compact {
    grid-template-columns: repeat(2, 1fr);
  }
  .featured-section__title {
    font-size: 1.1rem;
  }
}
