/* Pro: lead/alert dialogs, WhatsApp button, embedded grids and carousels.
   Scoped under .vwe-occasions like the base stylesheet, and built on the same
   colour variables, so it follows the appearance settings automatically. */

/* --- dialog ------------------------------------------------------------ */
.vwe-occasions dialog.vwe-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--vwe-ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: auto; }
.vwe-occasions dialog.vwe-dialog::backdrop { background: rgba(10, 12, 16, .6); }
.vwe-occasions .vwe-dialog-inner { position: relative; padding: 28px; }
.vwe-occasions .vwe-dialog-title { font-size: 1.35rem; line-height: 1.25; margin: 0 40px 4px 0; color: var(--vwe-ink); }
.vwe-occasions .vwe-dialog-intro { margin: 0 0 20px; color: var(--vwe-muted); }
.vwe-occasions .vwe-dialog-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--vwe-panel); color: var(--vwe-ink); font: 400 26px/1 sans-serif; cursor: pointer; box-shadow: none; }
.vwe-occasions .vwe-dialog-close:hover { background: var(--vwe-line); color: var(--vwe-ink); }
.vwe-occasions .vwe-dialog-close:focus-visible { outline: 3px solid var(--vwe-accent); outline-offset: 2px; }

/* --- form ---------------------------------------------------------------- */
.vwe-occasions .vwe-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.vwe-occasions .vwe-form[hidden], .vwe-occasions .vwe-form [hidden], .vwe-occasions .vwe-form-done[hidden] { display: none; }
.vwe-occasions .vwe-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.vwe-occasions .vwe-form label { display: block; flex: 1 1 0; min-width: 0; margin: 0; font-size: .85rem; font-weight: 600; color: var(--vwe-ink); }
.vwe-occasions .vwe-form-opt { font-weight: 400; color: var(--vwe-muted); }
/* bottom-aligned, so the fields line up when one label wraps */
.vwe-occasions .vwe-form-row { display: flex; align-items: flex-end; gap: 14px; }
.vwe-occasions .vwe-form input:not([type="hidden"]), .vwe-occasions .vwe-form select, .vwe-occasions .vwe-form textarea { display: block; width: 100%; margin: 5px 0 0; padding: 10px 12px; border: 1px solid #cfd4da; border-radius: 8px; background: #fff; color: var(--vwe-ink); font: inherit; font-size: 1rem; font-weight: 400; line-height: 1.4; box-shadow: none; }
.vwe-occasions .vwe-form textarea { resize: vertical; min-height: 96px; }
.vwe-occasions .vwe-form input:focus-visible, .vwe-occasions .vwe-form select:focus-visible, .vwe-occasions .vwe-form textarea:focus-visible { outline: 2px solid var(--vwe-accent); outline-offset: 1px; border-color: var(--vwe-accent); }
.vwe-occasions .vwe-form input.vwe-kenteken { text-transform: uppercase; font-weight: 700; letter-spacing: .08em; background: #ffd200; border-color: #c9a600; color: #111; }
.vwe-occasions .vwe-form input.vwe-kenteken::placeholder { color: rgba(17, 17, 17, .45); font-weight: 400; }
.vwe-occasions .vwe-rdw { margin: 8px 0 0; font-size: .9rem; color: var(--vwe-muted); }
.vwe-occasions .vwe-rdw:empty { display: none; }
.vwe-occasions .vwe-form-privacy { margin: 0; font-size: .8rem; color: var(--vwe-muted); }
.vwe-occasions .vwe-form-privacy a { color: var(--vwe-accent); }
.vwe-occasions .vwe-form .vwe-btn-lg { margin-top: 0; }
.vwe-occasions .vwe-form .vwe-btn:disabled { opacity: .6; cursor: progress; }
.vwe-occasions .vwe-form-status { margin: 0; font-size: .9rem; color: #b32d2e; }
.vwe-occasions .vwe-form-status:empty { display: none; }
.vwe-occasions .vwe-form-done { outline: 0; }
.vwe-occasions .vwe-form-done p { margin: 0 0 12px; line-height: 1.5; }
/* trap for bots: off screen rather than display:none, which some of them skip */
.vwe-occasions .vwe-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
	.vwe-occasions .vwe-dialog-inner { padding: 22px 18px; }
	.vwe-occasions .vwe-form-row { flex-direction: column; align-items: stretch; }
}

/* --- extra calls to action --------------------------------------------------- */
.vwe-occasions .vwe-btn-whatsapp { background: #128c7e; color: #fff; border: 1px solid #128c7e; }
.vwe-occasions .vwe-btn-whatsapp:hover { background: #0e6f64; border-color: #0e6f64; color: #fff; }
.vwe-occasions .vwe-linkbtn { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--vwe-accent); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.vwe-occasions .vwe-linkbtn:hover { background: none; color: var(--vwe-accent-2); }
.vwe-occasions .vwe-alert-link { margin: -10px 0 18px; }
.vwe-occasions .vwe-alert-cta { margin: -12px 0 28px; }

/* --- embedded vehicles (shortcode / block) ------------------------------------- */
.vwe-occasions.vwe-embed { margin: 0 0 32px; color: var(--vwe-ink); }
.vwe-occasions .vwe-embed-title { font-size: 1.5rem; margin: 0 0 18px; color: var(--vwe-ink); }
.vwe-occasions .vwe-embed-track { position: relative; }
.vwe-occasions.vwe-embed .vwe-vehicle-overview { grid-template-columns: repeat(var(--vwe-cols, 3), minmax(0, 1fr)); }
.vwe-occasions .vwe-embed-more { margin: 24px 0 0; text-align: center; }
.vwe-occasions.vwe-embed .vwe-empty { padding: 28px; }
.vwe-occasions.vwe-embed--search .vwe-filters { margin-bottom: 0; }

/* carousel: native horizontal scrolling with snap points; the arrows only scroll it */
.vwe-occasions.vwe-embed--carousel .vwe-vehicle-overview { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: thin; }
.vwe-occasions.vwe-embed--carousel .vwe-vehicle-block { flex: 0 0 calc((100% - (var(--vwe-cols, 3) - 1) * 28px) / var(--vwe-cols, 3)); scroll-snap-align: start; }
.vwe-occasions.vwe-embed--carousel .vwe-vehicle-block:hover { transform: none; }
.vwe-occasions .vwe-embed-nav { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; margin: 0; padding: 0 0 4px; border: 1px solid var(--vwe-line); border-radius: 50%; background: #fff; color: var(--vwe-ink); font: 400 30px/1 sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.vwe-occasions .vwe-embed-nav:hover { background: var(--vwe-accent); border-color: var(--vwe-accent); color: #fff; }
.vwe-occasions .vwe-embed-nav:focus-visible { outline: 3px solid var(--vwe-accent); outline-offset: 2px; }
.vwe-occasions .vwe-embed-prev { left: -14px; }
.vwe-occasions .vwe-embed-next { right: -14px; }

@media (max-width: 1024px) {
	.vwe-occasions.vwe-embed .vwe-vehicle-overview { grid-template-columns: repeat(min(var(--vwe-cols, 3), 2), minmax(0, 1fr)); }
	.vwe-occasions.vwe-embed--carousel .vwe-vehicle-block { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 600px) {
	.vwe-occasions.vwe-embed .vwe-vehicle-overview { grid-template-columns: minmax(0, 1fr); }
	.vwe-occasions.vwe-embed--carousel .vwe-vehicle-block { flex-basis: 86%; }
	.vwe-occasions .vwe-embed-prev { left: 4px; }
	.vwe-occasions .vwe-embed-next { right: 4px; }
}
