/*
Theme Name: Linda van Dijk Makelaardij
Theme URI: https://lvd-makelaardij.nl
Author: Happy Horizon
Description: Custom thema voor Linda van Dijk Makelaardij. Gewone pagina's worden ingevuld met WPBakery; de woning-templates (single/archive) zijn handgecodeerd en delen dezelfde header/footer/stijlen voor consistentie.
Version: 0.4.11
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: lindavandijk
*/

:root {
  --lvd-cream: #F7F4EE;
  --lvd-cream-alt: #F1ECE3;
  --lvd-circle: #E3DFD2;
  --lvd-ink: #2B2820;
  --lvd-ink-deep: #211E17;
  --lvd-rust: #8B572F;
  --lvd-rust-dark: #6E4526;
  --lvd-badge: #4B4E3F;
  --lvd-muted: #8A8471;
  --lvd-muted-body: #5A5748;
  --lvd-line: #E4DDD0;
  --lvd-line-light: #EEE8DB;
  --lvd-gold: #C9A27E;
  --lvd-white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--lvd-cream);
  color: var(--lvd-ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  margin: 0;
}

a {
  color: var(--lvd-rust);
  text-decoration: none;
}
a:hover { color: var(--lvd-rust-dark); }

.lvd-container {
  /* Same fixed 64px gutter as the header (.lvd-nav) and the plain
     WPBakery text pages at every viewport width — no max-width, which used
     to push container content to 128px+ on wide screens while the logo and
     text pages stayed at 64px. */
  margin: 0 auto;
  padding: 0 64px;
}

@media (max-width: 782px) {
  .lvd-container { padding: 0 24px; }
}

/* Consistent gap between the header and a page's own content, applied once
   at the page level instead of every page/template hardcoding its own
   top padding (which is how it drifted — some pages had 84px baked into
   their first block, others had none at all). A page whose first section
   is deliberately meant to sit flush against the header (a full-bleed
   hero image/video) opts out with .lvd-hero-flush on that section. */
#lvd-page-content {
  padding-top: 84px;
  /* WPBakery's grid gives every .vc_row -15px side margins (offset by the
     columns' 15px padding), so full-width rows stick 15px past the viewport
     and make the page scroll sideways. clip (not hidden) cuts that off
     without creating a scroll container, so position:sticky keeps working. */
  overflow-x: clip;
}
.lvd-hero-flush { margin-top: -84px; }

@media (max-width: 782px) {
  #lvd-page-content { padding-top: 40px; }
  .lvd-hero-flush { margin-top: -40px; }
}

/* The homepage opens with the full-bleed video slider, so it sits flush
   against the header. */
.home #lvd-page-content { padding-top: 0; }

.lvd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.lvd-btn-dark { background: var(--lvd-ink); color: var(--lvd-cream); }
.lvd-btn-dark:hover { background: #3a352a; color: var(--lvd-cream); }
.lvd-btn-solid { background: var(--lvd-rust); color: #fff; }
.lvd-btn-solid:hover { background: var(--lvd-rust-dark); color: #fff; }

.lvd-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lvd-rust);
  font-weight: 600;
  margin-bottom: 12px;
}

.lvd-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 12px;
}

/* Woning listing card (archive grid + "vergelijkbaar aanbod") */
.lvd-woning-card {
  display: flex;
  flex-direction: column;
  background: var(--lvd-white);
  border: 1px solid var(--lvd-line);
  color: var(--lvd-ink);
}
.lvd-woning-card-photo { position: relative; height: 250px; background: var(--lvd-cream-alt); }
.lvd-woning-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvd-woning-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.lvd-woning-card-addr { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 21px; }
.lvd-woning-card-stats { display: flex; gap: 16px; color: var(--lvd-muted-body); font-size: 13px; }
.lvd-woning-card-price { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--lvd-line-light); }
.lvd-woning-card-price .lbl { font-size: 11px; color: var(--lvd-muted); text-transform: uppercase; letter-spacing: .06em; }
.lvd-woning-card-price .val { font-weight: 600; font-size: 17px; color: var(--lvd-rust); }

.lvd-woning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.lvd-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lvd-woning-grid { grid-template-columns: 1fr; } }

/* WPBakery-authored pages (home, over mij, etc.) share these section/type
   utilities so raw-HTML blocks inside vc_row/vc_column stay on-brand
   without repeating full inline styles in every block. */
.lvd-section { padding-top: 100px; padding-bottom: 100px; }
.lvd-section-tight { padding-top: 70px; padding-bottom: 70px; }
.lvd-section-cream-alt { background: var(--lvd-cream-alt); }
.lvd-section-dark { background: var(--lvd-ink); color: #F1ECE3; }
.lvd-h2 { font-size: 34px; }
.lvd-body { font-size: 16px; line-height: 1.8; color: var(--lvd-muted-body); }

/* Put el_class="sticky-kolom" on a vc_column to keep its content (typically
   an image) vertically centered in the viewport while the other column
   scrolls past it. Disabled on mobile, where columns stack.
   Direct-child selector only: a content element like [vc_single_image]
   wraps its own <figure> in a SECOND, nested .wpb_wrapper of its own —
   a plain descendant selector matches both, stacking two nested
   height:100vh sticky boxes and canceling the effect entirely. */
.sticky-kolom > .vc_column-inner > .wpb_wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0; /* equal_height="yes" rows make .vc_column-inner a flex container too — without this, it can shrink this element below 100vh to match a shorter sibling column */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Cap the image at the sticky box's own height: a photo taller than the
   viewport would otherwise overflow the centered 100vh box on both ends and
   paint over the header and footer. object-fit crops instead of squashing. */
@media (min-width: 768px) {
  .sticky-kolom > .vc_column-inner > .wpb_wrapper img {
    max-height: 100vh;
    width: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .sticky-kolom > .vc_column-inner > .wpb_wrapper {
    position: static;
    height: auto;
  }
}

/* Baseline typography for plain WPBakery text blocks ([vc_column_text], its
   ".wpb_text_column" wrapper): editors write raw h1/h2/h3/p in the HTML view
   without remembering to add .lvd-h2/.lvd-body by hand, so give those tags
   sane sizing by default instead of the browser's bare UA styles. Scoped to
   .wpb_text_column so it never touches the hand-styled raw-HTML hero/section
   blocks elsewhere, which already set their own explicit sizes. */
.wpb_text_column h1 { font-size: 44px; line-height: 1.2; margin: 0 0 22px; }
.wpb_text_column h2 { font-size: 30px; line-height: 1.3; margin: 36px 0 16px; }
.wpb_text_column h3 { font-size: 22px; line-height: 1.35; margin: 28px 0 12px; }
.wpb_text_column h4 { font-size: 18px; line-height: 1.4; margin: 22px 0 10px; }
.wpb_text_column p { font-size: 16px; line-height: 1.8; color: var(--lvd-muted-body); margin: 0 0 16px; }
.wpb_text_column > .wpb_wrapper > *:first-child { margin-top: 0; }
.wpb_text_column > .wpb_wrapper > *:last-child { margin-bottom: 0; }

/* Pull quote. The editor wraps the text in a <p>, so reset that too — and
   match .wpb_text_column p's specificity, or its muted body color/size wins. */
blockquote {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--lvd-rust);
  margin: 32px 0;
  padding: 0;
}
blockquote p,
.wpb_text_column blockquote p { font: inherit; color: inherit; margin: 0; }

/* Side gutter so this text never sits flush against the viewport edge,
   regardless of screen width. Deliberately scoped to .wpb_text_column only
   (not the row/column) — several homepage sections rely on their row being
   unconstrained so their own full-bleed background (.lvd-section-dark etc.)
   can reach the true edge, with .lvd-container handling the inset for their
   content separately. Padding the row itself would either clip those
   backgrounds or double up with their .lvd-container. Plain text blocks
   like this one have neither, so they get their own gutter directly. */
.wpb_text_column { padding: 0 64px; }
/* A shortcode that brings its own .lvd-container (e.g. [lvd_uitgelicht_aanbod])
   already has the gutter — don't add a second one around it. */
.wpb_text_column:has(.lvd-container) { padding: 0; }

@media (max-width: 782px) {
  .wpb_text_column { padding: 0 24px; }
  .wpb_text_column h1 { font-size: 32px; }
  .wpb_text_column h2 { font-size: 25px; }
  .wpb_text_column h3 { font-size: 19px; }
}

/* Single woning template */
.lvd-breadcrumbs { padding: 16px 0; font-size: 13px; color: var(--lvd-muted); display: flex; gap: 8px; }
.lvd-breadcrumbs a { color: var(--lvd-muted); }
.lvd-breadcrumbs .current { color: var(--lvd-ink); font-weight: 500; }

.lvd-gallery-hero { position: relative; height: 460px; background: var(--lvd-cream-alt); }
.lvd-gallery-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lvd-gallery-count { position: absolute; top: 20px; right: 20px; background: rgba(33,30,23,.72); color: #fff; font-size: 12.5px; font-weight: 600; padding: 8px 15px; }
.lvd-gallery-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.lvd-gallery-strip img { width: 100%; height: 150px; object-fit: cover; display: block; }

.lvd-gallery-photo { display: block; width: 100%; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; }
.lvd-gallery-hero .lvd-gallery-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.lvd-gallery-more-toggle { text-align: center; margin-top: 16px; display: flex; justify-content: center; gap: 12px; }
.lvd-btn[hidden] { display: none; }

.lvd-jump-to-details { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 500; box-shadow: 0 8px 20px rgba(33,30,23,.28); }

@media (max-width: 782px) {
  .lvd-jump-to-details { bottom: 16px; padding: 11px 18px; font-size: 13px; }
}

.lvd-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(33,30,23,.92); }
.lvd-lightbox[hidden] { display: none; }
.lvd-lightbox-img { max-width: 88vw; max-height: 84vh; object-fit: contain; display: block; }
.lvd-lightbox-close, .lvd-lightbox-prev, .lvd-lightbox-next { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lvd-lightbox-close:hover, .lvd-lightbox-prev:hover, .lvd-lightbox-next:hover { background: rgba(255,255,255,.22); }
.lvd-lightbox-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lvd-lightbox-prev, .lvd-lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 30px; }
.lvd-lightbox-prev { left: 20px; }
.lvd-lightbox-next { right: 20px; }
.lvd-lightbox-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(255,255,255,.14); padding: 6px 14px; }

@media (max-width: 782px) {
  .lvd-lightbox-prev, .lvd-lightbox-next { width: 40px; height: 40px; font-size: 22px; }
  .lvd-lightbox-close { width: 38px; height: 38px; font-size: 22px; }
}

.lvd-title-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 36px 0 8px; flex-wrap: wrap; }
.lvd-title-bar h1 { font-size: 38px; margin-top: 10px; }
.lvd-title-sub { font-size: 15px; color: var(--lvd-muted); margin-top: 10px; }
.lvd-title-price { text-align: right; }
.lvd-price-amount { font-family: 'Newsreader', Georgia, serif; font-weight: 600; font-size: 30px; margin-top: 8px; }
.lvd-price-note { font-size: 13px; color: var(--lvd-muted); margin-top: 6px; }

.lvd-stat-row { display: flex; flex-wrap: wrap; gap: 40px; padding: 26px 0; margin: 20px 0 20px; border-top: 1px solid var(--lvd-line); border-bottom: 1px solid var(--lvd-line); }
.lvd-stat { display: flex; flex-direction: column; }
.lvd-stat .val { font-weight: 600; font-size: 15px; }
.lvd-stat .lbl { font-size: 12.5px; color: var(--lvd-muted); min-height: 1em; }

.lvd-layout { display: flex; gap: 56px; padding: 12px 0 64px; align-items: flex-start; }
.lvd-main-col { flex: 1.7 1 0; display: flex; flex-direction: column; gap: 52px; }
.lvd-main-col h2 { font-size: 24px; margin-bottom: 18px; }
.lvd-description p { font-size: 15.5px; line-height: 1.75; color: var(--lvd-muted-body); margin: 0 0 16px; }
.lvd-tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.lvd-tag { font-size: 13px; padding: 7px 14px; background: var(--lvd-cream-alt); }

.lvd-spec-group + .lvd-spec-group { margin-top: 24px; }
.lvd-spec-group h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--lvd-muted); font-weight: 600; font-family: 'Work Sans', sans-serif; margin-bottom: 10px; }
.lvd-spec-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--lvd-line-light); font-size: 14.5px; }
.lvd-spec-row .k { color: var(--lvd-muted); }
.lvd-spec-row .v { font-weight: 500; }

.lvd-map { width: 100%; height: 360px; border: 1px solid var(--lvd-line); background: var(--lvd-cream-alt); }
/* Location dot, drawn as an OverlayView: google.maps.Marker is deprecated and
   AdvancedMarkerElement needs a mapId, which disables the JSON map styles. */
.lvd-map-pin { position: absolute; width: 21px; height: 21px; border: 3px solid var(--lvd-cream); border-radius: 50%; background: var(--lvd-rust); transform: translate(-50%, -50%); }
/* Contact page: same size as the design's map card, borderless like the cards
   around it. The label sits top-left: bottom-left is Google's logo, which
   may not be covered. */
.lvd-map-kantoor-wrap { position: relative; }
.lvd-map-kantoor { height: 190px; border: 0; }
.lvd-map-label { position: absolute; top: 13px; left: 13px; background: #fff; padding: 7px 13px; font-size: 11.5px; color: var(--lvd-muted-body); font-weight: 500; pointer-events: none; }

.lvd-buiten-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.lvd-buiten-card { background: var(--lvd-cream-alt); padding: 24px; }
.lvd-buiten-card h4 { font-size: 18px; margin-bottom: 10px; }
.lvd-buiten-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--lvd-muted-body); }

.lvd-sidebar { flex: 1 1 0; position: sticky; top: 24px; }
.lvd-card { background: var(--lvd-white); border: 1px solid var(--lvd-line); padding: 28px; }
.lvd-contact-card { background: var(--lvd-ink); color: #F1ECE3; border: none; }
.lvd-agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lvd-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--lvd-rust); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Newsreader', Georgia, serif; font-size: 17px; flex: 0 0 auto; }
.lvd-agent-head .name { font-weight: 600; font-size: 15.5px; color: #fff; }
.lvd-agent-head .role { font-size: 13px; color: var(--lvd-gold); }
.lvd-agent-note { font-size: 13.5px; line-height: 1.6; color: #D8D1C0; margin: 0 0 18px; }

/* "Bezichtiging aanvragen" popup (inc/bezichtiging-form.php). The WPForms
   fields are restyled to the site's inputs instead of WPForms' defaults. */
.lvd-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 36px 32px 30px; border: 0; border-radius: 2px; background: var(--lvd-cream); color: var(--lvd-ink); box-shadow: 0 20px 60px rgba(33, 30, 23, .25); }
.lvd-dialog::backdrop { background: rgba(33, 30, 23, .6); }
.lvd-dialog h2 { font-size: 26px; margin: 8px 0 10px; }
.lvd-dialog-intro { font-size: 14px; line-height: 1.6; color: var(--lvd-muted-body); margin: 0 0 20px; }
.lvd-dialog-close { position: absolute; top: 12px; right: 12px; display: flex; padding: 6px; border: 0; background: none; color: var(--lvd-muted); cursor: pointer; }
.lvd-dialog-close:hover { color: var(--lvd-ink); }
.lvd-dialog .wpforms-container {
  margin: 0;
  --wpforms-field-border-radius: 2px;
  --wpforms-field-border-color: var(--lvd-line);
  --wpforms-field-text-color: var(--lvd-ink);
  --wpforms-label-color: var(--lvd-ink);
  --wpforms-label-size-font-size: 13px;
  --wpforms-field-size-font-size: 15px;
  --wpforms-field-size-input-height: 46px;
  --wpforms-field-size-input-spacing: 14px;
  --wpforms-button-border-radius: 2px;
  --wpforms-button-background-color: var(--lvd-rust);
  --wpforms-button-border-color: var(--lvd-rust);
  --wpforms-button-size-font-size: 14px;
  --wpforms-button-size-height: 48px;
}
.lvd-dialog div.wpforms-container-full input,
.lvd-dialog div.wpforms-container-full button { font-family: inherit; }
.lvd-dialog div.wpforms-container-full input.wpforms-field-medium { max-width: 100%; }
.lvd-dialog div.wpforms-container-full input:focus { border-color: var(--lvd-rust); box-shadow: 0 0 0 1px var(--lvd-rust); }
.lvd-dialog div.wpforms-container-full .wpforms-field-label { font-weight: 600; }
.lvd-dialog div.wpforms-container-full button.wpforms-submit { width: 100%; font-weight: 600; }
.lvd-dialog div.wpforms-container-full button.wpforms-submit:hover { background: var(--lvd-rust-dark); }
.lvd-dialog .wpforms-confirmation-container-full { margin: 0; padding: 16px 18px; border: 0; background: var(--lvd-cream-alt); color: var(--lvd-ink); font-size: 14.5px; }
@media (max-width: 600px) {
  .lvd-dialog { padding: 32px 20px 24px; }
}

.lvd-similar-section { background: var(--lvd-cream-alt); padding: 72px 0; margin-top: 24px; }

@media (max-width: 900px) {
  .lvd-layout { flex-direction: column; }
  .lvd-sidebar { position: static; width: 100%; }
  .lvd-gallery-strip { grid-template-columns: repeat(3, 1fr); }
}

/* Video hero slider (WPBakery: [lvd_video_slider] / [lvd_video_slide]), see inc/wpbakery-video-slider.php */
.lvd-video-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--lvd-ink);
  overflow: hidden;
}

.lvd-video-slide {
  position: relative;
  height: var(--lvd-vs-height, 80vh);
  height: var(--lvd-vs-height, 80dvh);
  min-height: 320px;
}

.lvd-video-slide-media { position: absolute; inset: 0; }
.lvd-video-slide-video,
.lvd-video-slide-embed,
.lvd-video-slide-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.lvd-video-slide-embed {
  /* Oversize + center so the 16:9 iframe covers the slide like object-fit: cover would for <video>. */
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh; /* 16:9 */
  height: 56.25vw; /* 9:16 */
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
}

.lvd-video-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.lvd-video-slide.lvd-overlay-light::before { background: linear-gradient(0deg, rgba(33,30,23,.55) 0%, rgba(33,30,23,.08) 45%, rgba(33,30,23,.08) 100%); }
.lvd-video-slide.lvd-overlay-dark::before { background: linear-gradient(0deg, rgba(33,30,23,.78) 0%, rgba(33,30,23,.28) 55%, rgba(33,30,23,.28) 100%); }

.lvd-video-slide-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}
.lvd-video-slide-content .lvd-container { width: 100%; }
.lvd-video-slide-text {
  max-width: 620px;
  padding-bottom: 64px;
  color: #fff;
  pointer-events: auto;
}
.lvd-video-slide-text h2 {
  font-size: clamp(28px, 4.2vw, 48px);
  color: #fff;
  line-height: 1.15;
}
.lvd-video-slide-text p {
  margin: 16px 0 0;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.6;
  color: #F1ECE3;
}
.lvd-video-slide-cta {
  margin-top: 26px;
  padding: 15px 28px;
  font-size: 15px;
  gap: 10px;
}


.lvd-video-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33,30,23,.5);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
.lvd-video-slider-nav:hover { background: rgba(33,30,23,.72); }
.lvd-video-slider-nav.swiper-button-disabled { opacity: .35; cursor: default; }
.lvd-video-slider-prev { left: 24px; }
.lvd-video-slider-next { right: 24px; }

.lvd-video-slider-pagination.swiper-pagination-bullets {
  position: absolute;
  z-index: 3;
  bottom: 22px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lvd-video-slider-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0;
  background: rgba(255,255,255,.5);
  opacity: 1;
  border-radius: 50%;
}
.lvd-video-slider-pagination .swiper-pagination-bullet-active { background: #fff; }

@media (max-width: 782px) {
  .lvd-video-slide {
    height: 60vh;
    height: 60dvh;
    min-height: 380px;
  }
  .lvd-video-slide-text { padding-bottom: 44px; max-width: 100%; }
  .lvd-video-slider-nav { display: none; } /* swipe gesture replaces arrows on touch */
}

/* Contact page: two-column row (form card + office info) built from
   WPBakery columns, so the real [wpforms] shortcode can sit inside the
   designed card. el_class="lvd-contact-row" on the vc_row,
   "lvd-contact-form-col" / "lvd-contact-info-col" on its two columns. */
.vc_row.lvd-contact-row {
  margin: 0 auto;
  padding: 0 64px 110px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}
.vc_row.lvd-contact-row::before,
.vc_row.lvd-contact-row::after { display: none; }
.lvd-contact-row > .wpb_column { float: none; width: auto; min-width: 0; }
.lvd-contact-row > .wpb_column > .vc_column-inner { padding: 0; }
.lvd-contact-row .wpb_content_element { margin-bottom: 0; }
.lvd-contact-row > .lvd-contact-form-col { flex: 1.15 1 420px; background: var(--lvd-white); border: 1px solid var(--lvd-line); padding: 44px; }
.lvd-contact-row > .lvd-contact-info-col { flex: 1 1 320px; }
/* The info column stacks separate elements (kantoorgegevens, [lvd_kantoor_kaart], the "direct contact" card) — space them like the design's 24px card gap. */
.lvd-contact-info-col > .vc_column-inner > .wpb_wrapper { display: flex; flex-direction: column; gap: 24px; }

.lvd-contact-form-col div.wpforms-container-full { margin: 0; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field { padding: 0 0 20px; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field-row,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field-medium,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field-small { max-width: 100%; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #4B4738;
  margin: 0 0 7px;
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-field-sublabel {
  font-size: 12px;
  color: var(--lvd-muted);
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-required-label { color: var(--lvd-rust); }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=text],
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=email],
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=tel],
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=number],
.lvd-contact-form-col div.wpforms-container-full .wpforms-form select,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form textarea {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #DCD4C2;
  border-radius: 0;
  background: #FBFAF7;
  box-shadow: none;
  padding: 13px 15px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14.5px;
  color: var(--lvd-ink);
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form textarea { min-height: 140px; resize: vertical; }
/* Phone field is type=number: drop the spin buttons, a phone number isn't something to increment. */
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=number]::-webkit-inner-spin-button,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form input:focus,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form select:focus,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form textarea:focus {
  border-color: var(--lvd-rust);
  box-shadow: none;
  outline: none;
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form .wpforms-submit-container { padding: 6px 0 0; margin: 0; }
.lvd-contact-form-col div.wpforms-container-full .wpforms-form button[type=submit] {
  height: auto;
  background: var(--lvd-rust);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 15px 28px;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form button[type=submit]:hover,
.lvd-contact-form-col div.wpforms-container-full .wpforms-form button[type=submit]:focus {
  background: var(--lvd-rust-dark);
}
.lvd-contact-form-col div.wpforms-container-full .wpforms-form button[type=submit]::after { display: none; }
.lvd-contact-form-col .wpforms-confirmation-container-full {
  background: var(--lvd-cream-alt);
  border: 1px solid var(--lvd-line);
  color: var(--lvd-ink);
  margin: 0;
}

@media (max-width: 782px) {
  .vc_row.lvd-contact-row { padding: 0 24px 70px; gap: 32px; }
  .lvd-contact-row > .lvd-contact-form-col { padding: 28px 22px; }
}

/* Homepage split sections (text + photo side by side) and the diensten
   grid: stack on smaller screens. Their layout is set inline in the
   raw-HTML blocks, hence !important here. */
@media (max-width: 900px) {
  .lvd-split { flex-direction: column !important; align-items: stretch !important; gap: 40px !important; }
  .lvd-split > * { flex: 1 1 auto !important; width: 100%; }
  .lvd-diensten-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
  .lvd-split img { height: 300px !important; }
  .lvd-diensten-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
}
