
/* ==== Cleaned CSS for main_page.html ==== */

body {
  margin: 0;
  font-family: sans-serif;
  background: #fff;
  color: #000;
}

.logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.main-container {
  display: flex;
  justify-content: space-between;
  padding: 40px 60px;
  gap: 40px;
  flex-wrap: wrap;
}

.main-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}

.promo-text {
  flex: 1 1 60%;
  max-width: 600px;
}

.promo-text h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.promo-text ul {
  list-style: none;
  padding: 0;
}

.promo-text li {
  margin-bottom: 12px;
  font-size: 16px;
}

.filters {
  flex: 1 1 35%;
  background: #dee7ef;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: visible;
  position: relative;
}

.filters h2 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
}

.filters form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.filters input,
.filters select {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 15px;
  background-color: #fff;
  transition: border 0.2s ease;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: #007bff;
}

.search-btn {
  padding: 14px 24px;
  border-radius: 12px;
  background: #004080;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: #002c5f;
}

.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}

.listing-section {
    padding-left: 80px;
    padding-right: 80px;
}

.listing-section h2 {
  margin-bottom: 20px;
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card .info {
  padding: 10px;
}

.show-more {
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.show-more a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.show-more a:hover {
  background: #333;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .promo-text,
  .filters {
    max-width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
  }

  .filters form,
  .filters input,
  .filters select,
  .search-btn {
    width: 100%;
    box-sizing: border-box;
  }
}


.card.booked {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(1);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 24px;
  justify-content: center;
}

.listing-grid > .show-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 32px 0;
}

.car-share-banner {
  background-color: #004080;
  color: #fff;
  padding: 40px 60px;
  border-radius: 20px;
  margin: 40px 60px 40px 60px;
}

.banner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.banner-text {
  flex: 1 1 50%;
}

.banner-text h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.banner-text p {
  font-size: 18px;
  margin-bottom: 20px;
}

.banner-button {
  display: inline-block;
  padding: 12px 24px;
  background: #d100b9;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.banner-button:hover {
  background: #a0008f;
}

.banner-image {
  flex: 1 1 40%;
}

.banner-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .car-share-banner {
    padding: 20px;
    margin: 20px;
  }

  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .banner-text,
  .banner-image {
    flex: 1 1 100%;
  }

  .banner-text h1 {
    font-size: 24px;
  }

  .banner-text p {
    font-size: 16px;
  }

  .banner-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .banner-image img {
    max-height: 250px;
    object-fit: cover;
  }
}

.filters {
  font-size: 15px !important;
  width: 100%;
}

@media (min-width: 1200px) {
  .listing-section {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (max-width: 768px) {
  .listing-section {
    padding: 20px;
  }

  .listing-grid {
    padding: 0 10px;
  }
}

#installBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #004080;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

#installBtn:hover {
  background-color: #002c5f;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f4f8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.accordion-button {
  width: 100%;
  background: #fff;
  color: #000;
  padding: 16px;
  text-align: left;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
  gap: 12px;
}

.accordion-button:hover {
  background: #e0e7ef;
}


.accordion-button .arrow {
  min-width: 24px;
  min-height: 24px;
  background: #d100b9;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.accordion-button .arrow::after {
  content: '';
  width: 10px;
  height: 2px;
  background: white;
  transition: transform 0.3s;
}

.accordion-button.active .arrow::after {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.3s ease;
  padding: 0 16px;
}

.accordion-content p {
  margin: 12px 0;
  font-size: 15px;
}
