/**
 * 🎨 АВТОБУС ВАЛЕРА — Современный дизайн главной страницы
 * Версия: 2.0
 * 
 * Особенности:
 * - Mobile-first подход
 * - Оптимизация Core Web Vitals (CLS, LCP, FID)
 * - Glassmorphism эффекты
 * - Smooth анимации с GPU-ускорением
 * 
 * Вдохновлено: sputnik.ru, tripster.ru
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS ПЕРЕМЕННЫЕ — Единый источник стилей
═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Основные цвета */
    --color-primary: #4F46E5;
    --color-primary-dark: #3730A3;
    --color-primary-light: #818CF8;
    --color-secondary: #EC4899;
    --color-accent: #10B981;
    
    /* Нейтральные */
    --color-bg-dark: #1a1a2e;
    --color-bg-darker: #16213e;
    --color-bg-light: #F9FAFB;
    --color-text: #1F2937;
    --color-text-muted: #6B7280;
    --color-text-light: rgba(255, 255, 255, 0.8);
    
    /* Градиенты */
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-secondary: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
    --gradient-accent: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Тени */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);
    
    /* Размеры */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Анимации */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION — Главный экран
═══════════════════════════════════════════════════════════════════════════ */

/* Декоративные плавающие иконки */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
    left: var(--x, 50%);
    top: var(--y, 50%);
    animation: floatIcon 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-20px) rotate(10deg); opacity: 0.5; }
}

/* Бейдж доверия */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1.1rem;
}

/* Заголовок Hero */
.hero-highlight {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Анимации появления */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ПОИСКОВАЯ ФОРМА — Главный конверсионный элемент
═══════════════════════════════════════════════════════════════════════════ */
.search-box {
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1000; /* Выше других секций, но ниже dropdown */
}

.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible; /* Для dropdown */
}

.search-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    overflow: visible; /* Для dropdown */
}

.search-field {
    position: relative;
    flex: 1;
    min-width: 150px;
    overflow: visible;
}

.search-field-main {
    flex: 2;
    min-width: 200px;
    position: relative;
    z-index: 99999; /* Выше всех элементов для dropdown */
    overflow: visible;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--color-text);
    outline: none;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.search-input:focus {
    background: rgba(79, 70, 229, 0.05);
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-date {
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   📅 FLATPICKR КАСТОМИЗАЦИЯ
   ═══════════════════════════════════════════════════════════════════════════ */
   
.flatpickr-date {
    cursor: pointer !important;
    background: transparent !important;
}

.flatpickr-calendar {
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2) !important;
    border: none !important;
    font-family: inherit !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    display: none;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.flatpickr-day:hover {
    background: rgba(79, 70, 229, 0.1) !important;
    border-color: transparent !important;
}

.flatpickr-months .flatpickr-month {
    background: var(--color-primary) !important;
    color: white !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: white !important;
    font-weight: 600 !important;
}

.flatpickr-weekdays {
    background: var(--color-primary) !important;
}

.flatpickr-weekday {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500 !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: white !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   👥 УЛУЧШЕННЫЙ СЧЁТЧИК ГОСТЕЙ
   ═══════════════════════════════════════════════════════════════════════════ */

.guests-selector-improved {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    padding: 0.25rem;
}

.guests-btn-new {
    width: 36px;
    height: 36px;
    border: 2px solid var(--color-primary);
    background: white;
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.guests-btn-new:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.guests-btn-new:active {
    transform: scale(0.95);
}

.guests-btn-new:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.guests-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 50px;
    justify-content: center;
}

.guests-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.guests-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Кнопка поиска */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.search-btn-icon {
    transition: transform var(--transition-base);
}

.search-btn:hover .search-btn-icon {
    transform: translateX(4px);
}

/* Подсказки поиска */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: 0.5rem;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 100;
}

.search-suggestions.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--color-text);
}

.suggestion-item:hover {
    background: var(--color-bg-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   🔍 ЖИВОЕ АВТОДОПОЛНЕНИЕ (новый dropdown)
   ═══════════════════════════════════════════════════════════════════════════ */

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff; /* Непрозрачный белый */
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin-top: 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 99999; /* Максимальный z-index */
    
    /* Кастомный скроллбар */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.15) transparent; /* Firefox */
}

/* Webkit скроллбар (Chrome, Safari, Edge) */
.search-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.search-autocomplete::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0; /* Отступ от краёв */
}

.search-autocomplete::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
    transition: background 0.2s ease;
}

.search-autocomplete::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

.search-autocomplete.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocomplete-section {
    border-bottom: 1px solid var(--color-gray-100);
}

.autocomplete-section:last-child {
    border-bottom: none;
}

.autocomplete-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.autocomplete-header i {
    font-size: 0.875rem;
}

.autocomplete-header .clear-recent {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.7rem;
    text-transform: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

.autocomplete-header .clear-recent:hover {
    background: var(--color-gray-100);
}

.autocomplete-items {
    padding: 0 0.5rem 0.5rem;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--color-text);
    text-decoration: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--color-gray-50);
}

.autocomplete-item.active {
    background: var(--color-primary-light);
}

.autocomplete-item i {
    width: 20px;
    text-align: center;
    color: var(--color-text-muted);
}

.autocomplete-item-recent i {
    color: var(--color-gray-400);
}

.autocomplete-item span {
    flex: 1;
}

.autocomplete-item mark {
    background: rgba(99, 102, 241, 0.2);
    color: var(--color-primary);
    border-radius: 2px;
    padding: 0 2px;
}

.autocomplete-item .item-count {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

.autocomplete-item .item-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Результат с превью изображения */
.autocomplete-item-result {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
}

.autocomplete-item-result .item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.autocomplete-item-result .item-thumb-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    flex-shrink: 0;
    font-size: 1.25rem;
}

.autocomplete-item-result .item-info {
    min-width: 0;
    overflow: hidden;
}

.autocomplete-item-result .item-title {
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
    color: var(--color-text);
}

.autocomplete-item-result .item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.autocomplete-item-result .item-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.autocomplete-item-result .item-price {
    font-weight: 700;
    color: var(--color-primary);
    white-space: nowrap;
    font-size: 1rem;
    text-align: right;
    padding-left: 8px;
}

/* Пустой результат */
.autocomplete-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
    text-align: center;
}

.autocomplete-empty i {
    font-size: 2rem;
    opacity: 0.3;
}

/* Loader */
.autocomplete-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .search-autocomplete {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        max-height: none;
    }
    
    .autocomplete-item-result .item-thumb,
    .autocomplete-item-result .item-thumb-placeholder {
        width: 40px;
        height: 40px;
    }
}

.suggestion-item i {
    color: var(--color-primary);
}

/* Быстрые фильтры */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: center;
    position: relative;
    z-index: 1; /* Ниже dropdown */
}

.quick-filter-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.quick-filter-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.quick-filter-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   СТАТИСТИКА HERO
═══════════════════════════════════════════════════════════════════════════ */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1; /* Ниже dropdown */
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SCROLL INDICATOR
═══════════════════════════════════════════════════════════════════════════ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    animation: fadeIn 1s ease 1.5s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════════════════════════ */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MAP SECTION — Интерактивная карта с фильтрами и поиском
═══════════════════════════════════════════════════════════════════════════ */
.map-section {
    background: white;
}

/* Панель управления картой */
.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.map-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.map-search-input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.map-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.map-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-search-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.map-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    display: none;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.map-search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.map-search-result-item:hover {
    background: #F3F4F6;
}

.map-search-result-item:last-child {
    border-bottom: none;
}

/* Фильтры карты — современный сегментированный стиль */
.map-filters {
    display: inline-flex;
    background: #F3F4F6;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.map-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.map-filter-btn:hover {
    color: var(--color-primary);
    background: rgba(79, 70, 229, 0.08);
}

.map-filter-btn.active {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.map-filter-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.map-filter-btn:hover i {
    transform: scale(1.1);
}

.map-filter-btn.active i {
    color: var(--color-primary);
}

/* Цветовые индикаторы для активных фильтров */
.map-filter-btn[data-filter="tours"].active i { color: #4F46E5; }
.map-filter-btn[data-filter="properties"].active i { color: #10B981; }
.map-filter-btn[data-filter="transport"].active i { color: #F59E0B; }

.map-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.destinations-map {
    width: 100%;
    height: 450px;
}

/* Статистика на карте */
.map-stats {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--color-text);
}

.map-stats i {
    color: var(--color-primary);
    margin-right: 0.25rem;
}

.map-legend {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.813rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot-tours {
    background: #4F46E5;
}

.legend-dot-properties {
    background: #10B981;
}

.legend-dot-transport {
    background: #F59E0B;
}

@media (max-width: 768px) {
    .map-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .map-search-wrapper {
        max-width: none;
    }
    
    .map-filters {
        justify-content: center;
        width: 100%;
        overflow-x: auto;
        padding: 3px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .map-filters::-webkit-scrollbar {
        display: none;
    }
    
    .map-filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .destinations-map {
        height: 350px;
    }
    
    .map-stats {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .map-legend {
        bottom: auto;
        top: 0.5rem;
        left: 0.5rem;
        right: auto;
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   DESTINATIONS GRID — Сетка направлений
═══════════════════════════════════════════════════════════════════════════ */
.destinations-section {
    background: var(--color-bg-light);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
}

.destination-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--transition-bounce);
}

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

.destination-large {
    grid-column: span 2;
    grid-row: span 2;
}

.destination-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.destination-card:hover .destination-image {
    transform: scale(1.1);
}

.destination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 1;
}

.destination-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.destination-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.destination-large .destination-title {
    font-size: 1.75rem;
}

.destination-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.destination-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.destination-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   TOUR CARDS — Карточки экскурсий
═══════════════════════════════════════════════════════════════════════════ */
.tours-section {
    background: white;
}

.tour-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.tour-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.tour-card:hover .tour-img {
    transform: scale(1.1);
}

.tour-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 3rem;
    opacity: 0.5;
}

.tour-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: 1;
}

/* Индикаторы срочности */
.tour-urgency-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    animation: urgencyPulse 2s ease-in-out infinite;
}

.tour-urgency-today {
    background: linear-gradient(135deg, #FF6B00 0%, #FF9500 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}

.tour-urgency-spots {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.tour-urgency-low {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

@keyframes urgencyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tour-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    z-index: 1;
}

.tour-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tour-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.tour-description {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem;
    flex: 1;
    line-height: 1.5;
}

.tour-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.813rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.tour-meta-item i {
    color: var(--color-primary);
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.rating-stars {
    color: #FBBF24;
}

.rating-stars .far {
    color: #D1D5DB;
}

.rating-value {
    font-weight: 600;
    color: var(--color-text);
}

.rating-count {
    color: var(--color-text-muted);
}

/* Ближайшая дата экскурсии */
.tour-next-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: var(--radius-sm);
    font-size: 0.813rem;
    margin-top: 0.75rem;
}

.tour-next-date i {
    color: #43A047;
}

.tour-next-date-today {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFECB3 100%);
    color: #E65100;
    animation: pulseToday 2s ease-in-out infinite;
}

.tour-next-date-today i {
    color: #FF6D00;
}

@keyframes pulseToday {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 109, 0, 0.3); }
    50% { box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.1); }
}

.tour-spots-warning {
    margin-left: auto;
    color: #D32F2F;
    font-weight: 600;
    font-size: 0.75rem;
}

.tour-card-footer {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid #F3F4F6;
    background: #FAFAFA;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--color-primary);
    color: white;
}

.btn-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-details:hover {
    color: white;
    transform: translateX(2px);
    box-shadow: var(--shadow-md);
}


/* ═══════════════════════════════════════════════════════════════════════════
   USP SECTION — Преимущества
═══════════════════════════════════════════════════════════════════════════ */
.usp-section {
    background: var(--gradient-hero);
}

.usp-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
}

.usp-section .section-title {
    color: white;
}

.usp-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.usp-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.usp-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 2rem;
    color: white;
}

.usp-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.usp-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   REVIEWS SECTION — Отзывы
═══════════════════════════════════════════════════════════════════════════ */
.reviews-section {
    background: var(--color-bg-light);
}

.review-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    height: 100%;
}

.review-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.review-author {
    flex: 1;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--color-text);
}

.review-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.review-source {
    color: #4C75A3;
    font-size: 1.25rem;
}

.review-rating {
    margin-bottom: 0.75rem;
    color: #FBBF24;
}

.review-rating .inactive {
    color: #E5E7EB;
}

.review-text {
    font-size: 0.875rem;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-primary);
    font-weight: 500;
}

.review-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #E7F0F8;
    color: #4C75A3;
    font-size: 0.813rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.review-link:hover {
    background: #4C75A3;
    color: white;
}

.review-tour-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
}

.review-tour-badge i {
    font-size: 0.625rem;
}

.btn-vk-reviews {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: #4C75A3;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-vk-reviews:hover {
    background: #3D5F85;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(76, 117, 163, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS — Шаги бронирования
═══════════════════════════════════════════════════════════════════════════ */
.how-it-works-section {
    background: white;
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
    padding: 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.813rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 60px;
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-top: 1rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION — Призыв к действию
═══════════════════════════════════════════════════════════════════════════ */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   LANDING CARDS
═══════════════════════════════════════════════════════════════════════════ */
.landing-card {
    display: block;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 200px;
    text-decoration: none;
    transition: all var(--transition-base);
}

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

.landing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.landing-card:hover img {
    transform: scale(1.1);
}

.landing-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.landing-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.landing-card p {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION — Частые вопросы
═══════════════════════════════════════════════════════════════════════════ */
.faq-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.faq-accordion {
    border: none;
}

.faq-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.faq-item .accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
    box-shadow: none;
    border: none;
    gap: 1rem;
}

.faq-item .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.faq-item .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234F46E5'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform var(--transition-base);
}

.faq-item .accordion-button:focus {
    box-shadow: none;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-item .accordion-body {
    padding: 0 1.5rem 1.5rem 5rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.faq-item .accordion-body ul {
    padding-left: 1.25rem;
    margin: 0.75rem 0;
}

.faq-item .accordion-body li {
    margin-bottom: 0.5rem;
}

.faq-item .accordion-body strong {
    color: var(--color-text);
}


/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn-see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-see-all:hover {
    background: var(--color-primary);
    color: white;
}

.btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    color: white;
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile First
═══════════════════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 991px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-inputs {
        flex-direction: column;
    }
    
    .search-field,
    .search-field-main {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .hero-stat-number {
        font-size: 1.5rem;
    }
    
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .destination-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 250px;
    }
    
    .destination-card:not(.destination-large) {
        height: 180px;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        width: 60px;
        height: 30px;
        margin: 0;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .hero-section {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .floating-icon {
        display: none;
    }
    
    .quick-filters {
        gap: 0.375rem;
    }
    
    .quick-filter-tag {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .destination-large {
        grid-column: span 1;
        height: 200px;
    }
    
    .destination-card {
        height: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .tour-card-image {
        height: 180px;
    }
    
    .tour-card-footer {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .cta-trust {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUESTS SELECTOR — Выбор количества участников (стиль Sputnik/Tutu)
═══════════════════════════════════════════════════════════════════════════ */
.search-field-guests {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.guests-selector {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.guests-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.guests-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.guests-input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.guests-input::-webkit-outer-spin-button,
.guests-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.guests-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PERSONALIZED SECTION — Приветствие для залогиненных
═══════════════════════════════════════════════════════════════════════════ */
.personalized-section {
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 100%);
}

.personalized-card {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(79, 70, 229, 0.3);
}

.personalized-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.personalized-greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.greeting-emoji {
    font-size: 2.5rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.greeting-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.greeting-subtitle {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.personalized-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.personalized-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.personalized-btn-primary {
    background: white;
    color: var(--color-primary);
}

.personalized-btn-primary:hover {
    background: #f0f0f0;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.personalized-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.personalized-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .personalized-card {
        padding: 1.25rem 1.5rem;
    }
    
    .personalized-content {
        flex-direction: column;
        text-align: center;
    }
    
    .personalized-greeting {
        flex-direction: column;
    }
    
    .greeting-emoji {
        font-size: 2rem;
    }
    
    .greeting-title {
        font-size: 1.25rem;
    }
    
    .personalized-actions {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   UPCOMING SECTION — Ближайшие экскурсии (стиль Tutu)
═══════════════════════════════════════════════════════════════════════════ */
.upcoming-section {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.upcoming-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid #e5e7eb;
}

.upcoming-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.upcoming-card-featured {
    border: 2px solid var(--color-primary);
    position: relative;
}

.upcoming-card-featured::before {
    content: '🔥 Популярное';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
}

.upcoming-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 1rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
}

.upcoming-day {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.upcoming-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
}

.upcoming-today {
    margin-top: 0.25rem;
    padding: 0.125rem 0.5rem;
    background: #fbbf24;
    color: #1f2937;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
}

.upcoming-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-time {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.upcoming-time i {
    color: var(--color-primary);
    margin-right: 0.25rem;
}

.upcoming-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.upcoming-title a {
    color: var(--color-text);
    text-decoration: none;
}

.upcoming-title a:hover {
    color: var(--color-primary);
}

.upcoming-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: auto;
}

.upcoming-spots-low {
    color: #dc2626;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.upcoming-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f9fafb;
    min-width: 110px;
    gap: 0.5rem;
}

.upcoming-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

.upcoming-book-btn {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    white-space: nowrap;
}

.upcoming-book-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-see-calendar {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-see-calendar:hover {
    background: var(--color-primary);
    color: white;
}


/* ═══════════════════════════════════════════════════════════════════════════
   INTERESTS SECTION — Категории по интересам (стиль Tripster)
═══════════════════════════════════════════════════════════════════════════ */
.interests-section {
    background: white;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.interest-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: var(--transition-base);
}

.interest-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.interest-card:hover::before {
    opacity: 1;
}

/* Цветовые темы для категорий */
.interest-nature::before { background: #10B981; }
.interest-nature:hover { border-color: #10B981; }

.interest-history::before { background: #8B5CF6; }
.interest-history:hover { border-color: #8B5CF6; }

.interest-beach::before { background: #3B82F6; }
.interest-beach:hover { border-color: #3B82F6; }

.interest-family::before { background: #F59E0B; }
.interest-family:hover { border-color: #F59E0B; }

.interest-romantic::before { background: #EC4899; }
.interest-romantic:hover { border-color: #EC4899; }

.interest-gastro::before { background: #EF4444; }
.interest-gastro:hover { border-color: #EF4444; }

.interest-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.interest-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.375rem 0;
}

.interest-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.interest-count {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Адаптивность для interests */
@media (max-width: 1199px) {
    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .interest-card {
        padding: 1rem 0.75rem;
    }
    
    .interest-icon {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .upcoming-grid {
        grid-template-columns: 1fr;
    }
    
    .upcoming-card {
        flex-direction: column;
    }
    
    .upcoming-date-badge {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        min-width: auto;
    }
    
    .upcoming-day {
        font-size: 1.25rem;
    }
    
    .upcoming-action {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    
    /* Компактный счётчик участников на мобильных */
    .search-field-guests {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0;
    }
    
    .guests-selector {
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-full);
        padding: 0.25rem 0.5rem;
    }
    
    .guests-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .guests-input {
        width: 35px;
        font-size: 1rem;
    }
}


/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   🆕 МУЛЬТИПОИСК — Вкладки типов поиска (как на Tutu)
═══════════════════════════════════════════════════════════════════════════ */
.search-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px);
}

.search-tab.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.search-tab i {
    font-size: 1rem;
}

@media (max-width: 767px) {
    .search-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .search-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .search-tab span {
        display: none;
    }
    
    .search-tab i {
        margin: 0;
    }
}

/* Поля дат для жилья */
.dates-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dates-separator {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.search-date-small {
    width: 110px;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.85rem !important;
}

.search-field-dates {
    min-width: 260px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   🆕 BUNDLE-ПРЕДЛОЖЕНИЯ — Пакетные карточки (как на Tutu)
═══════════════════════════════════════════════════════════════════════════ */
.bundles-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 50%, #f0fff4 100%);
}

.bundle-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bundle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.bundle-featured {
    border: 2px solid var(--color-secondary);
}

.bundle-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-accent);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.bundle-badge-hot {
    background: var(--gradient-secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.bundle-images {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.bundle-image {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
}

.bundle-image-main {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.bundle-image-small {
    width: 70px;
    height: 70px;
    bottom: -10px;
    right: 16px;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.bundle-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bundle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.bundle-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bundle-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bundle-includes span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    color: #166534;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.bundle-includes span i {
    font-size: 0.65rem;
}

.bundle-prices {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.bundle-price-old {
    color: var(--color-text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.bundle-price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.bundle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-light);
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bundle-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(4px);
}

.bundle-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.bundle-btn-primary:hover {
    transform: scale(1.02) translateX(4px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
    .bundle-images {
        height: 150px;
    }
    
    .bundle-image-small {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .bundle-content {
        padding: 1.25rem;
    }
    
    .bundle-title {
        font-size: 1.1rem;
    }
    
    .bundle-price-new {
        font-size: 1.25rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   🎁 BUNDLE PROMO — Секция "Бронируй вместе, экономь"
═══════════════════════════════════════════════════════════════════════════ */
.bundle-promo-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

.bundle-promo-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-30 30v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.bundle-promo-section .section-header {
    position: relative;
    z-index: 1;
}

.bundle-promo-section .section-badge {
    background: rgba(255, 255, 255, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.bundle-promo-section .section-title {
    color: #fff;
}

.bundle-promo-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.bundle-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.bundle-promo-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bundle-promo-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.bundle-promo-featured {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

.bundle-promo-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bundle-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.bundle-icon-tour {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.bundle-icon-property {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.bundle-icon-vehicle {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.bundle-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.bundle-promo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.bundle-promo-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bundle-promo-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.discount-badge-hot {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    animation: pulse 2s infinite;
}

.discount-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bundle-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.bundle-promo-card:hover .bundle-promo-cta {
    color: #fff;
    transform: translateX(4px);
}

/* "Как это работает" */
.bundle-how-it-works {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
}

.how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.how-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fbbf24;
}

.how-step-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive для Bundle Promo */
@media (max-width: 1199px) {
    .bundle-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bundle-promo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bundle-promo-card {
        padding: 1.5rem 1rem;
    }
    
    .bundle-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .bundle-promo-featured {
        order: -1;
    }
}


