/* =====================================================================
 * БЛОК «ОПИСАНИЕ» / «НА КАРТЕ» (п.1121), вид. Поведение - obj-info.js рядом.
 * Значения - окна карточек каталога сайта (было - .ym-cd-info / .ym-cd-map в ui/catalog-cards.css, копия .ymss-info в
 * search-split/index.php); правка вида окон - здесь, своих копий в местах вызова не держать.
 * ===================================================================== */
/* ---- «Описание» - окно у кнопки ---- */
.ymb-info { position: fixed; z-index: 10050; width: 380px; max-width: calc(100vw - 24px); max-height: min(70vh, 560px); display: flex; flex-direction: column; border-radius: 16px; background: #fff; box-shadow: 0 18px 48px rgba(7,24,63,.24); color: #07183f; font: 400 14px/1.5 "Golos Text", "Segoe UI", system-ui, sans-serif; outline: none; }
.ymb-info__head { position: relative; padding: 18px 52px 12px 20px; border-bottom: 1px solid #edf0f5; }
.ymb-info__head b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.ymb-info__head span { display: block; margin-top: 3px; font-size: 13px; color: #56647a; }
.ymb-info__x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: #f3f5f9; color: #07183f; font-size: 20px; line-height: 1; cursor: pointer; }
.ymb-info__x:hover { background: #e6eaf2; }
.ymb-info__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 20px; }
/* п.624: своя тонкая полоса прокрутки (системная плавающая раздувалась при наведении); Firefox - стандартная тонкая */
.ymb-info__body::-webkit-scrollbar { width: 6px; }
.ymb-info__body::-webkit-scrollbar-track { background: transparent; }
.ymb-info__body::-webkit-scrollbar-thumb { min-height: 32px; border-radius: 6px; background: #c3cddb; }
.ymb-info__body::-webkit-scrollbar-thumb:hover { background: #9fadc2; }
@supports not selector(::-webkit-scrollbar) { .ymb-info__body { scrollbar-width: thin; scrollbar-color: #c3cddb transparent; } }
.ymb-info__body h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: #69778b; }
.ymb-info__body h4:first-child { margin-top: 0; }
.ymb-info__body ul { margin: 0; padding: 0; list-style: none; }
.ymb-info__body li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #e3e8ef; font-size: 13px; }
.ymb-info__body p { margin: 0 0 8px; }
.ymb-info__empty { color: #69778b; }
.ymb-info__foot { padding: 12px 20px 16px; border-top: 1px solid #edf0f5; }
.ymb-info__foot a { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; background: var(--tenant-accent, #e7182c); color: #fff; font-weight: 600; text-decoration: none; }
.ymb-info__foot a:hover { background: #b8101f; color: #fff; }

/* ---- «На карте» - окно с картой ---- */
.ymb-map-ov { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(7,24,63,.35); }
.ymb-map-ov[hidden] { display: none; }
.ymb-map { position: relative; display: flex; flex-direction: column; width: min(860px, 100%); height: min(620px, calc(100vh - 48px)); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 24px 80px rgba(7,24,63,.3); color: #07183f; font: 400 14px/1.5 "Golos Text", "Segoe UI", system-ui, sans-serif; }
.ymb-map__head { position: relative; padding: 16px 60px 14px 22px; border-bottom: 1px solid #edf0f5; }
.ymb-map__head b { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.ymb-map__head span { display: block; margin-top: 2px; font-size: 13px; color: #56647a; }
.ymb-map__box { position: relative; flex: 1 1 auto; min-height: 0; background: #eef1f5; }
.ymb-map__box > p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; color: #69778b; }

/* ---- телефон: «На карте» - окно каталога телефона (п.1132; одно на каталог, ленту, ЖК и подборку). Правила перенесены как были: mobile-redesign.css
   («карта объекта во всплывающем окне», п.52) и ui/mobile-shell.css (п.998 - над нижней панелью, под ним полоса затемнения для пальца, поля 8 px,
   углы 20 px со всех сторон, + / − справа посередине 40 px, как над картой каталога). Было (п.1121): у подборки - шторка .ymb-map 86vh ---- */
@media (max-width: 767px) {
  .ym-object-map { position: fixed; z-index: 960; inset: 0; }
  .ym-object-map[hidden] { display: none !important; }
  .ym-object-map__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,24,63,.45); }
  .ym-object-map > section {
    position: absolute; left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column;
    height: 74vh; height: min(70vh, calc(100dvh - 168px - env(safe-area-inset-bottom, 0px)));
    border-radius: 20px; overflow: hidden; background: #fff;
  }
  .ym-object-map > section:focus { outline: none; }
  .ym-object-map header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid #edf0f5; }
  .ym-object-map header b { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #07183f; }
  .ym-object-map__close { flex: 0 0 auto; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f8; color: #46536b; font-size: 20px; line-height: 1; }
  .ym-object-map__canvas { position: relative; flex: 1 1 auto; min-height: 0; }
  .ym-object-map__msg { margin: 0; padding: 16px; font-size: 12.5px; color: #8a95a8; }
  .ym-om-zoom { position: absolute; z-index: 1000; right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
  .ym-om-zoom button { width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(7, 24, 63, .22); border-radius: 12px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgba(7, 24, 63, .12); color: #07183f; -webkit-tap-highlight-color: transparent; }
  .ym-om-zoom button:active { background: #f1f4f9; }
  .ym-om-zoom svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
}

/* ---- телефон: «Описание» - шторка снизу, sheet() (п.1124). Правила перенесены как были: mobile-redesign.css (п.49, 763) и ui/mobile-shell.css
   (п.998 - над нижней панелью, поля 8 px, углы со всех сторон). Класс body.ym-object-info-open держит и окно «На карте» телефона (map(), выше) ---- */
/* ---- было - mobile-redesign.css, строка 2225 ---- */
@media (max-width: 767px) {
  .ym-object-info { position: fixed; z-index: 950; inset: 0; }
  .ym-object-info[hidden] { display: none !important; }
  .ym-object-info__backdrop {
    position: absolute; inset: 0; width: 100%;
    border: 0; background: rgba(7,24,63,.45);
  }
  .ym-object-info > section {
    position: absolute; right: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    max-height: 84vh;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(7,24,63,.25);
  }
  .ym-object-info header {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid #edf0f5;
  }
  .ym-object-info__head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .ym-object-info__head b { font-size: 18px; font-weight: 800; color: #07183f; }
  .ym-object-info__head i { font-style: normal; font-size: 12px; color: #667085; }
  .ym-object-info__close {
    flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: #f2f4f8;
    color: #46536b; font-size: 20px; line-height: 1;
  }
  .ym-object-info__body {
    flex: 1 1 auto; min-height: 0;
    padding: 12px 16px 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ym-object-info__body h4 { margin: 12px 0 8px; font-size: 14px; color: #07183f; }
  .ym-object-info__body h4:first-child { margin-top: 0; }
  .ym-object-info__chars ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
  .ym-object-info__chars li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 7px 10px; border-radius: 9px; background: #f5f7fa;
    font-size: 12.5px; color: #46536b;
  }
  .ym-object-info__chars li span:last-child { color: #07183f; font-weight: 600; text-align: right; }
  .ym-object-info__descr { font-size: 12.5px; line-height: 1.5; color: #46536b; }
  .ym-object-info__descr p { margin: 0 0 8px; }
  .ym-object-info__empty { margin: 0; font-size: 12.5px; color: #8a95a8; }
  .ym-object-info__open {
    flex: 0 0 auto; margin: 10px 16px calc(14px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    min-height: 46px; border-radius: 13px;
    background: #e7182c; color: #fff;
    font-size: 15px; font-weight: 700; text-decoration: none;
  }
  body.ym-object-info-open { overflow: hidden; }
}

/* ---- было - ui/mobile-shell.css, строка 211 ---- */
@media (max-width: 767px) {
  .ym-object-info > section { left: 8px !important; right: 8px !important; bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 20px !important; }
  .ym-object-info > section { max-height: calc(100dvh - 168px - env(safe-area-inset-bottom, 0px)) !important; }
}
