/* Нижняя шторка, full-bleed визард, DateRangePicker, модалка оценки, выезд поездки и чат-оверлеи */
.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-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: #fff; }
.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-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; 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: #fff; }

.tma-center-modal-backdrop { position: fixed; inset: 0; z-index: 560; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tma-center-modal-card { width: min(440px, 95vw); max-height: 88dvh; overflow-y: auto; background: var(--tma-surface); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.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; }

.tma-sheet-wizard-viewport { position: relative; margin: 0 -18px; width: calc(100% + 36px); max-height: 76dvh; overflow: hidden !important; display: flex; flex-direction: column; transition: height 220ms var(--tma-ease); 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 var(--tma-ease), 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: #fff; }
.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 var(--tma-ease), 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; }

/* Контракт оверлеев для tg-chat-engine */
.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; }

/* DateRangePicker */
.lh-dp-trigger { width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--tma-field); color: var(--tma-text); font-size: 13.5px; font-weight: 500; font-family: inherit; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none; white-space: nowrap; transition: background-color 120ms ease; }
.lh-dp-trigger:hover, .lh-dp-trigger.is-open { background: var(--tma-hover); }
.lh-dp-trigger.is-open { outline: 2px solid #007aff; outline-offset: -2px; }
.lh-dp-trigger-lead { display: inline-flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-trigger-ico { color: #007aff; font-size: 17px; flex-shrink: 0; }
.lh-dp-trigger-hint { font-size: 11.5px; color: var(--tma-muted); font-weight: 500; flex-shrink: 0; }
.lh-dp-backdrop { position: fixed; inset: 0; z-index: 980; background: rgba(15, 23, 42, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 14px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
.lh-dp-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lh-dp-card { width: min(636px, 95vw); background: #fff; border-radius: 24px; padding: 16px 16px 14px; box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22); display: flex; flex-direction: column; gap: 11px; user-select: none; touch-action: none; position: relative; transform: scale(0.95) translateY(6px); transition: transform 200ms var(--tma-ease); }
.lh-dp-backdrop.is-open .lh-dp-card { transform: scale(1) translateY(0); }
.lh-dp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lh-dp-head-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.lh-dp-month-title { font-size: 16px; line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-head-sub { font-size: 12px; line-height: 15px; color: #86868b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-dp-nav-btns { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lh-dp-nav-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: #f2f3f7; color: #1d1d1f; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; }
.lh-dp-summary-bar { background: #f5f5f7; border-radius: 12px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #616166; }
.lh-dp-summary-bar strong { color: #1d1d1f; font-weight: 600; }
.lh-dp-nights-tag { background: rgba(0, 122, 255, 0.12); color: #007aff; font-weight: 600; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; flex-shrink: 0; }
.lh-dp-hscroll { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 10px, #000 calc(100% - 10px), transparent 100%); }
.lh-dp-hscroll::-webkit-scrollbar, .lh-dp-presets::-webkit-scrollbar { display: none; }
.lh-dp-months-track { display: inline-flex; align-items: flex-start; gap: 18px; padding: 2px 6px 4px; }
.lh-dp-month-pane { width: min(278px, calc(90vw - 44px)); flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.lh-dp-pane-caption { font-size: 13.5px; font-weight: 600; text-align: center; padding-bottom: 2px; }
.lh-dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 600; color: #86868b; text-transform: uppercase; }
.lh-dp-weekdays span.is-wknd { color: #dc2626; }
.lh-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.lh-dp-cell { position: relative; height: 36px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1d1d1f; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lh-dp-cell.is-outside { color: #c7c7cc; pointer-events: none; }
.lh-dp-cell.is-occupied { color: #c7c7cc; cursor: not-allowed; }
.lh-dp-cell.is-occupied .lh-dp-day-num { text-decoration: line-through; background: rgba(255, 59, 48, 0.08); color: #b91c1c; opacity: 0.65; }
.lh-dp-cell::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 0; right: 0; background: transparent; z-index: 1; pointer-events: none; }
.lh-dp-cell.is-in-range::before { background: rgba(0, 122, 255, 0.16); }
.lh-dp-cell.is-range-start:not(.is-range-single)::before { background: rgba(0, 122, 255, 0.16); left: 4px; border-radius: 999px 0 0 999px; }
.lh-dp-cell.is-range-end:not(.is-range-single)::before { background: rgba(0, 122, 255, 0.16); right: 4px; border-radius: 0 999px 999px 0; }
.lh-dp-day-num { position: relative; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--tma-ease); }
.lh-dp-cell:hover:not(.is-occupied):not(.is-range-start):not(.is-range-end) .lh-dp-day-num { background: rgba(0, 0, 0, 0.06); }
.lh-dp-cell.is-today .lh-dp-day-num { box-shadow: inset 0 0 0 1.5px #007aff; font-weight: 600; }
.lh-dp-cell.is-range-start .lh-dp-day-num, .lh-dp-cell.is-range-end .lh-dp-day-num { background: #007aff !important; color: #fff !important; font-weight: 600; cursor: ew-resize; transform: scale(1.06); }
.lh-dp-drag-glider { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 122, 255, 0.28); border: 2px solid #007aff; pointer-events: none; z-index: 999; opacity: 0; transform: translate3d(-999px, -999px, 0) scale(0.75); transition: opacity 120ms ease; }
.lh-dp-drag-glider.is-active { opacity: 1; }
.lh-dp-presets { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
.lh-dp-preset-chip { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: #f2f3f7; color: #1d1d1f; font-size: 12px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0; font-family: inherit; }
.lh-dp-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(60, 60, 67, 0.1); }
.lh-dp-btn { height: 38px; padding: 0 18px; border: 0; outline: 0; border-radius: 12px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lh-dp-btn-secondary { background: #f2f3f7; color: #1d1d1f; }
.lh-dp-btn-primary { background: #1d1d1f; color: #fff; }
