/**
 * @file
 * AAG Tour Showcase — scoped with .aag-layout.
 * Ported from aag-base/components/tour-showcase/tour-showcase.css.
 */

.aag-layout .tour-showcase {
  width: 100%;
  margin-top: 2.75rem;
}

.aag-layout .tour-showcase__virtual {
  padding-top: 1rem;
  border-top: 1px solid var(--gray);
  display: grid;
  gap: 1rem;
}

.aag-layout .tour-showcase__virtual-label {
  margin: 0;
  font-family: var(--header-font-family);
  font-size: 1.25rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.05em;
}

.aag-layout .tour-showcase__virtual-label span {
  display: block;
  /* Keep each word ("VIRTUAL", "TOUR") on its own line without letting
   * the browser break a word mid-character when the grid column is
   * narrower than the word's measured width (was rendering as
   * "VIRTUA / L / TOUR" at the ~900px breakpoint). */
  white-space: nowrap;
}

.aag-layout .tour-showcase__virtual-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background-color: var(--gray);
  aspect-ratio: 16 / 6;
}

.aag-layout .tour-showcase__virtual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.aag-layout .tour-showcase__virtual-card:hover img {
  transform: scale(1.03);
}

.aag-layout .tour-showcase__virtual-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.125rem 1rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.aag-layout .tour-showcase__virtual-text {
  font-family: var(--header-font-family);
  font-size: 1.125rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--white);
}

.aag-layout .tour-showcase__virtual-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  transition: transform 0.25s ease;
}

.aag-layout .tour-showcase__virtual-card:hover .tour-showcase__virtual-icon {
  transform: translate(2px, -2px);
}

@media (min-width: 600px) {
  .aag-layout .tour-showcase__virtual-label {
    font-size: 1.375rem;
  }

  .aag-layout .tour-showcase__virtual-overlay {
    padding: 1.25rem 1.375rem;
  }

  .aag-layout .tour-showcase__virtual-text {
    font-size: 1.375rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .tour-showcase {
    margin-top: 3rem;
  }

  .aag-layout .tour-showcase__virtual {
    padding-top: 1.25rem;
    /* Widen label column from 90px → min-content so the stacked
     * "VIRTUAL / TOUR" label is sized to its longest word rather than
     * a fixed width that was clipping "VIRTUAL" (7 chars at 1.375rem).
     * The card still takes the remainder via minmax(0, 1fr). */
    grid-template-columns: min-content minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
}
