/* Модальная шторка (z-index: 600), full-bleed слайд шагов от самых краёв экрана без белых полос и плавная высота */
@keyframes lhSpin { to { transform: rotate(360deg); } }
.lh-spinner { animation: lhSpin 0.75s linear infinite; }
.tma-upload-overlay {
  position: absolute; inset: 0; z-index: 15;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}

.tma-mood-hero {
  background: var(--tma-card-bg); border-radius: 20px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  color: var(--tma-text); transition: background-color 180ms ease;
}
.tma-mood-hero.is-issue { background: rgba(255, 59, 48, 0.08); color: #b91c1c; }
.tma-mood-hero-ico svg { width: 52px; height: 52px; display: block; }
.tma-mood-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; }
.tma-mood-btn {
  border: 0; border-radius: 16px; background: var(--tma-card-bg); color: var(--tma-muted);
  padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; font-family: inherit; transition: background-color 140ms ease, color 140ms ease, transform 120ms ease;
}
.tma-mood-btn:active { transform: scale(0.95); }
.tma-mood-btn.is-active { background: #1d1d1f; color: #ffffff; }
.tma-mood-svg svg { width: 30px; height: 30px; display: block; }
.tma-mood-lbl { font-size: 10.5px; font-weight: 600; line-height: 12px; white-space: nowrap; }
.tma-mood-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.tma-post-stay-card { background: var(--tma-surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.tma-post-stay-deposit { background: var(--tma-card-bg); border-radius: 16px; padding: 13px 14px; display: flex; align-items: flex-start; gap: 11px; }
.tma-post-stay-deposit .material-symbols-outlined { font-size: 22px; color: var(--tma-text); margin-top: 1px; }

.tma-3btn-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.tma-3btn-item {
  height: 46px; border: 0; border-radius: 16px; background: var(--tma-surface); color: var(--tma-text);
  font-size: 13px; font-weight: 600; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.tma-3btn-item.is-dark { background: #1d1d1f; color: #ffffff; }

.tma-sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.44); backdrop-filter: blur(6px); z-index: 600; display: flex; align-items: flex-end; justify-content: center; }
.tma-sheet-panel {
  position: relative; width: 100%; max-width: 500px; background: var(--tma-surface);
  border-radius: 26px 26px 0 0; padding: 8px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px; overflow-x: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0.85, 0.25, 1); will-change: transform;
}
.tma-sheet-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 99%; height: 260px; background: var(--tma-surface); pointer-events: none; }
.tma-sheet-panel.is-dragging { transition: none !important; }
.tma-sheet-handle-zone { width: 100%; padding: 6px 0 2px; display: flex; justify-content: center; cursor: grab; touch-action: none; }
.tma-sheet-pill { width: 40px; height: 5px; border-radius: 99px; background: rgba(60, 60, 67, 0.2); }
.tma-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 2px; }
.tma-sheet-body, .tma-sheet-form { display: flex; flex-direction: column; gap: 12px; max-height: 78dvh; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tma-sheet-body::-webkit-scrollbar, .tma-sheet-form::-webkit-scrollbar, .tma-wiz-step-scroll::-webkit-scrollbar { display: none; }

/* Full-bleed визард от самого края до края экрана (без белых полос по бокам при свайпе шагов) */
.tma-sheet-wizard-viewport {
  position: relative; margin-left: -18px; margin-right: -18px; width: calc(100% + 36px);
  max-height: 76dvh; overflow: hidden !important; display: flex; flex-direction: column;
  transition: height 220ms cubic-bezier(0.22, 1, 0.36, 1); will-change: height;
}
.tma-wiz-panel {
  position: relative; width: 100%; padding: 0 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transform: translate3d(0, 0, 0); opacity: 1;
}
.tma-wiz-panel.is-animating { transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease; }
.tma-wiz-panel.is-leaving { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.tma-wiz-panel.is-enter-from-right { transform: translate3d(104%, 0, 0); opacity: 0.92; }
.tma-wiz-panel.is-enter-from-left { transform: translate3d(-104%, 0, 0); opacity: 0.92; }
.tma-wiz-panel.is-exit-to-left { transform: translate3d(-104%, 0, 0); opacity: 0.4; }
.tma-wiz-panel.is-exit-to-right { transform: translate3d(104%, 0, 0); opacity: 0.4; }
.tma-wiz-step-scroll { flex: 1; min-height: 0; max-height: calc(76dvh - 64px); overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 11px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; scrollbar-width: none; }
.tma-Compact-step2-wrap { display: flex; flex-direction: column; gap: 10px; }
.tma-Compact-step2-wrap .lh-dp-trigger { background: var(--tma-card-bg); height: 46px; border-radius: 15px; }
.tma-Compact-step2-wrap .tma-ios-stepper-list, .tma-Compact-step2-wrap .tma-apple-receipt { background: var(--tma-card-bg); }
.tma-Compact-step2-wrap .tma-round-step-btn { background: #ffffff; }
.tma-receipt-line.is-total { font-size: 14.5px; font-weight: 700; padding-top: 6px; border-top: 0.5px solid rgba(60, 60, 67, 0.12); }

.tma-wiz-sticky-footer { padding-top: 8px; background: var(--tma-surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.tma-wiz-cta-btn { flex: 1; width: auto; white-space: nowrap; height: 48px; border-radius: 15px; padding: 0 20px; }
.tma-wiz-back-icon-btn { width: 48px; height: 48px; border-radius: 15px; border: 0; background: var(--tma-card-bg); color: var(--tma-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* Минималистичная карточка поездки в списке «Заселение» и выезжающий сбоку экран */
.tma-minimal-stay-card {
  background: var(--tma-surface); border-radius: 20px; padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background-color 100ms ease;
}
.tma-minimal-stay-card:active { background: var(--tma-hover); }
.tma-minimal-stay-card.is-completed-stay { opacity: 0.76; }
.tma-stay-chev { color: var(--tma-muted); font-size: 20px; flex-shrink: 0; }
.tma-stay-slide-room {
  position: relative; width: 100%; height: var(--tma-vvh, 100dvh);
  background: var(--tma-bg); display: flex; flex-direction: column; overflow: hidden;
  transform: translate3d(0, 0, 0); opacity: 1;
  box-shadow: -10px 0 28px rgba(0, 0, 0, 0.16);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}
.tma-stay-slide-room.is-slide-entering { transform: translate3d(300px, 0, 0); opacity: 0; }
.tma-stay-slide-room.is-swiping-back { transition: none !important; }
.tma-stay-slide-header { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-bottom: 2px; }

.tma-focus-backdrop { position: fixed; inset: 0; z-index: 440; pointer-events: auto; }
.tma-focus-blur { position: fixed; inset: 0; z-index: 441; background: rgba(88, 114, 80, 0.34); opacity: 0; transition: opacity 250ms var(--tma-ease), backdrop-filter 250ms var(--tma-ease); }
.tma-focus-backdrop.is-active .tma-focus-blur { opacity: 1; backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
.tma-focus-stage { position: fixed; inset: 0; pointer-events: none; z-index: 448; }
.tma-bubble-row.is-focus-clone { position: fixed !important; margin: 0 !important; max-width: none !important; z-index: 450; pointer-events: none; transition: transform 260ms var(--tma-ease) !important; }
.tma-reaction-bar { position: fixed; z-index: 462; height: 50px; max-width: calc(100vw - 24px); padding: 0 8px 0 12px; border-radius: 25px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(24px); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: scale(0.84) translateY(8px); transition: opacity 230ms var(--tma-ease), transform 240ms var(--tma-ease), height 260ms var(--tma-ease); }
.tma-focus-backdrop.is-active .tma-reaction-bar { opacity: 1; transform: scale(1) translateY(0); }
.tma-reaction-bar.is-expanded-grid { height: 236px; border-radius: 22px; transform: scale(1) translateY(14px); }
.tma-react-quick-row { height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tma-react-expand-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(60, 60, 67, 0.1); color: #3c3c43; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tma-react-all-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 4px 12px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tma-react-emoji-btn { border: 0; background: transparent; font-size: 27px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tma-ctx-menu { position: fixed; z-index: 460; width: 242px; background: rgba(248, 248, 248, 0.88); backdrop-filter: blur(28px); border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: scale(0.84) translateY(-10px); transition: opacity 230ms var(--tma-ease), transform 240ms var(--tma-ease); }
.tma-focus-backdrop.is-active .tma-ctx-menu:not(.is-menu-hidden) { opacity: 1; transform: scale(1) translateY(0); }
.tma-ctx-menu.is-menu-hidden { opacity: 0 !important; pointer-events: none; }
.tma-ctx-btn { border: 0; border-bottom: 0.5px solid rgba(60, 60, 67, 0.18); background: transparent; height: 45px; padding: 0 16px; font-size: 16.5px; color: #000; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tma-ctx-btn.is-last { border-bottom: 0; }
.tma-ctx-thick-sep { height: 7px; background: rgba(60, 60, 67, 0.11); width: 100%; }
.tma-ctx-btn.is-danger { color: #ff3b30; }
.tma-lightbox { position: fixed; inset: 0; background: rgba(10, 12, 18, 0.95); backdrop-filter: blur(12px); z-index: 480; display: flex; flex-direction: column; justify-content: space-between; }
.tma-lightbox-top { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.tma-lightbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; }
.tma-lightbox-img { max-width: 100%; max-height: 82dvh; border-radius: 12px; object-fit: contain; }
