/* Tour pilot chrome — preview pill + stub toast. */
.tour-preview-pill {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  /* 44px floor so the tour chrome clears the mobile tap-target minimum. */
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem 0.625rem 1rem;
  border-radius: 9999px;
  background: rgb(15 23 42);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 25px rgb(15 23 42 / 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.tour-preview-pill__icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.tour-preview-pill__text {
  display: block;
}

.tour-preview-pill:hover {
  background: rgb(30 41 59);
  transform: translateY(-1px);
}

.tour-stub-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  max-width: min(22rem, calc(100vw - 2.5rem));
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgb(15 23 42);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 12px 30px rgb(15 23 42 / 0.28);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tour-stub-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tour hub at / — premium 3-up showcase grid. */
.tour-hub-body {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
}

.tour-hub {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Axelerant-branded tour hub — logo bar + tiles as hero. */
.tour-hub__logobar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.25rem;
  background: #ffffff;
  border-bottom: 3px solid #f36c00;
}

.tour-hub__brand {
  display: block;
  line-height: 0;
  opacity: 0.96;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tour-hub__brand:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.tour-hub__brand-logo {
  display: block;
  width: auto;
  height: 1.875rem;
  max-width: 10.5rem;
}

.tour-hub__main--hero {
  flex: 1;
  padding: 1.75rem 1rem 2rem;
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, rgb(243 108 0 / 0.08) 0%, transparent 55%),
    #ffffff;
}

.tour-hub__title-block {
  max-width: 72rem;
  margin: 0 auto 1.75rem;
  padding: 1.25rem 0.25rem 0.5rem;
  text-align: center;
}

.tour-hub__title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #161616;
}

.tour-hub__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c45a00;
}

.tour-hub__main--hero .tour-hub__grid {
  gap: 1rem;
}

.tour-hub__main--hero .tour-hub__card {
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.06),
    0 12px 32px rgb(15 23 42 / 0.12);
}

.tour-hub__main--hero .tour-hub__card:hover {
  box-shadow:
    0 4px 8px rgb(15 23 42 / 0.08),
    0 20px 48px rgb(243 108 0 / 0.22);
}

.tour-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.tour-hub__card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgb(15 23 42 / 0.06),
    0 8px 28px rgb(15 23 42 / 0.12);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.tour-hub__card-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.tour-hub__card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 4px 8px rgb(15 23 42 / 0.08),
    0 20px 48px rgb(75 63 166 / 0.28);
}

.tour-hub__card:hover .tour-hub__card-frame {
  border-color: rgb(255 255 255 / 0.55);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

.tour-hub__card:hover .tour-hub__thumb {
  transform: scale(1.06);
}

.tour-hub__card:hover .tour-hub__label-cta {
  opacity: 1;
  transform: translateY(0);
}

.tour-hub__card:focus-visible {
  outline: 3px solid #ff8500;
  outline-offset: 4px;
}

.tour-hub__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-hub__label {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem 1.1rem;
  background: linear-gradient(
    to top,
    rgb(8 15 30 / 0.92) 0%,
    rgb(8 15 30 / 0.55) 55%,
    transparent 100%
  );
}

.tour-hub__label-text {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.02em;
}

.tour-hub__label-cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: rgb(255 133 0 / 0.92);
  opacity: 0.92;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.tour-hub__card:hover .tour-hub__label-cta,
.tour-hub__card:focus-visible .tour-hub__label-cta {
  background: #ff8500;
  opacity: 1;
}

.tour-hub__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
  background: #2a2a28;
}

.tour-hub__footer-dot {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@media (min-width: 640px) {
  .tour-hub__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  /* Bento featured tile: the first card takes two rows in column one, which
     shifts the remaining cards up by one cell and keeps the last row full.
     7 cards / 2 cols → rows of 1+1, 1+1, 2, 2 instead of a lone trailing tile. */
  .tour-hub__card--featured {
    grid-row: span 2;
    aspect-ratio: auto;
  }

  /* Taking the thumb out of flow keeps the row tracks sized by the normal
     16/11 cards — otherwise the featured card's intrinsic image height would
     inflate both rows it spans. */
  .tour-hub__card--featured .tour-hub__thumb {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 1024px) {
  .tour-hub__logobar {
    padding: 1rem 2rem;
  }

  .tour-hub__brand-logo {
    height: 2.125rem;
    max-width: 12rem;
  }

  .tour-hub__main--hero {
    padding: 2.25rem 2rem 2.75rem;
  }

  .tour-hub__title-block {
    margin-bottom: 2.25rem;
    padding: 1.5rem 0.25rem 0.75rem;
  }

  .tour-hub__main--hero .tour-hub__grid {
    gap: 1.35rem;
  }

  .tour-hub__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .tour-hub__label-text {
    font-size: 1.25rem;
  }

  /* Seven cards occupy eight grid cells once the homepage spans two rows.
     Let the final tile fill the two-cell remainder instead of ending on a
     visibly empty desktop cell. */
  .tour-hub__card:last-child {
    grid-column: span 2;
    aspect-ratio: 32 / 11;
  }
}

@media (max-width: 639px) {
  .tour-hub__logobar {
    padding: 0.75rem 0.875rem;
  }

  .tour-hub__brand-logo {
    height: 1.5rem;
    max-width: 8.5rem;
  }

  .tour-hub__main--hero {
    padding: 1.25rem 0.75rem 1.75rem;
  }

  .tour-hub__title-block {
    margin-bottom: 1.25rem;
    padding: 1rem 0.25rem 0.35rem;
  }

  .tour-hub__footer {
    flex-direction: column;
    gap: 0.2rem;
    padding-block: 1.125rem;
    font-size: 0.8125rem;
  }

  .tour-hub__footer-dot {
    display: none;
  }
}
