/* Focused discovery polish; layout and navigation stay in the shared shell. */
.home-discovery,
.search-discovery {
  min-width: 0;
}

.home-catalog-note {
  margin: 0 16px 14px;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.5;
}

.home-filter-strip > [data-action] {
  min-height: 36px;
  box-sizing: border-box;
  box-shadow: none !important;
}

.home-featured-badge {
  align-self: flex-start;
  max-width: 100%;
}

.home-offer-image > div {
  max-width: calc(100% - 16px);
  box-sizing: border-box;
}

.home-offer-image > div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-search-header > [data-nav="search"] {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.discovery-search-header > [data-nav="search"] > svg {
  flex-shrink: 0;
}

.discovery-results-toolbar > :first-child {
  min-width: 0;
  line-height: 1.3;
}

.discovery-selected-filters > span {
  flex-shrink: 0;
}

.discovery-results-list .salon-card {
  overflow: hidden;
  /* Long result lists are ~11,000px tall on a phone. Without this, Android
     WebView reuses compositor tiles and can paint the sponsored note (or a
     card body) twice while scrolling. content-visibility isolates each card
     and keeps the rendered layer count bounded. */
  content-visibility: auto;
  contain-intrinsic-size: auto 344px;
}

@media (prefers-reduced-motion: reduce) {
  .home-discovery .hero-slide,
  .home-discovery .hero-seg-fill {
    transition: none !important;
  }
}

/* Header/search reserve real flow space, including the iOS status-bar inset.
   Copy remains bottom anchored in its own reserved area below those controls. */
.hero-copy-space { height: 218px; }
.hero-slide-overlay { min-height: 200px; }
.hero-slide-overlay > div:nth-child(2) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.15 !important;
}
