/* Наследуем базовые стили из styles2.css */
@import url("styles5.css");

/* Основная раскладка для городской страницы */
.layout {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
}

/* Левая колонка новости (наследуем из styles2.css) */
.sidebar {
    flex: 0 0 250px;
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    order: 1;
    height: auto;
}

/* Центральная колонка с таблицами подвижного состава */
.vehicle-tables {
    flex: 1;
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    order: 2;
    overflow-x: auto;
}

.vehicle-tables table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.vehicle-tables th, .vehicle-tables td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

.vehicle-tables th {
    background: #f0f0f0;
}

.vehicle-tables a {
    color: #001f4d;
    text-decoration: none;
}

.vehicle-tables a:hover {
    text-decoration: underline;
}

/* Правая колонка фото */
.sidebar-right {
    flex: 0 0 300px;
    background: #fff;
    padding: 15px;
    border: 1px solid #ccc;
    font-size: 14px;
    order: 3;
    overflow-y: auto;
    max-height: 90vh;
}

.sidebar-right .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.sidebar-right img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar-right img:hover {
    opacity: 0.85;
}

/* Заголовки */
.vehicle-tables h2, .sidebar-right h2 {
    margin-top: 0;
}

.vehicle-tables h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
    .layout {
        flex-direction: column;
    }
    .sidebar, .vehicle-tables, .sidebar-right {
        flex: 1 1 70%;
        order: unset;
    }

}
.companies-table {
    width: 100%;
    border-collapse: collapse;
}

.companies-table td {
    border: 1px solid #ddd;
    vertical-align: top;
}

.d-symbol-xl {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.company-header {
    background: #f5f5f5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

.company-routes {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}