/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #d73324;
    --background-color: #fff;
    --text-color: #333;
    --border-radius: 8px;
    --transition-speed: 0.3s;
    --header-height: 80px;
    --container-width: 1200px;
    --shadow:
    2px 2px 10px rgba(0, 0, 0, 0.08),
    -2px -2px 10px rgba(0,0,0,0.08);
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { 
    font-size: 2rem;
    text-align: center;
 }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.header-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo  {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.button,
.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed);
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin: 10px;
}

.button:hover,
.cta-button:hover {
    background-color: #d7332494 !important;
}

.button.secondary,
.cta-button.secondary {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.button.secondary:hover,
.cta-button.secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Featured Models Section */
.featured-models {
    padding: 4rem 0;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.model-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1 ;
    transform: scale(1) ;
    pointer-events: auto ;
}
.hidden {
    opacity: 0 ;
    transform: scale(0.90) ;
    pointer-events: none ;
  }

.model-card:hover {
    transform: translateY(-5px);
}

.model-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.model-card h3 {
    padding: 1rem;
    margin: 0;
}

.model-card p {
    padding: 0 1rem 1rem;
    color: var(--secondary-color);
}

/* Shop Page */
.shop-section {
    margin-top: var(--header-height);
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h3 {
    margin-bottom: 0.5rem;
}

.filter-group label {
    display: block;
    margin: 0.5rem 0;
}

/* Car Details Page */
.car-details {
    margin-top: var(--header-height);
    padding: 2rem;
}

.car-slider {
    margin-bottom: 2rem;
}

.car-info {
    max-width: 800px;
    margin: 0 auto;
}

.specifications {
    margin: 2rem 0;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.features-list li {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.features-list li::before {
    content: '';
    display: inline-block;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f00c';
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Contact Page */
.contact-section {
    margin-top: var(--header-height);
    padding: 4rem 2rem;
    background-color: #f8f9fa;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 2rem;
}

.contact-image {
    flex: 1;
    min-width: 400px;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.contact-image img:hover {
    transform: scale(1.05);
}

.contact-info {
    flex: 1;
    padding: 2rem;
}

.contact-info h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-info p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    direction: rtl;
    gap: 1rem;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

.business-hours {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.business-hours h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.business-hours p {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.map-container {
    max-width: var(--container-width);
    margin: 2rem auto;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

#map {
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-image {
        min-width: 100%;
        height: 300px;
    }

    .contact-info {
        padding: 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.social-icon i {
    font-size: 1.2rem;
}

.footer-section p i {
    margin-right: 8px;
    width: 18px;
    color: var(--accent-color);
}

.contact-item .icon i {
    font-size: 1.3rem;
    color: var(--background-color);
}

.map-icon i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .shop-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }
    .header-all{
        display: none;
    }
    .header-content{
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 5px;
    }
} /* Add or update these styles in your style.css file */

.shop-section {
    margin-top: var(--header-height);
    padding: 2rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.model-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.model-card h3 {
    padding: 1rem;
    margin: 0;
}

.model-card .price {
    padding: 0 1rem;
    color: var(--accent-color);
    font-weight: bold;
}

.model-card .description {
    padding: 0 1rem;
    color: var(--secondary-color);
}

.features {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .shop-section {
        grid-template-columns: 1fr;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Card Slideshow Styles */
.card-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Navigation dots */
.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 10;
    
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
    user-select: none;         /* Standard */
}

.dot.active {
    background-color: #868686;
}

/* سلايدر السعر المزدوج */
.price-slider-container {
    padding: 10px 0;
    width: 100%;
}

.price-slider {
    position: relative;
    height: 30px;
}

.price-range {
    position: absolute;
    top: 14.5px;
    left: 0;
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    pointer-events: none;
    background: none;
    outline: none;
    z-index: 2;
}

.price-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    pointer-events: auto;
    margin-top: -5px;
}

.price-range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    pointer-events: auto;
    border: none;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: #ddd;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    z-index: 1;
}

.price-inputs {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.price-field {
    font-size: 0.9rem;
}

.price-field span {
    font-weight: bold;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
}

/*  map  */
#map {
    height: 100%; /* ارتفاع الخريطة */
    width: 100%; /* عرض الخريطة */
    border: 1px solid #ccc;
    border-radius: 8px;
}
/*  map  */


.logo-image {
    width: 80px;


}
.relative {
    position: relative;
}
.logo-filter {
    width: 200px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}
.margin-top-filter {
    margin-top: 201px;
}
.text-arabic {
    text-align: right;
    direction: rtl;
}
.color-box {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin: 1rem;
}

.year-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
    margin-top: 5px;
    cursor: pointer;
}

.year-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.year-select option {
    padding: 8px;
}
.pros{
    position: relative;
}
.offer{
    color: rgb(222, 0, 0) !important;

    
}
.offer1{
    color: rgb(73, 200, 59) !important;
}
.offer2{
    position: absolute;
    top: 11.5px;
    left: 14px;
    width: 65px;
    height: 2px;
    background: rgb(0, 0, 0);
    z-index: 3;
    transform: rotate(-5deg);
}
.model-text{
    padding-bottom: 0px !important;
}
body{
    
    width: 100%;
    height: 100%;
    --color: #f1f1f1;
    background-color: #ffffff;
    background-image: linear-gradient(0deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent),
                      linear-gradient(90deg, transparent 24%, var(--color) 25%, var(--color) 26%, transparent 27%,transparent 74%, var(--color) 75%, var(--color) 76%, transparent 77%,transparent);
    background-size: 25px 25px;
}
/* search bar */

.search-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
    width: 200px;
}

.search-input:focus {
    border-color: #666;
}

.search-button {
    padding: 8px 16px;
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.search-button:hover { 
    background-color: #d7332475;
}
.query{
    text-align: center;
    margin-top: 110px
}
    
/* search bar */
