/* ===== Квартиркинъ — Общие стили ===== */

/* Базовые стили */
body {
    background-color: #FDFBF7;
    color: #1a1a1a;
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Шумовая текстура для фона */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Double-Bezel эффект */
.double-bezel {
    padding: 6px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.double-bezel-inner {
    background: white;
    border-radius: calc(2rem - 6px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 25px 60px -12px rgba(0, 0, 0, 0.08);
}

/* Magnetic button эффект */
.magnetic-btn {
    transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.magnetic-btn:hover {
    transform: scale(1.02);
}

.magnetic-btn:active {
    transform: scale(0.98);
}

/* Навигация */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3BA8B3;
    transition: width 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Scroll reveal анимации */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Модальное окно */
.modal-overlay {
    backdrop-filter: blur(20px);
    background: rgba(253, 251, 247, 0.95);
}

/* Нейро-консультант кнопка */
.ai-assistant {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 168, 179, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(59, 168, 179, 0); }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F9F6F0;
}

::-webkit-scrollbar-thumb {
    background: #D4C9B8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B09A80;
}

/* Карточки квартир */
.apartment-card {
    transition: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
}

.apartment-card:hover {
    transform: translateY(-8px);
}

/* Форма бронирования */
.form-input {
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(59, 168, 179, 0.3);
}

/* ===== Удобства: доступные / недоступные ===== */
/* Недоступные удобства (значение поля = False) визуально гасятся
   и перечёркиваются, доступные отображаются в обычном виде. */
.amenity-item,
.amenity-tag,
.amenity-icon {
    transition: opacity 0.2s ease, color 0.2s ease;
}




/* Общее приглушение недоступного удобства */
.amenity-unavailable {
    opacity: 0.55;
}

/* Перечёркивание текстовой подписи (карточки и теги с текстом) */
.amenity-unavailable .amenity-label {
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    color: #9d8567; /* sand-500 */
}

.amenity-unavailable i {
    color: #b8a184; /* sand-400 */
}

/* Явная текстовая пометка «недоступно» рядом с подписью удобства. sand-400 
   Показывается только для карточек/тегов, где есть текстовая подпись. */
/* .amenity-unavailable .amenity-label::after {
    content: " — недоступно";
    font-style: italic;
    text-decoration: none;
    color: #b8a184; 
    white-space: nowrap;
} */












/* Иконочный ряд без текста: рисуем диагональную линию поверх иконки */
.amenity-icon.amenity-unavailable {
    position: relative;
    color: #b8a184; /* sand-400 */
}

.amenity-icon.amenity-unavailable::after {
    content: '';
    position: absolute;
    left: -2px;
    right: -2px;
    top: 50%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%) rotate(-20deg);
    border-radius: 2px;
    pointer-events: none;
}