/* pano.css — «Вид из окна»: кнопки в карточке квартиры и полноэкранный просмотр (ui/pano.js) */

/* ---- кнопки в карточке квартиры ---- */
.pano-card { display: flex; flex-direction: column; gap: 6px; }
.pano-card__b { display: flex; flex-wrap: wrap; gap: 6px; }
.pano-cbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(0,98,70,.35); background: var(--s-1, #fff); color: var(--t-1); font: 600 14px/1 var(--font); transition: background .15s, color .15s, border-color .15s; }
.pano-cbtn .s-ic { width: 18px; height: 18px; color: #006246; flex: none; }
.pano-cbtn:hover, .pano-cbtn:focus-visible { background: #006246; border-color: #006246; color: #fff; outline: 0; }
.pano-cbtn:hover .s-ic, .pano-cbtn:focus-visible .s-ic { color: #fff; }
[data-theme="tomskA"] .pano-cbtn { border-color: rgba(242,244,241,.28); } [data-theme="tomskA"] .pano-cbtn .s-ic { color: #62E6BD; }
.pano-card__n { font: 500 12px/1.3 var(--font); color: var(--t-3); }
body.phl .pano-card { gap: 4px; } body.phl .pano-card__b { gap: 4px; }
body.phl .pano-cbtn { min-height: 32px; padding: 0 10px 0 7px; gap: 5px; font-size: 12px; border-radius: 9px; } body.phl .pano-cbtn .s-ic { width: 15px; height: 15px; }
body.phl .pano-card__n { font-size: 10px; }

/* ---- оверлей ---- */
dialog#panoDlg { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none !important; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: #FFFFFF; color: #14241E; overflow: hidden; transform: none; font-family: var(--font); --em: #006246; --pl: env(safe-area-inset-left, 0px); --pr: env(safe-area-inset-right, 0px); }
dialog#panoDlg::backdrop { background: #FFFFFF; }
body.rot dialog#panoDlg { inset: auto; left: 0; top: 0; width: 100dvh; height: 100dvw; max-height: none !important; transform-origin: 0 0; transform: translateX(100dvw) rotate(90deg); --pl: env(safe-area-inset-top, 0px); --pr: env(safe-area-inset-bottom, 0px); }
#panoDlg .pano-v { position: absolute; inset: 0; touch-action: none; }
#panoDlg .pnlm-container { background: #F2F5F4; font-family: var(--font); }
#panoDlg .pnlm-load-box, #panoDlg .pnlm-about-msg { display: none !important; }
#panoDlg .pnlm-ui { cursor: grab; }

#panoDlg .pano-h { position: absolute; z-index: 3; left: calc(16px + var(--pl)); top: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; max-width: calc(100% - 220px);
  background: rgba(255,255,255,.94); border: 1px solid rgba(0,98,70,.18); border-radius: 16px; box-shadow: 0 12px 30px -10px rgba(8,30,24,.35); }
#panoDlg .pano-h__ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--cta-grad); color: #fff; }
#panoDlg .pano-h__ic .s-ic { width: 20px; height: 20px; }
#panoDlg .pano-k { font: 600 11px/14px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--em); }
#panoDlg .pano-t { font: 500 22px/26px var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: #14241E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#panoDlg .pano-x { position: absolute; z-index: 3; right: calc(16px + var(--pr)); top: 16px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.96); border: 1px solid rgba(0,98,70,.18); color: #14241E; box-shadow: 0 12px 30px -10px rgba(8,30,24,.35); transition: background .15s, color .15s; }
#panoDlg .pano-x .s-ic { width: 24px; height: 24px; }
#panoDlg .pano-x:hover, #panoDlg .pano-x:focus-visible { background: var(--em); color: #fff; outline: 0; }

#panoDlg .pano-q { position: absolute; z-index: 3; right: calc(80px + var(--pr)); top: 20px; display: flex; gap: 2px; padding: 3px; border-radius: 12px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(0,98,70,.18); }
#panoDlg .pano-q button { border: 0; background: transparent; color: #2B4A3F; font: 600 13px/1 var(--font); height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
#panoDlg .pano-q button.is-on { background: var(--em); color: #fff; }
body.phl #panoDlg .pano-q { display: none; }

#panoDlg .pano-chips[hidden] { display: none; }
#panoDlg .pano-chips { position: absolute; z-index: 3; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 4px; padding: 5px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(0,98,70,.18); border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(8,30,24,.35); max-width: calc(100% - 24px); }
#panoDlg .pano-chip { border: 0; background: transparent; color: #14241E; font: 600 14px/1 var(--font); min-height: 44px; padding: 6px 16px; border-radius: 13px; cursor: pointer; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
#panoDlg .pano-chip small { font: 500 11px/1 var(--font); color: #4A6459; }
#panoDlg .pano-chip:hover { background: rgba(0,98,70,.08); }
#panoDlg .pano-chip.is-on { background: var(--em); color: #fff; } #panoDlg .pano-chip.is-on small { color: rgba(255,255,255,.82); }
#panoDlg .pano-chip:focus-visible, #panoDlg .pano-q button:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }

#panoDlg .pano-spin { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #F2F5F4; pointer-events: none;
  font: 600 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--em); }
#panoDlg .pano-spin[hidden] { display: none; }
#panoDlg .pano-spin i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(0,98,70,.16); border-top-color: var(--em); animation: pano-rot .9s linear infinite; }
@keyframes pano-rot { to { transform: rotate(360deg); } }
#panoDlg .pano-err { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 24px; text-align: center;
  background: #fff; border: 1px solid rgba(0,98,70,.18); border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(8,30,24,.35); font: 500 14px/1.3 var(--font); }
#panoDlg .pano-err[hidden] { display: none; }
#panoDlg .pano-err b { font: 500 20px/24px var(--font-display); text-transform: uppercase; }
#panoDlg .pano-btn { margin-top: 6px; border: 0; background: var(--em); color: #fff; font: 600 14px/1 var(--font); height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer; }

/* телефон горизонтально и поворот сцены: компактно, центр кадра свободен */
body.phl #panoDlg .pano-h { left: calc(8px + var(--pl)); top: 6px; padding: 6px 12px 6px 6px; gap: 8px; border-radius: 12px; max-width: calc(100% - 80px - var(--pl) - var(--pr)); }
body.phl #panoDlg .pano-h__ic { width: 30px; height: 30px; border-radius: 9px; } body.phl #panoDlg .pano-h__ic .s-ic { width: 16px; height: 16px; }
body.phl #panoDlg .pano-k { font-size: 9px; line-height: 11px; } body.phl #panoDlg .pano-t { font-size: 15px; line-height: 18px; }
body.phl #panoDlg .pano-x { right: calc(8px + var(--pr)); top: 6px; width: 40px; height: 40px; } body.phl #panoDlg .pano-x .s-ic { width: 20px; height: 20px; }
body.phl #panoDlg .pano-chips { bottom: 6px; padding: 3px; gap: 2px; border-radius: 13px; }
body.phl #panoDlg .pano-chip { min-height: 36px; padding: 3px 10px; font-size: 12px; border-radius: 10px; } body.phl #panoDlg .pano-chip small { font-size: 9px; }
