/* ============================================
   YuGi YuGi — оформление главного экрана (поверх styles.css и features.css)
   Фото кладутся в папку images/: hero.jpg, house6.jpg, work.jpg, trips.jpg, market.jpg.
   Пока файла нет — вместо него показывается красивая заливка.
   ============================================ */

/* логотип */
.app-logo-icon { background: none; box-shadow: none; border: 0; width: 38px; height: 38px; font-size: 0; }
.app-logo-icon svg { display: block; filter: drop-shadow(0 4px 10px rgba(255, 122, 59, .35)); }
.app-logo-text { font-weight: 800; letter-spacing: -.4px; }
.logo-accent { background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* сцена за заголовком */
#tab-search { position: relative; }
.hero-scene { position: absolute; z-index: 0; top: -92px; left: -18px; right: -18px; height: 360px; overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo + .hero-art { display: none; }
#tab-search > :not(.hero-scene) { position: relative; z-index: 1; }

.hero-title { font-family: var(--font); font-weight: 800; font-size: 40px; letter-spacing: -1.4px; line-height: 1.04; max-width: none; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-title em { font-style: italic; font-weight: 800; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; padding-right: 4px; }
.hero-sub { max-width: 17em; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); margin-bottom: 26px; }

/* поиск */
.search-pill { margin-top: 70px; padding: 6px 6px 6px 18px; }
.search-go { width: auto; height: 46px; padding: 0 22px; border-radius: 23px; font-family: var(--font); font-size: 16px; font-weight: 800; }

/* плитки */
.group-grid { gap: 12px; }
.group-card { min-height: 164px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .22); }
.gc-housing { background: linear-gradient(150deg, #2E9BD6 0%, #1B5C9E 60%, #12345E 100%); }
.gc-work    { background: linear-gradient(150deg, #34A7E8 0%, #2C6FD6 60%, #1A3E8C 100%); }
.gc-trips   { background: linear-gradient(150deg, #1FB6A6 0%, #138A8C 60%, #0C4F5E 100%); }
.gc-market  { background: linear-gradient(150deg, #F0875A 0%, #C2536F 60%, #6E3A6B 100%); }
.group-photo { opacity: 1; mix-blend-mode: normal; }
.group-card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 14, 30, .55) 0%, rgba(5, 14, 30, 0) 62%), linear-gradient(180deg, rgba(5, 14, 30, 0) 40%, rgba(5, 14, 30, .55) 100%); }
.group-card.wide::after { background: linear-gradient(90deg, rgba(5, 14, 30, .55) 0%, rgba(5, 14, 30, 0) 62%), linear-gradient(180deg, rgba(5, 14, 30, 0) 40%, rgba(5, 14, 30, .55) 100%); }
.group-icon { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.group-title { font-family: var(--font); font-weight: 800; font-size: 19px; letter-spacing: -.3px; }
.group-desc { opacity: .9; line-height: 1.25; max-width: 11em; }
.group-count { top: 16px; right: 14px; }

.section-title { font-family: var(--font); font-weight: 800; font-size: 20px; letter-spacing: -.4px; }
.section-link { color: var(--text-secondary); font-weight: 600; }

/* нижняя панель: без цветной подсветки, пузырь остаётся */
.nav-item.active .nav-icon { color: inherit; }
[data-theme="light"] .nav-item.active .nav-icon { color: inherit; }
.nav-item.active { color: var(--text); }
.nav-indicator::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 14px rgba(0, 0, 0, .25); background: rgba(255, 255, 255, .16); }
[data-theme="light"] .nav-indicator::before { background: rgba(0, 0, 0, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 14px rgba(0, 0, 0, .12); }

@media (max-width: 360px) { .hero-title { font-size: 34px; } }

/* ===== чипсы типов жилья ===== */
.cat-chips-wrap { flex: none; margin: 10px 0 0; position: relative; z-index: 2; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 6px; scrollbar-width: none; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--glass-border);
    background: var(--glass); color: var(--text); font: 700 14px var(--font); cursor: pointer; transition: background .2s, transform .15s; }
.cat-chip:active { transform: scale(.95); }
.cat-chip i { font-size: 14px; opacity: .85; }
.cat-chip b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .16); font-size: 12px; line-height: 20px; text-align: center; }
.cat-chip.on { background: var(--sun); color: #3A1406; border-color: rgba(255, 255, 255, .45); box-shadow: 0 6px 18px rgba(255, 122, 89, .35); }
.cat-chip.on b { background: rgba(58, 20, 6, .18); }
.chat-help-btn { font-size: 15px; }

/* ===== подсказки ===== */
.tip-spot { position: fixed; z-index: 99990; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 2px rgba(255, 179, 92, .9), 0 0 0 9999px rgba(3, 8, 18, .42); transition: all .25s ease; }
.tip { position: fixed; z-index: 99991; box-sizing: border-box; padding: 16px 16px 12px; border-radius: 20px; background: #1B2740; color: #F4F8FF; border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 16px 44px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .22s, transform .22s var(--spring); }
.tip.in { opacity: 1; transform: none; }
.tip::before { content: ''; position: absolute; top: -7px; left: var(--ax, 50%); width: 14px; height: 14px; margin-left: -7px; background: #1B2740; transform: rotate(45deg); border-left: 1px solid rgba(255, 255, 255, .14); border-top: 1px solid rgba(255, 255, 255, .14); }
.tip.above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.tip-title { font-weight: 800; font-size: 16px; padding-right: 26px; margin-bottom: 6px; }
.tip-text { font-size: 14px; line-height: 1.45; color: rgba(236, 243, 255, .86); }
.tip-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.tip-count { margin-right: auto; font-size: 12px; color: rgba(236, 243, 255, .55); }
.tip-btn { height: 38px; padding: 0 18px; border-radius: 19px; border: 0; background: var(--sun); color: #3A1406; font: 800 14px var(--font); cursor: pointer; }
.tip-btn.ghost { background: rgba(255, 255, 255, .12); color: #F4F8FF; }
.tip-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: rgba(236, 243, 255, .6); cursor: pointer; }
[data-theme="light"] .tip, [data-theme="light"] .tip::before { background: #1B2740; }
@media (prefers-reduced-motion: reduce) { .tip, .tip-spot { transition: opacity .15s; } }
