/* --- Garage Pagina Stijlen --- */
.story-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  padding: 30px 20px;
}

.story-container h1 {
  font-family: "LemonMilk", sans-serif;
  font-size: 2.5rem;
  color: #d01a2f;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-align: center;
}

.story-subtitle {
  color: #888888;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
}

.story-section {
  background: #181818;
  border: 1px solid #222;
  border-left: 4px solid #d01a2f;
  padding: 25px 30px;
  margin-bottom: 30px;
}

.story-section h2 {
  font-family: "LemonMilk", sans-serif;
  color: #ffffff;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 15px;
}

.story-section p {
  color: #cccccc;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.story-section strong {
  color: #ffffff;
}

/* Grid voor garage items */
.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.garage-card {
  background: #141414;
  border: 1px solid #252525;
  padding: 20px;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.garage-card:hover {
  border-color: #d01a2f;
}

.garage-card[data-country="germany"] {
  order: 1;
}

.garage-card[data-country="italy"] {
  order: 2;
}

.garage-card[data-country="uk"] {
  order: 3;
}

.garage-card[data-country="usa"] {
  order: 4;
}

/* --- Vaste afmetingen en uitsnede voor de afbeeldingen --- */
.garage-card-img {
  width: 100%;
  height: 180px;
  /* Vaste hoogte zodat elke kaart gelijk blijft */
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 15px;
  background: #000;
}

.garage-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Zorgt dat de afbeelding netjes de ruimte vult zonder te vervormen */
  display: block;
}

/* Sim-badge op de afbeelding */
.sim-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid #333;
}

/* Inhoud van de kaart */
.garage-card-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  flex-grow: 1;
}

.garage-card-content h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  height: 88px;
  display: flex;
  align-items: flex-start;
  font-family: "LemonMilk", sans-serif;
}

.car-info {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 10px;
  height: 20px;
  display: flex;
  align-items: flex-start;
}

.car-desc {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 20px;
  min-height: 90px;
  height: auto;
  display: flex;
  align-items: flex-start;
}

/* Actieknop binnen de kaart (inclusief LemonMilk font en lichte letterafstand) */
.garage-card .btn-action {
  display: inline-block;
  background: #d01a2f;
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
  font-family: "LemonMilk", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
  margin-top: auto;
}

.garage-card .btn-action:hover {
  background: #b01426;
}

/* --- Responsief voor mobiel --- */
@media (max-width: 768px) {
  .story-container {
    padding: 20px 15px;
  }

  .story-container h1 {
    font-size: 2rem;
  }

  .story-section {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .garage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .garage-card {
    padding: 16px;
  }

  .garage-card-content h3 {
    font-size: 1rem;
    overflow-wrap: anywhere;
    height: auto;
    min-height: 72px;
  }

  .car-info,
  .car-desc {
    height: auto;
  }

  .garage-card .btn-action {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .garage-card-img {
    height: 150px;
  }
}

/* Centreer de SVG zowel horizontaal als verticaal in het vakje */
.garage-card .car-svg-container {
  display: flex;
  align-items: center; /* Verticaal centreren */
  justify-content: center; /* Horizontaal centreren */
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Bepaal het formaat van de SVG zodat hij mooi loskomt van de randen */
.garage-card .car-svg-container svg {
  width: 75%; /* Maak hem iets kleiner dan het vakje voor ademruimte */
  height: 75%;
  max-width: 100%;
  max-height: 100%;
}

@media (max-width: 420px) {
  .garage-card .car-svg-container {
    height: 150px;
  }
}
