.search-bar {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.search-bar input {
  padding: 12px 20px;
  width: 300px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 16px;
}

.search-bar button {
  padding: 10px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  background: radial-gradient(circle at center, #004080, #002f6c);
  color: #fff;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 82, 204, 0.3);
}

/* Glowing hover effect */
.search-bar button:hover {
  background: radial-gradient(circle at center, #3399ff, #0052cc);
  box-shadow: 0 0 15px #3399ff, 0 0 30px #3399ff;
  transform: scale(1.05);
}

.car-listings {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  background: radial-gradient(circle at center, #ffffff, #eceef5, #ffffffe1);
  animation: gradientShift 15s ease infinite;
  background-size: 300% 300%;
  flex-shrink: 0px;
}

.name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 1;
}

.infoss {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  white-space: wrap;
  padding: 6px;
  height: 49.1px;
}

.car-card {
  margin-bottom: 10px;
  background: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

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

.car-card .details {
  padding: 20px;
}

.car-card h3 {
  margin: 0 0 10px;
  color: #333;
}

.car-card p {
  margin: 0 0 15px;
  color: #666;
  font-size: 14px;
}

.car-card .price {
  font-weight: bold;
  color: #4f8cff;
  font-size: 16px;
}

.car-card .actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.car-card .actions button  {
  flex: 1;
  padding: 10px;
  border: none;
  background: #4f8cff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.car-card .actions button:hover {
  background: #3a7ee0;
}

.car-card .actions a {
  text-decoration: none;
  color: white;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  color: white;
  background: radial-gradient(circle at center, #001f3f, #0b3f74, #003a74);
  animation: gradientShift 15s ease infinite;
  background-size: 300% 300%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.2);
}

.hero-buttons button {
  padding: 12px 24px;
  margin: 0 10px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.buy-btn {
  background-color: #ff5f6d;
  color: white;
}

.request-btn {
  background-color: #ffc371;
  color: black;
}

.hero-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(60deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
  pointer-events: none;
}


.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 0;
}

.car-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgb(36, 36, 36);
  transition: transform 0.3s ease;
  text-align: center;
  border: 1px solid rgb(187, 187, 187);
}

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

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

.car-card h3 {
  padding: 10px 0 5px;
  font-size: 1.1rem;
  color: #002244;
}

.car-card p {
  color: #555;
  margin-bottom: 10px;
}

.car-card button {
  background: radial-gradient(circle at center, #004080, #002f6c);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.car-card button:hover {
  box-shadow: 0 0 12px #3399ff;
  transform: scale(1.05);
}

/* Load More button */
.load-more-btn {
  display: block;
  margin: 30px auto;
  padding: 12px 30px;
  font-size: 1rem;
  background: radial-gradient(circle at center, #004080, #002f6c);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  box-shadow: 0 0 20px #3399ff;
  transform: scale(1.05);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 1rem;
  min-width: 200px;
}

.car-details {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 12px;
}
/* Sidy */
.sidy {
    position: fixed;
    width: 200px;
    background: linear-gradient(120deg, #23283a 60%, #4f8cff 80%, #23283a 60%);
    display: flex;
    justify-content: center;
    border: 2px solid;
    right: 0;
    top: 75px;
    bottom: 0;
    z-index: 500;
    border: none;
    border-left:  3px solid #4f8cff;
    box-shadow: 0 1px 2px rgb(255, 255, 255);
    transform: translateX(200px);
    transition: transform .4s ease-in-out;
}

.cancel {
    position: absolute;
    font-size: 35px;
    text-shadow: 0px 1px 2px;
    right: 0px;
    top: 0px;
    cursor: pointer;
    padding: 2px 10px;
    transition: background-color .2s ease-in-out;
}

.cancel:hover {
    text-shadow: 0px 4px 8px;
    background-color: rgb(212, 0, 0);
    padding: 2px 10px;
}

.sidy ul {
    list-style-type: none;
    margin-top: 2rem;
}

.sidy ul a {
  text-decoration: none;
  text-shadow: 0px 1px 2px white;
  font-size: 18px;
  color: white; 
}

.sidy ul li {
  color: white;
  text-decoration: none;
  text-shadow: 0px 1px 2px white;
  font-size: 18px; 
  margin-top: 1rem;
  padding: 14px 30px;
  text-align: center;
}

.sidy ul li:hover {
    background-color: #4f8cff;
    border-radius: 5px;
    box-shadow: 0px 2px 18px #1d2647;   
}

.all {
    position: relative;
    transform-origin: center right;
    transition: transform .4s ease-in-out, opacity .5s;
}

.all.active {
    transform: translateX(-200px) rotateY(-10deg);
}

.sidy.active {
    transform: translateX(0);
}

.act {
    background-color: #4f8cff;
    border-radius: 5px;
    box-shadow: 0px 2px 18px #1d2647;  
}

#goBackBtn {
  display: none;
  margin: 25px auto 0;
  padding: 12px 25px;
  background: linear-gradient(135deg, #002f4b, #005f73);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 15px #00ccff;
  width: fit-content;
  text-align: center;
  cursor: pointer;
  transition: all 0.5s ease;
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#goBackBtn:hover {
  background: #005f88;
  box-shadow: 0 0 20px #13e3fe;
  border: 3px solid transparent;
}

#goBackBtn span:first-child {
  font-size: 20px;
  margin-right: 6px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #4f8cff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin-left: 10px;
  align-self: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-top: 3px solid #4f8cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


.search-warning {
  display: none;
  background-color: #5c0000;
  color: #ffbaba;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInOut 3s ease forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.share-btn {
  background-color: #006eff;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 5px;
  margin-right: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.share-btn:hover {
  background-color: #0050c3;
}

.actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.actions .top-buttons,
.actions .bottom-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.actions button a {
  color: white;
  text-decoration: none;
}

.details-btn {
  background-color: #1f2937;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.details-btn:hover {
  background-color: #111827;
}

.share-label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 500;
  color: #007f9f;
}