/* Homepage v2 — layout polish on top of hero-map + extras */
#common-home {
  --pb-ink: #111;
  --pb-muted: #6a6a6a;
  --pb-line: #ebebeb;
  --pb-brand: #ff385c;
  --pb-radius: 16px;
  background: #fafafa;
}

/* Hero overlay readability */
#common-home .pb-home-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
#common-home .pb-home-sub {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  opacity: 0.95;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Quick city / intent chips under search */
.pb-hero-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pb-hero-quick a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pb-hero-quick a {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
.pb-hero-quick a:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-1px);
}

/* Consumer band under hero */
.pb-home-band {
  max-width: min(1400px, 100%);
  margin: -28px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.pb-home-band-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
@media (max-width: 800px) {
  .pb-home-band-inner { grid-template-columns: 1fr; }
  .pb-home-band { margin-top: 16px; }
}
.pb-home-band a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.pb-home-band a:hover { background: #f9fafb; }
.pb-home-band .ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff5f7; color: var(--pb-brand); flex-shrink: 0;
  font-size: 16px;
}
.pb-home-band h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.pb-home-band p { margin: 0; font-size: 13px; color: var(--pb-muted); line-height: 1.4; }

/* Listing grid + cards */
#common-home .pb-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
#common-home .pb-home-card {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
#common-home .pb-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
}
#common-home .pb-home-card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: #e5e7eb;
  overflow: hidden;
}
#common-home .pb-home-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
#common-home .pb-home-card-badge {
  position: absolute; left: 10px; top: 10px;
  background: rgba(17,17,17,0.85); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; letter-spacing: 0.02em;
}
#common-home .pb-home-card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
#common-home .pb-home-card-body h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#common-home .pb-home-card-body p {
  margin: 0; font-size: 13px; color: var(--pb-muted);
}
#common-home .pb-home-card-price {
  margin-top: auto; padding-top: 10px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--pb-ink);
}

/* Skeleton listing cards */
.pb-feed-skel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.pb-feed-skel .sk-card {
  border-radius: var(--pb-radius);
  border: 1px solid var(--pb-line);
  overflow: hidden;
  background: #fff;
}
.pb-feed-skel .sk-img {
  height: 180px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pb-home-skel 1.2s ease-in-out infinite;
}
.pb-feed-skel .sk-lines { padding: 14px; }
.pb-feed-skel .sk-line {
  height: 12px; border-radius: 6px; margin-bottom: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: pb-home-skel 1.2s ease-in-out infinite;
}
.pb-feed-skel .sk-line.w60 { width: 60%; }
.pb-feed-skel .sk-line.w40 { width: 40%; }

/* Directory / slider items */
#common-home .pb-slider {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory;
}
#common-home .pb-slider-item {
  flex: 0 0 220px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #fff; border: 1px solid var(--pb-line);
  border-radius: 14px; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#common-home .pb-slider-item:hover {
  border-color: #ddd; box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
#common-home .pb-slider-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #f3f4f6; color: #6b7280;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#common-home .pb-slider-item .body h3 { margin: 0; font-size: 14px; font-weight: 700; }
#common-home .pb-slider-item .body p { margin: 2px 0 0; font-size: 12px; color: var(--pb-muted); }

/* Tools grid */
.pb-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.pb-tool-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--pb-line); border-radius: 16px;
  padding: 20px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pb-tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.pb-tool-card .ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: #111; color: #fff; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.pb-tool-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.pb-tool-card p { margin: 0; font-size: 13px; color: var(--pb-muted); line-height: 1.45; }

.pb-tool-card--has-thumb {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pb-tool-card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}
.pb-tool-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.pb-tool-card:hover .pb-tool-card-media img {
  transform: scale(1.04);
}
.pb-tool-card-content {
  padding: 16px 20px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}
.pb-tool-card-content .ico {
  margin-bottom: 0;
  flex-shrink: 0;
}
.pb-tool-card-content .body {
  min-width: 0;
  flex: 1;
}

/* Match CTA */
.pb-match-cta {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: 8px 24px 40px;
}
.pb-match-cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #111 0%, #1f2937 100%);
  color: #fff; border-radius: 20px; padding: 28px 24px;
}
.pb-match-cta-inner h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.pb-match-cta-inner p { margin: 0; color: #a3a3a3; font-size: 14px; max-width: 36rem; }
.pb-match-cta-inner a {
  display: inline-flex; align-items: center; padding: 12px 20px;
  border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--pb-brand); color: #fff;
}
.pb-match-cta-inner a:hover { filter: brightness(1.05); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  #common-home .pb-home-card,
  .pb-tool-card,
  .pb-hero-quick a { transition: none; }
  .pb-feed-skel .sk-img,
  .pb-feed-skel .sk-line { animation: none; }
}
