
/* carlist.css */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 30px;
  background: #000;
}

.logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-btn,
.nav-btn-rent {
  padding: 8px 12px;
  font-size: 17px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
}

.nav-btn {
  background: #000;
  color: #fff;
}

.nav-btn-rent {
  background: #fff;
  color: #000;
}

.icon-img {
  height: 24px;
  width: 24px;
  filter: brightness(0) invert(1);
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown summary {
  list-style: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
}

.profile-dropdown summary::-webkit-details-marker {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: 40px;
  right: 10px;
  background: white;
  color: black;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 12px;
  width: 200px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.dropdown-menu a {
  text-decoration: none;
  color: black;
  margin-bottom: 10px;
  font-size: 14px;
}

.dropdown-menu a:hover {
  text-decoration: underline;
}

header {
  padding: 20px;
  background-color: #000;
  color: white;
  text-align: center;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: white;
  border-bottom: 1px solid #ccc;
  border-radius: 18px;
}

.filters input,
.filters select,
.filters button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.filters button {
  background-color: black;
  color: white;
  cursor: pointer;
  border: none;
}

main#car-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Grid layout for user bookings */
.booking-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Για εμφάνιση ίδια με main_page */

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 24px;
  justify-content: center;
}

.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;
}

.card .info h3 {
  font-size: 16px;
  color: #000;
  font-weight: bold;
  margin-bottom: 6px;
}

.card .info p {
  color: #000;
  font-size: 14px;
  margin: 2px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 60px;
  background: #000;
  color: white;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  margin-right: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-socials a img {
  height: 24px;
  margin-right: 15px;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s ease;
}

.footer-socials a:hover img {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-links h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer-links p {
  margin: 6px 0;
  font-size: 14px;
  cursor: pointer;
}

.filters .choices__list--single .choices__item--selectable {
  color: #000 !important;
  opacity: 1 !important;
}

/* Make selected choice text visible */
.choices__list--single .choices__item--selectable {
  color: #000 !important;
  opacity: 1 !important;
}

/* Make dropdown list items visible */
.choices__list--dropdown .choices__item--selectable {
  color: #000 !important;
  opacity: 1 !important;
}

/* ─── Override για Choices.js selects ───────────────────────── */

/* 1. Στοιχείο container */
.filters .choices {
  width: 160px; /* όσο θες εσύ */
  display: inline-block;
}

/* 2. Inner box (στοίχιση, ύψος, padding, border, arrow) */
.filters .choices__inner {
  box-sizing: border-box;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border: 1px solid #ccc !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  display: flex;
  align-items: center;
  background-clip: padding-box;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6z%22%20fill%3D%22%23333%22/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 10px 6px !important;
}

/* 3. Στοιχείο για το επιλεγμένο text */
.filters .choices__list--single .choices__item {
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
}

/* 4. Αφαιρούμε το default “×” button του Choices.js */
.filters .choices__button {
  display: none !important;
}
