:root {
    --primary-color: #0177d7; /* Azul Escuro Institucional */
    --secondary-color: #19c94e; /* Laranja de Destaque / Ação */
    --text-color: #333333;
    --bg-light: #f4f6f9;
    --card-bg: #ffffff;
    --border-color: #e1e6eb;
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 20px 0;
    border-bottom: 4px solid var(--secondary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo strong {
    font-size: 22px;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
    font-weight: bold;
    margin-left: 5px;
}

.btn-back {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--secondary-color);
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1c75da 0%, #4193eb 100%);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-section p {
    color: #e4f2f5;
    font-size: 16px;
}

/* Layout Principal */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    flex: 1;
}

/* Sidebar Filtros */
.filters-sidebar {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    height: fit-content;
}

.filters-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    outline: none;
    font-size: 14px;
}

.btn-secondary {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #eee;
}

/* Grid e Cards */
.search-meta {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
}

.oficinas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.oficina-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.oficina-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.card-body h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.card-tag {
    display: inline-block;
    background-color: #e8f0fe;
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-info {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card-info i {
    color: var(--secondary-color);
    margin-top: 3px;
    width: 14px;
}

.card-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-card {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-ligar {
    background-color: #e1f5fe;
    color: #0288d1;
}

.btn-rota {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-rota:hover {
    background-color: #00d861;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #e4f2f5;
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    margin-top: auto;
}

/* Responsivo */
@media(max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}