/* Dream Lands — Category pages, mobile sections, card grid, results meta */
/* ===== Category full-page (mobile See all) ===== */
.cat-page {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg, #f5f5f5);
  /* Above Leaflet panes/controls (~600–1000) and the sticky header (1500),
     but below the listing modal / reels overlay (2000). */
  z-index: 1600;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cat-page.open {
  display: block;
}

.cat-page-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}

.cat-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.cat-page-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.cat-page-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cat-page-heading .cat-page-title {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.cat-page-heading .cat-page-title svg {
  color: var(--green);
}

.cat-page-sub {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.cat-card-grid {
  padding: 1rem;
}

.area-card-grid {
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mobile-row .badge,
.cat-card-grid .badge {
  display: none;
}

@media (max-width: 600px) {
  main {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== Mobile category sections ===== */
.mobile-section {
  margin-bottom: 2rem;
  scroll-margin-top: 64px;
}

.mobile-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
  padding: 0 1rem;
}

.mobile-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.mobile-see-all {
  font-size: .78rem;
  color: var(--green);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-row {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 1rem .5rem;
}

.mobile-row::-webkit-scrollbar {
  display: none;
}

.mobile-row .card {
  flex: 0 0 72vw;
  max-width: 280px;
}

@media (min-width: 601px) {
  .mobile-section {
    margin-bottom: 2.5rem;
  }

  .mobile-section-header {
    padding: 0;
  }

  .mobile-row {
    padding: 0;
  }

  .mobile-row .card {
    flex: 0 0 280px;
    max-width: 300px;
  }
}

/* ===== Results meta ===== */
.results-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  min-height: 1.4em;
}

