/* ==========================================================
   Yell — главная по макету (template-yell-home.php)
   Дизайн-направление: Yell Chișinău — Cream & Signal
   ========================================================== */

.yh { --yh-max: 1260px; --yh-gut: 28px; background: var(--yell-bg); }
.yh *, .yh *::before, .yh *::after { box-sizing: border-box; }
.yh-wrap { max-width: var(--yh-max); margin: 0 auto; padding-left: var(--yh-gut); padding-right: var(--yh-gut); }

/* neutralize UA/theme resets without out-specificity wars */
:where(.yh) h1, :where(.yh) h2, :where(.yh) h3, :where(.yh) p, :where(.yh) ul, :where(.yh) li { margin: 0; padding: 0; }
:where(.yh) ul { list-style: none; }

/* ---------- HERO ---------- */
.yh-hero { padding: 56px 0 44px; }
.yh-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 56px; align-items: start; }

.yh-h1 {
  font-family: 'Golos Text', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--yell-ink);
  margin: 0 0 14px;
  text-wrap: balance;
  max-width: 17ch;
}
.yh-lede {
  font-size: 17.5px; line-height: 1.5; color: var(--yell-ink-soft);
  max-width: 52ch; margin: 0 0 26px;
}
.yh-lede b { color: var(--yell-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

/* поиск ListingPro внутри героя */
.yh-search { margin-bottom: 18px; }

/* часто ищут */
.yh-often { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
.yh-often-label { font-size: 13.5px; font-weight: 700; color: var(--yell-muted); }
.yh-often a {
  font-size: 13.5px; font-weight: 600; color: var(--yell-ink); text-decoration: none;
  border-bottom: 1px solid var(--yell-border); padding-bottom: 1px;
}
.yh-often a:hover { color: var(--yell-deep); border-bottom-color: var(--yell-deep); }
.yh-often .sep { color: #D6D0C4; }

/* тёмная панель сводки */
.yh-pulse {
  background: var(--yell-ink); border-radius: 20px; padding: 26px; color: #fff;
  position: sticky; top: 96px;
}
.yh-pulse-title {
  font-size: 15px; font-weight: 700; color: var(--yell-accent); margin-bottom: 20px;
}
.yh-pulse-list { display: flex; flex-direction: column; gap: 18px; }
.yh-stat-num {
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums; color: #fff;
}
.yh-stat-lbl { font-size: 13.5px; color: #A9A398; margin-top: 4px; }
.yh-pulse-foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: #7E7970;
}

/* ---------- СЕКЦИЯ ---------- */
.yh-sec { padding: 44px 0; }
.yh-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.yh-h2 {
  font-family: 'Golos Text', sans-serif; font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.03em;
  color: var(--yell-ink); margin: 0;
}
.yh-sec-note { font-size: 14.5px; color: var(--yell-ink-soft); }
.yh-sec-link { font-size: 14.5px; font-weight: 700; color: var(--yell-deep); text-decoration: none; white-space: nowrap; }
.yh-sec-link:hover { text-decoration: underline; }

/* ---------- КАТЕГОРИИ ---------- */
.yh-cats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.yh-cat {
  display: flex; align-items: center; gap: 14px;
  background: var(--yell-surface); border: 1px solid var(--yell-border);
  border-radius: 14px; padding: 16px 18px; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.yh-cat:hover { border-color: var(--yell-ink); box-shadow: 0 10px 30px -22px rgba(21,23,27,.5); }
.yh-cat img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
.yh-cat-body { min-width: 0; }
.yh-cat-name { font-size: 15.5px; font-weight: 700; color: var(--yell-ink); line-height: 1.25; }
.yh-cat-count { font-size: 13px; color: var(--yell-muted); font-variant-numeric: tabular-nums; margin-top: 2px; }

@media (max-width: 1080px) {
  .yh-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .yh-pulse { position: static; }
  .yh-cats { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  .yh-hero { padding: 32px 0 28px; }
  .yh-cats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .yh-search .form-inline { flex-wrap: wrap; }
  .yh-search .form-group { flex: 1 1 100%; }
  .yh-search .form-group + .form-group { border-left: 0; border-top: 1px solid var(--yell-border); }
  .yh-search .lp-search-bar-right { width: 100%; margin-top: 8px; text-align: center; }
}
@media (max-width: 520px) {
  .yh-cats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .yh * { transition: none !important; } }

/* ---------- ПОИСКОВАЯ СТРОКА [lp_search] — единственный источник правды ---------- */
.page-template-template-yell-home .page-heading { display: none !important; }
.page-template-template-yell-home .lp_detail_page_styles3 { background: var(--yell-bg) !important; }

.yh-search .lp-shortcode-search { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.yh-search .lp-search-bar {
  margin: 0; background: var(--yell-surface);
  border: 1px solid #DED8CC; border-radius: 16px; padding: 6px;
  box-shadow: 0 10px 30px -18px rgba(21,23,27,.35);
}
.yh-search form.form-inline { display: flex !important; align-items: stretch; flex-wrap: nowrap; gap: 0; margin: 0; }

.yh-search .form-group {
  flex: 1 1 0; min-width: 0;
  margin: 0 !important; padding: 10px 18px !important;
  display: block !important; float: none !important; width: auto !important; border: 0;
}
.yh-search .form-group + .form-group { border-left: 1px solid var(--yell-border); }
.yh-search .form-group.pull-right {
  flex: 0 0 auto; padding: 0 !important;
  display: flex !important; align-items: center; border-left: 0;
}

/* подписи «ЧТО» / «ГДЕ» */
.yh-search .input-group-addon,
.yh-search .input-group-addon.lp-border,
.yh-search .input-group-addon.lp-border.lp-where {
  position: static !important; float: none !important; display: block !important;
  width: auto !important; height: auto !important; min-height: 0 !important;
  line-height: 1.2 !important; padding: 0 0 4px !important; margin: 0 !important;
  background: none !important; border: 0 !important;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--yell-muted) !important; text-align: left; white-space: nowrap;
}
.yh-search .input-group-addon-what-icon,
.yh-search .input-group-addon i { display: none !important; }

/* поля ввода */
.yh-search .pos-relative,
.yh-search .what-placeholder,
.yh-search .ui-widget,
.yh-search .twitter-typeahead,
.yh-search .border-dropdown { width: 100% !important; position: relative !important; border: 0 !important; }
.yh-search input.form-control,
.yh-search input.lp-search-input,
.yh-search input.js-typeahead-input,
.yh-search .form-group input[type="text"] {
  width: 100% !important; max-width: 100% !important;
  display: block !important;
  height: auto !important; min-height: 0 !important; line-height: 1.35 !important;
  border: 0 !important; outline: none !important;
  background: transparent !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important;
  min-width: 0 !important;
  font-size: 16px; font-weight: 600; color: var(--yell-ink) !important;
}
.yh-search input::placeholder { color: var(--yell-muted) !important; font-weight: 400; }
.yh-search .loadinerSearch, .yh-search .cross-search-q { display: none !important; }

/* выпадающий список «где» (chosen) */
.yh-search .chosen-container,
.yh-search .ui-widget.border-dropdown { width: 100% !important; height: auto !important; min-height: 0 !important; font-family: inherit; }
.yh-search .chosen-container-single .chosen-single {
  height: auto !important; line-height: 1.35 !important; padding: 0 !important;
  border: 0 !important; background: none !important; box-shadow: none !important;
  border-radius: 0 !important;
}
.yh-search .chosen-container-single .chosen-single > span {
  margin: 0 !important; font-size: 16px; font-weight: 600;
  color: var(--yell-ink); line-height: 1.35;
}
.yh-search .chosen-container-single .chosen-default > span { color: var(--yell-muted); font-weight: 400; }
.yh-search .chosen-container-single .chosen-single > div,
.yh-search .chosen-container-single .chosen-single abbr { display: none !important; }

/* кнопка */
.yh-search .lp-search-bar-right {
  position: relative !important; width: auto !important;
  margin: 0 !important; padding: 0 24px !important;
  background: var(--yell-accent) !important; border-radius: 12px !important;
  display: flex !important; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px;
}
.yh-search .lp-search-bar-right:hover { background: var(--yell-accent-hover) !important; }
.yh-search .lp-search-bar-right i {
  position: static !important; order: -1;
  top: auto !important; left: auto !important; right: auto !important;
  transform: none !important; margin: 0 !important;
  color: var(--yell-ink) !important; font-size: 15px;
}
.yh-search .lp-search-bar-right input[type='submit'],
.yh-search .lp-search-bar-right input.lp-search-btn {
  padding: 0 !important; margin: 0 !important;
  width: auto !important; height: auto !important; line-height: 1.2 !important;
  font-size: 16px !important; font-weight: 800 !important;
  color: var(--yell-ink) !important; background: transparent !important;
  border: 0 !important; box-shadow: none !important; cursor: pointer;
}

.yh-search #input-dropdown,
.yh-search .ui-autocomplete,
.yh-search .tt-menu {
  border-radius: 12px; border: 1px solid var(--yell-border);
  box-shadow: 0 18px 40px -24px rgba(21,23,27,.55);
}

@media (max-width: 780px) {
  .yh-search form.form-inline { flex-wrap: wrap !important; }
  .yh-search .form-group { flex: 1 1 100%; }
  .yh-search .form-group + .form-group { border-left: 0; border-top: 1px solid var(--yell-border); }
  .yh-search .form-group.pull-right { width: 100%; padding: 8px !important; }
  .yh-search .lp-search-bar-right { width: 100% !important; }
}

.yh-cat-body { display: block; }
.yh-cat-name, .yh-cat-count { display: block; }

/* ---------- КАРТОЧКИ КОМПАНИЙ ---------- */
.yh-cards { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.yh-card { display: block; background: var(--yell-surface); border: 1px solid var(--yell-border); border-radius: 14px; overflow: hidden; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.yh-card:hover { border-color: #DED8CC; box-shadow: 0 14px 34px -22px rgba(21,23,27,.5); }
.yh-card-cover { display: block; aspect-ratio: 16 / 10; background: var(--yell-bg-soft); overflow: hidden; }
.yh-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yh-card-body { display: block; padding: 14px 16px 16px; }
.yh-card-title { display: block; font-size: 16px; font-weight: 700; color: var(--yell-ink); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.yh-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.yh-rate { font-size: 14px; font-weight: 700; color: var(--yell-ink); font-variant-numeric: tabular-nums; }
.yh-star { color: var(--yell-accent); }
.yh-rate-count { font-size: 13px; color: var(--yell-muted); font-variant-numeric: tabular-nums; }
.yh-card-cat { font-size: 13px; color: var(--yell-ink-soft); }
.yh-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 11px; border-top: 1px solid var(--yell-border-soft); font-size: 13px; }
.yh-card-loc { color: var(--yell-muted); }
.yh-card-open { color: var(--yell-deep); font-weight: 700; white-space: nowrap; }

/* ---------- СЕКТОРЫ ГОРОДА ---------- */
.yh-areas { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.yh-area { display: block; padding: 18px 18px 20px; border-radius: 14px; background: var(--yell-ink); text-decoration: none; transition: background .18s ease; }
.yh-area:hover { background: var(--yell-deep); }
.yh-area-name { display: block; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.yh-area-count { display: block; margin-top: 4px; font-size: 13px; color: #A9A398; font-variant-numeric: tabular-nums; }
.yh-area:hover .yh-area-count { color: rgba(255,255,255,.75); }

/* ---------- СВЕЖИЕ ОТЗЫВЫ ---------- */
.yh-revs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; }
.yh-rev { margin: 0; padding-top: 20px; border-top: 2px solid var(--yell-ink); }
.yh-rev-stars { color: var(--yell-accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.yh-rev-text { margin: 0 0 16px; padding: 0; border: 0; font-size: 16.5px; line-height: 1.5; color: var(--yell-ink); }
.yh-rev-foot { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.yh-rev-author { font-weight: 700; color: var(--yell-ink); }
.yh-rev-place { color: var(--yell-deep); text-decoration: none; font-weight: 600; }
.yh-rev-place:hover { text-decoration: underline; }
.yh-rev-date { color: var(--yell-muted); }

/* ---------- БЛОК ДЛЯ БИЗНЕСА ---------- */
.yh-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--yell-ink); border-radius: 20px; padding: 40px 44px; }
.yh-cta-h2 { font-family: 'Golos Text', sans-serif; font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -.03em; color: #fff; margin: 0 0 10px; max-width: 22ch; text-wrap: balance; }
.yh-cta-text { margin: 0; color: #A9A398; font-size: 15.5px; line-height: 1.55; max-width: 58ch; }
.yh-cta-btn { flex: 0 0 auto; background: var(--yell-accent); color: var(--yell-ink); font-weight: 800; font-size: 16px; padding: 16px 28px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background .18s ease; }
.yh-cta-btn:hover { background: var(--yell-accent-hover); color: var(--yell-ink); }

@media (max-width: 1080px) { .yh-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } .yh-areas { grid-template-columns: repeat(3, minmax(0,1fr)); } .yh-revs { grid-template-columns: 1fr; gap: 26px; } .yh-cta { flex-direction: column; align-items: flex-start; padding: 32px; } }
@media (max-width: 780px) { .yh-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } .yh-areas { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .yh-cards { grid-template-columns: 1fr; } }

/* сброс тематического blockquote в отзывах */
.yh .yh-rev-text, .yh blockquote.yh-rev-text { font-style: normal !important; text-align: left !important; border: 0 !important; border-left: 0 !important; padding: 0 !important; margin: 0 0 16px !important; background: none !important; quotes: none; font-family: 'Golos Text', sans-serif; }
.yh .yh-rev-text::before, .yh .yh-rev-text::after { content: none !important; }
.yh .yh-rev, .yh figure.yh-rev { margin: 0 !important; padding: 20px 0 0 !important; }
.yh .yh-rev-foot { text-align: left; }

/* на главной ListingPro рисует свой баннер-герой до контента — убираем, у нас свой */
.page-template-template-yell-home .lp-header-search-wrap { display: none !important; }
.page-template-template-yell-home .lp-header.header-front-page-wrap { min-height: 0 !important; }


/* в «где» по умолчанию выбран первый пункт — показываем его как плейсхолдер */
.yh-search .form-group:has(select option:first-child:checked) .chosen-single > span {
  color: var(--yell-muted);
  font-weight: 400;
}
