/* Zaglavlje i fullscreen meni (27.11.2026.): isto na naslovnoj i podstranicama.
   Na desktopu četiri ulaza (rute, noćenje, grupe, prije dolaska), Meni, jezik i dugme „Provjeri termin“.
   Na mobitelu logo, jezik i Meni; termin je u meniju i u traci na dnu naslovne. */

html body:is(.expedition, .route-phase-two) .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

html body:is(.expedition, .route-phase-two) .header-actions .menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 10px;
  white-space: nowrap;
}

html body:is(.expedition, .route-phase-two) .header-booking {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-left: 8px;
  padding: 8px 18px;
  background: #fe6700;
  color: #123d35;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

html body:is(.expedition, .route-phase-two) .header-booking:hover { background: #ff7a1f; }

html body:is(.expedition, .route-phase-two) .header-booking:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #123d35;
}

/* Četiri vidljiva linka staju od 1000 px; uže od toga ostaju Meni, jezik i termin. */
@media (min-width: 1000px) {
  html body:is(.expedition, .route-phase-two) .desktop-nav,
  html body.expedition .site-header.reservation-visible .desktop-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 28px);
  }
}

@media (max-width: 999px) {
  html body:is(.expedition, .route-phase-two) .desktop-nav:not(:target),
  html body.expedition .site-header.reservation-visible .desktop-nav { display: none; }
}

@media (max-width: 899px) {
  html body:is(.expedition, .route-phase-two) .header-booking { display: none; }
  html body:is(.expedition, .route-phase-two) .header-actions .languages { order: -1; }
}

/* Meni preko cijelog ekrana, u vizuelnom jeziku JO menija. */
html:has(#menu[open]) { overflow: hidden; }

html body:is(.expedition, .route-phase-two) .menu-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #123d35;
  color: #f8f0d7;
  font: 400 17px/1.5 Lato, sans-serif;
}

html body:is(.expedition, .route-phase-two) .menu-dialog[open] { animation: ru-menu-in .14s ease-out; }
html body:is(.expedition, .route-phase-two) .menu-dialog::backdrop { background: #123d35; }

@keyframes ru-menu-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html body:is(.expedition, .route-phase-two) .menu-dialog[open] { animation: none; }
}

html body:is(.expedition, .route-phase-two) .menu-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
  box-sizing: border-box;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-block: 16px;
}

html body:is(.expedition, .route-phase-two) .menu-brand img { display: block; width: 180px; height: auto; }

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 16px/1 Lato, sans-serif;
  cursor: pointer;
}

html body:is(.expedition, .route-phase-two) .menu-close span { font-size: 28px; font-weight: 400; }

html body:is(.expedition, .route-phase-two) .menu-dialog nav.menu-links {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-content: center;
  gap: clamp(32px, 6vw, 86px);
  margin: 0;
  padding-block: clamp(20px, 4vh, 48px);
}

html body:is(.expedition, .route-phase-two) .menu-dialog :is(.menu-primary, .menu-secondary) {
  margin: 0;
  padding: 0;
  list-style: none;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-links a {
  display: inline-block;
  padding: 0;
  border: 0;
  color: inherit;
  text-decoration: none;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-primary li + li { margin-top: clamp(6px, 1.4vh, 14px); }

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-primary > li > a {
  color: #fff;
  font: 800 clamp(34px, 4.6vw, 66px)/1.04 Bricolage, Lato, sans-serif;
  letter-spacing: -.035em;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-top: 6px;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-sub a {
  min-height: 32px;
  font-size: 18px;
  font-weight: 700;
}

html body:is(.expedition, .route-phase-two) .menu-label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-secondary a {
  padding-block: 9px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-links a:hover,
html body:is(.expedition, .route-phase-two) .menu-more a:hover,
html body:is(.expedition, .route-phase-two) .menu-contact a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .14em;
}

html body:is(.expedition, .route-phase-two) .menu-dialog :is(a, button):focus-visible {
  outline: 3px solid #f8f0d7;
  outline-offset: 4px;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding-block: 22px 28px;
  border-top: 1px solid rgb(248 240 215 / .3);
  font-size: 16px;
}

html body:is(.expedition, .route-phase-two) :is(.menu-more, .menu-contact) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
}

html body:is(.expedition, .route-phase-two) .menu-dialog :is(.menu-more, .menu-contact) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-left: auto;
  padding: 0 24px;
  background: #fe6700;
  color: #123d35;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-cta:hover { background: #ff7a1f; }

html body:is(.expedition, .route-phase-two) .menu-dialog .menu-cta:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px #123d35, 0 0 0 6px #f8f0d7;
}

@media (max-width: 760px) {
  html body:is(.expedition, .route-phase-two) .menu-brand img { width: 157px; } /* logo: najmanje 64 px visine */
  html body:is(.expedition, .route-phase-two) .menu-dialog nav.menu-links {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 28px;
  }
  html body:is(.expedition, .route-phase-two) .menu-dialog .menu-primary > li > a { font-size: clamp(30px, 8.4vw, 40px); }
  html body:is(.expedition, .route-phase-two) .menu-dialog .menu-secondary a { font-size: 19px; padding-block: 7px; }
  html body:is(.expedition, .route-phase-two) .menu-dialog .menu-foot { display: grid; gap: 10px; }
  html body:is(.expedition, .route-phase-two) .menu-dialog .menu-cta { justify-content: center; margin-left: 0; }
}

/* Kontrast (28.11.2026., Armin: tamniji tekst, dugmad ostaju iste veličine). Tekst na narandžastoj #fe6700 je
   malo tamnija zelena #0b2e27: 5,0 : 1 umjesto 4,1 : 1 (WCAG AA 4,5). Veličina i oblik dugmadi se ne mijenjaju. */
html body:is(.expedition, .route-phase-two) .header-booking { color: #0b2e27; }
html body:is(.expedition, .route-phase-two) .button:not(.final-cta-inner .button) { color: #0b2e27; }
html body:is(.expedition, .route-phase-two) :is(#plan, .route-final) :is(.final-cta-copy, .group-final-copy) { color: #0b2e27; }
html body:is(.expedition, .route-phase-two) .buk-video-duration { color: #0b2e27; opacity: 1; }
/* Rukopisni naglasak u narandžastoj na svijetloj podlozi: nijansa tamnije narandžasta, 3,2 : 1 (veliki tekst, cilj 3). */
html body.expedition #skippers-title .hand { color: #f06000; }
html body.route-phase-two .group-final .group-final-help, html body.route-phase-two .group-final .group-final-help a { color: #0b2e27; }

/* Najuži ekrani (320 px, runda 1): logo i dugmad u zaglavlju stanu u širinu bez vodoravnog skrola. */
@media (max-width: 359px) {
  html body:is(.expedition, .route-phase-two) .site-header .header-inner { padding-inline: 14px; gap: 10px; }
  html body:is(.expedition, .route-phase-two) .site-header .brand img { width: 136px; height: auto; }
  html body:is(.expedition, .route-phase-two) .site-header .menu-toggle { padding-inline: 8px; }
  html body:is(.expedition, .route-phase-two) :is(h1, h2, h3, .group-final-copy p) { overflow-wrap: break-word; hyphens: auto; }
  html body:is(.expedition, .route-phase-two) .wrap > * { min-width: 0; }
  html body.expedition .action-dock a { white-space: normal; }
  html body.route-phase-two .ed-enquiry fieldset { min-width: 0; }
  html body.route-phase-two .ed-enquiry label { white-space: normal; }
  html body.expedition .hero-meta .opening-rating, html body.expedition .hero-meta .opening-rating span { white-space: normal; max-width: 100%; }
}
/* Dugme za pokretanje klipa u dnevniku: isti tamni tekst na narandžastom kao ostala dugmad (kontrast 5,0 : 1). */
html body.route-phase-two .story-video-play > span { color: #0b2e27; }
