/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "Open Sans";
  src: url("fonts/OpenSans-Regular.woff2");
}
body {
  font-family: "Open Sans";
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2vh 5vw;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.navbar {
  position: sticky;
  top: 0;
  background-color: black;
  z-index: 1000;
  border-bottom: 1px solid #eee;
}
.logo {
  width: 100px;
  height: auto;
}
.nav-links a {
  margin-left: 2vw;
  text-decoration: none;
  color: white;
  font-size: 1vw;
  position: relative;
}

/* LISTINGS PAGE */
.listings-container {
  margin-top: 0vh;
  max-width: auto;
  margin: 0 7vw;
}

.listings-header {
  margin-top: 5vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2vh;
}

.listings-header h1 {
  font-family: "Open Sans";
  font-size: 2.6vw;
  font-weight: 700;
}

.filter-controls {
  display: flex;
  gap: 1vw;
  flex-wrap: wrap;
}

.filter-controls button,
.filter-controls select {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 1vw;
  cursor: pointer;
}

.listing-count {
  font-size: 1.1vw;
  margin: 2vh 0;
  color: #444;
}

/* CAR GRID */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
  margin-top: 4vh;
}

.car-card {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  background: #fff;
}

.car-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.car-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-details {
  padding: 14px;
}

.car-name {
  font-size: 1.1vw;
  margin: 0 0 0.5vh;
  font-weight: 600;
}

.car-types {
  font-size: 0.9vw;
  color: #666;
  margin-bottom: 1vh;
}

.car-price {
  font-size: 1vw;
  font-weight: 700;
  color: #111;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin: 5vh 0 0;
  margin-bottom: 5vh;
}

.page {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.95vw;
}
.page.active {
  background: #d8c1c1;
  font-weight: 600;
}

.footer {
  background-color: #fdfbee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6vh 5vw;
  font-size: 1vw;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
}
.footer-logo {
  width: 100px;
  height: auto;
}

.footer-center {
  flex: 1;
  text-align: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1vw;
  margin-bottom: 1vh;
}
.social-icons .dot {
  width: 30px;
  height: 30px;
  background-color: #888;
  border-radius: 50%;
}

.footer-center p {
  margin: 0.5vh 0;
  color: #000;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2vh;
}
.footer-right a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.footer-right a:hover {
  text-decoration: underline;
}
