/* ==========================================================
   Ticker Bar  -  ticker_bar.css
   Colour comes from the theme's --brand-primary.
   Taller / shorter bar:   .tkr { --tkr-h: 52px; }
   ========================================================== */

.tkr {
  --tkr-accent: var(--brand-primary, #1f8f66);
  --tkr-h: 46px;
  --tkr-bg: #12302a;                                              /* fallback */
  --tkr-bg: color-mix(in srgb, var(--tkr-accent) 40%, #0b1512);
  --tkr-hot: #ffd166;

  position: relative;
  width: 100%;
  background: var(--tkr-bg);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  overflow: hidden;
}
.tkr[hidden] { display: none; }
.tkr--sticky { position: sticky; top: 0; z-index: 900; }

.tkr-inner { display: flex; align-items: stretch; height: var(--tkr-h); }

/* ---------- label on the left ---------- */
.tkr-badge {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  margin-right: -14px; padding: 0 34px 0 18px;
  background: var(--tkr-accent); color: #fff;
  font-weight: 700; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.tkr-dot {
  flex: 0 0 8px; height: 8px; border-radius: 50%;
  background: var(--tkr-hot);
  animation: tkr-pulse 1.8s infinite;
}

/* ---------- scrolling line ---------- */
.tkr-viewport {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 28px), transparent 100%);
}
.tkr-track {
  display: flex; align-items: center; flex-wrap: nowrap;
  width: max-content; height: var(--tkr-h);
  margin: 0; padding: 0; list-style: none;
  will-change: transform;
}
.tkr-track.is-running { animation: tkr-move var(--tkr-dur, 40s) linear infinite; }
.tkr[data-direction="right"] .tkr-track { animation-direction: reverse; }

.tkr.is-paused .tkr-track { animation-play-state: paused; }
@media (hover: hover) {
  .tkr-viewport:hover .tkr-track { animation-play-state: paused; }
}
.tkr-viewport:focus-within .tkr-track { animation-play-state: paused; }

.tkr-item {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding-left: 34px; white-space: nowrap;
}
.tkr-item::before {                         /* small diamond between messages */
  content: ""; position: absolute; left: 13px; top: 50%;
  width: 6px; height: 6px; margin-top: -3px;
  background: var(--tkr-hot); opacity: .8; transform: rotate(45deg);
}
.tkr-text { color: #fff; font-weight: 500; letter-spacing: .1px; text-decoration: none; }
a.tkr-text { cursor: pointer; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a.tkr-text:hover { text-decoration: underline; }

/* ---------- tags ---------- */
.tkr-tag {
  padding: 5px 9px; border-radius: 7px;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 12px; font-weight: 700;
}
.tkr-tag--offer, .tkr-tag--sale, .tkr-tag--deal { background: var(--tkr-hot); color: #3b2a00; }
.tkr-tag--booking, .tkr-tag--book, .tkr-tag--book-now { background: #8de7bd; color: #04281a; }
.tkr-tag--new, .tkr-tag--alert, .tkr-tag--hot { background: #ff9bab; color: #3a0610; }

/* ---------- right side ---------- */
.tkr-side { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; }
.tkr-toggle {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 11px; cursor: pointer;
  transition: background .2s ease;
}
.tkr-toggle:hover { background: rgba(255, 255, 255, .26); }
.tkr-cta {
  padding: 9px 16px; border-radius: 999px;
  background: #fff; color: #10251f !important;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.tkr-cta:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.tkr-cta:active { transform: scale(.97); }
.tkr button:focus-visible,
.tkr a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* ---------- reduced motion: a still, swipeable line ---------- */
.tkr.is-static .tkr-viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
.tkr.is-static .tkr-viewport::-webkit-scrollbar { display: none; }
.tkr.is-static .tkr-track { animation: none !important; transform: none; }
.tkr.is-static .is-clone,
.tkr.is-static .tkr-toggle { display: none; }

@keyframes tkr-move { to { transform: translate3d(var(--tkr-shift, -50%), 0, 0); } }
@keyframes tkr-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 209, 102, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .tkr-dot { animation: none; } }

/* ---------- mobile ---------- */
@media (max-width: 640px) {
  .tkr { --tkr-h: 42px; font-size: 13px; }
  .tkr-badge { padding: 0 28px 0 14px; }
  .tkr-cta { padding: 8px 12px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .tkr-badge-text { display: none; }
  .tkr-badge { padding: 0 24px 0 14px; }
  .tkr-toggle { display: none; }
}