:root {
    --color-primary: #970f11;
    --color-black: #000000;
    --color-grey: #716e6f;
    --color-white: #ffffff;
    --color-bg-dark: #0a0a0a;
    --color-bg-darker: #050505;
    --color-text-main: #000000;
    --color-text-light: #e0e0e0;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;

    --header-height: 80px;
    --container-width: 1200px;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.car-detail-container {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.car-header-section {
    padding: 60px 0 40px;
    background: var(--color-white);
    box-shadow: var(--shadow-light);
}

.car-header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.car-title-section {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.car-main-title {
    margin-bottom: 20px;
    line-height: 1.2;
}

.car-brand {
    display: block;
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.car-name {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 15px;
}

.car-year-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary), #c41e3a);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.car-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-grey);
    margin-bottom: 30px;
    font-weight: 500;
}

.car-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid var(--color-primary);
    transition: var(--transition-fast);
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.highlight-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.car-pricing {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 15px 25px;
    border-radius: 18px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pricing-grid {
    display: flex;
    align-items: center;
    gap: 0;
}

.price-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 15px;
    border-left: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.price-item:last-child {
    border-left: none;
}

.price-item:hover {
    background: rgba(151, 15, 17, 0.03);
}

.price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: 'Georgia', serif;
    margin-bottom: 5px;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-align: center;
}


.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-button,
.call-button {
    flex: 1;
    min-width: 200px;
    padding: 16px 25px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.book-button {
    background: linear-gradient(45deg, var(--color-primary), #c41e3a);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.book-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.call-button {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.call-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.car-image-section {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-car-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.main-car-image-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.main-car-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-fast);
}

.main-car-image-container:hover .main-car-image {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.image-badge.published {
    background: rgba(40, 167, 69, 0.9);
    color: var(--color-white);
}

.image-badge i {
    font-size: 1.1rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 5px;
    scrollbar-width: thin;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.thumbnail-item.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: var(--shadow-medium);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}



.car-gallery-section {
    padding: 60px 0;
    background: var(--color-white);
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-black);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #c41e3a);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(151, 15, 17, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--color-white);
    font-size: 2rem;
}


.technical-specs-section {
    padding: 60px 0;
    background: var(--color-white);
    margin-bottom: 40px;
    box-shadow: var(--shadow-light);
}

.specs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-group {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.spec-group h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--color-grey);
}

.spec-value {
    font-weight: 500;
    color: var(--color-black);
}

.price-highlight {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    font-size: 1.2rem !important;
}

.status-published {
    color: var(--color-success) !important;
    font-weight: 600 !important;
}

.status-unpublished {
    color: var(--color-danger) !important;
    font-weight: 600 !important;
}

.car-features-section {
    padding: 60px 0;
    background: var(--color-white);
    box-shadow: var(--shadow-light);
}

.car-features-section .container {
    display: flex;
    flex-direction: column;
}

.car-features-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.car-features-section .section-title::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid var(--color-primary);
    transition: var(--transition-fast);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.feature-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--color-grey);
    font-weight: 600;
}

@media (max-width: 992px) {
    .car-header-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .car-main-title {
        text-align: center;
    }

    .car-name {
        font-size: 2rem;
    }

    .car-highlights {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .book-button,
    .call-button {
        width: 100%;
    }

    .specs-container {
        grid-template-columns: 1fr;
    }

   
    .thumbnail-item {
        width: 70px;
        height: 50px;
    }

    .car-pricing {
        padding: 12px 20px;
    }

    .price-item {
        padding: 10px 12px;
    }

    .price-amount {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .car-header-section {
        padding: 40px 0 30px;
    }

    .car-name {
        font-size: 1.8rem;
    }

    .car-pricing {
        padding: 10px 15px;
    }

    .pricing-grid {
        flex-direction: column;
    }

    .price-item {
        width: 100%;
        padding: 12px 0;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .price-item:first-child {
        border-top: none;
    }

    .price-amount {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
    }

    .thumbnail-item {
        width: 60px;
        height: 45px;
    }

    .gallery-thumbnails {
        gap: 8px;
        padding: 3px;
    }
}

@media (max-width: 576px) {
    .car-year-badge {
        font-size: 1rem;
        padding: 6px 15px;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .sy-amount {
        font-size: 1.2rem;
    }
}