/* ============================================
   GLASSMORPHISM ПАНЕЛИ
   ============================================ */
.glass-panel {
    position: fixed;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 95;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ЛЕВАЯ ПАНЕЛЬ: СЛУЧАЙНОЕ МЕСТО
   ============================================ */
.left-panel {
    top: 65px;
    left: 15px;
    width: 340px;
    max-height: calc(100vh - 180px);
    border-radius: 20px;
    padding: 18px;
    overflow-y: auto;
    overflow-x: hidden;
}

.left-panel::-webkit-scrollbar { width: 4px; }
.left-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 2px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1f1f1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-label i { font-size: 16px; }

.btn-refresh {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(218, 68, 83, 0.1);
    color: #DA4453;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: #DA4453;
    color: #fff;
    transform: rotate(180deg);
}

/* ========== КАРТОЧКА МЕСТА ========== */
.discovery-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.discovery-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s;
}

.discovery-card:hover .discovery-image {
    transform: scale(1.02);
}

.image-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
}

.image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #DA4453;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.image-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.discovery-content { padding: 16px; }

.discovery-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f1f1f;
    line-height: 1.2;
}

.discovery-location {
    font-size: 12px;
    color: #6c6c6c;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.discovery-location i {
    color: #DA4453;
    font-size: 11px;
}

.discovery-desc {
    font-size: 13px;
    color: #6c6c6c;
    line-height: 1.5;
    margin-bottom: 14px;
}

.discovery-stats {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #1f1f1f;
}

.stat-item i { font-size: 13px; }

.discovery-actions {
    display: flex;
    gap: 10px;
}

.btn-primary-action {
    flex: 1;
    background: linear-gradient(135deg, #DA4453, #ED5565);
    color: #fff !important;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(218, 68, 83, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(218, 68, 83, 0.4);
    color: #fff !important;
}

.btn-secondary-action {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f0f0;
    color: #1f1f1f;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary-action:hover {
    background: #1f1f1f;
    color: #fff;
    transform: translateY(-2px);
}

/* ========== КАТЕГОРИИ ========== */
.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-chip {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #1f1f1f;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-chip:hover {
    background: rgba(218, 68, 83, 0.1);
    border-color: #DA4453;
    color: #DA4453;
}

.category-chip.active {
    background: #DA4453;
    color: #fff;
    border-color: #DA4453;
}

/* ============================================
   НИЖНЯЯ ПАНЕЛЬ: СОБЫТИЯ И БИЛЕТЫ
   ============================================ */
.bottom-panel {
    bottom: 75px;
    left: 15px;
    right: 15px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-panel.drawer-collapsed {
    transform: translateY(calc(100% - 55px));
}

.drawer-toggle {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    color: #6c6c6c;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.drawer-toggle:hover { color: #DA4453; }

.drawer-tabs {
    display: flex;
    background: rgba(245, 245, 247, 0.6);
    padding: 8px;
    gap: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #6c6c6c;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn.active {
    background: #fff;
    color: #DA4453;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn:hover:not(.active) { color: #1f1f1f; }

.tab-content {
    display: none;
    padding: 16px;
    max-height: 220px;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ========== */
.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar { height: 4px; }
.horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* ========== КАРТОЧКА СОБЫТИЯ ========== */
.event-card {
    min-width: 260px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(218, 68, 83, 0.2);
}

.event-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.event-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f1f1f;
}

.event-info p {
    font-size: 12px;
    color: #6c6c6c;
    margin: 0 0 4px 0;
}

.event-info p i {
    color: #DA4453;
    margin-right: 3px;
    font-size: 10px;
}

.event-date {
    font-size: 11px;
    color: #DA4453;
    font-weight: 600;
}

.event-date i { margin-right: 3px; }

/* ========== КАРТОЧКА ПЕРЕЛЁТА ========== */
.flight-card {
    min-width: 280px;
    background: linear-gradient(135deg, #fff, #f8f9fc);
    border-radius: 16px;
    padding: 16px;
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.flight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 137, 220, 0.15);
    border-color: #4A89DC;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.flight-point { text-align: center; }

.city-code {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #1f1f1f;
    letter-spacing: 1px;
}

.city-name {
    display: block;
    font-size: 11px;
    color: #6c6c6c;
    margin-top: 2px;
}

.flight-path {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 10px;
    color: #4A89DC;
    font-size: 14px;
}

.path-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, transparent, #4A89DC, transparent);
    width: 100%;
    z-index: 0;
}

.flight-path i {
    position: relative;
    z-index: 1;
    background: #f8f9fc;
    padding: 0 4px;
}

.flight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.airline {
    font-size: 11px;
    color: #6c6c6c;
}

.airline i {
    margin-right: 3px;
    color: #4A89DC;
}

.price {
    font-size: 16px;
    font-weight: 800;
    color: #8CC152;
}

/* ========== ПОПУЛЯРНЫЕ МЕСТА ========== */
.popular-card {
    min-width: 180px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    scroll-snap-align: start;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popular-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.popular-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

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

.popular-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
}

.popular-info h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.popular-info span {
    font-size: 11px;
    opacity: 0.95;
}

.popular-info i {
    margin-right: 3px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 992px) {
    .left-panel {
        display: none;
    }
    .bottom-panel {
        left: 10px;
        right: 10px;
        bottom: 70px;
    }
}

@media (max-width: 576px) {
    .tab-btn {
        font-size: 11px;
        padding: 8px 10px;
    }
    .tab-btn span { display: none; }
    .event-card, .flight-card { min-width: 240px; }
    .popular-card { min-width: 150px; height: 140px; }
    .bottom-panel { bottom: 65px; }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.discovery-card:hover {
    animation: pulse 0.5s ease;
}

/* Плавное появление панелей */
.left-panel, .bottom-panel {
    animation: fadeInUp 0.6s ease;
}

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