.nav-link {
  color: white;
}

.nav-link:hover {
  color: rgb(255, 156, 35);
}

.dropdown-menu {
  color: white;
  background-color: rgb(0, 0, 0, 0.7);
  text-align: center;
  border-bottom: solid white;
  border-left: solid white;
  border-right: solid white;
}

.dropdown-item {
  color: white;
}

.dropdown-item:hover {
  color: rgb(255, 156, 35);
  background-color: rgb(255, 255, 255, 0.2);
}

#DropCss1:first-child {
  color: white;
}

#DropCss1:hover {
  color: rgb(255, 156, 35);
}

#DropCss2:first-child {
  color: white;
}

#DropCss2:hover {
  color: rgb(255, 156, 35);
}

#DropCss3:first-child {
  color: white;
}

#DropCss3:hover {
  color: rgb(255, 156, 35);
}

#DropCss4 {
  color: white;
}

#DropCss4:hover {
  color: rgb(255, 156, 35);
}

#Brand {
  font-family: cursive;
}

#Brand:hover {
  font-family: cursive;
  color: rgb(255, 156, 35);
}

body,
html {
  width: 100%;
  height: 100%;
}

#LoginButton {
  display: inline-block;
  color: white;
  border: 2px solid white;
}

#LoginButton:hover {
  color: rgb(255, 156, 35);
  border-color: rgb(255, 156, 35);
  background-color: transparent;
}

@media only screen and (max-width: 575px) {
  .section-title {
    font-size: clamp(28px, 6vw, 60px);
    font-weight: bold;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

  }

  #filterDropdownBtn {
    text-align: left;
  }

  .dropdown-menu {
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
  }


  #SellPageTop {
    align-items: center;
    padding: 3rem 1.5rem;
    /* top/bottom and left/right padding */
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.2);
    border-bottom: #0a3142 solid 1px;
    border-radius: 12px;
    width: 100%;
    max-width: 1200px;
    /* Optional: limit width on large screens */
    box-sizing: border-box;
  }


  #FilterSystem {
    margin: 0 1%;
    padding: 0.5rem 0;
  }

  #FilterSystem .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .PCversion {
    display: none;
  }

  .FilterSelect,
  #SortSelect,
  #priceDropdownBtn {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }

  .btnAddFilter {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.4rem;
  }

  #collapsibleNavbar .navbar-nav {
    align-items: center;
    /* center all nav items horizontally */
  }

  #profileDropdown {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 35px;
    text-decoration: dotted;
    /* net iets breder dan het icoon */
    position: relative;
  }

  hr {
    display: none;
  }

  .dropdown-menu[aria-labelledby="profileDropdown"] {
    position: relative;
    border-right: none;
    border-bottom: none;
    background: none;
    top: 100% !important;
    /* direct onder */
    left: 50% !important;
    /* horizontaal midden */
    transform: translateX(-50%) !important;
    /* echt centered */
    margin-top: 0.25rem;
    min-width: 8rem;
    /* Optioneel: iets hoger z-index als het overlapt */
    z-index: 1050;
  }

  #profileDropdown::after {
    display: none;
  }

  .IconText {
    display: none;
  }

  .nav-link {
    color: white;
    text-align: center;
  }

  #NavButton {
    color: white;
  }

  #LoginButton {
    display: inline-block;
    color: white;
    border: 2px solid white;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-right: 10px;
    margin-left: 10px;
    margin-top: 8px;
    text-align: center;
    width: 100%;
  }

  #LoginButton:hover {
    color: rgb(255, 156, 35);
    border-color: rgb(255, 156, 35);
    background-color: transparent;
  }

  .vr {
    display: none;
    /* Splitter verbergen op mobiel voor netheid */
  }

  .navbar-collapse {
    background-color: rgb(0, 0, 0, 0.7) !important;
    border-bottom: solid white;
    border-right: solid white;
    border-left: solid white;
    border-radius: 8px;
    /* Optioneel: voor afgeronde hoeken */
    padding-top: 20px;
    /* Ruimte bovenaan */
    padding-bottom: 20px;
    /* Ruimte onderaan */
  }
}

@media only screen and (max-width: 1050px) and (min-width: 575px) {
  .nav-text {
    display: none;
  }

  .nav-item {
    font-size: 24px;
  }
}

/* Main Page */
body {
  padding-top: 4%;
  text-align: center;
  background-color: #181818;
}

/* Filters */
#FilterSystem .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 1%;
}

@media (max-width: 768px) {
  #FilterSystem .row {
    grid-template-columns: 1fr;
  }

  .FilterSelect,
  #SortSelect,
  #priceDropdownBtn {
    width: 100% !important;
  }
}

#SellPageTop {
  padding: 2%;
  background-color: rgb(255, 255, 255, 0.2);
  border-bottom: #0a3142 solid 1px;
  border-radius: 12px;
  margin: 2%;
}

.section-title {
  font-size: 60px;
  font-weight: bold;
  color: white;
  margin-top: 2%;
}

.section-line {
  width: 200px;
  height: 6px;
  background-color: #d18a06;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
  /* Oranje streep */
  margin: 0 auto 15px auto;
  border-radius: 2px;
  margin-top: 5px;
  margin-bottom: 4%;
}

.search-bar {
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  margin-top: 1%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

#SortSelect {
  background-color: rgb(0, 0, 0) !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  height: 38px !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

option {
  background-color: white;
  color: black;
}

.NullOption {
  color: #ccc;
}

.FilterSelect {
  background-color: white;
  color: #212529;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
  height: 38px;
  font-size: 1rem;
}

#submit {
  border-radius: 4px;
  text-align: center;
  height: 30px;
  background-color: #e76f00;
  color: white;
  border: none;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
  padding: 0;
  margin-right: 4px;
}

#submit:hover {
  background: none;
  color: #e76f00;
  box-shadow: none;
}

#priceDropdownBtn {
  background-color: white !important;
  color: #212529 !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  height: 38px !important;
  font-size: 1rem !important;
  width: 100% !important;
  text-align: left;
  appearance: none;
  display: block;
  box-sizing: border-box;
  margin: 0 !important;
}


#FilterSystem .row>.dropdown {
  display: flex;
  flex-direction: column;
  width: 100% !important;
}

/* Force the .dropdown inside the filter grid to fill the grid cell */
#FilterSystem .row .dropdown {
  width: 100%;
}

/* Ensure .dropdown stretches like a select */
#FilterSystem .row .dropdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Make sure the button inside stretches to match selects */
#FilterSystem .row .dropdown .btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

/* Remove any bootstrap min-width interfering */
#FilterSystem .row .dropdown .dropdown-toggle {
  min-width: 0;
}

#priceDropdownBtn {
  width: 100%;
  box-sizing: border-box;
}

.dropdown .dropdown-menu {
  width: 100% !important;
  box-sizing: border-box;
}

#FilterSystem .dropdown {
  width: 100%;
  display: block;
}

#priceDropdownBtn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 0;
  height: 0;
  pointer-events: none;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #212529;
  transform: translateY(-50%);
}

.btnAddFilter {
  background-color: #ff6f00;
  color: white;
}

#TypeFilter {
  overflow-y: auto;
}

#TypeFilter option {
  height: 30px;
}

#TypeFilter[size] {
  overflow-y: auto;
}

/* Los Cards */
.car-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.car-card {
  width: 300px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.car-card:hover {
  transform: translateY(-5px);
}

.car-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  /* Was: cover */
  background-color: #e76f00;
  /* optioneel: grijze achtergrondvulling */
  aspect-ratio: 4 / 3;
  /* of 3/2 of 1/1 voor vierkant */
}

.car-info {
  padding: 15px;
  text-align: left;
  flex: 0 0 120px;
  /* ≈ genoeg voor titel + specs */
  padding: 12px;
}

.car-info h3 {
  margin: 0 0 8px;
  font-size: 1.2em;
}

.car-info .price {
  color: #e76f00;
  font-weight: bold;
  margin-bottom: 8px;
}

.car-actions {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px 15px;
  border-top: 1px solid #eee;
}

.car-actions .fav-btn,
.car-actions .view-btn {
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
  width: 100%;
}


.view-btn {
  background-color: #ff6600;
  color: white;
  width: 100%;
  text-decoration: none;
}

.promo-boxes {
  display: flex;
  justify-content: space-between;
  padding: 0 15px 15px;
  gap: 5px;
  flex: 0 0 50px;
}

.promo-box {
  flex: 1;
  background-color: #f8f8f8;
  color: #333;
  font-size: 0.8em;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  border: 1px solid #ddd;
}


.promo-box-Null {
  flex: 1;
  background-color: white;
  color: #333;
  font-size: 0.8em;
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  border: none;
}

.car-info .model-desc {
  font-size: 0.95em;
  color: #555;
  margin: -4px 0 8px 0;
  /* beetje dichter onder de titel */
  font-style: italic;
}

#CardsShowBody {
  background-color: #e4e0e0;
  border-top: #1a0a42 solid 1px;
  margin: 0%;
  padding: 1;
}

/* Footer */

footer {
  padding: 2% 0;
  backdrop-filter: blur(8px);
  /* maakt achtergrond wazig */
  -webkit-backdrop-filter: blur(8px);
  /* Safari ondersteuning */
  background-color: rgb(0, 0, 0);
  /* Donker glasachtig */
  color: white;
  border-top: solid gray;
  /* Rood accent blijft */
  text-align: center;
  width: 100%;
}

.FooterList {
  list-style: none;
}

.FooterLink {
  color: white;
  text-decoration: none;
}

.SponserImg {
  max-height: 80px;
  object-fit: contain;
  /* Ensures image fits without stretching */
  width: 120px;
  margin-top: 3%;
  max-width: 80px;
  border-radius: 12px;
  margin-right: 1%;
  border: white solid 2px;
  height: auto;
  display: inline-block;
}

.footerrow {
  background-color: black;
  margin-right: 0;
  margin-left: 0;
}