/* ==========================================================
   EASYDATA - SINGLE VIATURA
   ========================================================== */


/* ==========================================================
   BASE
   ========================================================== */

/* ==========================================================
   OVERRIDE HELLO ELEMENTOR
   Remove o max-width: 1140px aplicado ao <main>
   ========================================================== */

main#primary.site-main.edv-single {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}


/* ==========================================================
   SINGLE
   ========================================================== */

.edv-single {
    width: 100%;
    max-width: none;

    margin: 0;

    background: #ffffff;
    font-family: 'Satoshi', sans-serif;
}

.edv-single-container {
    width: calc(100% - 200px);

    margin-left: 100px;
    margin-right: 100px;
}

.edv-vehicle-single {
    width: 100%;
}


/* ==========================================================
   HERO / BLOCO PRINCIPAL
   ========================================================== */

.edv-vehicle-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 24px;
    align-items: start;
    padding: 40px 0 30px;
}


/* ==========================================================
   GALERIA
   ========================================================== */

.edv-gallery {
    min-width: 0;
}

.edv-main-image {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    background: #eeeeee;
    border-radius: 5px;
}

.edv-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edv-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #828282;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 500;
}


/* ==========================================================
   MINIATURAS
   ========================================================== */

.edv-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.edv-thumb {
    aspect-ratio: 1.45 / 1;
    background: #eeeeee;
    border-radius: 5px;
    overflow: hidden;
}


/* ==========================================================
   INFORMAÇÃO DA VIATURA
   ========================================================== */

.edv-vehicle-info {
    min-width: 0;
    padding-top: 2px;
}


/* ==========================================================
   MARCA
   ========================================================== */

.edv-brand {
    margin-bottom: 2px;

    color: #828282;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;
}


/* ==========================================================
   TÍTULO DA VIATURA
   ========================================================== */

.edv-title {
    margin: 0;

    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 36px;
    line-height: 1.08;
    font-weight: 700;
    font-style: normal;
}


/* ==========================================================
   ANO / CV / KMS
   ========================================================== */

.edv-basic-data {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 14px;

    margin-top: 7px;

    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    font-style: normal;
}

.edv-basic-data span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edv-data-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;

    color: #828282;

    display: block;
}

.edv-basic-data strong {
    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    font-style: normal;
}


/* ==========================================================
   FICHA TÉCNICA - TÍTULO
   ========================================================== */

.edv-section-title {
    margin: 12px 0 8px;

    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;
}


/* ==========================================================
   FICHA TÉCNICA - DADOS
   ========================================================== */

.edv-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 14px;
    row-gap: 8px;

    color: #828282;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    font-style: normal;
    margin-top: 25px;
}

.edv-spec {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    min-width: 0;
   
}

.edv-spec-bullet {
    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    margin-top: 6px;

    background: #087FC1;
}

.edv-spec strong {
    color: #1B1B1F;
    font-weight: 900;
}


/* ==========================================================
   PREÇO
   ========================================================== */

.edv-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 17px;
    padding: 13px 15px;

    min-height: 55px;

    background: #061923;
    border-radius: 5px;

    color: #ffffff;
}

.edv-price {
    color: #ffffff;

    font-family: 'Satoshi', sans-serif;
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    font-style: normal;

    white-space: nowrap;
}

.edv-financing {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #ffffff;

    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;

    white-space: nowrap;
}

.edv-financing span {
    width: 17px;
    height: 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #087fc1;
    color: #ffffff;

    border-radius: 5px;

    font-size: 14px;
}


/* ==========================================================
   BOTÕES
   ========================================================== */

.edv-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 6px;

    margin-top: 6px;
}

.edv-button {
    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    border: 1px solid #087fc1;
    border-radius: 5px;

    background: #ffffff;
    color: #087fc1;

    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;

    text-decoration: none;

    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.edv-button:hover {
    background: #087fc1;
    color: #ffffff;
    border-color: #087fc1;
}


/* ==========================================================
   EQUIPAMENTO
   ========================================================== */

.edv-equipment {
    margin-top: 10px;

    padding: 28px 30px;

    background: #ffffff;

    border-radius: 5px;

    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}


/* Título */

.edv-equipment h2 {
  margin: 0 0 17px;
  color: #1B1B1F;
  font-family: 'Satoshi', sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  font-style: normal;
}


/* Colunas */

.edv-equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}


/* Lista */

.edv-equipment-grid ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* Equipamentos */

.edv-equipment-grid li {
    margin: 0 0 5px;

    color: #828282;

    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    font-style: normal;
}


/* ==========================================================
   DESTAQUES
   ========================================================== */

.edv-featured-section {
    margin-top: 42px;
    padding-bottom: 50px;
}


/* Cabeçalho */

.edv-featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}


/* Título */

.edv-featured-header h2 {
    margin: 0;

    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    font-style: normal;
}


/* Link */

.edv-featured-header a {
    color: #1B1B1F;

    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    font-style: normal;

    text-decoration: none;
}

.edv-featured-header a:hover {
    color: #087fc1;
}


/* Grid */

.edv-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}


/* Placeholder */

.edv-featured-placeholder {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eeeeee;

    color: #828282;

    font-family: 'Satoshi', sans-serif;
    font-size: 14px;
    font-weight: 500;
}


/* ==========================================================
   RESPONSIVE - TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .edv-single-container {
        width: calc(100% - 120px);
        margin-left: 60px;
        margin-right: 60px;
    }

}


/* ==========================================================
   RESPONSIVE - TABLET PEQUENO
   ========================================================== */

@media (max-width: 900px) {

    .edv-vehicle-hero {
        grid-template-columns: 1fr;
    }

    .edv-specs {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==========================================================
   RESPONSIVE - MOBILE
   ========================================================== */

@media (max-width: 700px) {

    .edv-single-container {
        width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }

    .edv-vehicle-hero {
        padding-top: 25px;
    }

    .edv-title {
        font-size: 28px;
    }

    .edv-basic-data {
        font-size: 14px;
    }

    .edv-basic-data strong {
        font-size: 14px;
    }

    .edv-specs {
        font-size: 14px;
    }

    .edv-equipment {
        padding: 22px 20px;
    }

    .edv-equipment-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .edv-equipment-grid li {
        font-size: 14px;
    }

    .edv-featured-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   RESPONSIVE - MOBILE PEQUENO
   ========================================================== */

@media (max-width: 480px) {

    .edv-specs {
        grid-template-columns: 1fr;
    }

    .edv-price-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .edv-actions {
        grid-template-columns: 1fr;
    }

    .edv-gallery-thumbs {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }

}
/* ==========================================================
   MODAIS CF7 / IMPRESSÃO
   ========================================================== */

body.edv-modal-open {
    overflow: hidden;
}

.edv-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.edv-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.edv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 14, 21, .72);
    backdrop-filter: blur(3px);
}

.edv-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 34px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
    transform: translateY(18px) scale(.985);
    transition: transform .24s ease;
}

.edv-modal.is-open .edv-modal-dialog {
    transform: translateY(0) scale(1);
}

.edv-modal-close {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 27px;
    line-height: 34px;
    cursor: pointer;
}

.edv-modal-close:hover {
    color: #1578BA;
}

.edv-modal-head {
    padding-right: 30px;
    margin-bottom: 20px;
}

.edv-modal-head > span {
    display: block;
    margin-bottom: 5px;
    color: #1578BA;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.edv-modal-head h2 {
    margin: 0 0 7px;
    color: #1B1B1F;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
}

.edv-modal-head p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}

.edv-modal-vehicle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 22px;
    padding: 13px 15px;
    border-left: 3px solid #1578BA;
    background: #f5f8fa;
    color: #555;
    font-size: 13px;
}

.edv-modal-vehicle strong {
    color: #1B1B1F;
    font-weight: 700;
}

.edv-modal-vehicle span {
    color: #777;
    font-size: 14px;
}

.edv-cf7-wrap .wpcf7 form {
    margin: 0;
}

.edv-cf7-wrap .wpcf7-form-control-wrap {
    display: block;
}

.edv-cf7-wrap input:not([type="submit"]):not([type="checkbox"]),
.edv-cf7-wrap select,
.edv-cf7-wrap textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    background: #fff;
    color: #1B1B1F;
    padding: 12px 13px;
    font: inherit;
}

.edv-cf7-wrap textarea {
    min-height: 120px;
    resize: vertical;
}

.edv-cf7-wrap input:focus,
.edv-cf7-wrap select:focus,
.edv-cf7-wrap textarea:focus {
    border-color: #1578BA;
    outline: none;
    box-shadow: 0 0 0 2px rgba(21,120,186,.08);
}

.edv-cf7-wrap input[type="submit"],
.edv-cf7-wrap button[type="submit"] {
    border: 1px solid #1578BA;
    border-radius: 3px;
    background: #1578BA;
    color: #fff;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.edv-cf7-wrap input[type="submit"]:hover,
.edv-cf7-wrap button[type="submit"]:hover {
    background: #000;
    border-color: #000;
}

.edv-cf7-missing {
    margin: 0;
    padding: 15px;
    border: 1px solid #e2e2e2;
    background: #fafafa;
    color: #777;
    font-size: 13px;
}

.edv-print-data {
    display: none !important;
}

/* O botão financeiro é um <button>, mantendo exactamente o aspecto do link antigo. */
button.edv-financing {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    min-width: 0;
}

button.edv-financing:focus-visible,
.edv-button:focus-visible,
.edv-modal-close:focus-visible {
    outline: 2px solid #1578BA;
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .edv-modal {
        padding: 12px;
    }

    .edv-modal-dialog {
        max-height: calc(100vh - 24px);
        padding: 25px 19px 20px;
    }

    .edv-modal-head h2 {
        font-size: 25px;
    }

    .edv-modal-vehicle {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}


/* ==========================================================
   AJUSTE FINAL — FINANCIAMENTO / MODAL / IMPRESSÃO
   ========================================================== */

.edv-price-box {
    min-height: 78px;
    padding: 15px 20px;
}

.edv-price {
    font-size: 31px;
    font-weight: 500;
}

.edv-financing {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    max-width: 55%;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1.2;
    font-weight: 400 !important;
    text-align: right;
    white-space: normal;
}

.edv-financing span:first-child {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    font-size: inherit;
}

.edv-financing span:last-child {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: #1578BA;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    text-align: center;
    padding-bottom:8px;
}

.edv-financing span:last-child:hover {
    background: #ffffff;
    color: #1578BA;
}

.edv-modal-close {
    top: 18px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: #1578BA;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    font-size: 25px;
    line-height: 1;
    text-align: center;
    font-weight: 300;
    transition: background .2s ease, transform .2s ease;
}

.edv-modal-close:hover {
    background: #0d639d;
    color: #fff;
    transform: scale(1.03);
}

.edv-modal-head {
    padding-right: 70px;
}

.edv-print-link {
    cursor: pointer;
}

/* Os dois botões de ação devem ter exatamente a mesma escala visual. */
.edv-actions .edv-button {
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
}

.edv-actions .edv-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    font-size: 16px;
    line-height: 1;
    flex: 0 0 18px;
}

.edv-actions .edv-action-label {
    display: inline-flex;
    align-items: center;
}

@media (max-width: 700px) {
    .edv-price-box {
        min-height: 68px;
        padding: 13px 15px;
    }
    .edv-price {
        font-size: 25px;
    }
    .edv-financing {
        max-width: 52%;
        font-size: 13px !important;
        gap: 7px;
    }
    .edv-financing span:last-child {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 19px;
    }
    .edv-actions .edv-button {
        font-size: 14px;
    }
    .edv-actions .edv-action-icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
        font-size: 15px;
        margin-right: 6px;
    }
    .edv-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        line-height: 1;
    }
    .edv-modal-head {
        padding-right: 50px;
    }
}
