/* TripAdvisor reviews — cinematic floating animation */

.ta-wall {
  --ta-green: #00aa6c;
  --ta-ink: #1a2332;
  --ta-cream: #f6f1e8;
  --ta-paper: #fffcf7;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #141b24;
  color: #fff;
  min-height: min(88vh, 820px);
  padding: clamp(48px, 7vw, 80px) 0;
}

.ta-wall-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(154, 98, 48, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(0, 170, 108, 0.18), transparent 50%),
    linear-gradient(160deg, #10161f 0%, #1c2633 45%, #152018 100%);
}

.ta-wall-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 40px,
      rgba(255, 255, 255, 0.015) 40px 41px
    );
  animation: taDrift 40s linear infinite;
  pointer-events: none;
}

.ta-wall-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/compass-half-logo-bg.png") center / min(70vw, 640px) no-repeat;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: brightness(1.2);
  pointer-events: none;
}

@keyframes taDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, 28px, 0); }
}

.ta-wall-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  min-height: min(70vh, 640px);
}

.ta-score {
  position: relative;
  text-align: center;
  padding: 48px 28px;
  animation: taScoreIn 0.9s ease-out both;
  overflow: visible;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ta-score-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(460px, 170%);
  height: auto;
  max-height: 500px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  display: block;
  opacity: 0.9;
  /* PNG is copper on solid black — screen removes black */
  mix-blend-mode: screen;
  filter: brightness(1.45) contrast(1.15);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  animation: taLogoFloat 14s ease-in-out infinite;
}

.ta-score::before {
  display: none;
}

@keyframes taLogoFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -52%) rotate(6deg) scale(1.05); }
}

.ta-score > *:not(.ta-score-mark) {
  position: relative;
  z-index: 1;
}

@keyframes taScoreIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ta-owl {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ta-green);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(0, 170, 108, 0.45);
  animation: taPulse 2.8s ease-out infinite;
}

.ta-owl svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

@keyframes taPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 170, 108, 0.4); }
  50% { box-shadow: 0 0 0 18px rgba(0, 170, 108, 0); }
}

.ta-score-label {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 8px;
}

.ta-score-num {
  font-family: var(--serif, ivypresto-display, "Bodoni Moda", serif);
  font-weight: 400;
  font-size: clamp(4rem, 8vw, 5.5rem);
  line-height: 0.9;
  margin: 0;
  background: linear-gradient(180deg, #fff 20%, #e8c9a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ta-score-word {
  font-family: var(--serif, ivypresto-display, "Bodoni Moda", serif);
  font-size: 1.65rem;
  margin: 6px 0 14px;
  color: #fff;
}

.ta-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}

.ta-stars span {
  width: 18px;
  height: 18px;
  background: var(--ta-green);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: taStar 1.6s ease-in-out infinite;
}

.ta-stars span:nth-child(2) { animation-delay: 0.12s; }
.ta-stars span:nth-child(3) { animation-delay: 0.24s; }
.ta-stars span:nth-child(4) { animation-delay: 0.36s; }
.ta-stars span:nth-child(5) { animation-delay: 0.48s; }

@keyframes taStar {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 170, 108, 0.8)); }
}

.ta-score-meta {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 12px 0 26px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 16ch;
  margin-inline: auto;
}

.ta-score-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #141b24;
  background: #fff;
  text-decoration: none;
  padding: 12px 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.ta-score-cta:hover {
  background: var(--ta-green);
  color: #fff;
  transform: translateY(-2px);
}

/* Marquee columns */
.ta-stream {
  position: relative;
  height: min(70vh, 640px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.ta-stream-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  height: 100%;
}

.ta-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  will-change: transform;
}

.ta-col--up {
  animation: taScrollUp 42s linear infinite;
}

.ta-col--down {
  animation: taScrollDown 48s linear infinite;
}

.ta-col--up-slow {
  animation: taScrollUp 55s linear infinite;
}

@keyframes taScrollUp {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

@keyframes taScrollDown {
  from { transform: translate3d(0, -50%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.ta-stream:hover .ta-col {
  animation-play-state: paused;
}

.ta-card {
  background: rgba(255, 252, 247, 0.96);
  color: var(--ta-ink);
  padding: 20px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  flex: 0 0 auto;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ta-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.ta-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ta-card-bubbles {
  display: flex;
  gap: 3px;
}

.ta-card-bubbles i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ta-green);
  display: block;
}

.ta-card-via {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7166;
}

.ta-card-title {
  font-family: var(--serif, ivypresto-display, "Bodoni Moda", serif);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ta-ink);
}

.ta-card-text {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5c5348;
  margin: 0 0 14px;
}

.ta-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(154, 98, 48, 0.15);
  padding-top: 10px;
}

.ta-card-name {
  font-family: var(--sans, "Outfit", sans-serif);
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
}

.ta-card-place {
  font-family: var(--sans, "Outfit", sans-serif);
  font-size: 0.78rem;
  color: #7a7166;
  margin: 0;
}

/* Floating featured quote over stream on large screens */
.ta-featured {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 86%);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: taFeatureIn 0.8s ease-out 0.4s both;
}

@keyframes taFeatureIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.ta-featured-card {
  pointer-events: auto;
  background: #fffcf7;
  color: var(--ta-ink);
  padding: 28px 26px 22px;
  border: 1px solid rgba(0, 170, 108, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}

.ta-featured-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: var(--serif, ivypresto-display, "Bodoni Moda", serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(0, 170, 108, 0.35);
}

.ta-featured-card .ta-card-title {
  font-size: 1.35rem;
  padding-left: 8px;
}

.ta-featured-card .ta-card-text {
  font-size: 1.02rem;
  line-height: 1.65;
}

.ta-featured-card.is-swap {
  animation: taSwap 0.55s ease;
}

@keyframes taSwap {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .ta-wall-inner {
    grid-template-columns: 1fr;
  }

  .ta-score {
    padding-bottom: 8px;
  }

  .ta-stream {
    height: 520px;
  }

  .ta-stream-cols {
    grid-template-columns: 1fr 1fr;
  }

  .ta-col--up-slow {
    display: none;
  }

  .ta-featured {
    display: none;
  }
}

@media (max-width: 560px) {
  .ta-stream-cols {
    grid-template-columns: 1fr;
  }

  .ta-col--down {
    display: none;
  }

  .ta-stream {
    height: 460px;
  }

  .ta-score-num {
    font-size: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ta-col--up,
  .ta-col--down,
  .ta-col--up-slow,
  .ta-owl,
  .ta-stars span,
  .ta-wall-bg::before,
  .ta-score::before,
  .ta-score-mark {
    animation: none !important;
  }

  .ta-col--down {
    transform: none;
  }

  .ta-score::before,
  .ta-score-mark {
    transform: translate(-50%, -50%);
  }
}
