/* ── Slando — home page ──────────────────────────────────────────────── */

/* Hero banner with merged ad slot */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  position: relative;
}
.hero__copy h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  line-height: 1.1;
}
.hero__copy h1 .brand__dot { color: var(--accent); }
.hero__copy p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0;
}

/* Merged ad slot (the banner that used to live below the search bar) */
.hero__ad {
  background: linear-gradient(100deg, #ffe9b8 0%, #ffd6e7 100%);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__ad-label {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(26, 26, 46, 0.45);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero__ad-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--ink);
  line-height: 1.15;
}
.hero__ad-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px 40px; }
  .hero__copy h1 { font-size: 30px; }
  .hero__copy p { font-size: 15px; }
  .hero__ad { height: auto; padding: 24px 28px; }
  .hero__ad-title { font-size: 22px; }
}
@media (max-width: 480px) {
  .hero__inner { padding: 24px 16px 32px; gap: 16px; }
  .hero__copy h1 { font-size: 24px; }
  .hero__copy p { font-size: 14px; }
  .hero__ad { padding: 18px 20px; }
  .hero__ad-title { font-size: 18px; }
  .hero__ad-sub { font-size: 13px; }
}

/* ── Floating search bar ─────────────────────────────────────────────── */

.search-bar {
  max-width: var(--container);
  margin: -22px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.search-bar__inner {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 10px;
  align-items: stretch;
}
.search-bar__field {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.search-bar__field:last-of-type { border-right: none; }
.search-bar__field .icon {
  font-size: 16px;
  color: var(--muted);
  flex-shrink: 0;
  padding-left: 8px;
}
.search-bar input[type="search"],
.search-bar select {
  border: none;
  background: transparent;
  padding: 10px 14px;
  font-size: 15px;
  outline: none;
  min-width: 0;
  width: 100%;
}
.search-bar .btn--primary {
  min-width: 120px;
  border-radius: var(--radius-sm);
}

@media (max-width: 720px) {
  .search-bar__inner { grid-template-columns: 1fr; gap: 4px; }
  .search-bar__field { border-right: none; border-bottom: 1px solid var(--line); }
  .search-bar .btn--primary { width: 100%; }
}

/* ── Categories — 2 rows of 6 on desktop ─────────────────────────────── */

.categories {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 24px;
}
.categories__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.category-tile {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-tile__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.category-tile__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

@media (max-width: 900px) {
  .categories__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .category-tile { padding: 10px 6px; }
  .category-tile__icon { width: 44px; height: 44px; font-size: 22px; }
  .category-tile__label { font-size: 12px; }
}

/* ── New-listings section ────────────────────────────────────────────── */

.new-listings {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 0 24px;
}

/* ── Home page: mobile section padding ───────────────────────────────── */
@media (max-width: 480px) {
  .search-bar { padding: 0 14px; }
  .categories { padding: 0 14px; margin-top: 28px; }
  .new-listings { padding: 0 14px; margin-top: 32px; }
}
