/* ===================================
   CAR DETAILS PAGE - MATCHED TO CAR INFO STYLE
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #65BDED;
    --secondary-color: #99D6DD;
    --dark-color: #1F2937;
    --text-color: #374151;
    --light-bg: #f8f8f8;
    --white: #FFFFFF;
    --border-radius: 10px;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===================================
   HERO SECTION
   =================================== */
.details-hero {
    background: url('../images/car-detail.jpg') center 20% / cover no-repeat;
    padding: 235px 0 80px;
    text-align: left;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}

.details-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    z-index: 1;
}

.details-hero .container {
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    max-width: 1200px;
}

.details-hero h1,
.details-hero p {
    grid-column: 2;
    text-align: left;
}

.details-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: none;
}

.details-hero h1 .highlight {
    color: #a8d8f0;
    font-style: normal;
}

.details-hero p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* ===================================
   MAIN CARD / MODAL SECTION
   =================================== */
.modal-section {
    padding: 60px 0 80px;
    background: #fff;
}

.modal-container {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   CAR IMAGE
   =================================== */
.car-image-section {
    position: relative;
    background: #f5f5f5;
    padding: 3rem 2rem;
    text-align: center;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    overflow: hidden;
}

.car-image-section img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}

.car-image-section:hover img {
    transform: scale(1.04);
}

.car-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 14px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.car-badge.popular {
    background: #c0392b;
}

/* ===================================
   CAR NAME & PRICE
   =================================== */
.car-name-price {
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.car-name-price h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
}

.price-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.price-note {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 4px;
    font-style: normal;
}

/* ===================================
   SPECS ROW
   =================================== */
.car-specs {
    display: flex;
    gap: 2rem;
    padding: 1rem 1.25rem;
    background: #f8f8f8;
    border: 1px solid #efefef;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* ===================================
   COLOR SELECTOR
   =================================== */
.color-selector {
    padding: 1.25rem 0;
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
    margin-bottom: 1.5rem;
}

.color-selector h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: 0.2s;
}

.color-option:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
}

.color-option.active {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(101,189,237,0.35);
}

/* ===================================
   FEATURES LIST
   =================================== */
.features-section {
    margin-bottom: 1.5rem;
}

.features-section h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.car-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.car-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    color: #555;
    font-size: 0.9rem;
    font-weight: 300;
}

.car-features li:last-child {
    border-bottom: none;
}

.car-features li i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Legacy features grid — kept for backwards compat but simplified */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    background: #f8f8f8;
    padding: 1.25rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #efefef;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-item:hover {
    box-shadow: var(--shadow-soft);
    border-color: #ccc;
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-item span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 300;
    line-height: 1.5;
}

/* ===================================
   CTA BUTTON
   =================================== */
.cta-section {
    margin-top: 1.5rem;
}

.btn-book-now {
    background: var(--primary-color);
    color: var(--white);
    padding: 13px 30px;
    border-radius: var(--border-radius);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    text-decoration: none !important;
    box-shadow: none;
    width: 100%;
    justify-content: center;
}

.btn-book-now:hover {
    background: var(--secondary-color);
    transform: none;
    text-decoration: none !important;
}

/* ===================================
   BROCHURE SECTION
   =================================== */
.brochure-section {
    padding: 70px 0;
    background: #f8f8f8;
    clear: both;
    position: relative;
}

.brochure-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.brochure-title {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.brochure-subtitle {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #888;
    margin-bottom: 2.5rem;
}

.brochure-title i {
    color: #ef4444;
    font-size: 2rem;
    margin-right: 10px;
}

.brochure-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e8e8e8;
    box-shadow: var(--shadow-soft);
}

.pdf-viewer-container {
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #efefef;
}

.no-brochure-message {
    text-align: center;
    padding: 60px 20px;
}

.no-brochure-message i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.no-brochure-message h3 {
    font-family: 'Outfit', sans-serif;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.no-brochure-message p {
    font-family: 'Outfit', sans-serif;
    color: #9ca3af;
    font-weight: 300;
}

.brochure-actions {
    text-align: center;
}

.btn-download-brochure {
    background: #ef4444;
    color: #fff;
    padding: 13px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    box-shadow: none;
}

.btn-download-brochure:hover {
    background: #dc2626;
    transform: none;
    text-decoration: none;
    box-shadow: none;
}

.brochure-note {
    margin-top: 12px;
    color: #9ca3af;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ===================================
   POWER PACK SECTION
   =================================== */
.power-pack-section {
    padding: 70px 0 90px;
    background: #fff;
    clear: both;
    position: relative;
}

.power-pack-section .container {
    max-width: 1050px;
    margin: 0 auto;
}

.power-pack-title {
    font-family: 'Outfit', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.power-pack-subtitle {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: #888;
    margin-bottom: 2.5rem;
}

.power-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.power-pack-item {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: #f8f8f8;
    border-radius: var(--border-radius);
    border: 1px solid #efefef;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.power-pack-item:hover {
    box-shadow: var(--shadow-soft);
    border-color: #ccc;
    background: #fff;
}

.power-pack-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.power-pack-item h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.power-pack-item p {
    font-family: 'Outfit', sans-serif;
    color: #888;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
    .details-hero h1 { font-size: 2.8rem; }
    .details-hero .container {
        grid-template-columns: 1fr;
    }
    .details-hero h1,
    .details-hero p {
        grid-column: 1;
    }

    .features-grid,
    .power-pack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-specs { flex-direction: column; gap: 0.75rem; }

    .brochure-container,
    .modal-container {
        padding: 1.5rem;
    }

    .brochure-section,
    .power-pack-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .details-hero { padding: 100px 0 60px; min-height: 500px; }
    .details-hero h1 { font-size: 2.2rem; }

    .features-grid,
    .power-pack-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        padding: 1rem;
    }

    .price { font-size: 1.7rem; }

    .car-image-section {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .brochure-title,
    .power-pack-title {
        font-size: 1.8rem;
    }

    .pdf-viewer-container iframe {
        height: 400px;
    }

    .brochure-section,
    .power-pack-section {
        padding: 40px 0;
    }
}