/* "Even naar binnen" op Naar huis (src/site/even-binnen.mjs). Alleen deze pagina laadt dit bestand, en alleen als het
   aanstaat. Kleuren uit site.css; donker.css zet ze om. */
.eb-start { margin-top: 12px; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 9px 14px; color: var(--nacht); background: var(--emaille); border: 1px solid var(--lijn); border-radius: var(--hoek, 8px); text-decoration: none; }
.eb-start:hover { border-color: var(--nacht); }
.eb-start-copy { flex: 1; display: grid; gap: 2px; }
.eb-start strong { font: 600 17px/1.2 var(--kop); }
.eb-start small { font: 400 14px/1.3 var(--tekst); color: var(--schemer); }
.eb-start svg, .eb-dial svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; flex: none; }

.eb-dial { position: fixed; inset: auto 0 0; z-index: 70; margin: 0 auto; padding: 0; width: min(100%, 460px); max-width: 100%; max-height: 92dvh; overflow: auto; overscroll-behavior: contain; color: var(--nacht); background: var(--emaille); border: 1px solid var(--lijn); border-bottom: 0; border-radius: 16px 16px 0 0; }
/* De waas om het open paneel is een schaduw: zo is hij in licht en donker gelijk, ook in een oudere browser. */
.eb-dial[open] { box-shadow: 0 0 0 100vmax rgb(4 8 20 / 68%); }
.eb-dial::backdrop { background: none; }
html:has(.eb-dial[open]) { overflow: hidden; }
/* Zonder script opent de link het paneel als gewoon blok onderaan. */
.eb-dial:target:not([open]) { display: block; box-shadow: 0 -8px 30px rgb(4 8 20 / 30%); }
.eb-dial [hidden] { display: none !important; }

.eb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 19px 20px 4px; }
.eb-head h2 { margin: 0; font: 600 23px/1.15 var(--kop); }
.eb-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--lijn); border-radius: 50%; color: var(--nacht); }
.eb-copy { max-width: 38ch; margin: 0 22px 20px; font: 400 16px/1.45 var(--tekst); }
.eb-card { margin: 0 20px; padding: 18px 16px 14px; background: var(--papier); border: 1px solid var(--lijn); border-radius: var(--hoek, 8px); }
.eb-card + .eb-card { margin-top: 10px; }
.eb-meta { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--schemer); font-size: 14px; line-height: 1.4; }
.eb-meta svg, .eb-hours svg { width: 17px; height: 17px; }
.eb-card h3 { margin: 13px 0 2px; font: 600 21px/1.2 var(--kop); }
.eb-street { margin: 0; font-size: 16px; line-height: 1.4; }
.eb-hours { display: flex; align-items: center; gap: 8px; margin: 12px 0 15px; font: 600 15px/1.4 var(--tekst); }
.eb-card form { margin: 0; }
.eb-route { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 0; border-radius: var(--hoek, 8px); background: var(--nacht); color: var(--emaille); font: 600 16px/1.3 var(--kop); text-decoration: none; cursor: pointer; }
.eb-anders { margin: 14px 22px 0; font-size: 14px; line-height: 1.5; color: var(--schemer); }
.eb-anders a { display: inline-block; padding: 6px 0; }
.eb-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0; padding: 9px 20px max(15px, env(safe-area-inset-bottom)); }
.eb-bottom a { display: inline-flex; align-items: center; min-height: 44px; font: 600 15px/1.2 var(--tekst); color: var(--nacht); text-decoration: underline; text-underline-offset: 3px; }
.eb-bottom .eb-spoed { margin-left: auto; color: var(--schemer); }
.eb-start:focus-visible, .eb-dial a:focus-visible, .eb-dial button:focus-visible { outline: 2px solid var(--lantaarn-licht); outline-offset: 2px; }

@media (min-width: 721px) {
  .eb-dial { inset: 0; margin: auto; border-bottom: 1px solid var(--lijn); border-radius: 12px; }
}
@media (max-width: 355px) {
  .eb-head { padding: 14px 14px 3px; }
  .eb-copy { margin: 0 14px 14px; }
  .eb-card { margin: 0 14px; }
  .eb-anders { margin: 12px 14px 0; }
  .eb-bottom { padding: 8px 14px; }
  .eb-meta { font-size: 13px; }
}
