/* ========================================
   Калачинск Онлайн - Страница транспорта
   Page-specific styles
   ======================================== */

/* Breadcrumb */
.transport-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.transport-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.transport-breadcrumb a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.transport-breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.8rem;
}

.transport-breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Container */
.transport-page-container {
    margin-bottom: 3rem;
}

.transport-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Layout */
.transport-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
    align-items: start;
}

/* Routes List */
.transport-routes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transport-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.transport-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.transport-card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.transport-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.transport-card-subtitle {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin: 0;
}

.transport-card-meta {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.route-tags {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.route-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.route-tag {
    background: #F3F4F6;
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.route-arrow {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Details Section */
.transport-card-details {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    display: none;
    border-top: 1px solid var(--border-color);
}

.transport-card-details.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row strong {
    color: var(--text-dark);
    font-weight: 600;
    min-width: 150px;
    flex-shrink: 0;
}

.detail-row span {
    color: var(--text-body);
}

/* Footer & Button */
.transport-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-show-details {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-show-details:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

/* Empty State */
.transport-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    color: var(--text-light);
}

/* Pagination */
.transport-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Sidebar */
.transport-sidebar {
    position: sticky;
    top: 100px;
}

/* Responsive */
@media (max-width: 1024px) {
    .transport-layout {
        grid-template-columns: 1fr;
    }
    
    .transport-sidebar {
        position: static;
    }
    
    .sidebar-afisha-block {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .transport-page-title {
        font-size: 1.5rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .detail-row strong {
        min-width: auto;
    }
    
    .sidebar-afisha-block {
        height: 300px;
    }
}