/* ==========================================================================
   TIKI DESIGN SYSTEM — LAYOUT
   Public header, navigation, footer.
   ========================================================================== */

/* ==========================================================================
   HEADER
   Sticky, transparent over the hero, and solid once the page scrolls.
   The .is-scrolled class is applied by tiki-core.js.
   ========================================================================== */
.tiki-header {
  position: sticky;
  top: 0;
  z-index: var(--tiki-z-header);
  background: var(--tiki-surface);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--tiki-duration-base) var(--tiki-ease),
              border-color var(--tiki-duration-base) var(--tiki-ease),
              background-color var(--tiki-duration-base) var(--tiki-ease);
}
/* Once detached from the top of the page the header states itself with a
   hairline and a shadow, and stays opaque.

   It used to blur what passed underneath. That reads as fashionable for a
   season and costs a compositing layer on every scroll frame; worse, text
   crossing beneath it stayed faintly legible, which is the one thing a
   header must not allow. A flat surface with a hairline is quieter, faster,
   and does not compete with the covers below it. */
.tiki-header.is-scrolled {
  border-bottom-color: var(--tiki-border);
  box-shadow: var(--tiki-shadow-sm);
  background: var(--tiki-surface);
}

.tiki-header__inner {
  display: flex;
  align-items: center;
  gap: var(--tiki-space-6);
  height: var(--tiki-header-height);
  transition: height var(--tiki-duration-base) var(--tiki-ease);
}

/* A few pixels shorter once scrolled — enough to feel the page move under
   the header, not enough to notice the reflow. Desktop only: on a phone the
   header is already minimal and shrinking it just makes targets smaller. */
@media (min-width: 992px) {
  .tiki-header.is-scrolled .tiki-header__inner { height: 60px; }
}

/* Logo ------------------------------------------------------------------ */
.tiki-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--tiki-space-2);
  flex: none;
  color: var(--tiki-navy-800);
  font-weight: var(--tiki-weight-extra);
  font-size: var(--tiki-text-xl);
  letter-spacing: var(--tiki-tracking-tighter);
}
.tiki-logo:hover { color: var(--tiki-navy-900); }
.tiki-logo__mark { width: 34px; height: 34px; flex: none; }
.tiki-logo__text { line-height: 1; }
.tiki-logo__dot  { color: var(--tiki-accent); }

/* Primary navigation ---------------------------------------------------- */
.tiki-nav {
  display: flex;
  align-items: center;
  gap: var(--tiki-space-1);
  margin-inline-end: auto;
}
.tiki-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--tiki-space-2);
  padding: var(--tiki-space-2) var(--tiki-space-3);
  border-radius: var(--tiki-radius-sm);
  color: var(--tiki-text-muted);
  font-size: var(--tiki-text-sm);
  font-weight: var(--tiki-weight-semibold);
  transition: var(--tiki-transition);
}
.tiki-nav__link:hover { background: var(--tiki-slate-100); color: var(--tiki-text-strong); }

/* The current section is marked with a short coral rule rather than a
   background fill. Coral is the action colour, and a filled pill on a nav
   item reads as a button — it invites a click on the page you are already
   looking at. */
.tiki-nav__link.is-active {
  color: var(--tiki-text-strong);
  position: relative;
}
.tiki-nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-block-end: 2px;
  inset-inline: var(--tiki-space-3);
  height: 2px;
  border-radius: var(--tiki-radius-pill);
  background: var(--tiki-accent);
}

.tiki-header__actions {
  display: flex;
  align-items: center;
  gap: var(--tiki-space-2);
  flex: none;
}

/* Favourites counter bubble */
.tiki-header__badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 4px;
  min-width: 16px;
  height: 16px;
  padding-inline: 4px;
  border-radius: var(--tiki-radius-pill);
  background: var(--tiki-accent);
  color: var(--tiki-white);
  font-size: 10px;
  font-weight: var(--tiki-weight-bold);
  line-height: 16px;
  text-align: center;
}
.tiki-header__action { position: relative; }

/* Header search: collapsed to an icon on small screens, inline on desktop */
.tiki-header__search { flex: 1 1 auto; max-width: 22rem; }
.tiki-header__search .tiki-input {
  height: 2.5rem;
  padding-block: 0;
  border-radius: var(--tiki-radius-pill);
  background: var(--tiki-bg-subtle);
  border-color: transparent;
  font-size: var(--tiki-text-sm);
}
.tiki-header__search .tiki-input:focus {
  background: var(--tiki-surface);
  border-color: var(--tiki-accent);
}

@media (max-width: 991.98px) {
  .tiki-nav,
  .tiki-header__search { display: none; }
  .tiki-header__inner { gap: var(--tiki-space-3); }
  .tiki-logo { margin-inline-end: auto; }
}

/* Mobile navigation drawer ---------------------------------------------- */
.tiki-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tiki-space-3);
  padding: var(--tiki-space-4) var(--tiki-space-2);
  border-bottom: 1px solid var(--tiki-border);
  color: var(--tiki-text-strong);
  font-size: var(--tiki-text-md);
  font-weight: var(--tiki-weight-semibold);
}
.tiki-mobile-nav__link:last-child { border-bottom: 0; }
.tiki-mobile-nav__link .tiki-icon { color: var(--tiki-text-subtle); }

/* Language switcher ------------------------------------------------------
   The toggle shows the active code rather than a globe icon: two letters
   say which language you are in, a globe only says that languages exist. */
.tiki-lang__code {
  font-size: var(--tiki-text-xs);
  font-weight: var(--tiki-weight-bold);
  letter-spacing: 0.04em;
}
.tiki-lang .dropdown-item.is-active {
  color: var(--tiki-text-strong);
  font-weight: var(--tiki-weight-semibold);
}
.tiki-lang .dropdown-item .tiki-icon { color: var(--tiki-accent); }

/* Inside the drawer the same choice is a row of pills — a dropdown inside
   an off-canvas panel is a menu inside a menu. */
.tiki-mobile-nav__langs {
  display: flex;
  gap: var(--tiki-space-2);
  margin-top: var(--tiki-space-6);
  padding-top: var(--tiki-space-4);
  border-top: 1px solid var(--tiki-border);
}
.tiki-lang-pill {
  flex: 1;
  padding: var(--tiki-space-2) var(--tiki-space-3);
  border: 1px solid var(--tiki-border);
  border-radius: var(--tiki-radius-pill);
  text-align: center;
  font-size: var(--tiki-text-sm);
  font-weight: var(--tiki-weight-semibold);
  color: var(--tiki-text-subtle);
}
.tiki-lang-pill.is-active {
  background: var(--tiki-navy-900);
  border-color: var(--tiki-navy-900);
  color: #fff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* The footer is made of the same material as a stage section, so a page that
   ends on one runs into the footer as a single dark field rather than as two
   different darks meeting at a seam. */
.tiki-footer {
  margin-top: var(--tiki-section-y);
  background: var(--tiki-stage-bg);
  color: var(--tiki-navy-200);
  font-size: var(--tiki-text-sm);
}
.tiki-section--stage + .tiki-footer { margin-top: 0; }
.tiki-footer a { color: var(--tiki-navy-200); }
.tiki-footer a:hover { color: var(--tiki-white); }

.tiki-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--tiki-space-10) var(--tiki-space-8);
  padding-block: var(--tiki-space-16) var(--tiki-space-10);
}

.tiki-footer__brand { max-width: 30ch; }
.tiki-footer .tiki-logo { color: var(--tiki-white); }
.tiki-footer__tagline {
  margin: var(--tiki-space-4) 0 var(--tiki-space-5);
  color: var(--tiki-navy-300);
  line-height: var(--tiki-leading-relaxed);
}

.tiki-footer__title {
  margin: 0 0 var(--tiki-space-4);
  color: var(--tiki-white);
  font-size: var(--tiki-text-xs);
  font-weight: var(--tiki-weight-bold);
  letter-spacing: var(--tiki-tracking-caps);
  text-transform: uppercase;
}
.tiki-footer__list { list-style: none; margin: 0; padding: 0; }
.tiki-footer__list li { margin-bottom: var(--tiki-space-3); }

.tiki-footer__social { display: flex; gap: var(--tiki-space-2); }
.tiki-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--tiki-radius-md);
  transition: var(--tiki-transition);
}
.tiki-footer__social a:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

.tiki-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--tiki-space-4);
  padding-block: var(--tiki-space-5);
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--tiki-navy-400);
  font-size: var(--tiki-text-xs);
}
.tiki-footer__legal { display: flex; flex-wrap: wrap; gap: var(--tiki-space-5); }

@media (max-width: 991.98px) {
  .tiki-footer__top { grid-template-columns: 1fr 1fr; gap: var(--tiki-space-8); }
  .tiki-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .tiki-footer__top { grid-template-columns: 1fr; padding-block: var(--tiki-space-10) var(--tiki-space-8); }
  .tiki-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   PAGE HEADER (interior pages)
   ========================================================================== */
.tiki-page-head {
  padding-block: var(--tiki-space-10) var(--tiki-space-8);
  border-bottom: 1px solid var(--tiki-border);
  background: var(--tiki-bg-subtle);
}
.tiki-page-head__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, var(--tiki-text-4xl));
  font-weight: var(--tiki-weight-extra);
  letter-spacing: var(--tiki-tracking-tighter);
}
.tiki-page-head__sub {
  margin: var(--tiki-space-3) 0 0;
  max-width: 62ch;
  color: var(--tiki-text-muted);
  font-size: var(--tiki-text-lg);
}

/* ==========================================================================
   STICKY MOBILE ACTION BAR
   The persistent primary action on phones (Réserver / Payer / Scanner).
   Padded for the iOS home indicator so the button is never half-covered.
   ========================================================================== */
.tiki-sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--tiki-z-sticky);
  display: flex;
  align-items: center;
  gap: var(--tiki-space-4);
  padding: var(--tiki-space-3) var(--tiki-gutter);
  padding-bottom: calc(var(--tiki-space-3) + env(safe-area-inset-bottom, 0px));
  background: var(--tiki-surface);
  border-top: 1px solid var(--tiki-border);
  box-shadow: 0 -4px 20px rgba(15, 27, 51, 0.08);
}
.tiki-sticky-bar__info { min-width: 0; }
.tiki-sticky-bar__label {
  display: block;
  font-size: var(--tiki-text-2xs);
  color: var(--tiki-text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--tiki-tracking-wide);
  font-weight: var(--tiki-weight-semibold);
}
.tiki-sticky-bar__price {
  display: block;
  font-size: var(--tiki-text-lg);
  font-weight: var(--tiki-weight-extra);
  color: var(--tiki-text-strong);
  line-height: 1.2;
}
.tiki-sticky-bar .tiki-btn { flex: 1 1 auto; }

@media (min-width: 992px) { .tiki-sticky-bar { display: none; } }

/* Reserve space so the sticky bar never covers the end of the page. */
.has-sticky-bar { padding-bottom: 5.5rem; }
@media (min-width: 992px) { .has-sticky-bar { padding-bottom: 0; } }

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   --------------------------------------------------------------------------
   Browse, search, favourites, account — the four things this product is for,
   within thumb reach instead of behind a hamburger.

   It defers to any page that already owns the bottom edge (.has-sticky-bar:
   the event page's Reserve button; the checkout total). Those pages have one
   primary action, and stacking a five-way navigation under it would give the
   thumb five things to want at once.
   ========================================================================== */
.tiki-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--tiki-z-sticky);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  /* Opaque, like the header. A translucent bar over a scrolling page keeps
     the content behind it half-readable, and the four items sitting on top
     of a moving image are the last thing that should shimmer. */
  background: var(--tiki-surface);
  border-top: 1px solid var(--tiki-border);
  box-shadow: 0 -2px 16px rgba(15, 27, 51, 0.06);
  /* viewport-fit=cover is already set on the layout, so honour the home
     indicator rather than sitting under it. */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tiki-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* 56px keeps the tap target comfortably above the 44px minimum. */
  min-height: 56px;
  padding: var(--tiki-space-2) var(--tiki-space-1);
  color: var(--tiki-text-subtle);
  text-decoration: none;
  transition: color var(--tiki-duration-fast) var(--tiki-ease);
}
.tiki-bottom-nav__item:hover { color: var(--tiki-text); }

/* Coral marks the current place and nothing else on this bar — the same
   restraint the rest of the product shows with the colour. */
.tiki-bottom-nav__item.is-active { color: var(--tiki-accent); }

.tiki-bottom-nav__icon { position: relative; display: inline-flex; }
.tiki-bottom-nav__icon .tiki-icon { width: 22px; height: 22px; }

.tiki-bottom-nav__badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--tiki-radius-pill);
  background: var(--tiki-accent);
  color: var(--tiki-text-invert);
  font-size: 10px;
  font-weight: var(--tiki-weight-bold);
  line-height: 16px;
  text-align: center;
}

.tiki-bottom-nav__label {
  font-size: 10px;
  font-weight: var(--tiki-weight-semibold);
  letter-spacing: var(--tiki-tracking-wide);
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Desktop has a full header; the bar would be redundant furniture. */
@media (min-width: 992px) { .tiki-bottom-nav { display: none; } }

/* Stand down where a primary action already owns the bottom edge. */
.has-sticky-bar .tiki-bottom-nav,
.page-checkout .tiki-bottom-nav { display: none; }

/* Reserve room so the end of the footer is not left under the bar. */
@media (max-width: 991.98px) {
  body:not(.has-sticky-bar):not(.page-checkout) .tiki-footer {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
