/* 机场航线网络页面样式 */

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary, #165DFF) 0%, #2B6AFF 100%);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.hero-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-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.breadcrumb-light .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-light .breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-light .breadcrumb-item.active {
    color: white;
}

/* ===== 紧凑型指标卡片 ===== */
.metric-card-compact {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.metric-card-compact:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.metric-card-compact .icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.metric-card-compact .label {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
}

.metric-card-compact .value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== 地图容器 ===== */
.map-container {
    width: 100%;
    height: 500px;
    background-color: var(--light-gray, #F2F3F5);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

/* ===== 地图错误提示 ===== */
.map-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
    background: white;
}

/* ===== 目的地列表 ===== */
.dest-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 0.75rem;
}

.dest-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border, #E5E6EB);
    border-radius: 0.75rem;
    background: white;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dest-item:hover {
    background-color: var(--primary-light, #E8F4FF);
    border-color: var(--primary, #165DFF);
    transform: translateX(4px);
}

.dest-item:last-child {
    margin-bottom: 0;
}

.dest-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.dest-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light, #E8F4FF);
    color: var(--primary, #165DFF);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dest-icon i {
    font-size: 1rem;
}

.dest-info {
    flex: 1;
    min-width: 0;
}

.dest-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark, #1D2129);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.dest-airlines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.airline-tag {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    background: var(--light-gray, #F2F3F5);
    color: var(--gray, #86909C);
    border-radius: 0.25rem;
}

.airline-tag.more {
    background: var(--primary-light, #E8F4FF);
    color: var(--primary, #165DFF);
}

.dest-meta {
    flex-shrink: 0;
}

/* ===== 航线信息面板 ===== */
.route-info-panel {
    padding: 0.5rem;
    max-width: 320px;
}

.route-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border, #E5E6EB);
    margin-bottom: 0.75rem;
}

.route-city-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark, #1D2129);
}

.route-flight-count {
    font-weight: 600;
    color: var(--primary, #165DFF);
}

.route-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray, #86909C);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.route-airlines {
    margin-bottom: 1rem;
}

.route-airline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.route-airline-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-light, #E8F4FF);
    color: var(--primary, #165DFF);
    border-radius: 0.25rem;
    font-weight: 500;
}

.route-flight-list {
    max-height: 200px;
    overflow-y: auto;
}

.route-flight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray, #F2F3F5);
    gap: 0.75rem;
}

.route-flight-item:last-child {
    border-bottom: none;
}

.route-flight-no {
    font-weight: 600;
    color: var(--dark, #1D2129);
    flex-shrink: 0;
}

.route-flight-airline {
    font-size: 0.8rem;
    color: var(--gray, #86909C);
    flex: 1;
    text-align: center;
}

.route-flight-time {
    font-size: 0.8rem;
    color: var(--dark, #1D2129);
    font-family: monospace;
    flex-shrink: 0;
}

.route-flight-more {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray, #86909C);
    font-style: italic;
}

/* ===== 自定义滚动条 ===== */
.dest-list::-webkit-scrollbar,
.route-flight-list::-webkit-scrollbar {
    width: 6px;
}

.dest-list::-webkit-scrollbar-track,
.route-flight-list::-webkit-scrollbar-track {
    background: var(--light-gray, #F2F3F5);
    border-radius: 3px;
}

.dest-list::-webkit-scrollbar-thumb,
.route-flight-list::-webkit-scrollbar-thumb {
    background: var(--border, #E5E6EB);
    border-radius: 3px;
}

.dest-list::-webkit-scrollbar-thumb:hover,
.route-flight-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray, #86909C);
}

/* ===== 响应式调整 ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .metric-card-compact {
        padding: 1rem;
    }
    
    .metric-card-compact .value {
        font-size: 1.25rem;
    }
    
    .dest-list {
        max-height: none;
    }
    
    .route-info-panel {
        max-width: 280px;
    }
}
