
/* ==========================================================
   ACOSTA RENT CAR — DETALLE DE VEHÍCULO
   ========================================================== */

.vehicle-detail-page {
    --detail-gold: #b79a61;
    --detail-dark: #191d23;
    --detail-muted: #737d89;
    --detail-border: #e5e9ee;
    --detail-background: #f3f5f8;

    background: var(--detail-background);
    color: var(--detail-dark);
    font-family: 'Manrope', sans-serif;
}

.vehicle-detail-page *,
.vehicle-detail-page *::before,
.vehicle-detail-page *::after {
    box-sizing: border-box;
}

.detail-container {
    width: calc(100% - 48px);
    max-width: 1800px;
    margin: 0 auto;
}

.detail-eyebrow {
    display: inline-block;
    color: #a48651;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

/* BREADCRUMB */

.detail-breadcrumb {
    padding: 25px 0 12px;
}

.detail-breadcrumb .detail-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #858d97;
    font-size: 12px;
}

.detail-breadcrumb a {
    color: #68717d;
    text-decoration: none;
}

.detail-breadcrumb a:hover {
    color: var(--detail-gold);
}

.detail-breadcrumb strong {
    color: #252a31;
}

/* ENCABEZADO */

.detail-intro {
    padding: 20px 0 35px;
}

.detail-intro-top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
}

.detail-intro h1 {
    margin: 12px 0 15px;
    color: #171b20;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(35px, 4vw, 58px);
    font-weight: 800;
    letter-spacing: -2px;
}

.detail-intro-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-intro-meta span {
    padding: 8px 13px;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #fff;
    color: #626c77;
    font-size: 12px;
    font-weight: 700;
}

.detail-back {
    padding-bottom: 8px;
    color: #292e35;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.detail-back:hover {
    color: var(--detail-gold);
}

/* DISTRIBUCIÓN */

.detail-main-section {
    padding: 10px 0 100px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: start;
    gap: 32px;
}

.detail-left,
.detail-booking-column {
    min-width: 0;
}

/* GALERÍA */

.detail-gallery {
    margin-bottom: 28px;
}

.detail-main-image {
    position: relative;
    height: 570px;
    overflow: hidden;
    border-radius: 22px;
    background: #e6eaf0;
}

.detail-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image-category {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 10px 17px;
    border-radius: 8px;
    background: #fff;
    color: #252a31;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-thumbnails {
    display: flex;
    gap: 13px;
    margin-top: 15px;
    overflow-x: auto;
}

.detail-thumbnail {
    flex: 0 0 125px;
    height: 90px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #e9edf1;
    cursor: pointer;
}

.detail-thumbnail.active {
    border-color: var(--detail-gold);
}

.detail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* BLOQUES INFORMATIVOS */

.detail-content-card {
    margin-bottom: 25px;
    padding: 36px;
    border: 1px solid var(--detail-border);
    border-radius: 20px;
    background: #fff;
}

.detail-content-card h2 {
    margin: 12px 0 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 800;
    letter-spacing: -.9px;
}

.detail-content-card p {
    margin: 0 0 15px;
    color: #66717d;
    font-size: 14px;
    line-height: 1.9;
}

.detail-content-card p:last-child {
    margin-bottom: 0;
}

/* ESPECIFICACIONES */

.detail-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.detail-spec {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e9edf1;
    border-radius: 12px;
    background: #f7f9fb;
}

.detail-spec span {
    color: #838d98;
    font-size: 11px;
}

.detail-spec strong {
    color: #20252c;
    font-size: 13px;
    font-weight: 800;
}

/* CONDICIONES */

.detail-conditions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.detail-conditions p {
    margin: 0;
    padding: 16px;
    border-radius: 10px;
    background: #f7f9fb;
    color: #59636f;
    font-size: 12px;
}

/* PANEL DE RESERVA */

.detail-booking-card {
    position: sticky;
    top: 100px;
    overflow: hidden;
    border: 1px solid var(--detail-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20,30,40,.05);
}

.detail-booking-price {
    padding: 30px;
    background: #20252c;
    color: #fff;
}

.detail-booking-price > span {
    color: #c3c8cf;
    font-size: 12px;
}

.detail-booking-price > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 12px 0;
}

.detail-booking-price strong {
    font-size: 43px;
    font-weight: 800;
    letter-spacing: -2px;
}

.detail-booking-price small {
    color: #d0d5db;
    font-size: 14px;
}

.detail-booking-price p {
    color: #b8c0c9;
    font-size: 11px;
    line-height: 1.7;
}

.detail-booking-body {
    padding: 28px;
}

.detail-booking-body h3 {
    margin: 0 0 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.detail-field {
    margin-bottom: 17px;
}

.detail-field label {
    display: block;
    margin-bottom: 9px;
    color: #343a43;
    font-size: 12px;
    font-weight: 800;
}

.detail-field input {
    width: 100%;
    min-height: 47px;
    padding: 12px 13px;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    background: #fafbfc;
    color: #252a31;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.detail-field input:focus {
    border-color: var(--detail-gold);
    background: #fff;
}

/* CÁLCULO */

.detail-calculation {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
    padding: 22px 0;
    border-top: 1px solid #e8ebef;
    border-bottom: 1px solid #e8ebef;
}

.detail-calculation > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.detail-calculation span {
    color: #737d89;
    font-size: 12px;
}

.detail-calculation strong {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.detail-calculation .detail-total {
    padding: 16px 0;
    border-top: 1px solid #e8ebef;
}

.detail-total span {
    color: #1d2229;
    font-size: 14px;
    font-weight: 800;
}

.detail-total strong {
    color: #a48651;
    font-size: 23px;
    font-weight: 800;
}

.detail-primary-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 53px;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #1d2229;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease;
}

.detail-primary-btn:hover {
    background: var(--detail-gold);
    color: #111;
}

.detail-form-message {
    min-height: 20px;
    margin: 16px 0;
    color: #a44343;
    font-size: 12px;
    line-height: 1.6;
}

.detail-booking-note {
    margin: 15px 0 0;
    color: #8b949f;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

/* VEHÍCULOS SIMILARES */

.detail-similar-section {
    padding: 75px 0 110px;
    background: #fff;
}

.detail-similar-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}

.detail-similar-heading h2 {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(25px, 2.8vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
}

.detail-similar-heading > a {
    color: #20252c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.detail-similar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.detail-similar-card {
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 20px;
    background: #f0f3f8;
    transition: transform .3s ease;
}

.detail-similar-card:hover {
    transform: translateY(-5px);
}

.detail-similar-card > a {
    display: block;
    height: 245px;
    overflow: hidden;
}

.detail-similar-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-similar-content {
    padding: 24px;
}

.detail-similar-content > span {
    color: #a48651;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.detail-similar-content h3 {
    margin: 10px 0 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.detail-similar-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #dfe4ea;
}

.detail-similar-bottom strong {
    font-size: 22px;
    font-weight: 800;
}

.detail-similar-bottom small {
    color: #8b949f;
    font-size: 11px;
    font-weight: 500;
}

.detail-similar-bottom a {
    color: #20252c;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.detail-not-found,
.vehicle-not-found {
    max-width: 700px;
    margin: 0 auto;
    padding: 130px 25px;
    text-align: center;
}

.vehicle-not-found h1 {
    margin-bottom: 20px;
}

.vehicle-not-found p {
    margin-bottom: 30px;
    color: #737d89;
}

/* RESPONSIVE */

@media (max-width: 1250px) {
    .detail-layout {
        grid-template-columns: minmax(0, 1fr) 350px;
        gap: 22px;
    }

    .detail-main-image {
        height: 470px;
    }

    .detail-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 950px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-booking-card {
        position: static;
    }

    .detail-main-image {
        height: 480px;
    }

    .detail-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .detail-container {
        width: calc(100% - 30px);
    }

    .detail-intro-top,
    .detail-similar-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-intro h1 {
        font-size: 34px;
    }

    .detail-main-image {
        height: 290px;
        border-radius: 15px;
    }

    .detail-thumbnail {
        flex-basis: 90px;
        height: 68px;
    }

    .detail-content-card {
        padding: 23px;
    }

    .detail-spec-grid,
    .detail-conditions,
    .detail-similar-grid {
        grid-template-columns: 1fr;
    }

    .detail-booking-body {
        padding: 23px;
    }

    .detail-similar-card > a {
        height: 230px;
    }
}
