/* ═══════════════════════════════════════════════════
   GLAZZ GROWTH UI
   Hero deck, search type-ahead, filters, price-pin map,
   sponsored cards and the salon advertising workspace.
   ═══════════════════════════════════════════════════ */

/* ── Hero deck ── */
#hero-zone { isolation: isolate; }
.hero-slide-overlay { gap: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: #ffe2a8; margin-bottom: 7px; padding: 5px 9px 5px 7px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-kicker--ad { color: #fff; background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.35); }
.hero-kicker__dot { width: 5px; height: 5px; border-radius: 50%; background: #ffe2a8; box-shadow: 0 0 0 3px rgba(255,226,168,.18); }
.hero-kicker--ad .hero-kicker__dot { background: #fff; }
.hero-title {
  font-family: var(--font-heading); font-size: 27px; font-weight: 750; color: #fff;
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0,0,0,.24);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-subtitle { font-family: var(--font-heading); font-size: 14px; font-weight: 550; color: rgba(255,255,255,.94); margin-top: 4px; line-height: 1.3; }
.hero-caption { font-size: 11.5px; color: rgba(255,255,255,.76); margin-top: 5px; line-height: 1.35; }
.hero-actions { display: flex; gap: 8px; margin-top: 11px; }
.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-height: 38px; padding: 0 17px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 12.5px; font-weight: 750; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .16s var(--ease-out), background .16s ease;
}
.hero-btn:active { transform: scale(.97); }
.hero-btn--light { background: #fff; color: var(--primary); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.hero-btn--glass { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.34); color: #fff; backdrop-filter: blur(8px); }
.hero-slide[data-slide-kind="salon"] .hero-title { font-size: 25px; }

.home-pulse[hidden], .rank-ad-slot[hidden], .search-map-card[hidden] { display:none !important; }
.home-pulse {
  display: flex; align-items: center; gap: 7px; margin: 10px 16px 0; padding: 7px 11px;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; overflow: hidden;
  box-shadow: var(--shadow-sm); width: fit-content; max-width: calc(100% - 32px);
}
.home-pulse__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex-shrink: 0; animation: glazzPulse 2.4s ease-in-out infinite; }
.home-pulse__sep { opacity: .5; }
@keyframes glazzPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,.35); } 50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); } }

/* ── Search type-ahead ── */
.search-suggest-wrap { position: relative; z-index: 40; }
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 22px 60px -12px rgba(18,15,13,.28), 0 8px 20px -12px rgba(18,15,13,.22);
  max-height: min(62vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; animation: suggestIn .16s var(--ease-out);
}
@keyframes suggestIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.suggest-panel { padding: 5px; }
.suggest-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 9px 4px; font-size: 9.5px; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-3);
}
.suggest-head__hint { font-size: 9px; letter-spacing: 0; text-transform: none; font-weight: 600; opacity: .75; }
.suggest-clear { border: 0; background: none; padding: 2px 4px; font-family: inherit; font-size: 10.5px; font-weight: 700; color: var(--primary); cursor: pointer; }
.suggest-row, .suggest-exact {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: 0; border-radius: 11px; background: transparent; text-align: left;
  font-family: inherit; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.suggest-row:hover, .suggest-row--active, .suggest-exact:hover { background: var(--surface-2); }
.suggest-row__icon, .suggest-exact__icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-surface); color: var(--primary);
}
.suggest-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.suggest-row__label { font-size: 13.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-row__meta { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-row__go, .suggest-exact__go { color: var(--text-3); flex-shrink: 0; display: flex; }
.suggest-exact {
  margin: 3px; padding: 10px; gap: 9px; background: var(--primary-surface);
  border: 1px solid var(--primary-border); font-size: 13px; color: var(--text-2);
}
.suggest-exact strong { color: var(--text); font-weight: 700; }
.suggest-exact__go { margin-left: auto; color: var(--primary); }
.suggest-empty { padding: 14px 12px 16px; font-size: 12px; line-height: 1.45; color: var(--text-3); }

/* ── Search results controls ── */
.discovery-search-pill {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  min-height: 44px; padding: 0 12px; cursor: pointer; box-shadow: var(--shadow-sm);
  font-size: 14px; color: var(--text); font-weight: 550;
}
.discovery-search-pill > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discovery-search-pill__edit { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 750; color: var(--primary); flex-shrink: 0; }
.search-gender {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 10px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  font-family: inherit; font-size: 10.5px; font-weight: 700; color: var(--text-2);
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.search-gender--on { border-color: var(--primary-border); background: var(--primary-surface); color: var(--primary); }
.search-svc-chip {
  flex-shrink: 0; border: 1px solid var(--primary-border); background: var(--primary-surface);
  border-radius: 999px; min-height: 28px; padding: 0 9px; font-family: inherit;
  font-size: 11px; font-weight: 650; color: var(--primary); cursor: pointer;
}

.search-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 2px 16px 6px; }
.search-control {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.search-control--sort { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.search-control__count {
  min-width: 17px; height: 17px; border-radius: 999px; background: var(--primary); color: #fff;
  font-size: 9.5px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.view-toggle__btn {
  display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 9px;
  border: 0; background: transparent; font-family: inherit; font-size: 11px; font-weight: 650;
  color: var(--text-3); cursor: pointer;
}
.view-toggle__btn--on { background: var(--primary); color: #fff; }
.search-active-chips { display: flex; gap: 6px; overflow-x: auto; padding: 3px 16px 7px; }
.search-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
  padding: 0 9px; border-radius: 999px; border: 1px solid var(--primary-border);
  background: var(--primary-surface); color: var(--primary); font-family: inherit;
  font-size: 10.5px; font-weight: 700; cursor: pointer;
}
.search-chip--clear { background: transparent; border-color: var(--border); color: var(--text-3); }

.discovery-results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 17px 9px; }
.search-count { min-width: 0; font-size: 11.5px; color: var(--text-3); line-height: 1.35; }
.search-count strong { font-size: 16px; color: var(--text); font-weight: 800; margin-right: 3px; }
.search-count span { display: block; font-size: 10.5px; }

.rank-row { min-width: 0; }
.rank-reason {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 2px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .01em; color: var(--primary);
  background: var(--primary-surface); border: 1px solid var(--primary-border);
  border-radius: 999px; padding: 4px 9px;
}
.rank-reason__spark { font-size: 9px; }
.rank-ad-slot { display: block; }
.rank-ad-card {
  display: flex; gap: 10px; padding: 9px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; cursor: pointer;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.rank-ad-card__media { position: relative; width: 108px; min-width: 108px; height: 112px; border-radius: 11px; overflow: hidden; background: var(--surface-2); }
.rank-ad-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rank-ad-card__label {
  position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 999px;
  background: rgba(18,15,13,.72); color: #fff; font-size: 8px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px);
}
.rank-ad-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 2px 1px 0; }
.rank-ad-card__eyebrow { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--saffron-400); }
.rank-ad-card__title { font-size: 15px; font-weight: 750; color: var(--text); line-height: 1.2; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-ad-card__sub { font-size: 11px; color: var(--text-2); line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-ad-card__offer {
  align-self: flex-start; margin-top: 4px; padding: 2px 7px; border-radius: 999px;
  background: var(--success-s); color: var(--success); font-size: 9.5px; font-weight: 800;
}
.rank-ad-card__meta { font-size: 10.5px; color: var(--text-3); margin-top: auto; padding-top: 5px; }
.rank-ad-card__cta { align-self: flex-start; margin-top: 5px; font-size: 11px; font-weight: 750; color: var(--primary); }

.search-empty { text-align: center; padding: 38px 20px 30px; }
.search-empty__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 18px; background: var(--primary-surface); display: flex; align-items: center; justify-content: center; }
.search-empty__title { font-family: var(--font-heading); font-size: 18px; font-weight: 750; color: var(--text); }
.search-empty__body { font-size: 12.5px; color: var(--text-3); line-height: 1.5; max-width: 280px; margin: 5px auto 14px; }
.search-empty__actions { display: flex; gap: 8px; justify-content: center; }
.search-empty__btn { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.search-empty__btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Filter + sort sheets ── */
.filter-sheet { margin: -4px 0 0; }
.filter-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 34px; margin-bottom: 10px; touch-action: none; }
.filter-sheet__eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.filter-sheet__title { margin: 2px 0 0; font-family: var(--font-heading); font-size: 21px; font-weight: 750; color: var(--text); letter-spacing: -.02em; }
.filter-sheet__reset { border: 0; background: none; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--primary); cursor: pointer; padding: 4px 0; }
.filter-sheet__scroll { display: flex; flex-direction: column; gap: 15px; padding-bottom: 8px; }
.filter-group__label { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.filter-chip-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.filter-chip-row--wrap { flex-wrap: wrap; overflow: visible; }
.filter-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-family: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer;
}
.filter-chip--on { background: var(--primary-surface); border-color: var(--primary); color: var(--primary); font-weight: 750; }
.filter-chip__sub { font-size: 9px; opacity: .6; }
.filter-sheet__foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-subtle); position: sticky; bottom: 0; background: var(--surface); }
.filter-sheet__count { flex: 1; font-size: 11px; color: var(--text-3); line-height: 1.3; }
.filter-sheet__count strong { font-size: 16px; color: var(--text); }
.filter-sheet__apply { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-family: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.sort-sheet { gap: 4px; }
.sort-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
.sort-row:hover { background: var(--surface-2); }
.sort-row__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); flex-shrink: 0; margin-top: 1px; position: relative; }
.sort-row--on .sort-row__radio { border-color: var(--primary); }
.sort-row--on .sort-row__radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.sort-row__label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.sort-row__note { display: block; font-size: 11px; color: var(--text-3); margin-top: 1px; }

/* ── Price-pin map ── */
.search-map-wrap { padding: 0 16px 8px; }
.search-map-toolbar { display: flex; align-items: center; gap: 6px; padding: 2px 0 8px; }
.search-map-toolbar--count { justify-content: flex-end; }
.search-map-toolbar__count { margin-left: auto; font-size: 10px; color: var(--text-3); }
.search-map-board {
  position: relative; height: 380px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border); background: #e8e3dc; box-shadow: var(--shadow-sm);
  touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.search-map-board.is-panning { cursor: grabbing; }
.search-map-tiles { position: absolute; inset: 0; will-change: transform; }
.search-map-pins { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.map-price-pin {
  position: absolute; transform: translate(-50%, -100%); pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(18,15,13,.28)); transition: transform .15s var(--ease-out);
}
.map-price-pin:active { transform: translate(-50%, -100%) scale(.96); }
.map-price-pin__price {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 54px; height: 27px; padding: 0 9px; border-radius: 999px;
  background: #fff; color: var(--text); font-family: inherit; font-size: 11.5px; font-weight: 800;
  border: 1.5px solid var(--primary); white-space: nowrap;
}
.map-price-pin__dist {
  max-width: 128px; margin-top: 2px; padding: 1px 7px; border-radius: 999px;
  background: rgba(18,15,13,.75); color: #fff; font-size: 8.5px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.map-price-pin__rating { color: #fcd34d; font-weight: 800; }
.map-price-pin__reviews { color: rgba(255,255,255,.76); font-weight: 650; }
.map-price-pin__sep { color: rgba(255,255,255,.5); }
.map-price-pin::after { content: ''; width: 7px; height: 7px; background: #fff; border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: rotate(45deg); margin-top: -4px; }
.map-price-pin--active .map-price-pin__price { background: var(--primary); color: #fff; }
.map-price-pin--active::after { background: var(--primary); }
.map-price-pin--top .map-price-pin__price { border-color: var(--plum-600); }
.map-price-pin--ad .map-price-pin__price { background: #1c1917; color: #fde68a; border-color: #f59e0b; }
.map-price-pin--ad::after { background: #1c1917; border-color: #f59e0b; }
.search-map-zoom {
  position: absolute; right: 10px; top: 10px; z-index: 7000;
  display: flex; flex-direction: column; gap: 4px;
}
.search-map-zoom button {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-sm); touch-action: manipulation;
  display: flex; align-items: center; justify-content: center;
}
.search-map-zoom button:disabled { opacity: .55; cursor: progress; }
.map-user-pin {
  position: absolute; width: 14px; height: 14px;
  transform: translate(-50%, -50%); pointer-events: none;
}
.map-user-pin__dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: #2563eb; border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(18,15,13,.4);
}
.map-user-pin__halo {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px;
  margin: -18px 0 0 -18px; border-radius: 50%;
  background: rgba(37,99,235,.18); border: 1px solid rgba(37,99,235,.28);
  animation: mapUserPulse 2.4s ease-out infinite;
}
.map-user-pin__label {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 4px);
  padding: 1px 6px; border-radius: 999px;
  background: rgba(37,99,235,.94); color: #fff;
  font-size: 8.5px; font-weight: 750; letter-spacing: .02em; white-space: nowrap;
}
@keyframes mapUserPulse {
  0% { transform: scale(.55); opacity: .9; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}
.search-map-attr { position: absolute; right: 8px; bottom: 6px; z-index: 6200; font-size: 8px; color: rgba(18,15,13,.62); background: rgba(255,255,255,.72); padding: 1px 4px; border-radius: 4px; }
.search-map-card {
  position: absolute; left: 9px; right: 9px; bottom: 9px; z-index: 6000;
  background: var(--surface); border-radius: 14px; padding: 11px 12px 10px;
  box-shadow: 0 14px 32px rgba(18,15,13,.28); animation: mapCardIn .18s var(--ease-out);
}
@keyframes mapCardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.search-map-card__head { position: relative; padding-right: 24px; }
.search-map-card__close { position: absolute; right: -2px; top: -3px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-3); font-size: 16px; cursor: pointer; }
.search-map-card__name { font-size: 14px; font-weight: 750; color: var(--text); line-height: 1.2; }
.search-map-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.search-map-card__rating-row { display: inline-flex; align-items: center; gap: 4px; }
.search-map-card__rating {
  display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px;
  border-radius: 999px; background: #fff7e6; color: #b45309;
  font-size: 10px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.search-map-card__reviews { font-size: 10.5px; font-weight: 650; color: var(--text-2); }
.search-map-card__sep { color: var(--text-3); }
.search-map-card__where { min-width: 0; }
.search-map-card__reason { display: inline-flex; margin-top: 5px; font-size: 9.5px; font-weight: 700; color: var(--primary); }
.search-map-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 7px; }
.search-map-card__price { font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.search-map-card__sub { font-size: 9.5px; color: var(--text-3); }
.search-map-card__cta { min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 750; cursor: pointer; }
.search-map-hint { font-size: 9.5px; color: var(--text-3); padding: 7px 1px 0; text-align: center; }
.search-map-note {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 4px 6px 0; font-size: 9.5px; line-height: 1.35; color: var(--text-3);
  text-align: center;
}
.search-map-note[hidden] { display: none; }

/* ── Salon advertising workspace ── */
.ads-hero { margin: 0 16px 14px; padding: 18px; border-radius: 20px; background: linear-gradient(145deg,#1c1917 0%,#292524 55%,#451a03 100%); color: #fff; box-shadow: 0 18px 40px -24px rgba(28,25,23,.7); }
.ads-hero__eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fcd34d; }
.ads-hero__title { font-family: var(--font-heading); font-size: 23px; font-weight: 750; letter-spacing: -.02em; margin-top: 3px; }
.ads-hero__sub { font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.72); margin-top: 5px; max-width: 300px; }
.ads-hero__row { display: flex; gap: 9px; margin-top: 14px; }
.ads-hero__balance { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 13px; padding: 9px 11px; }
.ads-hero__balance span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ads-hero__balance strong { display: block; font-size: 20px; font-weight: 800; margin-top: 2px; }
.ads-hero__btn { align-self: stretch; min-height: 44px; padding: 0 15px; border: 0; border-radius: 12px; background: #f59e0b; color: #1c1917; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.ads-scope { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ads-scope--on { border-color: var(--primary-border); background: var(--primary-surface); }
.ads-scope__body { flex: 1; min-width: 0; }
.ads-scope__eyebrow { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ads-scope--on .ads-scope__eyebrow { color: var(--primary); }
.ads-scope__title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.3; }
.ads-scope__sub { margin-top: 2px; font-size: 10px; line-height: 1.4; color: var(--text-3); }
.ads-scope__clear { flex-shrink: 0; min-height: 32px; padding: 0 11px; border: 1px solid var(--primary-border); border-radius: 999px; background: var(--surface); color: var(--primary); font-family: inherit; font-size: 10.5px; font-weight: 800; cursor: pointer; }
.ads-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0 16px 14px; }
.ads-kpi { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 13px; padding: 10px; }
.ads-kpi span { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.ads-kpi strong { display: block; font-size: 17px; font-weight: 800; color: var(--text); margin-top: 3px; font-variant-numeric: tabular-nums; }
.ads-kpi small { display: block; font-size: 9px; color: var(--text-3); margin-top: 1px; }
.ads-section { padding: 0 16px 14px; }
.ads-section__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ads-section__title { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.ads-section__link { border: 0; background: none; font-family: inherit; font-size: 11px; font-weight: 700; color: var(--primary); cursor: pointer; }
.ads-campaign { background: var(--surface); border: 1px solid var(--border); border-radius: 15px; padding: 12px; margin-bottom: 9px; cursor: pointer; }
.ads-campaign:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ads-campaign--selected { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-surface); }
.ads-campaign__top { display: flex; align-items: flex-start; gap: 8px; }
.ads-campaign__name { flex: 1; font-size: 13.5px; font-weight: 750; color: var(--text); line-height: 1.25; }
.ads-status { flex-shrink: 0; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.ads-status--active { background: var(--success-surface); color: var(--success); }
.ads-status--pending_review { background: #fef3c7; color: #92400e; }
.ads-status--rejected { background: var(--error-surface); color: var(--error); }
.ads-status--paused, .ads-status--out_of_budget { background: var(--surface-3); color: var(--text-2); }
.ads-campaign__meta { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.ads-campaign__bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 9px 0 5px; }
.ads-campaign__bar > div { height: 100%; border-radius: 999px; background: var(--primary); }
.ads-campaign__numbers { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-3); }
.ads-campaign__hint { margin-top: 6px; font-size: 9.5px; font-weight: 800; color: var(--primary); }
.ads-campaign__hint--muted { color: var(--text-3); font-weight: 600; }
.ads-campaign__actions { display: flex; gap: 6px; margin-top: 9px; }
.ads-detail { margin: 0 16px 12px; padding: 13px; border: 1px solid var(--primary-border); border-radius: 16px; background: var(--surface); }
.ads-detail__head { display: flex; align-items: flex-start; gap: 8px; }
.ads-detail__eyebrow { font-size: 8.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.ads-detail__title { margin-top: 2px; font-family: var(--font-heading); font-size: 17px; font-weight: 750; color: var(--text); line-height: 1.2; }
.ads-detail__note { margin-top: 8px; padding: 8px 9px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); font-size: 10px; line-height: 1.45; }
.ads-detail__note strong { display: block; margin-bottom: 2px; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.ads-detail__note--error { background: var(--error-surface); color: var(--error); }
.ads-detail__note--error strong { color: var(--error); }
.ads-detail__creative { display: flex; gap: 10px; margin-top: 11px; }
.ads-detail__media { position: relative; flex-shrink: 0; width: 104px; height: 76px; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg,#f59e0b,#7c2d12); }
.ads-detail__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ads-detail__copy { flex: 1; min-width: 0; }
.ads-detail__headline { font-size: 13.5px; font-weight: 800; color: var(--text); line-height: 1.3; }
.ads-detail__sub { margin-top: 2px; font-size: 10px; line-height: 1.4; color: var(--text-3); }
.ads-detail__actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.ads-detail__cta { padding: 3px 8px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 9px; font-weight: 800; }
.ads-detail__badge { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 9px; font-weight: 800; }
.ads-detail__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-top: 10px; }
.ads-detail__cell { padding: 8px 9px; border-radius: 10px; background: var(--surface-2); }
.ads-detail__cell span { display: block; font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.ads-detail__cell strong { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 800; color: var(--text); line-height: 1.35; }
.ads-detail__cell small { display: block; margin-top: 1px; font-size: 8.5px; color: var(--text-3); line-height: 1.35; }
.ads-detail__rows { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ads-detail__row { display: flex; gap: 8px; font-size: 10px; line-height: 1.45; }
.ads-detail__row span { flex: 0 0 72px; padding-top: 1px; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.ads-detail__row p { flex: 1; margin: 0; color: var(--text-2); }
.ads-mini-btn { min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 10px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.ads-mini-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.ads-empty { padding: 20px 14px; text-align: center; border: 1px dashed var(--border); border-radius: 15px; color: var(--text-3); font-size: 12px; line-height: 1.5; }
.ads-preview { margin-top: 10px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.ads-preview__media { height: 96px; background: linear-gradient(135deg,#f59e0b,#7c2d12); position: relative; }
.ads-preview__media img { width: 100%; height: 100%; object-fit: cover; }
.ads-preview__tag { position: absolute; left: 8px; top: 8px; background: rgba(18,15,13,.7); color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 999px; }
.ads-preview__body { padding: 9px 11px; }
.ads-preview__title { font-size: 14px; font-weight: 750; color: var(--text); }
.ads-preview__sub { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.ads-preview__offer { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--success-s); color: var(--success); font-size: 10px; font-weight: 800; }
.ads-preview__spotlight { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: var(--info-s, #eff6ff); color: var(--info, #2563eb); font-size: 10px; font-weight: 800; }
.ads-campaign__offer { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: var(--success-s); color: var(--success); font-size: 10px; font-weight: 800; }

/* The sponsored offer banner on the salon page, only after an ad click. The
   countdown is the loudest element here: a 60-minute deadline that customers
   miss is a wasted offer, so it gets its own card instead of a 9px line. */
.salon-ad-offer {
  margin: 0 20px 12px; padding: 14px 16px 15px; border-radius: 16px;
  border: 1px solid var(--success-border);
  background: linear-gradient(135deg, var(--success-s), var(--surface));
}
.salon-ad-offer__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "tag clock"
    "title clock";
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
}
.salon-ad-offer__tag {
  grid-area: tag; align-self: end;
  font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--success); line-height: 1.2;
}
.salon-ad-offer__clock {
  grid-area: clock; align-self: center; justify-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 10px 7px;
  border: 1px solid var(--success-border); border-radius: 12px;
  background: var(--surface); box-shadow: 0 1px 2px rgba(18, 15, 13, .06);
}
.salon-ad-offer__clock-label {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); line-height: 1;
}
.salon-ad-offer__clock-label svg { width: 10px; height: 10px; }
.salon-ad-offer__clock-value {
  font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: var(--success); font-variant-numeric: tabular-nums;
}
.salon-ad-offer__clock.is-soon { border-color: rgba(245, 158, 11, .45); background: var(--warning-50); }
.salon-ad-offer__clock.is-soon .salon-ad-offer__clock-label,
.salon-ad-offer__clock.is-soon .salon-ad-offer__clock-value { color: var(--saffron-600, #b45309); }
.salon-ad-offer__title {
  grid-area: title; align-self: start; min-width: 0;
  font-family: var(--font-heading); font-size: 20px; font-weight: 750;
  color: var(--text); line-height: 1.2;
}
.salon-ad-offer__sub { margin-top: 8px; font-size: 11.5px; line-height: 1.45; color: var(--text-2); }
.salon-spotlight {
  display: flex; align-items: center; gap: 10px;
  margin: 0 20px 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
}
.salon-spotlight__body { flex: 1; min-width: 0; }
.salon-spotlight__tag { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--saffron-600, #b45309); }
.salon-spotlight__title { margin-top: 2px; font-family: var(--font-heading); font-size: 18px; font-weight: 750; color: var(--text); line-height: 1.2; }
.salon-spotlight__sub { margin-top: 2px; font-size: 10.5px; color: var(--text-3); }
.salon-spotlight__btn {
  flex-shrink: 0; min-height: 38px; padding: 0 14px; border: 1px solid var(--primary-border);
  border-radius: 999px; background: var(--primaryS); color: var(--primary);
  font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
}
.svc-new-badge,
.pkg-new-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: var(--info-s, #eff6ff); color: var(--info, #2563eb);
  font-size: 9px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px;
}
.svc-offer-stack,
.pkg-offer-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.svc-offer-price,
.pkg-offer-price { font-weight: 800; color: var(--success); font-variant-numeric: tabular-nums; line-height: 1.1; }
.svc-offer-price { font-size: 16px; }
.pkg-offer-price { font-size: 17px; }
.svc-offer-note,
.pkg-offer-note {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; line-height: 1.2; color: var(--text-3); white-space: nowrap;
}
.svc-offer-note s,
.pkg-offer-note s { opacity: .72; }
.svc-offer-save,
.pkg-offer-save {
  padding: 2px 6px; border-radius: 999px;
  background: var(--success-s); color: var(--success);
  font-size: 9.5px; font-weight: 800; letter-spacing: .01em;
}
.ads-form { display: flex; flex-direction: column; gap: 13px; padding: 0 16px 26px; }
.ads-field label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.ads-field input, .ads-field select, .ads-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 13.5px;
  padding: 10px 11px; outline: none;
}
.ads-field input:focus, .ads-field select:focus, .ads-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-surface); }
.ads-field__hint { font-size: 10px; color: var(--text-3); line-height: 1.4; margin-top: 4px; }
.ads-choice-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ads-choice { min-height: 34px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 11px; font-weight: 650; color: var(--text-2); cursor: pointer; }
.ads-choice--on { border-color: var(--primary); background: var(--primary-surface); color: var(--primary); font-weight: 750; }
.ads-submit { width: 100%; min-height: 46px; margin-top: 4px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font-family: inherit; font-size: 14px; font-weight: 750; cursor: pointer; }
.ads-note { font-size: 10.5px; line-height: 1.5; color: var(--text-3); text-align: center; padding: 0 10px; }
.ads-tabs { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; }
.ads-tab { flex-shrink: 0; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.ads-tab--on { background: var(--text); border-color: var(--text); color: var(--surface); }

@media (max-width: 360px) {
  .hero-title { font-size: 23px; }
  .search-count strong { font-size: 15px; }
  .map-price-pin__price { min-width: 48px; font-size: 10.5px; }
  .ads-kpis { grid-template-columns: repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-seg-fill, .home-pulse__dot, .search-suggest, .search-map-card { animation: none !important; transition: none !important; }
  .map-user-pin__halo { animation: none !important; opacity: .55; }
}

.map-price-pin--cluster .map-price-pin__price {
  min-width: 66px; height: 31px; background: var(--primary); color: #fff;
  border-color: #fff; font-size: 11px; box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.map-price-pin--cluster::after { background: var(--primary); border-color: #fff; }
.map-price-pin--cluster .map-price-pin__dist { background: rgba(18,15,13,.82); }

.home-rail-ad { padding: 0 16px 20px; }
.home-rail-ad .rank-ad-card { width: 100%; }

.ads-ledger-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--border-subtle); }
.ads-ledger-row:last-child { border-bottom:0; }
.ads-ledger-row__kind { font-size:11.5px; font-weight:700; color:var(--text); text-transform:capitalize; }
.ads-ledger-row__meta { font-size:9.5px; color:var(--text-3); margin-top:1px; }
.ads-ledger-row__amount { font-size:12px; font-weight:800; color:var(--success); font-variant-numeric:tabular-nums; }
.ads-ledger-row__amount--out { color:var(--text-2); }

/* The search header owns the type-ahead. Lift the whole header above the
   package/service rails below it; a z-index on the panel alone cannot escape
   the header's transformed stacking context. */
.search-input-header { position: relative; z-index: 120; }
.search-input-header .search-suggest-wrap { z-index: 130; }
.search-input-header .search-suggest { z-index: 140; }
