/**
 * diRENT Car Rental - Vehicle Details Page Styles
 */

.car-detail-wrapper {
    padding: 32px 0 60px 0;
}

.details-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.car-gallery-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 24px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 28px;
    overflow: hidden;
    padding: 24px;
}

.car-gallery-box img {
    max-width: 92%;
    max-height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.35));
    transition: transform 0.4s ease;
}

.car-gallery-box:hover img {
    transform: scale(1.03);
}

.car-title-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.car-title-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.car-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-top: 6px;
}

.car-category-tag {
    background: linear-gradient(135deg, var(--accent) 0%, #c2410c 100%);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(234, 91, 12, 0.25);
    white-space: nowrap;
}

.spec-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 32px;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0;
}

.spec-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    transition: all 0.25s ease;
}

.spec-box:hover {
    background-color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.spec-box i {
    font-size: 22px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.spec-box .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-box .value {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
}

.info-section {
    margin-bottom: 32px;
}

.info-section h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.info-section p {
    font-size: 14.5px;
    color: #475569;
    line-height: 1.7;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
}

.features-list li i {
    color: #10b981;
    font-size: 16px;
}

.terms-box-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #334155;
}

.terms-item i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Booking Widget Card */
.booking-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 100px;
}

.price-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.price-header .price {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.price-header .price span {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-field-input-wrap i {
    position: absolute;
    left: 14px;
    color: var(--accent);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.form-field select,
.form-field input {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0 14px 0 42px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background-color: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.form-field select:focus,
.form-field input:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 91, 12, 0.12);
}

.pricing-summary {
    background-color: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13.5px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-weight: 600;
}

.pricing-row.total {
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    font-weight: 800;
    font-size: 16px;
    color: #0f172a;
}

.btn-reserve-cta {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea5b0c 0%, #c2410c 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(234, 91, 12, 0.35);
    transition: all 0.3s ease;
    margin-top: 6px;
}

.btn-reserve-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(234, 91, 12, 0.45);
    background: linear-gradient(135deg, #f97316 0%, #ea5b0c 100%);
}

/* RESPONSIVE DESIGN FOR MOBILE & TABLET */
@media (max-width: 992px) {
    .car-detail-wrapper {
        padding: 16px 0 60px 0;
    }

    .details-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .booking-card {
        position: relative;
        top: 0;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .car-gallery-box {
        height: 240px;
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .car-title-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .car-title-header h1 {
        font-size: 24px;
    }

    .spec-grid-large {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 14px 0;
        margin-bottom: 24px;
    }

    .features-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
