/* ======================================================
   SEARCH ARCHIVE  GDM CITYCARS
   Header full width, aanbod blok 1400px
====================================================== */

:root{
  --main-blue:#135e96;
}

#primary.search-archive{
  padding:0;
  background:#fff;
}

/* Zorg dat de Elementor header template full width blijft */
#primary.search-archive > #content{
  width:100%;
}

/* ======================================================
   AANBOD BLOK
   1400px breed, 75px boven en onder, 20px zijkanten
====================================================== */

.search-archive .archive-container{
  width:100%;
  background:#fff;
  padding:75px 0;
}

.search-archive .archive-container ._container{
  max-width:1400px;
  width:100%;
  margin:0 auto;
  padding:0 20px;
}

/* ======================================================
   SEARCH LAYOUT
====================================================== */

#entity-search-form{
  display:flex;
  gap:40px;
  padding-top:0;
  font-family:"Nunito",sans-serif;
}

/* FILTER COLUMN */
#entity-search-form #entity-search{
  width:260px;
  display:flex;
  flex-direction:column;
  gap:18px;
}

/* Filteren titel (H3 look) */
#entity-search-form #entity-search h2{
  font-size:20px;
  font-weight:800;
  line-height:1.2;
  margin:0 0 12px;
  color:#111;
}

/* RESULTS COLUMN */
#entity-search-form #entity-results{
  width:calc(100% - 300px);
}

/* ======================================================
   SETTINGS BAR
====================================================== */

#entity-results .search-settings{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:25px;
  flex-wrap:nowrap;
}

/* Aantal voertuigen gevonden (H3 look) */
#entity-results .search-settings h2{
  font-size:20px;
  font-weight:800;
  line-height:1.2;
  margin:0;
  color:#111;
  white-space:nowrap;
}

/* Sorteer dropdown blijft groot maar smaller in breedte */
#entity-results .search-settings select{
  margin-left:auto;
  width:220px;
  max-width:50%;
}

/* ======================================================
   SELECT STYLE (groot laten)
====================================================== */

#entity-search-form select,
#entity-results .search-settings select{
  border-radius:8px;
  border:1px solid #ddd;
  padding:.55rem 2.2rem .55rem 1rem;
  font-family:"Nunito",sans-serif;
  font-size:14px;
  background-color:#fff;
  appearance:none;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23135e96' d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:calc(100% - 12px) 50%;
  background-size:12px;
}

#entity-search-form select:hover,
#entity-results .search-settings select:hover{
  border-color:var(--main-blue);
}

#entity-search-form select:focus,
#entity-results .search-settings select:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(19,94,150,.18);
}

/* ======================================================
   PAGINATION
====================================================== */

.pagination{
  margin-top:60px;
}

.pagination .paging{
  display:flex;
  justify-content:center;
}

.pagination .paging ul{
  display:flex;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}

.pagination .paging a,
.pagination .paging span{
  min-width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  border:1px solid #ddd;
  font-family:"Nunito",sans-serif;
  font-weight:600;
  color:var(--main-blue);
  background:#fff;
  transition:.25s;
}

.pagination .paging a:hover,
.pagination .paging .current span{
  background:var(--main-blue);
  border-color:var(--main-blue);
  color:#fff;
}

.pagination .paging svg{
  width:14px;
  fill:var(--main-blue);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media(max-width:1300px){
  #entity-search-form{
    gap:30px;
  }
  #entity-search-form #entity-results{
    width:calc(100% - 260px);
  }
}

@media(max-width:900px){
  #entity-results .search-settings{
    flex-wrap:wrap;
    gap:12px;
  }
  #entity-results .search-settings h2{
    white-space:normal;
  }
  #entity-results .search-settings select{
    width:100%;
    max-width:100%;
    margin-left:0;
  }
}

@media(max-width:767px){
  #entity-search-form{
    flex-direction:column;
  }
  #entity-search-form #entity-search,
  #entity-search-form #entity-results{
    width:100%;
  }
  .results-container article .item img{
    height:65vw;
  }
}