/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


/* Opmaak van de auto op de single-auto pagina */

/* Hou alles binnen de auto-detail container */
.auto-detail {
  position: relative;       /* basis context */
  overflow: hidden;         /* voorkomt 'uitsteken' (zeker met absolute children) */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 24px;
  margin-bottom: 32px;
}

/* Één wrapper voor beide sliders; voorkomt spacing issues */
.auto-gallery {
  display: block;
  width: 100%;
}

/* Main slider */
.auto-slider-main {
  width: 100%;
  height: 700px;
  margin-bottom: 12px;
}


.auto-slider-main:focus {
  outline: 2px solid #003366;
  outline-offset: 4px;
}


.auto-slider-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}
.auto-slider-main .swiper-slide img,
.auto-img-large {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* grote afbeelding netjes binnen kader */
  border-radius: 8px;
}

/* Thumbs slider */
.auto-slider-thumbs {
  width: 100%;
  height: 110px;
  box-sizing: border-box;
}
.auto-slider-thumbs .swiper-slide {
  width: 110px !important;  /* vaste thumb-breedte */
  height: 100px;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.auto-slider-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  outline: 2px solid #003366;
  outline-offset: 2px;
}
.auto-slider-thumbs .swiper-slide img,
.auto-img-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tabel (ongewijzigd) */
.auto-table th {
  text-align: left;
  width: 150px;
  color: #003366;
}
.auto-table td { color: #222; }


.auto-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.auto-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #003366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.auto-btn:hover,
.auto-btn:focus {
  background: #0055a5;
  color: #fff;
}

.auto-btn-back {
  background: #555;
}

.auto-btn-back:hover,
.auto-btn-back:focus {
  background: #333;
}


/* CSS Filter op de autovoorraad pagina */


/* Filterformulier */
.auto-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  background: #f5f7fa;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 32px;
}

.auto-filters label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  color: #003366;
  margin-bottom: 0;
  min-width: 140px;
}

.auto-filters select,
.auto-filters input[type="number"] {
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 5px;
  background: #fff;
  font-size: 1em;
  color: #222;
  transition: border-color 0.2s;
}

.auto-filters select:focus,
.auto-filters input[type="number"]:focus {
  border-color: #003366;
  outline: none;
}

.auto-filters .fusion-button,
.auto-filters button[type="submit"] {
  padding: 10px 24px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 6px;
}