﻿body {
    font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #0d2a4f;
    color: #fff;
    border-radius: 8px;
}

.nav-pills .nav-link {
    color: #555;
}

.card {
    border-radius: 0.5rem;
    border: none;
}

.car-list {
    position: absolute;
    bottom: 0;
    padding: 0.5em;
    left: 0;
}

.car-card-img {
    height: 120px;
}

.car-card .car-card-img-bg {
    background-color: #f1f3f5;
    padding: 1rem;
    border-radius: 0.25rem;
    margin: 0.5rem;
}

.car-card img.card-img-top {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

.badge-alta-demanda {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #e6f7f0;
    color: #098551;
    font-weight: 500;
    font-size: 0.72rem;
    
    padding: 2px 6px;
    line-height: 1 !important;
    border-radius: 4px;
}

.text-primary {
    color: #043243 !important;
}

body {
    padding-bottom: 120px;
}

.btn-primary {
    background-color: #043243 !important;
    border-color: #043243 !important;
}

.map-container {
    position: relative;
    overflow: hidden;
    height: 782px;
    border-radius: 0.5rem;
}

    .map-img {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

.map-marker {
    position: absolute;
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: clamp(28px, 2.5vw, 36px);
    height: clamp(28px, 2.5vw, 36px);
    font-size: clamp(12px, 1.2vw, 14px);
}

    .map-marker:hover {
        transform: scale(1.1);
        z-index: 10;
    }

.marker-red {
    background-color: #E63946;
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.3);
}

.marker-red-light {
    background-color: #F3722C;
    box-shadow: 0 0 0 4px rgba(243, 114, 44, 0.3);
}

.marker-dark {
    background-color: #2b2d42;
    box-shadow: 0 0 0 4px rgba(43, 45, 66, 0.3);
}

.marker-purple {
    background-color: #C11574;
    box-shadow: 0 0 0 4px rgba(43, 45, 66, 0.3);
}

.marker-blue {
    background-color: #3538CD;
    box-shadow: 0 0 0 4px rgba(43, 45, 66, 0.3);
}

.map-tooltip {
    position: absolute;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.875rem;
    min-width: 180px;
    transform: translate(-50%, -110%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

    .map-tooltip.visible {
        opacity: 1;
    }

    .map-tooltip strong {
        display: block;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }



.card-vehicle {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

    .card-vehicle:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: .9em;
    font-weight: 600;
    line-height: 1;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
}

    .filter-badge .bi-x {
        font-size: 1.1em;
        margin-left: 6px;
        cursor: pointer;
    }

.btn-dark {
    background-color: #004A5A;
    border-color: #004A5A;
}

    .btn-dark:hover {
        background-color: #003A4A;
        border-color: #003A4A;
    }

.text-success {
    color: #27ae60 !important;
}

.badge-destaque {
    background-color: #004A5A;
    color: white;
    font-weight: 500;
    padding: 6px 10px;
}

.btn-group-car-motorcycle .btn {
    border-color: #dee2e6;
    color: #333;
    background-color: #fff;
}

    .btn-group-car-motorcycle .btn.active {
        background-color: #e9ecef;
        border-color: #dee2e6;
        font-weight: 500;
    }

.info-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}


.bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 220px; 
    padding: 20px 10px 0 10px;
    position: relative;
    width: 100%;
}


.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    flex: 1;
}


.bars-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 4px; 
    height: 100%; 
    padding-bottom: 5px;
}


.bar {
    width: 12px; 
    border-radius: 2px 2px 0 0;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 0%; 
    position: relative;
}

    .bar:hover {
        opacity: 0.8;
    }

    .bar.auto {
        background-color: #0B3B55;
    }

    .bar.fipe {
        background-color: #1ABC9C;
    }

    .bar.estoque {
        background-color: #AAB7B8;
    }


.bar-group .mes {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}


.chart-tooltip {
    position: fixed; 
    background: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    pointer-events: none;
    display: none;
    z-index: 1000;
    white-space: nowrap;
}
