/* Tourgy Tourz – editorial video component
   Fonts are inherited from the site. Colours can be matched to the site's exact
   brand values by changing the four variables below. */

.tt-video {
  --tt-video-ink: #121712;          /* text */
  --tt-video-muted: #5f665c;        /* secondary text (warm brown-grey) */
  --tt-video-accent: #c96b1d;       /* burnt orange – used sparingly */
  --tt-video-rule: rgba(26, 26, 26, 0.12);

  margin: 3rem 0;
  color: var(--tt-video-ink);
  font: inherit;
}

/* ---- Frame: reserves the exact space before anything loads (no layout shift) ---- */
.tt-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--tt-video-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 4px;
  background: #2b2620;
}

.tt-video__play,
.tt-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tt-video__play {
  display: block;
  cursor: pointer;
  text-decoration: none;
}

.tt-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.tt-video__media {
  object-fit: cover;
  background: #000;
}

/* ---- Subtle play button: thin white ring, translucent dark fill ---- */
.tt-video__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.tt-video__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.tt-video__time {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.tt-video__play:hover .tt-video__icon {
  background: rgba(0, 0, 0, 0.45);
  transform: scale(1.04);
}

.tt-video__play:hover .tt-video__poster {
  transform: scale(1.015);
}

.tt-video__play:focus-visible {
  outline: 3px solid var(--tt-video-accent);
  outline-offset: 3px;
}

/* ---- Autoplay mode: no play icon or timer; small pause/play toggle once playing ---- */
.tt-video--autoplay:not(.tt-video--manual) .tt-video__icon,
.tt-video--autoplay:not(.tt-video--manual) .tt-video__time { display: none; }

.tt-video__toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.tt-video__toggle:hover { opacity: 1; background: rgba(0, 0, 0, 0.55); }
.tt-video__toggle:focus-visible { outline: 3px solid var(--tt-video-accent); outline-offset: 2px; opacity: 1; }

/* pause icon (two bars) */
.tt-video__toggle::before,
.tt-video__toggle::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 3px;
  height: 12px;
  background: #fff;
  border-radius: 1px;
}
.tt-video__toggle::before { left: 13px; }
.tt-video__toggle::after  { left: 19px; }

/* play icon (triangle) when paused */
.tt-video__toggle.is-paused::before {
  left: 14px;
  top: 10px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
  border-radius: 0;
}
.tt-video__toggle.is-paused::after { display: none; }

/* ---- Caption ---- */
.tt-video__caption {
  padding-top: 1.1rem;
}

.tt-video__eyebrow,
.tt-video__status {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tt-video-muted);
}

.tt-video__status {
  display: inline-block;
  margin-right: 0.75rem;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  letter-spacing: 0.08em;
}

.tt-video__status--included { color: #24351f; }               /* forest green */
.tt-video__status--optional,
.tt-video__status--upgrade  { color: var(--tt-video-accent); }

.tt-video__title {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: inherit;
}

.tt-video__desc,
.tt-video__note {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: var(--tt-video-muted);
}

.tt-video__note {
  font-size: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--tt-video-rule);
}

.tt-video__link {
  color: var(--tt-video-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--tt-video-accent);
  padding-bottom: 1px;
}

.tt-video__link:hover { color: var(--tt-video-accent); }

/* ---- Feature layout: video beside text on larger screens ---- */
@media (min-width: 900px) {
  .tt-video--feature {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 3rem;
    align-items: center;
  }
  .tt-video--feature .tt-video__caption {
    padding-top: 0;
  }
}

/* ---- Wide layout: full-width cinematic band ---- */
.tt-video--wide { position: relative; margin: 0; }
.tt-video--wide .tt-video__frame { border-radius: 0; max-height: 82vh; min-height: 320px; }
.tt-video--wide .tt-video__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 120px max(24px, calc((100% - 1140px) / 2 + 12px)) 44px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 100%);
  color: #fff; pointer-events: none;
}
.tt-video--wide .tt-video__caption a { pointer-events: auto; }
.tt-video--wide .tt-video__eyebrow { color: rgba(255,255,255,.85); }
.tt-video--wide .tt-video__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; max-width: 760px; }
.tt-video--wide .tt-video__desc { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.05rem; }
.tt-video--wide .tt-video__link { color: #fff; border-bottom-color: #f0a35e; }
.tt-video--wide .tt-video__link:hover { color: #f0a35e; }
.tt-video--wide .tt-video__toggle { top: 18px; right: 18px; bottom: auto; }
.tt-video--wide .tt-video__icon { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
@media (max-width: 767px) {
  .tt-video--wide .tt-video__frame { min-height: 0; }
  .tt-video--wide .tt-video__caption { position: static; padding: 22px 20px 26px; background: #182414; }
}

/* ---- Grids of several videos (package pages) ---- */
.tt-video-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.tt-video-grid .tt-video { margin: 0; }

@media (max-width: 599px) {
  .tt-video { margin: 2rem 0; }
  .tt-video__icon { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-video__poster,
  .tt-video__icon { transition: none; }
  .tt-video__play:hover .tt-video__poster,
  .tt-video__play:hover .tt-video__icon { transform: none; }
}
