/* layers.css — слои, ракурсы и масштаб (сайт «Слои») */
.ui-dock { gap: var(--sp-3); }
.ui-dock__layers { display: flex; gap: var(--sp-1); }
.ui-dock__nums { display: flex; gap: 6px; align-items: center; padding-left: var(--sp-3); border-left: 1px solid var(--glass-line); }
.ui-dock__num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: transparent; color: var(--t-2); font: 600 15px/1 var(--font); cursor: pointer; transition: background .15s, color .15s; }
.ui-dock__num:hover { color: var(--t-1); background: var(--glass-dense); }
.ui-dock__num.is-on { background: var(--sel); color: #14241E; border-color: var(--sel); }
.ui-dock__num:focus-visible, .ui-zoom__b:focus-visible { outline: 0; box-shadow: var(--focus); }
.ui-zoom { position: absolute; right: calc(var(--edge) + 8px); top: calc(50% + 96px); display: flex; flex-direction: column; gap: var(--sp-2); z-index: 20; }
.ui-zoom__b { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-dense); color: var(--t-1); display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
.ui-zoom__b svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ui-zoom__b:hover:not(:disabled) { background: var(--sel); color: #14241E; transform: scale(1.06); }
.ui-zoom__b:disabled { opacity: .35; cursor: default; }
body:not(.is-started) .ui-zoom { opacity: 0; pointer-events: none; }
body.hud-off .ui-zoom { opacity: 0; pointer-events: none; }
@media (min-width: 861px) {
  /* карточка — ниже полосы фильтра и левее стрелки/масштаба */
  body.has-masks .ui-card { top: 184px; right: calc(var(--edge) + 116px); max-height: calc(100dvh - 320px); }
}
@media (max-width: 860px) {
  .ui-dock { display: flex; left: 50%; right: auto; transform: translateX(-50%); bottom: calc(var(--edge) + 88px); padding: 4px 8px; }
  .ui-dock__now, .ui-dock__nums, .ui-cap .s-kick, .ui-cap__idx { display: none !important; }
  .ui-dock__pt { min-width: 76px; }
  .ui-zoom { top: auto; bottom: calc(var(--edge) + 184px); right: var(--edge); } .ui-zoom__b { width: 52px; height: 52px; }
  .ui-apts { bottom: calc(var(--edge) + 184px) !important; right: auto !important; left: var(--edge) !important; }
  .ui-orbit { display: none !important; }
  body.has-masks .ui-top-l { opacity: 0; pointer-events: none; }
  body.has-masks .pin { display: none; }
  body.has-masks .mfilter { padding: 10px 14px; }
}

/* ---- карточка квартиры: планировка и этаж ---- */
.mask.is-sel polygon { fill: #FFFFFF; fill-opacity: .6; stroke: #FFFFFF; stroke-width: 2.5; }
.mask.is-free.is-sel polygon { fill: var(--st-free); fill-opacity: .75; }
.m-line { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.m-price { font: 600 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--r-md); background: rgba(0,0,0,.22); }
.m-tab { height: 44px; border: 0; border-radius: calc(var(--r-md) - 4px); background: transparent; color: var(--t-2); font: 600 14px/1 var(--font); cursor: pointer; }
.m-tab.is-on { background: var(--sel); color: #14241E; }
.m-tab:focus-visible, .m-view:focus-visible { outline: 0; box-shadow: var(--focus); }
.m-view { display: grid; place-items: center; width: 100%; height: 300px; padding: 10px; border: 0; border-radius: var(--r-md); background: #fff; cursor: zoom-in; }
.m-fit { position: relative; display: inline-block; max-width: 100%; max-height: 100%; line-height: 0; }
.m-fit img { display: block; max-width: 100%; max-height: 280px; }
.m-hl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m-hl polygon { fill: rgba(0,98,70,.42); stroke: #006246; stroke-width: 2.5; }
.m-others { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-dlg { width: min(1500px, 94vw); max-height: 92dvh; padding: 24px; border: 0; border-radius: 20px; background: #fff; color: #14241E; }
.m-dlg::backdrop { background: rgba(4,14,11,.78); }
.m-dlg__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.m-dlg .s-kick { color: #4A6459; } .m-dlg .t-ptitle { color: #14241E; } .m-dlg .s-btn { color: #14241E; }
.m-dlg__g { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.m-dlg figure { margin: 0; display: grid; justify-items: center; gap: 10px; align-content: start; }
.m-dlg .m-fit img { max-height: 68dvh; }
.m-dlg figcaption { font: 600 14px/1 var(--font); color: #4A6459; }
@media (max-width: 860px) { .m-dlg__g { grid-template-columns: 1fr; } .m-dlg { padding: 16px; overflow: auto; } .m-view { height: 240px; } .m-fit img { max-height: 220px; } .m-dlg .m-fit img { max-height: none; } body.has-masks .ui-card { max-height: 72dvh; z-index: 60; } }

@media (min-width: 861px) { body.has-masks .ui-card.is-left { right: auto; left: calc(var(--edge) + 116px); } }
body .m-dlg .s-kick { color: #4A6459 !important; }

/* ---- правки ревью ---- */
#stage { touch-action: none; }
.mask.is-free polygon { fill-opacity: .30; stroke: rgba(242,244,241,.8); }
body.has-masks .ip--korpus .ip__p { display: none; }
[data-theme="tomskB"] .ui-dock__num.is-on, [data-theme="tomskB"] .m-tab.is-on { background: #006246; border-color: #006246; color: #fff; }
[data-theme="tomskB"] .ip--queue.is-feed .ip__d em { color: #fff; }
@media (min-width: 861px) {
  /* фильтр — компактная панель слева: на всех пяти ракурсах там нет домов */
  body.has-masks .mfilter { left: var(--edge); right: auto; top: 100px; transform: none; width: 272px; max-width: none; display: flex; flex-flow: row wrap; gap: 6px 8px; padding: 12px 14px; border-radius: 20px; white-space: nowrap; }
  body.has-masks .mfilter .mfilter__k, body.has-masks .mfilter .mfilter__l { display: none; }
  body.has-masks .mfilter .s-chip { height: 36px; padding: 0 11px; min-width: 0; }
  body.has-masks .mfilter select { height: 36px; }
  body.has-masks .mfilter .mfilter__n { order: 8; flex: 1 0 100%; text-align: left; }
  body.has-masks .mfilter [data-a] { order: 7; --h: 36px; width: 36px; height: 36px; }
  body.has-masks .ui-card { top: 112px; max-height: calc(100dvh - 240px); }
  body:has(.ui-card.is-left:not([hidden])) .mfilter { opacity: 0; pointer-events: none; }
}
@media (max-width: 860px) { .ip--queue.is-sold .ip__p, .ip--queue.is-soon .ip__p { display: none; } }

/* ---- ревью 2 ---- */
body.has-masks .ip--korpus { pointer-events: none; } body.has-masks .ip--korpus .ip__d { pointer-events: auto; }
@media (min-width: 861px) and (max-width: 1500px) {
  body.has-masks .ip--korpus, body.has-masks .s-crumbs { display: none !important; }
  body.has-masks .m-view { height: 190px; } body.has-masks .m-fit img { max-height: 170px; }
  body.has-masks .m-dlg .m-fit img { max-height: 68dvh; }
  body.has-masks .ui-cap { display: none; } body.has-masks .ui-orbit { display: none; }
}

/* раскладка: сторона подписи, свёрнутая подпись, скрытый пин */
.ip--flip { flex-direction: row-reverse; }
.ip.is-off { display: none; }
.ip.is-mini .ip__p { position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .15s; }
.ip.is-mini.ip--flip .ip__p { left: auto; right: calc(100% + 4px); }
.ip.is-mini:hover, .ip.is-mini:focus-visible { z-index: 30; }
.ip.is-mini:hover .ip__p, .ip.is-mini:focus-visible .ip__p { opacity: 1; }
.ip--poi.is-main .ip__p i, .ip--poi.is-main .ip__p small { display: none; }
.ip--poi.is-main:hover .ip__p small { display: inline; } .ip--poi.is-main:hover .ip__p i { display: block; }

/* ---- слой карты: улицы и инфраструктура ---- */
#streetLayer { position: absolute; top: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .35s ease; overflow: hidden; }
#streetLayer.is-on { opacity: 1; }
#streetLayer:not(.is-on) .rd::before, #streetLayer:not(.is-on) .rd i { animation-play-state: paused; }
#streetLayer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rd { position: absolute; inset: 0; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; overflow: hidden; }
.rd::before { content: ""; position: absolute; inset: 0; background: #62E6BD; opacity: .26; animation: rd-breath 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.4s); }
.rd i { position: absolute; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; left: var(--ax); top: var(--ay); border-radius: 50%; background: radial-gradient(closest-side, rgba(235,255,247,.95), rgba(130,245,208,.55) 45%, rgba(98,230,189,0)); animation: rd-run 6.5s linear infinite; animation-delay: calc(var(--i) * -1.7s); }
.rd i + i { animation-delay: calc(var(--i) * -1.7s - 3.25s); }
.st__t { font: 600 14px/1 var(--font); letter-spacing: .05em; fill: #fff; paint-order: stroke; stroke: rgba(4,20,15,.78); stroke-width: 4px; stroke-linejoin: round; }
@keyframes rd-breath { 0%, 100% { opacity: .20; } 50% { opacity: .38; } }
@keyframes rd-run { 0% { left: var(--ax); top: var(--ay); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: var(--bx); top: var(--by); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rd i { display: none; } .rd::before { animation: none; } }
body:not(.is-started) #streetLayer { opacity: 0; }
body.hud-off #streetLayer { opacity: 0; }
.ip--poi .ip__d { width: 46px; height: 46px; }
.ip--poi .ip__d .s-ic { width: 18px; height: 18px; }
.ip--poi .ip__d::before { background: rgba(255,255,255,.94); border-color: #006246; }
.ip--poi .ip__d .s-ic { color: #006246; }
.ip--poi .ip__p { height: 40px; }
.ip--poi:not(.is-main) { z-index: 1; }
.ip--poi:not(.is-main) .ip__p { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.ip--poi:not(.is-main):hover, .ip--poi:not(.is-main):focus-visible { z-index: 30; }
.ip--poi:not(.is-main):hover .ip__p, .ip--poi:not(.is-main):focus-visible .ip__p { opacity: 1; }
.ip--poi:not(.is-main).ip--flip .ip__p { left: auto; right: 50px; }
#mapBtn.is-active { background: var(--sel); color: #14241E; }
@media (max-width: 860px) { .ip--poi.is-main .ip__p { display: none; } .ip--poi .ip__d { width: 38px; height: 38px; } .st__t { font-size: 20px; } }

/* ---- тема по созвону 24.11: белая по умолчанию, без тёплого оттенка; зелёный — изумруд брендбука #006246, не «ёлочный» ---- */
:root { --cta-grad: linear-gradient(180deg, #0A7D5A 0%, #006246 55%, #00553D 100%); }
[data-theme="tomskB"] { --s-canvas: #FFFFFF; --s-1: #FFFFFF; --s-2: #F6F9F8; --s-3: #ECF2EF; --s-4: #DFE8E4;
  --glass: rgba(255,255,255,.92); --glass-dense: rgba(255,255,255,.97); --scrim: rgba(255,255,255,.6); --glass-line: rgba(0,98,70,.18);
  --sel: #006246; --t-hero-sun: none; }
[data-theme="tomskB"] .ui-big:hover .ui-big__c, [data-theme="tomskB"] .ui-big:focus-visible .ui-big__c, [data-theme="tomskB"] .ui-zoom__b:hover:not(:disabled), [data-theme="tomskB"] #mapBtn.is-active { background: #006246; color: #fff; }
[data-theme="tomskB"] .ip:hover .ip__d .s-ic, [data-theme="tomskB"] .ip:hover .ip__d em { color: #fff; }
[data-theme="tomskA"] { --s-canvas: #00281C; --s-1: #00402E; --s-2: #004C36; --s-3: #00573F; --s-4: #00654A;
  --glass: rgba(0,66,47,.86); --glass-dense: rgba(0,66,47,.95); --scrim: rgba(0,40,28,.6); --t-3: #B4CFC4; --t-4: #7FA898; }

[data-theme="tomskB"] .m-tabs { background: #E6EFEB; } [data-theme="tomskB"] .m-tab:not(.is-on) { color: #2B4A3F; }

/* ---- поворот сцены (iPhone и телефоны, оставшиеся вертикальными) ---- */
body.rot { overflow: hidden; }
body.rot #stage { position: fixed; left: 0; top: 0; width: 100dvh; height: 100dvw; transform-origin: 0 0; transform: translateX(100dvw) rotate(90deg); }
body.rot dialog { width: min(92dvh, 900px); max-width: none; max-height: 90dvw; position: fixed; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%) rotate(90deg); overflow: auto; }

/* ---- телефон горизонтально (body.phl): компактная раскладка, одинаковая для поворота сцены и настоящего разворота ---- */
body.phl { --edge: 10px; --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); }
body.rot { --sl: env(safe-area-inset-top, 0px); --sr: env(safe-area-inset-bottom, 0px); }
body.phl .t-logo, [data-theme="tomskB"] body.phl .t-logo { top: 0 !important; left: 0 !important; height: 46px !important; padding: 0 30px 0 calc(var(--edge) + var(--sl)) !important; clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%); }
body.phl .t-logo i { width: 112px; height: 25px; }
body.phl .ui-top-l, [data-theme="tomskB"] body.phl .ui-top-l { top: 6px !important; left: calc(168px + var(--sl)) !important; right: auto !important; height: 44px; opacity: 1; pointer-events: auto; }
body.phl .s-crumbs, body.phl .ui-cap, body.phl .ui-orbit, body.phl .ui-big__l, body.phl .ui-dock__now, body.phl .ui-dock__arr, body.phl .ui-fs { display: none !important; }
body.phl .ui-back { --h: 44px; padding: 0 12px; }
body.phl .ui-sys { top: 6px !important; right: calc(var(--edge) + var(--sr)) !important; height: 46px; padding: 0 4px; border-radius: 14px; }
body.phl .ui-sys .s-btn { --h: 40px; --hit: 40px; width: 42px; height: 40px; padding: 0; }
body.phl .ui-sys__routes span { display: none; }
body.phl .ui-big { top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; }
body.phl .ui-big--prev { left: calc(var(--edge) + var(--sl)) !important; } body.phl .ui-big--next { right: calc(var(--edge) + var(--sr)) !important; }
body.phl .ui-big__c { width: 52px !important; height: 52px !important; } body.phl .ui-big__c .s-ic { width: 24px; height: 24px; }
body.phl .ui-zoom { top: auto !important; bottom: 10px !important; right: calc(var(--edge) + 3px + var(--sr)) !important; gap: 6px; }
body.phl .ui-zoom__b { width: 46px !important; height: 46px !important; }
body.phl .ui-dock { display: flex !important; left: 50% !important; right: auto !important; bottom: 8px !important; transform: translateX(-50%) !important; padding: 4px 6px !important; gap: 4px; border-radius: 18px; height: 52px; max-width: none; }
body.phl .ui-dock__layers { gap: 2px; }
body.phl .ui-dock__pt { min-width: 0 !important; height: 44px !important; padding: 0 10px !important; flex-direction: row !important; gap: 6px !important; font-size: 13px; }
body.phl .ui-dock__pt .s-ic { width: 18px; height: 18px; }
body.phl .ui-dock__pt.is-on::before { display: none; }
body.phl .ui-dock__nums { display: flex !important; gap: 4px; padding-left: 8px; }
body.phl .ui-dock__num { width: 38px; height: 44px; border-radius: 12px; font-size: 14px; }
body.phl .ui-apts { left: calc(var(--edge) + var(--sl)) !important; right: auto !important; bottom: 10px !important; --h: 46px; padding: 0 14px; font-size: 14px; }
body.phl .mfilter { left: calc(var(--edge) + 60px + var(--sl)) !important; right: auto !important; top: 58px !important; transform: none !important; width: 252px !important; max-width: none !important; display: flex; flex-flow: row wrap; justify-content: flex-start; gap: 6px; padding: 8px 10px !important; border-radius: 16px; white-space: nowrap; }
body.phl .mfilter[hidden] { display: none !important; }
body.phl .mfilter .mfilter__k, body.phl .mfilter .mfilter__l { display: none; }
body.phl .mfilter .s-chip { --hit: 36px; height: 36px; padding: 0 9px; min-width: 0; font-size: 12px; } body.phl .mfilter select { height: 36px; width: 94px; }
body.phl .mfilter .mfilter__n { order: 8; flex: 1 0 100%; font-size: 12px; } body.phl .mfilter [data-a] { order: 7; --h: 36px; width: 34px; height: 36px; }
body.phl .mfilter .s-chips { gap: 3px; }
body.phl:has(.ui-card:not([hidden])) .mfilter { opacity: 0; pointer-events: none; }
body.phl .ui-card, body.phl.has-masks .ui-card { top: 6px !important; bottom: auto !important; left: auto !important; right: calc(var(--edge) + 62px + var(--sr)) !important; width: 310px !important; max-height: calc(100% - 12px) !important; height: auto; padding: 12px 14px; gap: 10px; z-index: 60; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior: contain; }
body.phl .ui-card.is-left, body.phl.has-masks .ui-card.is-left { right: auto !important; left: calc(var(--edge) + 62px + var(--sl)) !important; }
body.phl .m-view { height: 150px !important; padding: 6px; } body.phl .m-fit img { max-height: 136px !important; } body.phl .m-dlg .m-fit img { max-height: 66vmin !important; }
body.phl .m-dlg { padding: 12px 16px; overflow: auto; } body.phl .m-dlg__g { grid-template-columns: 1fr 1fr; gap: 12px; }
body.phl .ui-keys { left: auto !important; right: calc(var(--edge) + var(--sr)) !important; top: 58px !important; width: 360px !important; max-height: calc(100% - 68px); overflow: auto; touch-action: pan-x pan-y; }
body.phl dialog { max-height: 92dvh; overflow: auto; } body.rot dialog { width: min(92dvh, 900px); max-height: 92dvw !important; }
body.phl .ui-routes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.phl .ip__d { width: 40px !important; height: 40px !important; } body.phl .ip--poi .ip__d { width: 34px !important; height: 34px !important; }
body.phl .ip__p { height: 34px; padding: 0 10px; } body.phl .ip__p b { font-size: 13px; } body.phl .ip__p small, body.phl .ip__p i { font-size: 12px; }
body.phl .ip--zhk .ip__leaf { width: 38px; height: 50px; }
body.phl.has-masks .pin { display: none; }

/* ---- 26.11 Арам: интерфейс на ПК мельче на 20 % (как масштаб страницы 80 %), видео не трогаем ---- */
@media (min-width: 861px) {
  body:not(.phl) .ui, body:not(.phl) .t-logo, body:not(.phl) #pinBox { zoom: .8; }
}

/* III очередь: список квартир в продаже */
.q-flats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.q-flats li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; background: var(--s-2); border: 1px solid var(--line-1); }
.q-flats b { font: 600 15px/1.2 var(--font); color: var(--t-1); }
.q-flats span { grid-column: 1; font: 500 13px/1.2 var(--font); color: var(--t-3); }
.q-flats em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 600 15px/1 var(--font); font-style: normal; font-variant-numeric: tabular-nums; color: var(--kicker); white-space: nowrap; }

/* ==== 26.11 Арам: компактная мобильная раскладка (телефон горизонтально и поворот сцены) ====
   Видимые элементы 32–40 px, зона нажатия ≥ 40 px; всё у краёв, центр кадра свободен. */
body.phl { --edge: 8px; --hb: 36px; }
/* верх: логотип, назад (только стрелка), системные кнопки */
body.phl .t-logo, [data-theme="tomskB"] body.phl .t-logo { height: 38px !important; padding: 0 24px 0 calc(var(--edge) + var(--sl)) !important; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
body.phl .t-logo i { width: 96px !important; height: 21px !important; }
body.phl .ui-top-l, [data-theme="tomskB"] body.phl .ui-top-l { top: 4px !important; left: calc(140px + var(--sl)) !important; height: var(--hb); }
body.phl .ui-back { --h: var(--hb); width: var(--hb); height: var(--hb); padding: 0 !important; justify-content: center; font-size: 0 !important; gap: 0 !important; border-radius: 50% !important; }
body.phl .ui-back .s-ic { width: 18px; height: 18px; }
body.phl .ui-sys { top: 4px !important; height: 40px !important; padding: 0 2px !important; gap: 0 !important; border-radius: 12px !important; }
body.phl .ui-sys .s-btn { --h: var(--hb); --hit: var(--hb); width: var(--hb) !important; height: var(--hb) !important; border-radius: 10px; }
body.phl .ui-sys .s-ic { width: 18px; height: 18px; }
/* стрелки облёта: небольшие полупрозрачные круги по бокам */
body.phl .ui-big__c { width: 40px !important; height: 40px !important; background: rgba(255,255,255,.82) !important; backdrop-filter: blur(6px); }
body.phl .ui-big__c .s-ic { width: 20px !important; height: 20px !important; }
/* масштаб: два круга 36 справа внизу */
body.phl .ui-zoom { bottom: 6px !important; gap: 4px !important; right: calc(var(--edge) + var(--sr)) !important; }
body.phl .ui-zoom__b { width: var(--hb) !important; height: var(--hb) !important; }
body.phl .ui-zoom__b svg { width: 18px; height: 18px; }
/* док: строка 40 px, подписи 12 px, номера ракурсов — кружки 30 */
body.phl .ui-dock { height: 42px !important; bottom: 6px !important; padding: 3px 4px !important; gap: 2px !important; border-radius: 14px !important; }
body.phl .ui-dock__pt { height: 34px !important; padding: 0 8px !important; gap: 4px !important; font-size: 12px !important; border-radius: 10px !important; }
body.phl .ui-dock__pt .s-ic { width: 16px !important; height: 16px !important; }
body.phl .ui-dock__nums { gap: 3px !important; padding-left: 6px !important; }
body.phl .ui-dock__num { width: 30px !important; height: 30px !important; border-radius: 50% !important; font-size: 13px !important; }
/* «Квартиры»: компактная кнопка слева внизу */
body.phl .ui-apts { --h: var(--hb); height: var(--hb) !important; bottom: 9px !important; padding: 0 12px !important; font-size: 13px !important; gap: 6px !important; border-radius: 12px !important; }
body.phl .ui-apts .s-ic { width: 16px; height: 16px; }
/* фильтр квартир: узкая панель под логотипом */
body.phl .mfilter { top: 46px !important; left: calc(var(--edge) + var(--sl)) !important; width: 226px !important; padding: 6px 8px !important; gap: 4px !important; border-radius: 12px !important; }
body.phl .mfilter .s-chip { --hit: 28px; height: 28px !important; padding: 0 7px !important; font-size: 12px !important; }
body.phl .mfilter select { height: 28px !important; width: 100px !important; font-size: 12px !important; padding: 0 6px !important; }
body.phl .mfilter [data-a] { --h: 28px; width: 28px !important; height: 28px !important; }
body.phl .mfilter [data-a] .s-ic { width: 15px; height: 15px; }
body.phl .mfilter .mfilter__n { font-size: 11px !important; }
/* пины: ромб 30, плашка 26 */
body.phl .ip__d { width: 30px !important; height: 30px !important; } body.phl .ip--poi .ip__d { width: 28px !important; height: 28px !important; }
body.phl .ip__d .s-ic { width: 14px !important; height: 14px !important; } body.phl .ip__d em { font-size: 13px !important; }
body.phl .ip__p { height: 26px !important; padding: 0 8px !important; gap: 6px !important; border-radius: 8px !important; }
body.phl .ip__p b { font-size: 12px !important; } body.phl .ip__p small, body.phl .ip__p i { font-size: 11px !important; }
body.phl .ip--zhk .ip__leaf { width: 30px !important; height: 40px !important; }
body.phl .ip { gap: 6px !important; }
/* карточка: боковая панель 280 */
body.phl .ui-card, body.phl.has-masks .ui-card { width: 280px !important; top: 4px !important; max-height: calc(100% - 8px) !important; padding: 10px 12px !important; gap: 8px !important; right: calc(var(--edge) + 48px + var(--sr)) !important; }
body.phl .ui-card .t-ptitle { font-size: 18px !important; line-height: 22px !important; }
body.phl .ui-card .s-kick { font-size: 10px !important; }
body.phl .q-flats li { padding: 7px 9px; } body.phl .q-flats b, body.phl .q-flats em { font-size: 13px; } body.phl .q-flats span { font-size: 11px; }
body.phl .m-view { height: 120px !important; } body.phl .m-fit img { max-height: 108px !important; }
/* подписи улиц мельче */
body.phl .st__t { font-size: 12px !important; }
body.phl .ip--queue .ip__d, body.phl .ip--korpus .ip__d { width: 32px !important; height: 32px !important; } body.phl .ip--queue .ip__d em, body.phl .ip--korpus .ip__d em { font-size: 14px !important; }
body.phl .ui-card, body.phl.has-masks .ui-card { max-height: calc(100% - 58px) !important; }
body.phl .mfilter { left: calc(var(--edge) + 50px + var(--sl)) !important; }
@media (max-height: 360px) { body.phl .mfilter select { display: none !important; } }

/* ==== 27.11 Арам: активная квартира, левая панель слоёв, без номеров ракурсов ==== */
/* выбранная квартира — переливающаяся заливка окон (градиент #mSelGrad в masks.js) + мягкая пульсация контура */
.mask.is-sel polygon, .mask.is-free.is-sel polygon, #maskLayer.is-filtered .mask.is-sel polygon {
  fill: url(#mSelGrad); fill-opacity: .92; stroke: #FFFFFF; stroke-width: 2.5; animation: m-sel-pulse 1.6s ease-in-out infinite; }
.mask.is-sel { filter: drop-shadow(0 0 4px rgba(255,255,255,.95)) drop-shadow(0 0 10px rgba(31,165,124,.9)); }
@keyframes m-sel-pulse { 0%, 100% { stroke-opacity: 1; fill-opacity: .92; } 50% { stroke-opacity: .55; fill-opacity: .72; } }
@media (prefers-reduced-motion: reduce) { #maskLayer .mask.is-sel polygon { fill: #1FA57C !important; animation: none !important; } }

/* левая панель: слои сверху, под ними фильтр квартир — один стеклянный блок под логотипом */
#dockPts, .ui-dock__nums { display: none !important; }
#leftPanel { left: var(--edge); top: 100px; width: 312px; padding: 6px; border-radius: 20px; display: flex; flex-direction: column; }
#leftPanel .ui-dock { position: static !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; display: flex !important;
  width: auto !important; height: auto !important; padding: 0 !important; margin: 0; background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0 !important; }
#leftPanel .ui-dock__layers { display: flex; flex: 1; gap: 4px !important; }
#leftPanel .ui-dock__pt { flex: 1 1 0; min-width: 0 !important; height: 60px !important; padding: 0 6px !important; border-radius: 14px !important; }
#leftPanel .ui-dock__arr, #leftPanel .ui-dock__now { display: none !important; }
#leftPanel .mfilter { position: static !important; left: auto !important; right: auto !important; top: auto !important; transform: none !important; width: auto !important; max-width: none !important;
  margin: 6px 0 0 !important; padding: 10px 8px 4px !important; border: 0 !important; border-top: 1px solid var(--glass-line) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important;
  display: flex; flex-flow: row wrap; justify-content: flex-start; gap: 6px 8px !important; white-space: nowrap; opacity: 1; }
#leftPanel .mfilter[hidden] { display: none !important; }
#leftPanel .mfilter .mfilter__k, #leftPanel .mfilter .mfilter__l { display: none !important; }
#leftPanel .mfilter .s-chip { height: 36px; padding: 0 11px; min-width: 0; }
#leftPanel .mfilter select { height: 36px; }
#leftPanel .mfilter .mfilter__n { order: 8; flex: 1 0 100%; text-align: left; }
#leftPanel .mfilter [data-a] { order: 7; --h: 36px; width: 36px; height: 36px; }
body:not(.is-started) #leftPanel { opacity: 0; pointer-events: none; }
/* карточка квартиры слева — правее панели, а не под ней */
@media (min-width: 861px) { body.has-masks .ui-card.is-left { left: calc(var(--edge) + 340px) !important; } }
body:has(.ui-card.is-left:not([hidden])) #leftPanel .mfilter { opacity: 1; pointer-events: auto; }
/* низ кадра теперь свободен: подпись и облёт опускаются к краю */
.ui-orbit { bottom: var(--edge); }
@media (max-width: 1500px) { .ui-cap { bottom: var(--edge); } }
@media (max-width: 860px) { #leftPanel { top: 76px; width: 280px; } #leftPanel .ui-dock__pt { height: 52px !important; } .ui-zoom { bottom: calc(var(--edge) + 76px); } .ui-apts { bottom: var(--edge) !important; } }
/* телефон горизонтально: узкая панель под логотипом, подписи без иконок */
body.phl #leftPanel { top: 44px !important; left: calc(var(--edge) + 50px + var(--sl)) !important; width: 232px !important; padding: 3px !important; border-radius: 12px !important; }
body.phl #leftPanel .ui-dock__pt { height: 32px !important; padding: 0 4px !important; font-size: 12px !important; border-radius: 9px !important; }
body.phl #leftPanel .ui-dock__pt .s-ic { display: none; }
body.phl #leftPanel .mfilter { margin-top: 3px !important; padding: 6px 5px 3px !important; gap: 4px !important; }
body.phl:has(.ui-card:not([hidden])) #leftPanel { opacity: 0; pointer-events: none; }
body.phl .ui-zoom { bottom: 6px !important; } body.phl .ui-apts { bottom: 9px !important; }
/* 27.11 Арам: «кнопку облёт снизу вообще убери» */
#orbitChip, .ui-orbit { display: none !important; }
