/* ============================================
   ViaRondon Calculadora de Pedágios
   ============================================ */

/* --- Calculadora --- */
.vr-calculadora {
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin: 0 auto;
}

.vr-calc-form {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.vr-calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.vr-calc-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a4d2e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vr-calc-field select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fafafa;
    transition: border-color 0.3s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.vr-calc-field select:focus {
    border-color: #1a4d2e;
    outline: none;
    background-color: #fff;
}

/* Eixos row */
.vr-eixos-row {
    margin-bottom: 24px;
}

.vr-eixos-row .vr-calc-field {
    max-width: 280px;
}

.vr-calc-field input[type="number"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #333;
    background: #fafafa;
    transition: border-color 0.3s;
}

.vr-calc-field input[type="number"]:focus {
    border-color: #1a4d2e;
    outline: none;
    background-color: #fff;
}

.vr-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #1a4d2e !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vr-btn:hover {
    background: #2d7a4a !important;
}

.vr-btn:active {
    transform: scale(0.98);
    background: #1a4d2e !important;
}

.vr-btn:focus,
.vr-btn:visited,
.vr-btn:focus-visible {
    background: #1a4d2e !important;
    outline: none;
}

/* Resultado */
.vr-resultado {
    margin-top: 24px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    animation: vrSlideIn 0.4s ease;
}

@keyframes vrSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.vr-resultado-header h3 {
    font-size: 20px;
    color: #1a4d2e;
    margin: 0 0 4px 0;
}

.vr-resultado-header p {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

.vr-pedagios-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vr-pedagio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f5f9f6;
    border-radius: 10px;
    border-left: 4px solid #1a4d2e;
}

.vr-pedagio-item .vr-pedagio-info {
    display: flex;
    flex-direction: column;
}

.vr-pedagio-item .vr-pedagio-nome {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.vr-pedagio-item .vr-pedagio-km {
    font-size: 13px;
    color: #888;
}

.vr-pedagio-item .vr-pedagio-valor {
    font-weight: 700;
    color: #1a4d2e;
    font-size: 18px;
}

.vr-pedagio-valor-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.vr-pedagio-valor-eixo {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-top: 2px;
}

.vr-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin-top: 16px;
    background: #1a4d2e;
    border-radius: 12px;
    color: #fff;
}

.vr-total span {
    font-size: 16px;
    font-weight: 500;
}

.vr-total strong {
    font-size: 28px;
    font-weight: 800;
}

.vr-sem-pedagio {
    text-align: center;
    padding: 24px;
    color: #666;
    font-size: 15px;
}

.vr-distancia-info {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.vr-distancia-info span {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

/* Erro */
.vr-erro {
    margin-top: 16px;
    padding: 16px 20px;
    background: #fff3f3;
    border: 1px solid #ffcccc;
    border-radius: 10px;
    color: #c0392b;
    font-size: 14px;
    animation: vrSlideIn 0.3s ease;
}

/* --- Mapa Google Maps (rota SP-300) --- */
.vr-mapa-container {
    font-family: 'Inter', sans-serif;
    width: 100%;
    margin: 0 auto;
}

.vr-mapa-embed {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.vr-mapa-embed iframe {
    display: block;
    width: 100%;
    min-height: 500px;
}

.vr-mapa-acoes {
    text-align: center;
    margin-top: 16px;
}

.vr-btn-gmaps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #1a4d2e;
    color: #fff !important;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.3s;
}

.vr-btn-gmaps:hover {
    background: #2d7a4a;
    color: #fff !important;
}

.vr-btn-gmaps svg {
    flex-shrink: 0;
}

/* Grid de pedágios abaixo do mapa */
.vr-mapa-pedagios-grid {
    margin-top: 28px;
}

.vr-mapa-pedagios-grid h4 {
    font-size: 18px;
    color: #1a4d2e;
    margin: 0 0 16px 0;
    text-align: center;
}

.vr-pedagios-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vr-pedagio-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #1a4d2e;
}

.vr-pedagio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.vr-pedagio-card-header strong {
    font-size: 15px;
    color: #1a4d2e;
}

.vr-pedagio-card-header span {
    font-size: 12px;
    color: #999;
}

.vr-pedagio-card-precos {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vr-pedagio-card-precos > div {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
}

.vr-pedagio-card-precos strong {
    color: #1a4d2e;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .vr-calc-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .vr-calc-form {
        padding: 20px;
    }

    .vr-resultado {
        padding: 20px;
    }

    .vr-total {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
        gap: 4px;
    }

    .vr-total span {
        font-size: 14px;
    }

    .vr-total strong {
        font-size: 26px;
    }

    .vr-distancia-info {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
        width: 100%;
    }

    .vr-distancia-info span {
        font-size: 12px;
    }

    .vr-pedagio-item .vr-pedagio-valor {
        font-size: 16px;
    }

    .vr-mapa-embed iframe {
        min-height: 350px;
    }

    .vr-pedagios-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
