// =============================================================
// Colosseum Tours — frontend styles
// =============================================================
//
// SSOT: research/mockup-websale-integration.html (Variant B — default).
// Štruktúra:
//   .colosseum-tours
//     .colosseum-section.colosseum-section--hero (dark-blue, intro + excursion-grid)
//     .colosseum-section.colosseum-section--terminy (dark-blue, intro + toolbar + events-grid)
//
// Theme convention: clr(), rem(), @include breakpoint, @include headlineFont.
// Namespace: colosseum-* — vyhýba sa kolíziám s globálnymi theme triedami (.section, .btn, .intro).

@import "../../scss/shared";

// =================== SECTION (mockup `.section`) ===================
.colosseum-section {
  position: relative;
  color: clr(white);

  &__content {
    max-width: rem(1280px);
    margin: 0 auto;
    position: relative;
  }

  &--hero {
    // Hero zachová default dark-blue.
  }

  &--terminy {
    // Termíny tiež dark-blue (mockup `section--blue-dark`).
  }
}

// =================== INTRO (mockup `.intro`) ===================
.colosseum-intro {
  text-align: center;
  max-width: rem(740px);
  margin: 0 auto rem(60px);

  &__pre {
    display: inline-block;
    text-transform: uppercase;
    font-size: rem(14px);
    letter-spacing: 0.2em;
    color: clr(yellow);
    margin-bottom: rem(20px);
    font-weight: 500;
  }

  &__title {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(54px);
    line-height: 1.125;
    letter-spacing: 0.01em;
    margin: 0 0 rem(24px);
    color: clr(white);

    @include breakpoint(medium down) {
      font-size: rem(40px);
    }

    &-u {
      position: relative;
      text-decoration: none;

      &::after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        bottom: 0.04em;
        width: 100%;
        height: 0.075em;
        background-color: clr(yellow);
      }
    }
  }

  &__lead {
    font-size: rem(20px);
    line-height: 1.45;
    color: rgba(245, 245, 245, 0.85);
    margin: 0 auto;
    max-width: rem(600px);

    @include breakpoint(medium down) {
      font-size: rem(16px);
    }
  }
}

// =================== EXCURSION TILES (hero — 2 dlaždice na sepia bg) ===================
.colosseum-excursion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: rem(30px);

  @include breakpoint(medium up) {
    grid-template-columns: 1fr 1fr;
  }

  // Jediná prehliadka v ponuke (napr. koktejlová mimo sezóny) — karta na celú šírku, bez prázdneho miesta.
  &--single {
    @include breakpoint(medium up) {
      grid-template-columns: 1fr;
    }
  }
}

.colosseum-excursion {
  background-color: clr(darkSepia);
  color: clr(blue);
  padding: rem(40px);
  display: flex;
  flex-direction: column;

  @include breakpoint(small down) {
    padding: rem(28px);
  }

  &__header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    row-gap: rem(16px);
    margin-bottom: rem(22px);
  }

  &__preheading {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(26px);
    color: clr(lightBlue);
    line-height: 1;
  }

  &__langs {
    display: flex;
    align-items: center;
    gap: rem(6px);
  }

  &__heading {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(40px);
    line-height: 1.05;
    margin: 0 0 rem(30px);
    color: clr(blue);

    @include breakpoint(medium down) {
      font-size: rem(30px);
    }
  }

  &__text {
    flex: 1;
    margin: 0 0 rem(30px);
    color: clr(violetBlue);
    line-height: 1.4;
    font-size: rem(16px);
  }

  &__stats {
    display: flex;
    flex-wrap: wrap;
    gap: rem(24px);
    margin-bottom: rem(24px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(20px);
    color: clr(blue);
  }

  &__stat {
    display: flex;
    align-items: baseline;
    gap: rem(6px);

    &-label {
      font-family: "Klik", "Adjusted Tahoma Fallback", sans-serif;
      text-transform: uppercase;
      font-size: rem(11px);
      letter-spacing: 0.1em;
      color: clr(lightBlue);
      font-weight: 500;
    }
  }

  // Footer s 2 buttons: primary "Vybrat termín" + secondary "Více info" (tour modal trigger).
  &__footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: rem(12px);

    .colosseum-btn {
      flex: 1 1 auto;
      min-width: 0;
      text-align: center;
    }

    @include breakpoint(small down) {
      flex-direction: column;
      align-items: stretch;
      gap: rem(10px);

      .colosseum-btn {
        width: 100%;
      }
    }
  }
}

// =================== TOOLBAR (filter pre termíny) ===================
// Layout: 2-column grid — filters stacked vertically vľavo, view-toggle vpravo.
.colosseum-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: rem(24px) rem(32px);
  align-items: center;
  margin-bottom: rem(24px);
  padding: rem(24px) 0;
  border-top: rem(1px) solid rgba(255, 255, 255, 0.15);
  border-bottom: rem(1px) solid rgba(255, 255, 255, 0.15);
  scroll-margin-top: rem(24px);

  @include breakpoint(medium down) {
    grid-template-columns: 1fr;
  }

  // Wrapper pre Typ + Jazyk skupiny (stacked vertikálne).
  &__filters {
    display: flex;
    flex-direction: column;
    gap: rem(18px);
    min-width: 0;
  }

  &__group {
    display: flex;
    align-items: center;
    gap: rem(14px);
    flex-wrap: wrap;
  }

  &__label {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(18px);
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.65);
  }

  &__tabs {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
  }

  &__tab {
    padding: rem(8px) rem(18px);
    background: transparent;
    border: 0;
    border-bottom: rem(2px) solid transparent;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(24px);
    color: clr(white);
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1.2;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: rem(8px);

    &:hover {
      color: clr(yellow);
    }

    &--active {
      border-bottom-color: clr(yellow);
      color: clr(yellow);
    }

    &--disabled {
      opacity: 0.35;
      pointer-events: none;
    }

    &-count {
      font-family: "Klik", "Adjusted Tahoma Fallback", sans-serif;
      font-size: rem(13px);
      color: rgba(255, 255, 255, 0.55);
      letter-spacing: 0;
    }
  }

  &__chips {
    display: flex;
    gap: rem(10px);
    flex-wrap: wrap;
  }

  &__chip {
    display: inline-flex;
    align-items: center;
    gap: rem(8px);
    padding: rem(8px) rem(16px) rem(8px) rem(10px);
    background: transparent;
    border: rem(2px) solid rgba(255, 255, 255, 0.55);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(18px);
    color: clr(white);
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1;
    text-decoration: none;

    &:hover:not(.colosseum-toolbar__chip--active) {
      border-color: clr(yellow);
      color: clr(yellow);
    }

    &--active {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
    }

    &--disabled {
      opacity: 0.35;
      pointer-events: none;
    }
  }

  // Chip count badge (analogický k tab-count, drobný číselník vedľa textu).
  &__chip-count {
    font-family: "Klik", "Adjusted Tahoma Fallback", sans-serif;
    font-size: rem(13px);
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0;
    font-weight: 400;

    &:empty {
      display: none;
    }
  }

  &__chip--active &__chip-count {
    color: rgba(0, 26, 112, 0.65);
  }
}

// Active chip — zladenie textu count na tmavú farbu (kvôli yellow background).
.colosseum-toolbar__chip--active .colosseum-toolbar__chip-count {
  color: rgba(0, 26, 112, 0.65);
}

// =================== MOBILE TOOLBAR ÚPRAVY (≤medium) ===================
@include breakpoint(medium down) {
  .colosseum-toolbar {
    // Tabs (TYP) — horizontálny scroll s fade-out gradient na pravom okraji.
    // Count badge nad názvom (vertical stack) namiesto vedľa.
    &__tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x proximity;
      padding-right: rem(40px); // priestor pre fade
      // Fade-out gradient na pravom okraji (mask).
      -webkit-mask-image: linear-gradient(
        to right,
        #000 0,
        #000 calc(100% - #{rem(40px)}),
        transparent 100%
      );
      mask-image: linear-gradient(
        to right,
        #000 0,
        #000 calc(100% - #{rem(40px)}),
        transparent 100%
      );
      // Hide native scrollbar (skroll je gesture-only).
      scrollbar-width: none;

      &::-webkit-scrollbar {
        display: none;
      }
    }

    &__tab {
      flex-direction: column;
      align-items: center;
      gap: rem(2px);
      flex-shrink: 0;
      scroll-snap-align: start;

      &-count {
        order: -1; // count NAD názvom
      }
    }

    // Chip (JAZYK) — iba vlajka, text skrytý.
    &__chip[data-filter-lang]:not([data-filter-lang="all"]) {
      padding: rem(8px) rem(10px);
      gap: 0;

      .colosseum-toolbar__chip-text {
        display: none;
      }
    }

    // View toggle (Seznam/Kalendář) — full width, +50% size.
    &__views {
      width: 100%;
      margin-left: 0;
    }

    &__view-btn {
      flex: 1;
      padding: rem(15px) rem(24px); // ~+50%
      font-size: rem(24px); // 16px → 24px
      gap: rem(12px);

      svg {
        width: rem(24px); // 16px → 24px
        height: rem(24px);
      }
    }
  }
}

// =================== EVENTS GRID (3-column kartový layout) ===================
.colosseum-events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: rem(24px);
  margin-top: rem(40px);

  @include breakpoint(medium up) {
    grid-template-columns: 1fr 1fr;
  }

  @include breakpoint(large up) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.colosseum-event-card {
  background-color: clr(darkSepia); // #DED5C7 — klient request 2026-05-13
  color: clr(blue);
  padding: rem(32px);
  display: flex;
  flex-direction: column;
  border-top: rem(4px) solid clr(blue);
  border-radius: 0;

  @include breakpoint(small down) {
    padding: rem(24px);
  }

  &--cocktail {
    border-top-color: clr(green);
  }

  &__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: rem(20px);
    gap: rem(16px);
  }

  &__date-block {
    flex: 1;
  }

  &__day {
    display: block;
    font-size: rem(13px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: clr(lightBlue);
    margin-bottom: rem(4px);
    font-weight: 500;
  }

  &__date {
    display: block;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(34px);
    line-height: 1;
    color: clr(blue);
  }

  &__time-area {
    text-align: right;
    flex-shrink: 0;
  }

  &__time-label {
    display: block;
    font-size: rem(11px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: clr(lightBlue);
    margin-bottom: rem(4px);
    font-weight: 500;
  }

  &__time-value {
    display: block;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(30px);
    line-height: 1;
    color: clr(blue);
  }

  // Title je 2-line: pre-heading badge (prvé slovo, malé) + main name (zvyšok, veľký).
  &__title {
    margin: 0 0 rem(18px);
    color: clr(blue);
    line-height: 1.15;
  }

  &__title-pre {
    display: block;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(13px);
    letter-spacing: 0.15em;
    color: clr(lightBlue);
    margin-bottom: rem(4px);
  }

  &__title-main {
    display: block;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(22px);
    line-height: 1.15;
    color: clr(blue);
  }

  &__meta {
    display: flex;
    flex-wrap: wrap;
    gap: rem(14px);
    align-items: center;
    margin-bottom: rem(22px);
    font-size: rem(14px);
    color: clr(lightBlue);
  }

  &__meta-item {
    display: inline-flex;
    align-items: center;
    gap: rem(6px);
  }

  // Lucide-style outline ikona (globe/hourglass) — rovnaký pattern ako popover row.
  &__meta-icon {
    width: rem(16px);
    height: rem(16px);
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
  }

  &__capacity {
    margin-left: auto;
    padding: rem(3px) rem(10px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(13px);
    letter-spacing: 0.05em;
    line-height: 1.4;

    &--free {
      background-color: clr(green);
      color: clr(white);
    }

    &--low {
      background-color: clr(yellow);
      color: clr(blue);
    }

    // Sold-out — vizuálne tlmený stav (Lada 2026-05-13).
    &--sold {
      background-color: rgba(0, 26, 112, 0.12);
      color: clr(blue);
      text-decoration: line-through;
    }
  }

  // =================== CENA (ticket-style separator dizajn) ===================
  // Žiadny background/border-rectangle — label je v strede tenkej čiary cez celú šírku
  // (`──── CENA ────` pattern), pod ním veľká cena, pod tým note bez italic.
  &__price {
    margin-bottom: rem(24px);
    text-align: center;
  }

  &__price-label {
    display: flex;
    align-items: center;
    gap: rem(14px);
    margin: 0 0 rem(14px);
    font-size: rem(12px);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: clr(lightBlue);
    font-weight: 500;

    // Tenké čiary po oboch stranách labelu (label "preruší" čiaru cez celú šírku).
    &::before,
    &::after {
      content: "";
      flex: 1;
      height: rem(1px);
      background-color: rgba(0, 26, 112, 0.15);
    }
  }

  &__price-value {
    display: block;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(40px);
    color: clr(blue);
    line-height: 1;

    @include breakpoint(small down) {
      font-size: rem(32px);
    }
  }

  &__price-note {
    display: block;
    margin-top: rem(8px);
    font-size: rem(13px);
    color: clr(lightBlue);
    font-style: normal;
  }

  // "Více info" outline button — pod cenou, otvorí voucher modal (DRY s voucher card __info-btn).
  &__info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: rem(8px);
    width: 100%;
    margin: rem(12px) 0 0;
    padding: rem(8px) rem(16px);
    background: transparent;
    border: rem(2px) solid clr(blue);
    color: clr(blue);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(15px);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 200ms ease;
    border-radius: 0;
    line-height: 1;

    &:hover,
    &:focus-visible {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
    }

    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(3px);
    }
  }

  &__info-icon {
    width: rem(16px);
    height: rem(16px);
    flex-shrink: 0;
  }

  form {
    margin-top: auto;
  }
}

// =================== EMPTY STATE (na dark-blue) ===================
.colosseum-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: rem(60px) rem(30px);
  border: rem(2px) dashed rgba(255, 255, 255, 0.25);
  color: clr(white);

  &__title {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(32px);
    margin: 0 0 rem(14px);
    color: clr(white);
    line-height: 1.1;

    @include breakpoint(small down) {
      font-size: rem(24px);
    }
  }

  &__desc {
    font-size: rem(16px);
    color: rgba(255, 255, 255, 0.75);
    margin: 0 auto rem(26px);
    max-width: rem(520px);
    line-height: 1.5;
  }

  &__actions {
    display: flex;
    justify-content: center;
    gap: rem(14px);
    flex-wrap: wrap;
  }
}

// =================== BTN (block-scoped, mockup-aligned) ===================
.colosseum-btn {
  position: relative;
  display: inline-block;
  @include headlineFont;
  font-weight: 500;
  font-size: rem(22px);
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: rem(10px) rem(28px);
  line-height: 1;
  border: rem(2px) solid clr(white);
  color: clr(white);
  background-color: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
  border-radius: 0;

  &:hover {
    border-color: clr(yellow);
    background-color: clr(yellow);
    color: clr(blue);
  }

  @include breakpoint(small down) {
    font-size: rem(18px);
    padding: rem(8px) rem(20px);
  }

  &--primary {
    background-color: clr(yellow);
    color: clr(blue);
    border-color: clr(yellow);

    &:hover {
      background-color: transparent;
      color: clr(yellow);
      border-color: clr(yellow);
    }
  }

  &--secondary {
    background-color: transparent;
    color: clr(white);
    border-color: rgba(255, 255, 255, 0.4);

    &:hover {
      border-color: clr(yellow);
      background-color: clr(yellow);
      color: clr(blue);
    }
  }
}

// V svetlej sekcii (excursion na dark-sepia) — buttons invertujú na blue.
.colosseum-excursion {
  .colosseum-btn {
    color: clr(blue);
    border-color: clr(blue);

    &:hover {
      border-color: clr(yellow);
      background-color: clr(yellow);
      color: clr(blue);
    }

    &--primary {
      background-color: clr(blue);
      color: clr(white);
      border-color: clr(blue);

      &:hover {
        background-color: transparent;
        color: clr(blue);
        border-color: clr(blue);
      }
    }

    // Secondary v excursion (svetlé sepia pozadie) — outline blue (DRY s event card __info-btn).
    &--secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: rem(8px);
      background-color: transparent;
      color: clr(blue);
      border-color: clr(blue);

      &:hover {
        background-color: clr(yellow);
        color: clr(blue);
        border-color: clr(yellow);
      }

      .colosseum-btn__icon {
        margin-right: 0;
      }
    }
  }
}

// =================== FORM SUBMIT (event-card form button) ===================
// Override pre form submit button — používa colosseum-form__submit class z ColosseumForm.
// Cart SVG ikona (Lada 2026-05-13) — vizuálny cue pre nákupný flow.
.colosseum-event-card .colosseum-form__submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: rem(8px);
  width: 100%;
  padding: rem(10px) rem(20px);
  @include headlineFont;
  font-weight: 500;
  font-size: rem(18px);
  letter-spacing: 0.04em;
  background-color: clr(blue);
  color: clr(white);
  border: rem(2px) solid clr(blue);
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 0;
  text-decoration: none;
  line-height: 1;

  &:hover:not(:disabled) {
    background-color: clr(yellow);
    color: clr(blue);
    border-color: clr(yellow);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
}

// Cart icon vo všetkých form submit buttonoch (event card + voucher card + popover).
.colosseum-form__submit-icon {
  width: rem(18px);
  height: rem(18px);
  flex-shrink: 0;
}

.colosseum-noscript-warning {
  padding: rem(8px) rem(12px);
  background-color: clr(lightYellow);
  color: clr(blue);
  font-size: rem(14px);
  margin-top: rem(8px);
}

// =================== STATE CLASSES (JS-driven) ===================
.colosseum-event-card {
  &.is-hidden,
  &.is-collapsed {
    display: none;
  }
}

// =================== EXCURSION IMAGE (titulok OBRAZEK) ===================
.colosseum-excursion {
  &__image {
    height: rem(180px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: rem(-40px) rem(-40px) rem(24px);

    @include breakpoint(small down) {
      margin: rem(-28px) rem(-28px) rem(20px);
      height: rem(140px);
    }
  }
}

// =================== TOOLBAR VIEW BUTTONS ===================
.colosseum-toolbar {
  &__views {
    display: flex;
    gap: 0;
    border: rem(2px) solid rgba(255, 255, 255, 0.55);
    align-self: start;
  }

  &__view-btn {
    padding: rem(10px) rem(16px);
    background: transparent;
    border: 0;
    @include headlineFont;
    font-weight: 500;
    font-size: rem(16px);
    color: clr(white);
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: rem(8px);

    svg {
      width: rem(16px);
      height: rem(16px);
    }

    &:hover {
      background-color: rgba(255, 255, 255, 0.08);
    }

    &--active {
      background-color: clr(white);
      color: clr(blue);

      &:hover {
        background-color: clr(white);
      }
    }
  }
}

.colosseum-toolbar-count {
  margin: rem(8px) 0 rem(16px);
  font-size: rem(13px);
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

// =================== LOAD-MORE + BACK-TO-TOP (mockup `.events-more`) ===================
// Desktop: 3-col grid (load-more v strede, back-to-top pinned vpravo) — mockup pattern
// 1fr auto 1fr je matematicky najpresnejšie pre opticky centrovaný load-more
// pri súčasnej "back-to-top vpravo" pozícii (čistý flex by potreboval ::before
// pseudo-spacer alebo HTML wrapper — držíme grid pre presnú asymetriu).
//
// Mobile: prepnutie na flex (vedľa seba ak sa zmestia, inak natívny wrap).
// Back-to-top na mobile = subtle inline text variant (menej výrazný ako load-more).
.colosseum-events-more {
  margin-top: rem(40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: rem(14px);
  align-items: center;

  [data-load-more] {
    grid-column: 2;
    justify-self: center;
  }

  [data-back-to-top] {
    grid-column: 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;

    &[hidden] {
      display: none;
    }
  }

  @include breakpoint(small down) {
    // Mobile: flex vedľa seba; flex-wrap zaistí stack pri nedostatku miesta.
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: rem(14px);

    [data-load-more],
    [data-back-to-top] {
      grid-column: auto;
      justify-self: auto;
    }

    // Back-to-top na mobile = subtle inline text link (override colosseum-btn
    // defaults: žiadny border/padding, body font, lowercase, menšia veľkosť).
    [data-back-to-top].colosseum-btn {
      padding: 0;
      background-color: transparent;
      border: 0;
      color: rgba(255, 255, 255, 0.7);
      font-family: "Klik", "Adjusted Tahoma Fallback", sans-serif;
      text-transform: none;
      font-size: rem(13px);
      font-weight: 400;
      letter-spacing: 0;
      line-height: 1.2;

      &:hover,
      &:focus-visible {
        color: clr(yellow);
        background-color: transparent;
        border-color: transparent;
      }

      .colosseum-btn__icon {
        width: rem(12px);
        height: rem(12px);
        margin-right: rem(4px);
      }
    }
  }
}

.colosseum-btn__icon {
  width: rem(18px);
  height: rem(18px);
  margin-right: rem(8px);
  flex-shrink: 0;
}

// =================== CALENDAR VIEW (time-slot grid, mockup-aligned) ===================
.colosseum-calendar-view {
  margin-top: rem(40px);
}

// Calendar nav — top variant je vždy viditeľná, --bottom variant iba na mobile
// (DRY: jeden partial volaný 2x z render.php so $variant param).
.colosseum-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: rem(14px);
  margin-bottom: rem(30px);
  flex-wrap: wrap;

  @include breakpoint(medium down) {
    gap: rem(8px);
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    margin-bottom: rem(20px);
  }

  &--bottom {
    display: none;
    margin-top: rem(24px);
    margin-bottom: 0;

    @include breakpoint(medium down) {
      display: flex;
    }
  }

  &__btn {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(18px);
    padding: rem(10px) rem(18px);
    background: transparent;
    border: rem(2px) solid clr(white);
    color: clr(white);
    cursor: pointer;
    transition: all 200ms ease;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: rem(6px);
    flex-shrink: 0;

    @include breakpoint(medium down) {
      padding: rem(8px) rem(10px);
      font-size: rem(15px);
    }

    &:hover:not(:disabled) {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
    }

    &:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
  }

  // Full / short label varianty — desktop ukazuje full, mobile iba short.
  &__btn-text {
    @include breakpoint(medium down) {
      display: none;
    }
  }

  &__btn-text-short {
    display: none;

    @include breakpoint(medium down) {
      display: inline;
    }
  }

  &__label {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(32px);
    color: clr(white);
    min-width: rem(280px);
    text-align: center;
    letter-spacing: 0.02em;

    @include breakpoint(medium down) {
      font-size: rem(15px);
      min-width: 0;
      flex: 1;
      letter-spacing: 0.04em;
    }
  }
}

.colosseum-calendar-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

// Time-slot grid: 60px hour-labels + 7 day-cols (mockup `.calendar`).
.colosseum-calendar {
  background: transparent;
  display: grid;
  grid-template-columns: rem(60px) repeat(7, minmax(rem(110px), 1fr));
  border: 0;

  @include breakpoint(large up) {
    min-width: 0;
    grid-template-columns: rem(60px) repeat(7, 1fr);
  }
}

// Top-left corner cell (prázdny).
.colosseum-calendar__corner {
  background: transparent;
  border-right: rem(2px) dotted rgba(255, 255, 255, 0.4);
  border-bottom: rem(2px) dotted rgba(255, 255, 255, 0.4);
}

// Day header (PO 4.5., ÚT 5.5., ...).
.colosseum-calendar__day-header {
  background: transparent;
  color: clr(white);
  padding: rem(14px) rem(6px);
  text-align: center;
  border-right: rem(2px) dotted rgba(255, 255, 255, 0.4);
  border-bottom: rem(2px) dotted rgba(255, 255, 255, 0.4);
  @include headlineFont;

  &:last-child {
    border-right: 0;
  }

  &--today {
    .colosseum-calendar__day-num,
    .colosseum-calendar__day-name {
      color: clr(yellow);
    }
  }
}

.colosseum-calendar__day-name {
  display: block;
  font-size: rem(15px);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.colosseum-calendar__day-num {
  display: block;
  font-size: rem(26px);
  line-height: 1;
  margin-top: rem(4px);
  color: clr(white);
}

// Hour label cell (10:00, 11:00, ...).
.colosseum-calendar__hour-label {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border-right: rem(2px) dotted rgba(255, 255, 255, 0.4);
  border-bottom: rem(2px) dotted rgba(255, 255, 255, 0.18);
  font-size: rem(13px);
  font-weight: 300;
  padding: rem(6px) rem(8px);
  text-align: right;
  line-height: 1;
}

// Day column cell (per hour) — relative pre absolute-positioned tiles.
.colosseum-calendar__day-col {
  position: relative;
  border-right: rem(2px) dotted rgba(255, 255, 255, 0.18);
  border-bottom: rem(2px) dotted rgba(255, 255, 255, 0.18);
  height: rem(64px);
  background: transparent;

  &:last-child {
    border-right: 0;
  }

  &--closed {
    background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.06) rem(8px),
      transparent rem(8px),
      transparent rem(16px)
    );
  }
}

// =================== AGENDA MODE (mobile only — vertikálny zoznam dní) ===================
// SSOT: research/mockup-websale-integration.html `.agenda` (riadky 348-373).
// JS toggluje `[data-calendar]` element class na `colosseum-agenda` keď viewport ≤ medium.
.colosseum-agenda {
  display: flex;
  flex-direction: column;
  gap: 0;

  &--empty {
    // Agenda v empty-state mode — vycentrovaný empty-state component.
    align-items: stretch;
  }

  &__day {
    border-bottom: rem(1px) dotted rgba(255, 255, 255, 0.18);
    padding: rem(14px) 0;

    &:last-child {
      border-bottom: 0;
    }

    &--closed {
      opacity: 0.4;
    }

    &--empty .colosseum-agenda__day-count {
      color: rgba(255, 255, 255, 0.35);
    }

    &--today {
      .colosseum-agenda__day-name,
      .colosseum-agenda__day-num {
        color: clr(yellow);
      }
    }
  }

  &__day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: rem(12px);
    margin-bottom: rem(10px);
    @include headlineFont;
    color: clr(white);
  }

  &__day-title {
    display: flex;
    align-items: baseline;
    gap: rem(8px);
    flex-wrap: wrap;
  }

  &__day-num {
    font-size: rem(32px);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: clr(white);
  }

  &__day-name {
    font-size: rem(14px);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
  }

  &__day-count {
    font-family: "Klik", "Adjusted Tahoma Fallback", sans-serif;
    font-size: rem(11px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  &__rows {
    display: flex;
    flex-direction: column;
    gap: rem(6px);
  }
}

// =================== FLAG DIZAJN (lipis 4:3 — match mockup) ===================
// Theme `.icon--flag` má 1:1 squared + border-radius 999px (kruh) — používa ho excursion-block.
// Mockup colosseum: lipis 4:3 (640×480 SVG viewBox) v 3 veľkostiach (28×21 / 20×15 / 22×16).
// Image source zostáva DRY z theme (`--flag-cz/de/gb`); colosseum override mení iba dimenzie + radius.
.colosseum-tours,
.colosseum-vouchers,
.colosseum-tile-popover {
  .icon--flag {
    border-radius: 0;
  }

  // 'sm' — chip / event-card meta / popover row (mockup .lang-flag--sm 20×15).
  .icon--16.icon--flag {
    width: rem(20px);
    height: rem(15px);
  }

  // 'base' — hero excursion langs (mockup .lang-flag 28×21).
  .icon--32.icon--flag {
    width: rem(28px);
    height: rem(21px);
  }
}

// Agenda row — horizontálny riadok pre 1 termín. Poradie: time / title / cap / lang (vpravo).
.colosseum-agenda-row {
  display: grid;
  grid-template-columns: rem(64px) 1fr auto auto;
  align-items: center;
  gap: rem(14px);
  padding: rem(12px) rem(14px);
  background-color: clr(darkBlue);
  border: rem(2px) solid clr(white);
  color: clr(white);
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-radius: 0;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;

  &:hover,
  &:focus-visible {
    background-color: clr(blue);
    border-color: clr(yellow);
  }

  &:focus-visible {
    outline: rem(3px) solid clr(yellow);
    outline-offset: rem(2px);
  }

  &__time {
    @include headlineFont;
    font-size: rem(22px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: clr(white);
  }

  &__title {
    @include headlineFont;
    font-size: rem(14px);
    letter-spacing: 0.08em;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.1;
  }

  &__lang {
    display: flex;
    align-items: center;

    .icon {
      width: rem(22px);
      height: rem(16px);
    }
  }

  &__cap {
    font-size: rem(13px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    line-height: 1;

    &--low {
      color: clr(yellow);
      font-weight: 500;
    }

    &--last {
      color: #ff8888;
      font-weight: 500;
    }

    &--sold {
      color: rgba(255, 255, 255, 0.4);
      text-decoration: line-through;
    }
  }
}

// Hide grid on mobile — wrapper má overflow:auto, ale agenda elements occupy entire space.
@include breakpoint(medium down) {
  .colosseum-calendar-wrap {
    overflow-x: visible;
  }
}

// =================== TILE (absolute positioned in day-col) ===================
// Mockup "Brutalist Outline" variant.
.colosseum-tile {
  position: absolute;
  left: rem(3px);
  right: rem(3px);
  background-color: clr(darkBlue);
  color: clr(white);
  line-height: 1.2;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  border: rem(2px) solid clr(white);
  transition:
    opacity 200ms ease,
    transform 100ms ease,
    background-color 150ms ease,
    box-shadow 100ms ease;
  display: block;
  z-index: 2;
  padding: 0;

  &:hover {
    transform: scale(1.04);
    box-shadow: 0 rem(4px) rem(12px) rgba(0, 0, 0, 0.45);
    z-index: 50;
    background-color: clr(blue);
    border-color: clr(yellow);

    .colosseum-tile__time,
    .colosseum-tile__cap {
      color: clr(yellow);
    }

    .colosseum-tile__title {
      color: clr(yellow);
      -webkit-text-stroke-color: clr(yellow);
    }
  }

  &--dimmed {
    opacity: 0.3;
    z-index: 1;

    &:hover {
      opacity: 1;
    }
  }

  // Vlajka — pravá polovica, full height, mask gradient.
  &__lang {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    z-index: 0;
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.4)
    );
    mask-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.4)
    );

    .icon {
      width: 100%;
      height: 100%;
      display: block;
      background-size: cover;
      background-position: center;
    }
  }

  // Title — outline text-stroke, oversized, prilepený k pravému okraju.
  &__title {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: rem(10px);
    @include headlineFont;
    font-size: rem(22px);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 0.9;
    color: clr(white);
    z-index: 2;
    text-align: right;
    -webkit-text-stroke: rem(0.5px) clr(white);
    pointer-events: none;
    transition: color 150ms ease;
  }

  // Time — solid tag box vľavo hore.
  &__time {
    position: absolute;
    top: rem(6px);
    left: rem(8px);
    @include headlineFont;
    font-size: rem(18px);
    letter-spacing: 0.04em;
    line-height: 1;
    color: clr(white);
    z-index: 3;
    background-color: clr(darkBlue);
    padding: rem(1px) rem(5px);
  }

  // Cap (kapacita) — solid tag box vľavo dole.
  &__cap {
    position: absolute;
    bottom: rem(6px);
    left: rem(8px);
    font-weight: 300;
    font-size: rem(10px);
    letter-spacing: 0.05em;
    line-height: 1;
    color: clr(white);
    z-index: 3;
    background-color: clr(darkBlue);
    padding: rem(2px) rem(5px);

    &--low {
      color: clr(yellow);
      font-weight: 500;
    }

    &--last {
      color: #ff8888;
      font-weight: 500;
    }

    &--sold {
      color: rgba(255, 255, 255, 0.5);
      text-decoration: line-through;
    }
  }

  // Focus visible (WCAG 2.4.7).
  &:focus-visible {
    outline: rem(3px) solid clr(yellow);
    outline-offset: rem(2px);
    z-index: 50;
  }
}

// =================== TILE-POPOVER MODAL ===================
.colosseum-tile-popover {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: clr(white);
  color: clr(blue);
  // Top padding väčší kvôli close buttonu ktorý prečnieva nad horný okraj.
  padding: rem(40px) rem(20px) rem(24px);
  border: rem(2px) solid clr(blue);
  z-index: 1000;
  max-width: rem(460px);
  width: 92vw;
  max-height: 90vh;
  display: none;
  border-radius: 0;
  box-shadow: 0 rem(12px) rem(48px) rgba(0, 0, 0, 0.45);

  &--show {
    display: block;
  }

  // Close button prečnieva nad popover (top: -1.4rem) — vizuálne výrazný "tag" pattern.
  &__close {
    position: absolute;
    top: rem(-22.4px); // -1.4rem
    right: rem(20px);
    width: rem(44.8px); // 2.8rem
    height: rem(44.8px);
    background-color: clr(blue);
    border: rem(2px) solid clr(blue);
    font-size: rem(24px);
    font-weight: 500;
    color: clr(white);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
      background-color 150ms ease,
      color 150ms ease,
      border-color 150ms ease,
      transform 150ms ease;

    &:hover {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
      transform: scale(1.06);
    }

    // WCAG 2.4.7 Focus Visible.
    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(3px);
    }

    // SVG icon vnútri (×).
    svg {
      width: rem(20px);
      height: rem(20px);
      pointer-events: none;
    }
  }

  &__content {
    h4 {
      @include headlineFont;
      font-size: rem(26px);
      margin: 0 0 rem(18px);
      color: clr(blue);
      line-height: 1.1;
    }
  }

  &__rows {
    margin-bottom: rem(18px);
  }

  &__row {
    display: grid;
    grid-template-columns: rem(24px) 1fr auto;
    align-items: center;
    gap: rem(14px);
    padding: rem(12px) 0;
    font-size: rem(15px);
    color: clr(violetBlue);
    border-bottom: rem(1px) solid rgba(0, 26, 112, 0.12);

    &:last-child {
      border-bottom: 0;
    }

    @include breakpoint(small down) {
      grid-template-columns: rem(20px) 1fr auto;
      gap: rem(10px);
      font-size: rem(14px);
      padding: rem(10px) 0;
    }

    &-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: clr(lightBlue);

      .icon-line {
        width: rem(20px);
        height: rem(20px);

        @include breakpoint(small down) {
          width: rem(18px);
          height: rem(18px);
        }
      }
    }

    &-label {
      color: clr(violetBlue);
    }

    &-value {
      @include headlineFont;
      font-weight: 500;
      font-size: rem(18px);
      color: clr(blue);
      text-align: right;
      display: inline-flex;
      align-items: center;
      gap: rem(8px);
      justify-content: flex-end;

      @include breakpoint(small down) {
        font-size: rem(16px);
      }
    }
  }

  &__form {
    margin-top: rem(18px);

    .colosseum-form__submit {
      width: 100%;
      background-color: clr(blue);
      color: clr(white);
      border: rem(2px) solid clr(blue);
      @include headlineFont;
      font-weight: 500;
      font-size: rem(18px);
      padding: rem(12px) rem(20px);
      cursor: pointer;
      transition: all 200ms ease;
      border-radius: 0;

      &:hover:not(:disabled) {
        background-color: clr(yellow);
        color: clr(blue);
        border-color: clr(yellow);
      }
    }
  }

  &__backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 999;
    opacity: 0;
    transition: opacity 200ms ease;

    &[hidden] {
      display: none;
    }

    &--show {
      opacity: 1;
    }
  }
}

// =================== CTA "VYBRAT TERMÍN ONLINE" (na /navstivte-nas/ pod 2 excursion blokmi) ===================
// Klient hovor 2026-05-13: žlté primary tlačidlo s cart ikonou → smeruje na /rezervace/.
// Centrovaný button v dark-blue sekcii "Rezervujte si svou návštěvu".
.cta-rezervace {
  display: flex;
  justify-content: center;
  margin-top: rem(24px);

  &__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: rem(12px);
    padding: rem(14px) rem(32px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(22px);
    letter-spacing: 0.04em;
    background-color: clr(yellow);
    color: clr(blue);
    border: rem(2px) solid clr(yellow);
    cursor: pointer;
    text-decoration: none;
    transition: all 200ms ease;
    line-height: 1;

    &:hover,
    &:focus-visible {
      background-color: transparent;
      color: clr(yellow);
      border-color: clr(yellow);
    }

    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(3px);
    }

    @include breakpoint(small down) {
      padding: rem(12px) rem(24px);
      font-size: rem(18px);
      gap: rem(8px);
    }
  }

  &__icon {
    width: rem(22px);
    height: rem(22px);
    flex-shrink: 0;

    @include breakpoint(small down) {
      width: rem(18px);
      height: rem(18px);
    }
  }
}


// =================== REZERVAČNÝ PANEL TERMÍNU + KOŠÍK NA WEBE (booking.js) ===================
// Panel beží v rovnakom okne ako „Více info" (.colosseum-voucher-modal, teleport na body),
// preto selektory bez rodiča bloku. Lišta košíka je pripnutá k spodnému okraju okna.
.colosseum-booking {
  &__head {
    margin: 0 0 rem(20px);
    padding-bottom: rem(16px);
    border-bottom: rem(1px) solid rgba(0, 26, 112, 0.15);
  }

  &__pre {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(14px);
    letter-spacing: 0.08em;
    color: clr(lightBlue);
    margin: 0 0 rem(6px);
  }

  &__title {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(30px);
    line-height: 1.1;
    color: clr(blue);
    margin: 0 0 rem(8px);

    @include breakpoint(small down) {
      font-size: rem(24px);
    }
  }

  &__meta {
    display: flex;
    align-items: center;
    gap: rem(6px);
    margin: 0;
    font-size: rem(15px);
    font-weight: 500;
    color: clr(violetBlue);
  }

  &__loading {
    margin: rem(12px) 0;
    color: clr(lightBlue);
  }

  &__rows {
    display: flex;
    flex-direction: column;
  }

  &__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: rem(16px);
    padding: rem(14px) 0;
    border-bottom: rem(1px) solid rgba(0, 26, 112, 0.15);

    @include breakpoint(small down) {
      grid-template-columns: 1fr auto;
      grid-template-areas:
        'info info'
        'price stepper';
      gap: rem(8px) rem(12px);

      .colosseum-booking__info {
        grid-area: info;
      }

      .colosseum-booking__price {
        grid-area: price;
      }

      .colosseum-booking__stepper {
        grid-area: stepper;
      }
    }
  }

  &__label {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(19px);
    line-height: 1.2;
    color: clr(blue);
    margin: 0;
  }

  &__desc {
    margin: rem(4px) 0 0;
    font-size: rem(14px);
    line-height: 1.4;
    color: clr(violetBlue);
  }

  &__price {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(19px);
    color: clr(blue);
    white-space: nowrap;
  }

  &__stepper {
    display: inline-flex;
    align-items: center;
    border: rem(2px) solid clr(blue);
    background: clr(white);
  }

  &__step {
    width: rem(40px);
    height: rem(40px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: clr(blue);
    font-size: rem(22px);
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease;

    &:hover:not(:disabled) {
      background-color: clr(yellow);
    }

    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(-3px);
    }

    &:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
  }

  &__qty {
    min-width: rem(36px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(19px);
    text-align: center;
    color: clr(blue);
  }

  &__error {
    margin: rem(10px) 0 0;
    font-size: rem(14px);
    font-weight: 500;
    color: #b3261e;

    &:empty {
      display: none;
    }
  }

  // Na mobile pripnutá k spodku scrollovacieho __content (padding 20px → bottom -20px).
  &__footer {
    @include breakpoint(small down) {
      position: sticky;
      bottom: rem(-20px);
      z-index: 1;
      margin: 0 rem(-20px);
      padding: rem(4px) rem(20px) rem(20px);
      background-color: clr(darkSepia);
      box-shadow: 0 rem(-8px) rem(16px) rgba(222, 213, 199, 0.95);
    }
  }

  &__sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: rem(12px);
    margin: rem(18px) 0 0;
    font-size: rem(16px);
    color: clr(blue);
  }

  &__sum-value {
    @include headlineFont;
    font-weight: 500;
    font-size: rem(26px);
    white-space: nowrap;
  }

  &__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: rem(12px);
    margin: rem(18px) 0 0;

    &--single {
      grid-template-columns: 1fr;
    }

    @include breakpoint(small down) {
      grid-template-columns: 1fr;

      .colosseum-booking__btn--primary {
        order: -1;
      }
    }
  }

  &__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: rem(12px) rem(16px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(17px);
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    border: rem(2px) solid clr(blue);
    border-radius: 0;
    cursor: pointer;
    transition: all 200ms ease;

    &--primary {
      background-color: clr(blue);
      color: clr(white);
    }

    &--secondary {
      background-color: transparent;
      color: clr(blue);
    }

    &:hover,
    &:focus-visible {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
    }

    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(3px);
    }

    &.is-disabled {
      opacity: 0.4;
      pointer-events: none;
      cursor: not-allowed;
    }
  }

  &__note {
    margin: rem(14px) 0 0;
    font-size: rem(13px);
    line-height: 1.4;
    color: clr(lightBlue);
  }

  &__cart-term {
    padding: rem(14px) 0;
    border-bottom: rem(1px) solid rgba(0, 26, 112, 0.15);
  }

  &__links {
    display: flex;
    gap: rem(18px);
    margin: rem(8px) 0 0;
  }

  &__link {
    padding: 0;
    border: 0;
    background: transparent;
    color: clr(blue);
    font-size: rem(14px);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;

    &:hover,
    &:focus-visible {
      color: clr(violetBlue);
    }
  }
}

// Miesto, ktoré lišta košíka zaberá dole na stránke (odsadenie obsahu a ikony cookies).
$colosseum-cartbar-space: rem(84px);
$colosseum-cartbar-space-mobile: rem(140px);

// Lišta košíka — viditeľná, kým je v košíku aspoň jedna vstupenka.
.colosseum-cartbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900; // pod oknom (1000), nad obsahom
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: rem(8px) rem(16px);
  padding: rem(12px) rem(24px);
  background-color: clr(blue);
  color: clr(white);
  box-shadow: 0 rem(-6px) rem(24px) rgba(0, 0, 0, 0.25);

  &[hidden] {
    display: none;
  }

  @include breakpoint(small down) {
    padding: rem(10px) rem(16px);
  }

  &__info {
    margin: 0;
    font-size: rem(16px);

    strong {
      @include headlineFont;
      font-weight: 500;
      font-size: rem(19px);
      letter-spacing: 0.02em;
    }
  }

  &__valid {
    font-size: rem(14px);
    opacity: 0.85;

    @include breakpoint(small down) {
      display: block;
    }
  }

  &__actions {
    display: flex;
    gap: rem(10px);

    @include breakpoint(small down) {
      width: 100%;

      > * {
        flex: 1;
      }
    }
  }

  &__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: rem(10px) rem(20px);
    @include headlineFont;
    font-weight: 500;
    font-size: rem(17px);
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    border: rem(2px) solid clr(white);
    border-radius: 0;
    background: transparent;
    color: clr(white);
    cursor: pointer;
    transition: all 200ms ease;

    &--primary {
      background-color: clr(yellow);
      border-color: clr(yellow);
      color: clr(blue);
    }

    &:hover,
    &:focus-visible {
      background-color: clr(white);
      border-color: clr(white);
      color: clr(blue);
    }

    &:focus-visible {
      outline: rem(3px) solid clr(yellow);
      outline-offset: rem(3px);
    }
  }

  &__sim {
    flex-basis: 100%;
    margin: 0;
    font-size: rem(12px);
    opacity: 0.75;
  }
}

// Vyššia špecifickosť: štýly editora (wp-components, načítané iba pre prihlásených) majú
// `[role="region"] { position: relative }` a lištu by inak odopli zo spodku okna.
.colosseum-cartbar[role="region"] {
  position: fixed;
}

body.has-colosseum-cartbar {
  padding-bottom: $colosseum-cartbar-space;

  @include breakpoint(small down) {
    padding-bottom: $colosseum-cartbar-space-mobile;
  }

  // Ikona nastavení cookies (Must-Have Cookie: fixed vľavo dole, z-index nad všetkým, farba lišty)
  // by prekryla začiatok lišty košíka — kým je lišta viditeľná, posunie sa nad ňu.
  .mhcookie-preferences-toggle:not([data-position^="middle"]) {
    bottom: $colosseum-cartbar-space;

    @include breakpoint(small down) {
      bottom: $colosseum-cartbar-space-mobile;
    }
  }
}
