/* TL Centers Layout */
.tl-centers-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 60px);
    /* Adjust based on header height */
    background: #f8fafc;
}

/* Sidebar Styles */
.centers-sidebar {
    background: #1e3a8a;
    /* Deep Blue */
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid #1e40af;
}

.centers-sidebar h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #93c5fd;
    /* Lighter blue for labels */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #3b82f6;
    background: #172554;
    /* Darker blue bg */
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.filter-select option {
    background: #1e293b;
    color: white;
}

.btn-search {
    background: #f97316;
    /* Brand Orange */
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-search:hover {
    background: #ea580c;
}

/* Main Content Styles */
.centers-main {
    padding: 2rem;
    overflow-y: auto;
}

.centers-header {
    margin-bottom: 2rem;
}

.centers-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Center Card */
.center-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.center-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.center-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.type-dealer {
    background: #dbeafe;
    color: #1e40af;
}

.type-service {
    background: #dcfce7;
    color: #166534;
}

.center-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.center-location {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.center-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-call {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.btn-map {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .tl-centers-layout {
        grid-template-columns: 1fr;
    }

    .centers-sidebar {
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #1e40af;
    }

    .centers-main {
        padding: 1rem;
    }

    .filter-group {
        flex-direction: row;
        /* Stack horizontally to save space? or keep vertical? */
    }

    /* Let's keep filters vertical for clarity but tighter */
}