
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial;
}

.container{
max-width:1300px;
margin:auto;
width:100%;
padding:0 20px;
}

/* TOP BAR */
.topbar{
background:black;
color:white;
font-size:14px;
}

.topbar .container{
display:flex;
justify-content:space-between;
align-items:center;
padding:8px 20px;
}

.topbar i{
color:red;
margin-right:6px;
}

.social i{
margin-left:12px;
cursor:pointer;
}

/* HEADER */
header {
  background: #000;
  padding: 15px 0;
  width: 100%;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* LOGO */
.logo img {
  width: 120px;
  transition: 0.3s;
}

.logo img:hover {
  opacity: 0.8;
}

/* NAVIGATION */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  transition: 0.3s;
  border-radius: 6px;
}

nav ul li a i {
  color: red;
}

nav ul li a:hover {
  background: red;
  color: white;
}

/* DROPDOWN */
.has-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown li {
  width: 100%;
}

.dropdown li a {
display:flex;
align-items:center;
gap:8px;
padding:12px 15px;
color:black;
font-weight:600;
}

.dropdown li a:hover {
  background: #f3f3f3;
  color: red;
}

/* TOGGLE BUTTON */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: white;
  cursor: pointer;
}

/* SLIDER TOPBAR (mobile only) */
.topbar-slider {
  display: flex;
  gap: 20px;
}

.slide {
  display: none;
  white-space: nowrap;
}

.slide.active {
  display: block;
}
.topbar-slider .slide {
  display: block;
}



/* body */

.cars-section{
padding:60px 20px;
background:#f5f5f5;
}

.container{
max-width:1300px;
margin:auto;
}

.title{
text-align:center;
font-size:34px;
margin-bottom:30px;
}

/* SEARCH */

/* SEARCH */


.search-wrapper{
width:100%;
display:flex;
justify-content:center;
margin:50px 0;
padding:0 20px;
position:relative;
}

.search-box{
width:100%;
max-width:650px;
display:flex;
background:white;
border-radius:50px;
overflow:hidden;
box-shadow:0 10px 30px rgba(0,0,0,0.15);
border:2px solid #eee;
transition:0.3s;
}

.search-box:focus-within{
border-color:red;
box-shadow:0 10px 30px rgba(255,0,0,0.2);
}

.search-box input{
flex:1;
padding:16px 20px;
border:none;
font-size:16px;
outline:none;
background:transparent;
}

.search-box button{
width:65px;
border:none;
background:red;
color:white;
font-size:18px;
cursor:pointer;
transition:0.3s;
}

.search-box button:hover{
background:black;
}

/* AUTOCOMPLETE */

/* SEARCH RESULT */

#searchResults{
position:absolute;
top:70px;
left:50%;
transform:translateX(-50%);
width:100%;
max-width:650px;
background:white;
border-radius:12px;
box-shadow:0 15px 40px rgba(0,0,0,0.2);
z-index:999;
max-height:320px;
overflow-y:auto;
}

/* ITEM */

.search-item{
display:flex;
align-items:center;
gap:12px;
padding:12px 15px;
border-bottom:1px solid #eee;
text-decoration:none;
color:black;
transition:0.2s;
}

.search-item:hover{
background:#f8f8f8;
}

.search-img{
width:65px;
height:45px;
object-fit:cover;
border-radius:6px;
}

.search-text{
font-size:14px;
font-weight:600;
}

/* GRID */

.cars-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
gap:25px;
}

/* CARD */

.car-card{
background:white;
border-radius:10px;
overflow:hidden;
box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.car-card img{
width:100%;
height:200px;
object-fit:cover;
}

.car-info{
padding:18px;
}

.price{
font-size:20px;
font-weight:bold;
color:red;
}

.car-details{
display:flex;
justify-content:space-between;
font-size:14px;
margin:12px 0;
}

.discover{
display:block;
text-align:center;
background:#f40014;
color:white;
padding:10px;
border-radius:5px;
text-decoration:none;
}

.discover:hover{
background:red;
}

/* PAGINATION */

/* PAGINATION */

.pagination{
display:flex;
justify-content:center;
align-items:center;
gap:8px;
margin-top:50px;
flex-wrap:wrap;
}

.pagination a{

min-width:42px;
height:42px;
display:flex;
align-items:center;
justify-content:center;

text-decoration:none;
font-weight:bold;
font-size:15px;

background:white;
border:2px solid #eee;
border-radius:8px;

color:#333;

transition:all 0.25s ease;

}

/* hover */

.pagination a:hover{

background:black;
color:white;
border-color:black;
transform:translateY(-2px);

}

/* active */

.pagination a.active{

background:red;
border-color:red;
color:white;

}

/* arrows */

.pagination a.arrow{

font-size:18px;
font-weight:bold;

}



/* FOOTER */

.footer{
background:#0d0d0d;
color:white;
padding:70px 20px 30px;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
}

/* TITLES */

.footer h3{
margin-bottom:15px;
color:white;
}

/* CONTACT FORM */

.footer-contact input,
.footer-contact textarea{
width:100%;
padding:12px;
margin-bottom:10px;
border:none;
border-radius:6px;
background:#1a1a1a;
color:white;
}

.footer-contact textarea{
height:100px;
resize:none;
}

.footer-contact button{
width:100%;
padding:12px;
border:none;
border-radius:6px;
background:red;
color:white;
font-weight:bold;
cursor:pointer;
transition:0.3s;
}

.footer-contact button:hover{
background:white;
color:black;
}

/* LINKS */

.footer-links a{
display:block;
color:#ccc;
text-decoration:none;
margin-bottom:8px;
transition:0.3s;
}

.footer-links a:hover{
color:red;
}

/* SOCIAL */

.social-icons a{
color:white;
font-size:22px;
margin-right:12px;
transition:0.3s;
}

.social-icons a:hover{
color:red;
}

/* ABOUT */

.footer-about p{
color:#ccc;
line-height:1.6;
}

/* ADDRESS */

.footer-address{
margin-top:15px;
color:#ccc;
font-size:14px;
}

/* BOTTOM */

.footer-bottom{
text-align:center;
margin-top:50px;
border-top:1px solid #222;
padding-top:20px;
color:#777;
font-size:14px;
}

.whatsapp-float{

position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
width:60px;
height:60px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
box-shadow:0 8px 20px rgba(0,0,0,0.3);
z-index:999;

}

.whatsapp-float:hover{

background:#1ebe5b;

}

.mobile-only {
  display: none;
}
@media(max-width:900px){

  .menu-toggle {
    display: block;
  }

  .header-flex {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: #00000091;
    transition: 0.3s;
    padding-top: 80px;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    padding: 12px 0;
  }

  .menu-toggle.active i::before {
    content: "\f00d";
  }

  .topbar .container {
    flex-direction: row; /* نفس desktop */
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* ما يهبطوش */
    gap: 10px;
  }

  .topbar-slider {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
  }

  .social {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0; /* ما يتصغروش */
  }
    .topbar-slider .slide {
    display: none;
  }

  .topbar-slider .slide.active {
    display: block;
  }

.footer-grid{
grid-template-columns:1fr 1fr;
}
    .has-dropdown {
    display: none;
  }

  .mobile-only {
    display: block;
  }


.cars-section{
padding:30px 0px;

}
.search-wrapper{
margin:30px 0;
padding:0 10px;
}
.title{
text-align:center;
font-size:30px;
margin-bottom:20px;
}

}
@media(max-width:600px){
  /* LOGO */
.logo img {
  width: 90px;
  transition: 0.3s;
}
.contact-grid{
grid-template-columns:1fr;
}

.contact-title{
font-size:26px;
}


.footer-grid{
grid-template-columns:1fr;
}
.title{
font-size:25px;

}

}
@media(max-width:450px){
/* LOGO */
.logo img {
  width: 80px;
  transition: 0.3s;
}
  .social {
    gap: 10px;
    margin-left: 0px;
    margin-right: -5px;

  }
}