/* Emtour – eigen aanpassingen bovenop de 3DVista-tour (looptip op het beginscherm) */
#emHint { position: fixed; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
#emHint.on { opacity: 1; pointer-events: auto; }
#emHint:hover, #emHint:focus-within { animation-play-state: paused !important; }

/* Desktop: tekstballon rechts naast het menu, met pijl naar het menu */
#emHint.desk { display: flex; align-items: center; gap: 14px; transform: translateY(-50%);
  max-width: 360px; padding: 14px 12px 14px 16px; border-radius: 16px;
  background: #fff; color: #0F2C5E; box-shadow: 0 8px 28px rgba(8, 22, 50, .35);
  font-family: "Mosk Normal 400", Arial, sans-serif; font-size: 16px; line-height: 1.35; }
#emHint.desk.on { animation: emNudge 1.6s ease-in-out 3; }
#emHint.desk::before { content: ""; position: absolute; left: -11px; top: 50%; margin-top: -11px;
  border: 11px solid transparent; border-left: 0; border-right-color: #fff; }
#emHint .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #D41D48;
  display: flex; align-items: center; justify-content: center; }
#emHint .ico svg { width: 28px; height: 28px; }
#emHint b { display: block; font-family: "Mosk Extra-Bold 800", Arial, sans-serif; font-weight: normal;
  font-size: 18px; margin-bottom: 2px; }

/* Mobiel: compacte aanwijzing in de witte balk, naast de menuknop */
#emHint.mob { left: 60px; padding-right: 4px !important; top: 44px; transform: translateY(-50%); display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 9px; border-radius: 999px; background: #D41D48; color: #fff;
  font-family: "Mosk Extra-Bold 800", Arial, sans-serif; font-size: 12px; line-height: 1.2; box-sizing: border-box; max-width: 200px; white-space: nowrap; }
#emHint.mob.on { animation: emNudge 1.6s ease-in-out 3; }
#emHint.mob::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px;
  border: 7px solid transparent; border-left: 0; border-right-color: #D41D48; }
#emHint.mob .ico { width: 22px; height: 22px; background: none; }
#emHint.mob .ico svg { width: 20px; height: 20px; }
#emHint.mob b { display: inline; font-size: inherit; margin: 0; }

@keyframes emNudge { 0%, 100% { margin-left: 0; } 50% { margin-left: 7px; } }
/* Sluitknop */
#emHint .x { flex: none; align-self: flex-start; width: 28px; height: 28px; margin: -4px -2px 0 2px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #8A97AD; font: 22px/28px Arial, sans-serif; cursor: pointer; }
#emHint .x:hover { background: #EEF1F6; color: #0F2C5E; }
#emHint .x:focus-visible { outline: 2px solid #D41D48; outline-offset: 1px; }
#emHint.mob .x { align-self: center; margin: 0; color: rgba(255,255,255,.85); }
#emHint.mob .x:hover { background: rgba(255,255,255,.18); color: #fff; }
#emHint .txt { min-width: 0; }

@media (prefers-reduced-motion: reduce) { #emHint.on { animation: none !important; } }

/* ======================================================================
   Gedeelde kleuren en letters
   ====================================================================== */
:root {
  --em-navy: #0F2C5E; --em-navy-2: #1B3B73; --em-red: #D41D48; --em-red-dark: #B5163C;
  --em-ink: #1E2A3D; --em-muted: #5B6B85; --em-line: #E3E8F0; --em-soft: #F3F6FA; --em-white: #FFFFFF;
  --em-display: "Mosk Extra-Bold 800", Arial, sans-serif; --em-text: "Mosk Normal 400", Arial, sans-serif;
}

/* ---------- Laadscherm ---------- */
#preloadContainer { background: var(--em-navy) !important; }
#emLoad { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; color: var(--em-white); font-family: var(--em-text); text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--em-navy-2) 0%, var(--em-navy) 60%); }
#emLoad .logo { width: min(300px, 62vw); height: auto; margin-bottom: 18px; }
#emLoad .t { font-family: var(--em-display); font-size: 24px; letter-spacing: .01em; }
#emLoad .d { font-size: 16px; opacity: .8; }
#emLoad .track { width: min(360px, 78vw); height: 8px; margin-top: 18px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
#emLoad .bar { width: 0; height: 100%; border-radius: inherit; background: var(--em-red); transition: width .25s ease; }
#emLoad .pct { font-size: 14px; opacity: .75; font-variant-numeric: tabular-nums; }

/* ---------- Wegwijsknoppen ---------- */
.emWay { position: fixed; left: 0; top: 0; z-index: 3; display: none; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--em-white); color: var(--em-navy);
  box-shadow: 0 8px 26px rgba(8, 22, 50, .32); cursor: pointer; font-family: var(--em-display); font-size: 17px;
  line-height: 1.15; text-align: left; white-space: nowrap; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.emWay.r { padding: 8px 8px 8px 18px; text-align: right; }
.emWay.on { display: flex; }
.emWay .txt small { display: block; font-family: var(--em-text); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--em-red); margin-bottom: 2px; }
.emWay .a { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--em-red); color: var(--em-white);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.emWay .a svg { width: 22px; height: 22px; }
.emWay:hover, .emWay:focus-visible { background: var(--em-red); color: var(--em-white); box-shadow: 0 10px 30px rgba(212, 29, 72, .45); outline: none; }
.emWay:hover .txt small, .emWay:focus-visible .txt small { color: rgba(255,255,255,.85); }
.emWay:hover .a, .emWay:focus-visible .a { background: var(--em-white); color: var(--em-red); }
.emWay.l:hover .a svg { animation: emPushL .7s ease-in-out infinite; }
.emWay.r:hover .a svg { animation: emPushR .7s ease-in-out infinite; }
@keyframes emPushL { 50% { transform: translateX(-3px); } }
@keyframes emPushR { 50% { transform: translateX(3px); } }
/* Mobiel: compacter */
.emWay.mob { gap: 8px; padding: 5px 12px 5px 5px; font-size: 12.5px; width: max-content; max-width: 43vw; white-space: normal; }
.emWay.mob.r { padding: 5px 5px 5px 12px; }
.emWay.mob .a { width: 30px; height: 30px; }
.emWay.mob .a svg { width: 17px; height: 17px; }
.emWay.mob .txt small { font-size: 10px; }

/* ---------- Venster "Hoe werkt de Emtour?" ---------- */
#emHow { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(9, 24, 52, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease; font-family: var(--em-text); color: var(--em-ink); }
#emHow[hidden] { display: none; }
#emHow.on { opacity: 1; }
#emHow .sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  width: min(1100px, 100%); max-height: 100%; overflow: auto; border-radius: 24px; background: var(--em-white);
  box-shadow: 0 30px 80px rgba(5, 15, 35, .45); transform: translateY(12px); transition: transform .25s ease; }
#emHow.on .sheet { transform: none; }
#emHow .col { padding: 44px 44px 40px; min-width: 0; }
#emHow .side { background: var(--em-soft); display: flex; flex-direction: column; gap: 16px; }
#emHow .close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--em-white); color: var(--em-navy); font: 26px/40px Arial, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(8,22,50,.15); }
#emHow .close:hover { background: var(--em-red); color: var(--em-white); }
#emHow .close:focus-visible, #emHow button:focus-visible, #emHow a:focus-visible { outline: 3px solid var(--em-red); outline-offset: 2px; }
#emHow .eyebrow, #emHow .label { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--em-red); }
#emHow .eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--em-red); }
#emHow h2 { margin: 10px 0 14px; font: normal 40px/1.08 var(--em-display); color: var(--em-navy); text-wrap: balance; }
#emHow h3 { margin: 28px 0 14px; font: normal 20px/1.2 var(--em-display); color: var(--em-navy); }
#emHow .intro { margin: 0; font-size: 17px; line-height: 1.55; color: var(--em-muted); max-width: 60ch; }
#emHow .steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#emHow .steps li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--em-line); border-radius: 16px; min-width: 0; }
#emHow .steps .i, #emHow .extra .i { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(212, 29, 72, .1); color: var(--em-red);
  display: flex; align-items: center; justify-content: center; }
#emHow .steps .i svg, #emHow .extra .i svg { width: 21px; height: 21px; }
#emHow h4 { margin: 2px 0 4px; font: normal 16px/1.2 var(--em-display); color: var(--em-navy); }
#emHow .steps p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--em-muted); }
#emHow .extra { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--em-muted); }
#emHow .video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; background: var(--em-navy); }
#emHow .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#emHow .speak { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--em-navy);
  border-radius: 99px; background: transparent; color: var(--em-navy); font: 15px var(--em-display); cursor: pointer; }
#emHow .speak svg { width: 18px; height: 18px; }
#emHow .speak:hover { background: var(--em-navy); color: var(--em-white); }
#emHow .help { margin-top: auto; padding: 20px; border-radius: 16px; background: var(--em-white); border: 1px solid var(--em-line); }
#emHow .help p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--em-muted); }
#emHow .help a { font: 15px var(--em-display); color: var(--em-red); text-decoration: none; }
#emHow .help a:hover { text-decoration: underline; }
#emHow .go { padding: 15px 22px; border: 0; border-radius: 99px; background: var(--em-red); color: var(--em-white);
  font: 17px var(--em-display); cursor: pointer; box-shadow: 0 8px 22px rgba(212, 29, 72, .35); }
#emHow .go:hover { background: var(--em-red-dark); }

@media (max-width: 860px) {
  #emHow { padding: 0; align-items: stretch; }
  #emHow .sheet { grid-template-columns: 1fr; border-radius: 0; width: 100%; height: 100%; max-height: none; }
  #emHow .col { padding: 28px 20px 24px; }
  #emHow .main { padding-top: max(28px, calc(env(safe-area-inset-top) + 20px)); }
  #emHow .side { padding-bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); }
  #emHow h2 { font-size: 30px; padding-right: 40px; }
  #emHow .intro { font-size: 16px; }
  #emHow .steps { grid-template-columns: 1fr; }
  #emHow .close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #emHow, #emHow .sheet, .emWay, #emLoad .bar { transition: none !important; }
  .emWay:hover .a svg { animation: none !important; }
}
