/* Ruimte-donker met glazen panelen boven een 3D-aarde (naar AeroNav3D).
   Blauw = bediening, koraal = haar route en haar plaatsen. */
:root {
  --ruimte: #04070d; --glas: rgba(14, 20, 32, .64); --glasrand: rgba(255, 255, 255, .09);
  --tekst: #e8eef7; --zacht: #8d9bb0; --blauw: #4da3ff; --koraal: #ff8a6b;
  --kop: "Alice", Georgia, serif; --body: "Lato", system-ui, sans-serif; --mono: "Lato", system-ui, sans-serif; /* zelfde letters als haar Dolomietenblog */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--ruimte); color: var(--tekst); font: 15px/1.5 var(--body); }
#globe { position: fixed; inset: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blauw); outline-offset: 2px; }
.glas { background: var(--glas); border: 1px solid var(--glasrand); border-radius: 16px;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); }

/* Merk bovenaan in het midden */
.merk { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; z-index: 5; }
.logo { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.logo svg { width: 16px; fill: var(--tekst); transform: rotate(-10deg); }
.naam { font-family: var(--kop); font-size: 20px; letter-spacing: 0; white-space: nowrap; }
.naam b { font-weight: 400; }
.naam i { font-style: normal; font-weight: 400; color: var(--blauw); margin-left: 6px; }
.chip { white-space: nowrap; font: 500 10px var(--mono); letter-spacing: .12em; padding: 3px 8px; border-radius: 999px; background: rgba(77, 163, 255, .16); color: var(--blauw); }
.chip.leeft::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: puls 1.6s infinite; }
@keyframes puls { 50% { opacity: .25; } }

/* Zijbalk links */
.zijbalk { position: fixed; top: calc(76px + env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); bottom: 16px; width: 340px; overflow-y: auto; padding: 6px 18px 18px; z-index: 4; scrollbar-width: thin; }
.zijbalk section { padding-block: 16px; }
.zijbalk section + section { border-top: 1px solid var(--glasrand); }
.greep { display: none; }
.kop { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--zacht); margin: 0 0 8px; }
.kop span { color: var(--tekst); }
.status { font-size: 16px; margin: 0 0 12px; }
.status strong { font-family: var(--kop); font-weight: 400; display: block; font-size: 22px; line-height: 1.25; }
.balk { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.balk span { display: block; height: 100%; width: 0; background: var(--koraal); transition: width .8s; }
.klokken { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.klokken small { display: block; color: var(--zacht); font-size: 11px; }
.klokken b { font: 700 18px var(--mono); font-variant-numeric: tabular-nums; }
.tijdlijn { list-style: none; margin: 10px 0 14px; padding: 0; font-size: 13px; }
.tijdlijn li { display: grid; grid-template-columns: 46px 46px 1fr; gap: 6px; padding: 5px 0; color: var(--zacht); }
.tijdlijn li .t { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tijdlijn li.nu { color: var(--tekst); font-weight: 600; }
.tijdlijn li.straks { color: #b7c2d3; }
.rij { display: flex; flex-wrap: wrap; gap: 8px; }
.knop { text-decoration: none; padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--glasrand); font-weight: 500; font-size: 13px; }
.knop:hover { background: rgba(255, 255, 255, .13); }
.knop.vol { background: var(--blauw); border-color: var(--blauw); color: #051425; }
.dagen { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dagen button { width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: 52px 1fr; gap: 2px 10px; cursor: pointer; }
.dagen button:hover, .dagen button[aria-current="true"] { background: rgba(255, 255, 255, .07); }
.dagen .nr { grid-row: span 2; font: 400 24px var(--kop); color: var(--koraal); line-height: 1.2; }
.dagen .ti { font-weight: 600; }
.dagen .pl { font: 12px var(--mono); color: var(--zacht); }
.eerder { margin: 14px 0 0; font-size: 13px; }
.eerder a { color: var(--zacht); }
.eerder a:hover { color: var(--tekst); }
.leeg { color: var(--zacht); font-size: 13px; margin: 0; }

/* Bediening rechts */
.bediening { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; z-index: 4; }
.bediening button { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; font: 600 18px var(--body); }
.bediening button:nth-child(4) { font: 600 12px var(--mono); }
.bediening svg { width: 18px; fill: var(--tekst); }
.bediening button:hover { background: rgba(30, 40, 60, .8); }
.bediening button[aria-pressed="true"] { background: var(--blauw); color: #051425; }
.bediening button[aria-pressed="true"] svg { fill: #051425; }

/* Dagdetail rechts */
.detail { position: fixed; right: 76px; top: calc(76px + env(safe-area-inset-top, 0px)); width: min(420px, calc(100vw - 460px)); max-height: calc(100% - 100px); overflow-y: auto; padding: 18px 20px 20px; z-index: 6; }
.detail h2 { font: 400 28px/1.15 var(--kop); margin: 0 0 4px; }
.detail .plaats { font: 12px var(--mono); color: var(--zacht); margin: 0 0 12px; }
.detail .tekst { white-space: pre-line; margin: 0; }
.sluit { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); cursor: pointer; font-size: 20px; line-height: 1; }
.fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.fotos button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: rgba(255, 255, 255, .05); }
.fotos button:first-child { grid-column: span 2; grid-row: span 2; }
.fotos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Markers op de bol */
.marker { pointer-events: auto; cursor: pointer; transform: translate(-50%, -50%); }
.vliegtuig { width: 30px; height: 30px; display: grid; place-items: center; }
.vliegtuig svg { width: 26px; fill: #fff; filter: drop-shadow(0 0 6px rgba(77, 163, 255, .9)); }
.vliegtuig .lbl { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: rgba(4, 7, 13, .75); white-space: nowrap; }
.stad { font: 500 11px var(--mono); padding: 2px 7px; border-radius: 6px; background: rgba(4, 7, 13, .7); border: 1px solid var(--glasrand); white-space: nowrap; transform: translate(10px, -50%); pointer-events: none; }
.pin { display: grid; place-items: center; transform: translate(-50%, -50%); }
.pin span { width: 14px; height: 14px; border-radius: 50%; background: var(--koraal); border: 2px solid #fff; }
.pin b { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 600 12px var(--body); white-space: nowrap; padding: 2px 7px; border-radius: 6px; background: rgba(4, 7, 13, .75); }

.naam-land { transform: translate(-50%, -50%); font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, .8); white-space: nowrap; pointer-events: none; }
.naam-stad { transform: translate(-4px, -50%); font: 500 12px var(--body); color: #fff; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, .9); white-space: nowrap; pointer-events: none; }
.naam-stad::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 2px; box-shadow: 0 0 3px #000; }
.naam-stad.hoofd { font-weight: 700; }
.naam-stad.hoofd::before { width: 7px; height: 7px; border: 1.5px solid #fff; background: transparent; }
.breed { width: 100%; cursor: pointer; padding: 10px 12px; font-size: 14px; }
.berichtform { display: grid; gap: 6px; margin-top: 12px; }
.berichtform label { font-size: 12px; color: var(--zacht); }
.berichtform input, .berichtform textarea { width: 100%; font: inherit; color: var(--tekst); background: rgba(255, 255, 255, .06); border: 1px solid var(--glasrand); border-radius: 10px; padding: 8px 10px; resize: vertical; }
.berichtform .uitleg { font-size: 12px; color: var(--zacht); margin: 2px 0 4px; }
.berichtform button { justify-self: start; cursor: pointer; }
.optie { color: var(--zacht); font-size: 11px; margin-left: 4px; }
.waar { display: flex; gap: 6px; }
.waar input { flex: 1; min-width: 0; }
.waar .knop { white-space: nowrap; cursor: pointer; }
.suggesties { list-style: none; margin: 0; padding: 4px; border-radius: 10px; background: rgba(4, 7, 13, .9); border: 1px solid var(--glasrand); }
.suggesties button { width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 8px; cursor: pointer; }
.suggesties button:hover, .suggesties button:focus-visible { background: rgba(255, 255, 255, .08); }
.suggesties small { font: 11px var(--mono); color: var(--zacht); margin-left: 4px; }
.berichtlijst i { font-style: normal; font-weight: 400; color: var(--zacht); font-size: 12px; }
.schrijver { display: grid; place-items: center; }
.schrijver span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #051425; font: 700 11px var(--body); border: 2px solid var(--blauw); box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.schrijver b { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--body); padding: 2px 7px; border-radius: 6px; background: rgba(4, 7, 13, .78); opacity: 0; transition: opacity .2s; pointer-events: none; }
.schrijver:hover b, .schrijver:focus-within b { opacity: 1; }
.bericht { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.bericht .ini { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #051425; font: 700 11px var(--body); }
.valstrik { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.melding { font-size: 13px; color: var(--blauw); margin: 8px 0 0; min-height: 1px; }
.berichtlijst { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.berichtlijst button { width: 100%; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; cursor: pointer; }
.berichtlijst button:hover { background: rgba(255, 255, 255, .07); }
.berichtlijst span { font-size: 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.berichtlijst small { font: 11px var(--mono); color: var(--zacht); }
.ballon { display: flex; align-items: center; gap: 3px; padding: 3px 7px 3px 5px; border-radius: 999px; background: var(--blauw); color: #051425; box-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.ballon svg { width: 13px; fill: #051425; }
.ballon b { font: 700 12px var(--body); }
#dberichten { display: grid; gap: 10px; margin-top: 4px; }
.bericht { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.bericht small { font: 11px var(--mono); color: var(--zacht); margin-left: 8px; }
.bericht p { margin: 4px 0 0; white-space: pre-line; }
.hoogtelijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 330px; overflow-y: auto; scrollbar-width: thin; }
.hoogtelijst button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 6px 8px; cursor: pointer; }
.hoogtelijst button:hover { background: rgba(255, 255, 255, .07); }
.hoogtelijst img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.hoogtelijst .hn { display: grid; min-width: 0; }
.hoogtelijst .hn b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoogtelijst small { font-size: 12px; color: var(--zacht); }
.hoogtelijst .hs { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--zacht); white-space: nowrap; }
.hoogtelijst li.voorbij img { filter: grayscale(.7); opacity: .7; }
.hoogtelijst li.nu .hs { color: #051425; background: var(--koraal); padding: 2px 7px; border-radius: 999px; font-weight: 900; }
.hoogtelijst li.nu b { color: var(--koraal); }
.hoogtepunt { display: grid; place-items: center; }
.hoogtepunt img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.hoogtepunt b { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 11px var(--body); padding: 2px 7px; border-radius: 6px; background: rgba(4, 7, 13, .78); opacity: 0; transition: opacity .2s; pointer-events: none; }
.hoogtepunt:hover b { opacity: 1; }
.hlfoto { margin: 4px 0 0; }
.hlfoto img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.hlfoto figcaption { font-size: 11px; color: var(--zacht); margin-top: 6px; }
.hlfoto a { color: var(--zacht); }
.hltekst { margin: 10px 0 0; font-size: 16px; }
.toast.meld { cursor: pointer; background: var(--koraal); color: #1a0b06; border-color: var(--koraal); font-weight: 700; z-index: 7; }
.toast.meld b { font-family: var(--kop); font-weight: 400; font-size: 16px; }
@media (max-width: 760px) {
  .toast.meld { display: block; bottom: auto; top: calc(62px + env(safe-area-inset-top, 0px)); }
  .hoogtelijst { max-height: none; }
}
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 8px 14px; border-radius: 999px; font-size: 13px; z-index: 3; transition: opacity .6s; white-space: nowrap; }
.bron { position: fixed; right: 16px; bottom: 8px; margin: 0; font-size: 10px; color: var(--zacht); z-index: 2; }

dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; color: var(--tekst); }
dialog::backdrop { background: rgba(2, 4, 8, .92); }
.film { position: relative; }
.speel { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(4, 7, 13, .6); border: 1.5px solid rgba(255, 255, 255, .8); }
.speel::after { content: ""; position: absolute; left: 18px; top: 13px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
dialog video { max-height: 84vh; max-width: 100%; border-radius: 8px; display: block; background: #000; }
dialog img { max-height: 84vh; width: auto; max-width: 100%; border-radius: 8px; display: block; }
dialog p { margin: 10px 0 0; }
dialog button { position: fixed; top: 16px; right: 16px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--tekst); color: var(--ruimte); font-weight: 600; cursor: pointer; }

/* Gsm: zijbalk wordt een onderblad */
@media (max-width: 760px) {
  .merk { top: calc(10px + env(safe-area-inset-top, 0px)); }
  .naam { font-size: 15px; }
  .zijbalk { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 46%; border-radius: 18px; padding-top: 0; transition: max-height .35s; }
  .zijbalk.dicht { max-height: 138px; overflow: hidden; }
  .greep { display: block; position: sticky; top: 0; width: 100%; height: 22px; border: 0; background: transparent; cursor: pointer; z-index: 1; }
  .greep::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin: 9px auto; }
  .bediening { top: calc(64px + env(safe-area-inset-top, 0px)); transform: none; right: 8px; gap: 6px; }
  .bediening button { width: 38px; height: 38px; }
  .detail { left: 8px; right: 8px; width: auto; top: calc(64px + env(safe-area-inset-top, 0px)); max-height: 50%; }
  .toast, .bron { display: none; }
}
/* Knoppenbalk voor berichtjes: enkel op gsm, zweeft boven het dichte onderblad */
.actiebalk { display: none; }
@media (max-width: 760px) {
  .actiebalk { display: flex; gap: 8px; position: fixed; left: 8px; right: 8px; bottom: calc(146px + env(safe-area-inset-bottom, 0px)); z-index: 5; transition: opacity .3s; }
  .actiebalk button { flex: 1; height: 48px; border-radius: 14px; font: 600 15px var(--body); cursor: pointer; border: 1px solid var(--glasrand); }
  .actiebalk .vol { background: var(--koraal); border-color: var(--koraal); color: #1a0b06; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
  .actiebalk b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--blauw); color: #051425; font-size: 12px; }
  .zijbalk:not(.dicht) ~ .actiebalk, body.paneel-open .actiebalk { opacity: 0; pointer-events: none; }
  .zijbalk { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .zijbalk:not(.dicht) { max-height: 72%; }
  .berichtform input, .berichtform textarea { font-size: 16px; } /* voorkomt inzoomen op iPhone */
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Verhalen van de reizigers zelf */
.reizigers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.reizigers button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 0 9px; align-items: center; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid transparent; border-radius: 12px; padding: 7px 9px; cursor: pointer; }
.reizigers button:hover { background: rgba(255, 255, 255, .1); }
.reizigers button[aria-pressed="true"] { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.reizigers .ini, .vhregel .ini, .vhkop .ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #051425; font: 900 12px var(--body); }
.reizigers .ini { grid-row: span 2; }
.reizigers b { font-weight: 700; }
.reizigers small { font-size: 12px; color: var(--zacht); }
.reizigers .soc { display: flex; gap: 10px; padding: 3px 10px 0; font-size: 12px; }
.reizigers .soc a { color: var(--zacht); }
.reizigers .soc a:hover { color: var(--tekst); }
.dagen .vhregel .ini { grid-row: span 2; width: 38px; height: 38px; margin: 2px 7px; }
.verhaalpin b { display: flex; align-items: center; gap: 6px; }
.verhaalpin i { display: flex; }
.verhaalpin em { font: normal 900 9px var(--body); width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #051425; margin-left: -4px; box-shadow: 0 0 0 1.5px rgba(4, 7, 13, .9); }
.verhaalpin em:first-child { margin-left: 0; }
.verhaal { padding: 12px 0; }
.verhaal + .verhaal { border-top: 1px solid var(--glasrand); }
.vhkop { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.vhkop .ini { width: 28px; height: 28px; font-size: 10px; }
.vhkop small { font: 12px var(--mono); color: var(--zacht); }
.verhaal h3 { font: 400 21px/1.2 var(--kop); margin: 0 0 4px; }
.vhtekst { white-space: pre-line; margin: 0; }
.postlink { display: inline-block; margin-top: 12px; }

/* Verblijf: de vlucht staat niet meer centraal, enkel een korte samenvatting (knop toont de heenvlucht opnieuw) */
.vluchtkort p { margin: 0 0 8px; }
.vluchtkort .zacht { color: var(--zacht); font-size: 13px; }
body.modus-verblijf:not(.toonvlucht) #vluchtsectie :is(.status, .balk, .klokken, .tijdlijn, .rij) { display: none; }
body.modus-verblijf #onderweg, body.modus-verblijf #volgknop { display: none; }
.applink { margin-top: 12px; width: 100%; justify-content: center; }
.greepje { display: none; }
/* Gsm: ook het detailpaneel wordt een onderblad, en beide sluiten door naar beneden te vegen */
@media (max-width: 760px) {
  .zijbalk { transition: max-height .35s, transform .2s; }
  .detail { top: auto; bottom: 8px; max-height: 64%; padding-top: 0; border-radius: 18px; transition: transform .2s; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .greepje { display: block; position: sticky; top: 0; height: 22px; margin: 0 -20px 4px; z-index: 1; }
  .greepje::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); margin: 9px auto; }
  .detail .sluit { top: 8px; }
}
.reizigers .ini { overflow: hidden; } .reizigers .ini img { width: 100%; height: 100%; object-fit: cover; display: block; }
