/* Shared additions for all pages. The original per-page <style> blocks stay as they are. */

/* Current page in the main nav */
nav a.nl[aria-current="page"] { color: #ae1800 !important; border-bottom-color: #ec3013 !important; }

/* Narrow desktop: keep the nav on as few lines as possible */
@media (min-width: 901px) and (max-width: 1240px) {
  header nav.nav-main { gap: 8px 18px !important; font-size: 13px !important; }
}

/* Fixed "Book" button on mobile (added by site.js). Hidden on desktop. */
.bookbar { display: none; }
@media (max-width: 900px) {
  .bookbar { display: flex; justify-content: center; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #ec3013; color: #fff !important; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.01em; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 2px solid #201e1d; transition: transform .25s ease, opacity .25s ease; }
  .bookbar:hover { background: #dd2b0f; }
  .bookbar-off { transform: translateY(110%); opacity: 0; pointer-events: none; }
  html.has-bookbar body { padding-bottom: 60px; }
}
@media (prefers-reduced-motion: reduce) { .bookbar { transition: none; } }

/* Mobile: the main nav becomes a scrollable row under the logo instead of disappearing */
@media (max-width: 900px) {
  header nav.nav-main { display: flex !important; order: 3; width: 100%; margin: 0 !important; gap: 22px !important; flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 4px; }
  header nav.nav-main::-webkit-scrollbar { display: none; }
  header nav.nav-main a.nl { flex-shrink: 0; }
  /* Keep the sticky header short: the fixed Book button replaces the header button */
  header > div { gap: 10px 16px !important; padding-top: 10px !important; padding-bottom: 8px !important; }
  header nav.nav-main + div { margin-left: auto; padding-left: 0 !important; gap: 12px !important; }
  header a[data-track="book-header"] { display: none !important; }
  /* Review strip: no side padding once the columns stack */
  #anbefalinger blockquote, #reviews blockquote { padding-left: 0 !important; padding-right: 0 !important; }
}
@media (max-width: 420px) {
  header > div > a:first-child img { height: 38px !important; }
  header > div > a:first-child > span { padding-left: 10px !important; }
  header > div > a:first-child > span > span:first-child { font-size: 16px !important; }
}

/* Contact form (posts to /kontakt.php) */
.cform { display: grid; gap: 16px; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: #2d2b2b; }
.cform input, .cform select, .cform textarea { font: inherit; font-size: 16px; letter-spacing: normal; color: #201e1d; background: #fff; border: 2px solid #201e1d; border-radius: 0; padding: 12px 14px; width: 100%; box-sizing: border-box; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible { outline: 2px solid #ec3013; outline-offset: 0; border-color: #ec3013; }
.cform button { justify-self: start; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: #ec3013; border: 0; padding: 16px 28px; cursor: pointer; }
.cform-note { margin: 0; font-size: 14px; color: #605d5d; }
.cform-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { display: none; margin: 0 0 20px; padding: 16px 18px; font-weight: 600; border: 2px solid #201e1d; }
.form-msg:target { display: block; }
.form-ok { background: #c1cec9; }
.form-err { background: #ffe0d9; }
@media (max-width: 560px) { .cform-row { grid-template-columns: 1fr; } .cform button { justify-self: stretch; } }

/* Upcoming events list (events pages). Each event is an <li class="ev">; see the template comment in the page. */
.ev-list { margin: 0; padding: 0; list-style: none; border-top: 2px solid #201e1d; }
.ev-list:empty { display: none; }
.ev-list:not(:empty) + .ev-empty { display: none !important; }
.ev { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 24px 0; border-bottom: 2px solid #201e1d; }
.ev-title { margin: 0 0 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.ev-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.ev-facts dt { font-size: 12px; letter-spacing: 0.1em; color: #605d5d; font-weight: 600; }
.ev-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.ev-btn { display: inline-flex; background: #ec3013; color: #fff !important; font-weight: 700; font-size: 16px; padding: 14px 22px; }
