/* Den Hartog Kentekenchecker Styles */

/* ANIMATIONS */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* FORM INPUTS - Verbeterde styling voor zoek input */
#zoekveld {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: white;
  margin: 8px 0 16px 0;
}

#zoekveld:focus {
  outline: none;
  border-color: #0a174e;
  box-shadow: 0 0 0 3px rgba(10, 23, 78, 0.1);
}

#zoekveld::placeholder {
  color: #6c757d;
}

/* ZOEK RESULTATEN STYLING */
#zoek-resultaten {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  max-height: 400px;
  overflow-y: auto;
}

#zoek-resultaten::-webkit-scrollbar {
  width: 6px;
}

#zoek-resultaten::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#zoek-resultaten::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

#zoek-resultaten::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* CONTAINER CONSTRAINTS - Avada compatibility */
.dhkc-advies-page {
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
  clear: both;
}
.dhkc-advies-page * {
  box-sizing: border-box;
}

/* Prevent Avada Fusion Builder conflicts */
.dhkc-kentekenchecker-wrapper {
  width: 100%;
  max-width: 100%;
  clear: both;
  overflow: visible;
  display: block;
  box-sizing: border-box;
}

.dhkc-kentekenchecker-wrapper::before,
.dhkc-kentekenchecker-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.dhkc-advies-page .fusion-builder-column,
.dhkc-advies-page .fusion-column-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

.dhkc-advies-h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 .1em;
}

.dhkc-advies-meta {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: .5em;
}

/* ============================================================================
 * PAGE HEADER - Titel en foto (2 losse blokken: 4/5 en 1/5)
 * ========================================================================== */
.dhkc-page-header {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* Als er geen afbeelding is, neem volle breedte */
.dhkc-page-header.dhkc-no-image {
  grid-template-columns: 1fr;
}

.dhkc-title-section {
  background: white;
  border-radius: 30px;
  padding: 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-content .dhkc-title-section h1 {
  font-size: 2.5rem!important;
  line-height: 0.9!important;
  color: #000049!important;
}

@media screen and (max-width: 900px) {
  .post-content .dhkc-title-section h1 {
    font-size: 1.25rem !important;
    line-height: 1 !important;
  }
}


.dhkc-subtitle {
  font-size: 1.3rem;
  color: #000000;
  margin-top: 0px;
}

.dhkc-header-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

/* Ensure Den Hartog button styles work in our header */
.dhkc-header-actions .fusion-button {
  margin: 0 !important;
}

.dhkc-image-section {
  background: white;
  border-radius: 30px;
  padding: 0px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dhkc-vehicle-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: 220px;
}

/* ============================================================================
 * VEHICLE SPECS HEADER - Los blok tussen titel en componenten nav
 * ========================================================================== */
.dhkc-vehicle-specs-header {
  background: white;
  border-radius: 30px;
  padding: 24px;
  margin-bottom: 24px;
}

.dhkc-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}

.dhkc-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dhkc-spec-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #000049;
  min-width: 95px;
}

.dhkc-spec-value {
  font-size: 0.95rem;
  color: #1a1a1a;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dhkc-fuel-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .dhkc-page-header {
    grid-template-columns: 1fr;
  }

    .dhkc-image-section {
    order: -1;
    min-height: 100px;
  }
  
  .dhkc-specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dhkc-title-section {
    padding: 24px;
  }
  
  .dhkc-title-section h1,
  .dhkc-title-section h2 {
    font-size: 1.75rem;
  }
  
  .dhkc-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  
  .dhkc-header-actions {
    flex-direction: column;
  }
}

/* ============================================================================
 * COMPONENTS WRAPPER - Witte achtergrond container (alleen om componenten)
 * ========================================================================== */
.dhkc-components-wrapper {
  background: white;
  border-radius: 0px 0px 30px 30px;
  padding: 32px;
}

/* MOBILE COMPONENT DISPLAY - Always visible with horizontal nav */
.dhkc-component-mobile-header {
  display: none !important;
}

.dhkc-component-content {
  display: block !important;
}

.dhkc-component-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dhkc-title-capacity {
  flex: 1 1 auto;
}

.dhkc-component h3 {
  font-size: 1.7rem!important;
  font-weight: 700;
  margin: 0px!important;
  color: #000049;
}

.dhkc-component .dhkc-capaciteit {
  font-size: 0.95rem;
  color: #5a5a5a;
  margin: 0;
  line-height: 1.6;
}

/* COMPONENT CODE STYLING */
.component-code {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1d1d1d;
  margin: 0px!important;
}

.dhkc-filterbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
  align-items: flex-start;
}

.dhkc-filterbtn,
.dhkc-filterreset {
  border: 2px solid #0a174e;
  background: #fff;
  color: #0a174e;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: .9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.dhkc-filterbtn:hover {
  background: rgba(10, 23, 78, 0.05);
}

.dhkc-filterbtn.active {
  background: #0a174e;
  color: #fff;
  outline: none;
}

.dhkc-filterreset {
  background: transparent;
  color: #0a174e;
  border-color: #0a174e;
}

.dhkc-filterreset:hover {
  background: #0a174e;
  color: white;
}

.dhkc-producten {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 2.2rem;
}

@media (max-width: 980px) {
  .dhkc-producten {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .dhkc-producten {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT CARDS - CLEAN GRID */
.dhkc-product-card {
  background: #fff;
  padding: 20px 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 120px;
  text-align: center;
}

.dhkc-product-card:hover {
  transform: translateY(-2px);
}

.dhkc-card-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.dhkc-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* IMAGE SECTION - LEFT SIDE */
.dhkc-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dhkc-product-card img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

/* CONTENT SECTION - RIGHT SIDE */
.dhkc-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
}

.dhkc-product-card h4,
.dhkc-product-card .dhkc-nav-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #1a1a1a;
  text-align: left;
}

.dhkc-product-card:hover h4,
.dhkc-product-card:hover .dhkc-nav-title {
  color: #0a174e;
}

.dhkc-interval {
  font-size: 0.75rem;
  color: #151515;
  margin: 0;
  text-align: left;
}


/* COMPONENT NAVIGATION - HORIZONTAL SCROLL WITH ARROWS */
.dhkc-component-nav {
  background: #0a174e;
  border-radius: 30px 30px 0px 0px;
  padding: 8px;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.dhkc-nav-arrow {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: white;
  z-index: 10;
}

.dhkc-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.dhkc-nav-arrow:active {
  transform: scale(0.95);
}

.dhkc-nav-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.dhkc-nav-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
  flex: 1;
}

.dhkc-nav-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.dhkc-nav-item {
  background: transparent;
  border-radius: 20px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 100px;
  color: white;
}

.dhkc-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dhkc-nav-item.active {
  background: white;
  color: #0a174e;
}

.dhkc-nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dhkc-nav-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.dhkc-nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  max-width: 140px;
}

.dhkc-nav-code {
  font-size: 0.65rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.8;
  font-style: italic;
}

/* COMPONENT SECTIONS */
.dhkc-component {
  margin: 1rem 0;
}

.dhkc-component.hidden {
  display: none;
}

/* PRINT OPTIMALISATIE - verberg navigatie en toon alle componenten */
@media print {
  .dhkc-component-nav {
    display: none !important;
  }
  .dhkc-component.hidden {
    display: block !important; /* Toon alle componenten bij printen */
  }
  .dhkc-component {
    page-break-inside: avoid;
    margin: 1rem 0 !important;
  }
}

.dhkc-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.dhkc-title-row > div:first-child {
  flex: 1 1 auto;
}

.dhkc-header-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .dhkc-title-row {
    flex-direction: column;
    gap: 16px;
  }
  .dhkc-header-actions {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
        margin-top: -16px;
        margin-bottom: 30px;
  }
  .component-code {
    font-size: 1rem;
  }
  .fusion-button-text {
    font-size: 0.7rem;
  }
  .dhkc-page-header {
    gap: 0px;
       margin-bottom:0px;
  }
  .dhkc-title-section {
    border-radius: 0px;
    padding: 0px 20px 0px 20px;
  }
    .dhkc-image-section {
    border-radius: 30px 30px 0px 0px;
    padding: 30px 48% 0px 30px;
  }
  .dhkc-subtitle {
    font-size: 0.8rem;
    margin-bottom:0px;
  }

  .dhkc-vehicle-specs-header {
    margin-bottom:20px;
    border-radius: 0px 0px 30px 30px;
  }
  .dhkc-component h3
  {    font-size: 1.2rem !important;}
    .dhkc-nav-scroll {
    padding: 4px;
  }
  
  .dhkc-nav-item {
    padding: 8px 10px;
    min-width: 70px;
    gap: 4px;
  }
  
  .dhkc-nav-icon {
    width: 18px;
    height: 18px;
  }
  
  .dhkc-nav-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .dhkc-nav-label {
    font-size: 0.6rem;
    line-height: 1.1;
  }
  
  .dhkc-nav-code {
    font-size: 0.55rem;
  }
  
  .dhkc-component-nav {
    gap: 4px;
    padding: 6px;
  }
  
  .dhkc-nav-arrow {
    width: 32px;
    height: 32px;
  }
  
  .dhkc-nav-arrow svg {
    width: 18px;
    height: 18px;
  }
    .dhkc-component-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .dhkc-component h2 {
    font-size: 1.5rem;
  }
  
  .dhkc-filterbar {
    justify-content: flex-start;
    width: 100%;
  }

}


/* KENTEKEN INPUT STYLING */
.kenteken-box .nl-svg {
    background-color: #004DC8;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 0.75em; /* minder ruimte */
    flex: 0 0 auto; /* voorkom rekken */
}

.kenteken-box .nl-svg img {
    height: 50%; /* past mooier in lijn met tekst */
    width: auto;
    display: block;
}

.kenteken-box input, .kenteken-box input::placeholder {
    border: none!important;
    background: transparent!important;
    text-transform: uppercase;
    color: #000!important;
    font-weight: 700;
    font-size: 1em!important;
    padding: 0 1em!important;
    height: 100%!important;
    outline: none;
    flex: 1 1 auto;
    min-width: 0;
    box-sizing: border-box;
    text-align: center; /* CENTREERT de tekst */
    letter-spacing: 0.1em; /* iets bredere karakters voor kentekenlook */
}

.kenteken-button {
    background: #004DC8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    padding: 0 1em;
    cursor: pointer;
    font-size: 1.5em;
    transition: background 0.3s ease;
    height: 100%;
    font-weight: bold;
    flex: 0 0 auto;
}

#zoekveld.zonderkentekenzoeken, #zoekveld.zonderkentekenzoeken::placeholder {
    background-color: transparent;
    text-transform: capitalize;
    color: #efefef!important;
    border-width: 0px 0px 3px 0px;
    border-color: #00D9FF20;
    border-radius: 0px;
}

#zoekveld.zonderkentekenzoeken:hover, #zoekveld.zonderkentekenzoeken:focus {
    background-color: transparent;
    text-transform: capitalize;
    color: var(--form_text_color);
    border-width: 0px 0px 3px 0px;
    border-color: white;
    border-radius: 0px;
}



.kenteken-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    align-items: flex-start;
}

.kenteken-box {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    background: #FFC531;
    font-size: clamp(1.5rem, 2.5vw, 2.8rem);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 1em;
    height: 100px;
}