/* /bestemmingen/ (inc/bestemmingen.php, template-parts/bestemmingen.php): the destination board. One bold thing, the
   table: each row the arrival airport on a navy split-flap card (.flap.is-arrival, main.css), the country, its places,
   the flight time and the warmth of the chosen month with the place it is measured. The controls take the hub tabs'
   language (assets/js/bestemmingen.js shows them). Airports below reuse the hub rows (hub.css). */

.hub-hero.is-board .dest-lead{max-width:62ch}
/* a small tablet: the six chips on one row, not "Vanaf je luchthaven" alone on a second (re-audit 1 R1-16) */
@media (min-width:621px) and (max-width:900px){
  .hub-hero.is-board .dest-chips ul{gap:6px}
  .hub-hero.is-board .dest-chips a{padding:0 11px;font-size:.875rem}
}
.board-page{padding-bottom:var(--sp)}
.board-wrap{position:relative;padding-top:40px}
.board-anchor{position:absolute;top:0;scroll-margin-top:calc(var(--header-h) + 8px)}
.board-intro{margin:8px 0 0;color:var(--muted);max-width:var(--read)}
.board-intro[hidden]{display:none}

/* controls */
.board-controls{display:flex;flex-wrap:wrap;gap:16px 28px;align-items:flex-end;margin:24px 0 18px}
.board-controls[hidden]{display:none}
.board-search{flex:0 1 360px}
.board-months{flex-basis:100%;order:3}
.board-count{flex-basis:100%;order:4;margin:0;font-size:.9375rem;color:var(--muted)}
.board-label,.board-controls legend{display:block;margin:0 0 6px;padding:0;font:700 .875rem/1.2 var(--font);color:var(--deep)}
.board-controls fieldset{border:0;margin:0;padding:0;min-width:0}
.board-search-input{width:100%;min-height:48px;padding:0 14px 0 40px;font:400 1rem var(--font);color:var(--ink);border:1px solid #B8C7DC;border-radius:12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235A6B80' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px 50%}
.board-seg{display:inline-flex;flex-wrap:nowrap;gap:2px;padding:3px;background:var(--air);border:1px solid var(--line);border-radius:12px}
.board-seg label{position:relative;cursor:pointer}
.board-seg input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.board-seg label>span{display:grid;place-items:center;min-width:44px;min-height:40px;padding:0 10px;font:700 .9375rem/1 var(--display);color:var(--deep);border-radius:9px}
.board-seg label:hover>span{background:#fff}
.board-seg input:checked+span{background:var(--blue);color:#fff}
.board-seg input:focus-visible+span{outline:3px solid var(--blue);outline-offset:1px}
.board-seg.is-order label>span{padding:0 14px}
.board-month-phone{display:none}
.board-step{display:flex;gap:8px;align-items:center}
.board-month-phone button{width:44px;height:44px;flex:none;border:1px solid #B8C7DC;border-radius:12px;background:#fff;color:var(--blue);font:800 1.25rem/1 var(--display);cursor:pointer}
.board-month-phone select{flex:1;min-width:0;min-height:44px;padding:0 12px;font:700 1rem var(--font);color:var(--deep);border:1px solid #B8C7DC;border-radius:12px;background:#fff}

/* the table */
.board[hidden]{display:none!important}
.board{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.board tbody{scroll-margin-top:calc(var(--header-h) + 8px)}
.board tbody[hidden]{display:none}
.board thead th{padding:12px 16px;font:700 .8125rem/1.2 var(--font);color:var(--muted);text-align:left;background:#F7FAFF;border-bottom:1px solid var(--line)}
.board thead .c-num{text-align:right;white-space:nowrap}
.board-group[hidden]{display:none!important}
.board-group th{padding:18px 16px 8px;font:800 .875rem/1 var(--display);letter-spacing:.08em;text-transform:uppercase;color:var(--deep);text-align:left;background:#fff;border-bottom:2px solid var(--deep)}
.board-group th span{color:var(--muted);letter-spacing:.02em}
.board-row{position:relative}
.board-row[hidden]{display:none}
.board-row td{padding:12px 16px;vertical-align:top;background:#fff;border-bottom:1px solid var(--line);transition:background-color .15s ease}
.board tbody:last-child .board-row:last-child td{border-bottom:0}
.board-row:hover td{background:#F7FAFF}
/* Every cell from the top, so the name, the time and the figure share a line whatever stands under them (a note under
   the time, a sub-line under the places; re-audit 1 R1-06); the top paddings of .b-fly and .b-temp put the three on one
   baseline (re-audit 2 R2-04) */
.b-dest{display:flex;align-items:flex-start;gap:16px}
.board .flap.is-blank{opacity:.35}
/* the text runs to the next column, so the rule above the Canarische line on a phone or tablet does too (re-audit 2 R2-06) */
.b-text{display:grid;flex:1 1 auto;min-width:0}
.b-name{justify-self:start;font:800 1.125rem/1.2 var(--display);color:var(--deep);text-decoration:none}
/* the focus ring goes round the whole row (the link's stretched ::after), clear of the text (re-audit 1 R1-11) */
.b-name:focus-visible{outline:0}
.b-name:focus-visible::after{outline:3px solid var(--blue);outline-offset:-3px}
.board-row:has(.b-name:focus-visible) td{background:#F7FAFF}
.board-row:has(.b-name:focus-visible) .b-name{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
/* one link per row, stretched over the row (one tab stop); above the positioned tooltip holders, so its focus ring and
   a click reach the whole row */
.b-name::after{content:"";position:absolute;inset:0;z-index:1}
.board-row:hover .b-name{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.b-line,.board-also{color:var(--muted);font-size:.9375rem;line-height:1.35;text-wrap:pretty}
.board-also{margin-top:2px}
/* "Warmste eerst" shows the sub-line as a row of its own (bestemmingen.js) */
.board.is-warm-order .board-also{display:none}
.also-part{white-space:nowrap}
.also-iata{font:800 .8125rem/1 var(--display);letter-spacing:.06em;color:var(--deep)}
.also-t{font-family:var(--display);color:var(--deep);border-bottom:2px solid transparent}
.also-t.is-warm{border-bottom-color:var(--sun)}
.b-fly{width:170px;padding-top:8px!important;white-space:nowrap;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
.b-fly.is-none{padding-top:11px!important;color:var(--muted);font-size:.9375rem}
/* the time under the places only on a phone, where the column headings are hidden */
.b-fly-line{display:none}
.b-temp{width:150px;padding-top:8px!important;text-align:right}
.t-val{display:inline-block;min-width:3.2ch;padding-bottom:3px;font:800 1.375rem/1 var(--display);color:var(--deep);font-variant-numeric:tabular-nums;border-bottom:3px solid transparent}
.t-val.is-warm{border-bottom-color:var(--sun)}
.t-val.is-none{color:var(--muted);font-weight:700}
.t-where,.b-to{display:block;margin-top:2px;font-size:.8125rem;line-height:1.3;color:var(--muted)}
.b-go{width:60px;padding-top:20px!important;text-align:right}
.board-row .hub-go{display:inline-grid}
.board-row:hover .hub-go{transform:translateX(3px)}
.board-none{margin:16px 0 0}

/* The tooltip on a figure (kjvr_board_tip()): screen-reader text, read once in its cell, until the mouse is on the
   figure (.is-tip, bestemmingen.js) or the row's link has keyboard focus; Escape hides it (.is-tip-off). It opens above
   the figure, so the last row never clips, and grows away from the table's right edge. It and its holders never take a
   click or tap: the row's link (z-index 1) gets it as before. */
.b-temp,.also-part.is-t{position:relative;pointer-events:none}
.t-tip{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* its box and arrow clear the figure: the box ends at the cell's top edge, the figure starts 8-12px below it (the
   cell's top padding), the arrow takes 5px of that. That space counts as the tooltip's for the mouse (bestemmingen.js
   tipZone(): the box, the figure and the band between them), so moving up to the box never closes it on the way */
.b-temp>.t-tip{top:-1px;right:16px;transform:translateY(-100%)}
.also-part.is-t>.t-tip{bottom:calc(100% + 9px);left:0}
.t-tip::after{content:"";position:absolute;top:100%;border:5px solid transparent;border-top-color:var(--deep)}
.b-temp>.t-tip::after{right:12px}
.also-part.is-t>.t-tip::after{left:6px}
/* one at a time: the mouse's wins over the focused row's */
.board:not(.is-tip-off) .is-tip>.t-tip,.board:not(.is-tip-off):not(:has(.is-tip)) .board-row:has(.b-name:focus-visible) .b-temp>.t-tip{z-index:3;width:max-content;max-width:var(--tip-max,min(17rem,calc(100vw - 32px)));height:auto;margin:0;padding:7px 10px;overflow:visible;clip:auto;white-space:normal;font:400 .8125rem/1.35 var(--font);letter-spacing:0;color:#fff;text-align:left;text-transform:none;background:var(--deep);border-radius:8px;box-shadow:0 4px 14px rgba(14,42,71,.2)}

/* airports */
.board-airports{padding-top:var(--sp);scroll-margin-top:calc(var(--header-h) - var(--sp) + 24px)}
.board-airports h2{margin:0}
.board-airports .board-intro{margin:8px 0 16px}
.board-airports .hub-row.is-mine{border:2px solid var(--blue);background:#F7FAFF}
.board-mine{position:absolute;top:-10px;right:12px;padding:2px 8px;font:700 .75rem/1.4 var(--font);color:#fff;background:var(--blue);border-radius:999px}
.board-airports .hub-item{position:relative}
.board-others{margin:16px 0 0;font-size:.9375rem}

/* providers and holiday types */
.board-offers{margin-top:var(--sp);padding:26px 24px 20px;background:var(--air);border-radius:var(--radius)}
.board-offers .dest-offers-title{margin:0;font-size:1.5rem}
.board-offers>p{max-width:var(--read);margin:6px 0 0}
.board-offers .provider-tiles{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:18px 0 16px;padding:0}
.board-offers .provider-tiles img{width:auto;max-width:min(100%,150px);max-height:44px;aspect-ratio:764/220;object-fit:contain}
.board-types{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;margin:0;font-size:.9375rem}
.board-types a{font-weight:700;white-space:nowrap}

/* FAQ and the editor's text: one reading column, as on /auto-huren/ and /parkeren/ */
.board-closing{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp);padding-top:var(--sp)}
.board-closing>*{max-width:var(--read)}
.board-closing .faq h2{margin:0 0 16px}
.board-closing .hub-text>:first-child{margin-top:0}

/* phone and small tablet: each row a grid of two lines, table semantics kept */
@media (max-width:760px){
  .board-search{flex-basis:100%}
  .board-months{display:none}
  .board-month-phone{display:block;flex-basis:100%}
  .board thead{display:none}
  .board,.board tbody{display:block}
  .board{border:0;border-radius:0;overflow:visible}
  .board tbody[hidden]{display:none}
  .board-group{display:block}
  .board-group th{display:block;padding:20px 0 8px}
  .board-seg label>span{min-height:44px}
  /* The flight time under the places (.b-fly-line, the same words as the column), the figure on the right, no arrow
     column (the whole row is the link): the text gets the width its names need (re-audit 1 R1-03). */
  .board-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"d t";column-gap:12px;align-items:start;border-bottom:1px solid var(--line)}
  .board-row[hidden]{display:none}
  .board-row td{display:block;padding:0;border:0;background:none!important}
  .board-row td.b-dest{grid-area:d;display:flex;align-items:flex-start;gap:12px;padding:12px 0}
  /* one width for the figure on every row, wide enough for the longest caption ("bij Kuala Lumpur"), so the text column and its wrapping do not change with the caption (re-audit 3 R3-03) */
  .b-temp{grid-area:t;width:5.75rem;padding:12px 0!important;text-align:right}
  .b-temp>.t-tip{right:0}
  /* the sub-line's tooltip grows right from its figure, about 74px in: never past the gutter on a narrow phone */
  .also-part.is-t>.t-tip{--tip-max:min(17rem,calc(100vw - 106px))}
  .board-row td.b-fly,.board-row td.b-go{display:none}
  .b-fly-line{display:block;margin-top:2px;font-size:.875rem;line-height:1.35;color:var(--ink)}
  .b-fly-line>span{white-space:nowrap}
  .b-name::after{inset:0 -8px}
  .b-name:focus-visible::after{outline-offset:0;border-radius:8px}
  .board-row .flap{--flap-w:46px;--flap-h:38px;--flap-fs:.875rem;--flap-r:8px}
  .b-name{font-size:1.0625rem}
  .b-line,.board-also{font-size:.875rem}
  /* the Canarische line: set apart from the places, one part per line, no separators to dangle */
  .board-also{margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
  .also-name{font-weight:700;color:var(--deep)}
  .also-part{display:block;white-space:normal}
  /* the time part opens its own line here, so it takes a capital ("Ca. 5 uur vliegen"; inline it is "· ca. 5 uur"; re-audit 3 R3-01) */
  .also-part::first-letter{text-transform:uppercase}
  .also-sep{display:none}
  /* the order toggle as wide as the search box and the month picker above and below it (re-audit 2 R2-09) */
  .board-order{flex-basis:100%}
  .board-seg.is-order{display:flex}
  .board-seg.is-order label{flex:1 1 0}
  .t-val{font-size:1.25rem}
  .t-where{font-size:.75rem}
  .board-offers{margin-left:-16px;margin-right:-16px;padding:20px 16px 14px;border-radius:0}
  .board-offers .provider-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  /* an odd last tile spans the row instead of standing alone in half of it (re-audit 1 R1-15) */
  .board-offers .provider-tiles li:last-child:nth-child(odd){grid-column:1/-1}
}
/* tablet: narrower number columns so the place lines keep their words together */
@media (min-width:761px) and (max-width:1000px){
  .b-fly{width:118px}
  .b-temp{width:120px}
  /* the Canarische line as on a phone: set apart, one part per line, so no line ends with a dot (re-audit 2 R2-05) */
  .board-also{margin-top:8px;padding-top:6px;border-top:1px solid var(--line)}
  .also-name{font-weight:700;color:var(--deep)}
  .also-part{display:block;white-space:normal}
  .also-part::first-letter{text-transform:uppercase}
  .also-sep{display:none}
}
/* below 901px the body text is 16px (main.css), so its line box is smaller: 2px more to keep the one baseline (re-audit 2
   R2-04; .b-fly.is-none sets its own size and keeps its 11px) */
@media (min-width:761px) and (max-width:900px){
  .b-fly,.b-temp{padding-top:10px!important}
}
@media (prefers-reduced-motion:no-preference){
  .t-val.is-flip{animation:board-flip .18s ease-in both}
  @keyframes board-flip{from{transform:perspective(160px) rotateX(-90deg);opacity:.3}}
}
@media (prefers-reduced-motion:reduce){.board-row:hover .hub-go{transform:none}}
