/* SFTL linked location banners.
   This file owns banner layout, linked-location placement variables,
   related category-strip spacing, and dot controls. */

.linked-location {
  --linked-location-frame-height: clamp(360px, 37vw, 560px);
  --linked-location-head-top: clamp(16px, 2.15vw, 36px);
  --linked-location-head-left: clamp(34px, 2.5vw, 64px);
  --linked-location-head-max-width: min(920px, calc(100% - 76px));
  --linked-location-eyebrow-size: clamp(0.9rem, 1.16vw, 1.22rem);
  --linked-location-eyebrow-spacing: 0.2em;
  --linked-location-nav-size: 52px;
  --linked-location-nav-offset: clamp(22px, 3.2vw, 54px);
  --linked-location-nav-glyph-size: 15px;
  --linked-location-nav-glyph-stroke: 4px;
  --linked-location-dots-bottom: clamp(18px, 2.6vw, 32px);
  --linked-location-dots-gap: 12px;
  --linked-location-dots-padding: 12px 16px;
  --linked-location-dots-margin-bottom: -12px;
  --linked-location-dot-size: 10px;
  width: 100%;
  margin: 0 auto;
}

.linked-location__inner {
  display: block;
  width: 100%;
}

.linked-location__frame {
  position: relative;
  width: 100%;
  height: var(--linked-location-frame-height);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--bg-base);
  box-shadow: none;
}

.linked-location__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1) brightness(1);
  transform: none;
  transition: none;
}

.linked-location__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 14, 0.96) 0%,
      rgba(8, 8, 14, 0.78) 9%,
      rgba(8, 8, 14, 0.48) 20%,
      rgba(8, 8, 14, 0.22) 34%,
      rgba(8, 8, 14, 0.04) 50%,
      rgba(8, 8, 14, 0.00) 64%
    );
}

.linked-location__head {
  position: absolute;
  z-index: 2;
  top: var(--linked-location-head-top);
  left: var(--linked-location-head-left);
  max-width: var(--linked-location-head-max-width);
  text-align: left;
  pointer-events: none;
}

.linked-location__eyebrow {
  display: block;
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--linked-location-eyebrow-size);
  font-weight: 700;
  letter-spacing: var(--linked-location-eyebrow-spacing);
  line-height: 1.12;
  text-transform: uppercase;
  white-space: normal;
  color: rgba(204, 196, 174, 0.8);
  text-shadow: 0 2px 11px rgba(0, 0, 0, 0.92);
}

.linked-location + .other-races-section {
  --category-strip-padding-top: clamp(52px, 4.3vw, 70px);
  --category-strip-padding-bottom: 18px;
  margin-top: 0;
  border-top: 0;
}

.linked-location + .other-races-section .category-strip {
  align-items: flex-start;
}

.linked-location__nav {
  --sftl-arrow-glyph-size: var(--linked-location-nav-glyph-size);
  --sftl-arrow-glyph-stroke: var(--linked-location-nav-glyph-stroke);
  z-index: 3;
  width: var(--linked-location-nav-size);
  height: var(--linked-location-nav-size);
  color: rgba(238, 229, 211, 0.72);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.18);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.linked-location__nav:is(:hover, :focus-visible) {
  color: rgba(240, 232, 216, 0.92);
  box-shadow: 0 0 18px rgba(200, 191, 176, 0.12);
}

.linked-location__nav--prev {
  left: var(--linked-location-nav-offset);
}

.linked-location__nav--next {
  right: var(--linked-location-nav-offset);
}

.linked-location__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  bottom: var(--linked-location-dots-bottom);
  z-index: 50;
  gap: var(--linked-location-dots-gap);
  padding: var(--linked-location-dots-padding);
  margin-bottom: var(--linked-location-dots-margin-bottom);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  transform: translateX(-50%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
}

.linked-location__dots .linked-location__dot {
  position: relative;
  padding: 0;
  width: var(--linked-location-dot-size);
  height: var(--linked-location-dot-size);
  min-width: var(--linked-location-dot-size);
  min-height: var(--linked-location-dot-size);
  border: 1.5px solid rgba(200, 191, 176, 0.44);
  background: rgba(200, 191, 176, 0.06);
  border-radius: 50%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  opacity: 0.42;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.64);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.linked-location__dots:is(:hover, :focus-within) .linked-location__dot:not(.is-active) {
  opacity: 0.84;
  background: rgba(200, 191, 176, 0.1);
  border-color: rgba(200, 191, 176, 0.66);
  box-shadow:
    0 0 8px rgba(200, 191, 176, 0.13),
    0 1px 6px rgba(0, 0, 0, 0.62);
}

.linked-location__dots .linked-location__dot:is(:hover, :focus-visible) {
  opacity: 1;
  transform: scale(1.18);
}

.linked-location__nav:is(:hover, :focus-visible),
.linked-location__dots .linked-location__dot:is(:hover, :focus-visible) {
  outline: none;
}

.linked-location__dots .linked-location__dot.is-active {
  opacity: 1;
  background: rgba(200, 191, 176, 0.36);
  border-color: rgba(240, 232, 216, 0.88);
  box-shadow:
    0 0 7px rgba(240, 232, 216, 0.42),
    0 0 18px rgba(200, 191, 176, 0.34),
    0 0 34px rgba(200, 191, 176, 0.16),
    0 1px 7px rgba(0, 0, 0, 0.68);
}

.linked-location__dots .linked-location__dot.is-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 191, 176, 0.22) 0%, rgba(200, 191, 176, 0.06) 46%, rgba(200, 191, 176, 0) 72%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .linked-location {
    --linked-location-frame-height: clamp(260px, 48vw, 430px);
    --linked-location-head-top: clamp(16px, 3.5vw, 28px);
    --linked-location-head-left: clamp(22px, 4vw, 38px);
    --linked-location-eyebrow-size: clamp(0.72rem, 1.85vw, 0.98rem);
    --linked-location-eyebrow-spacing: 0.17em;
  }

  .linked-location + .other-races-section {
    --category-strip-padding-top: 44px;
    --category-strip-padding-bottom: 16px;
  }
}

@media (max-width: 720px) {
  .linked-location {
    --linked-location-nav-size: 44px;
    --linked-location-nav-offset: 14px;
    --linked-location-nav-glyph-size: 12px;
    --linked-location-nav-glyph-stroke: 3px;
    --linked-location-dots-bottom: 12px;
    --linked-location-dots-gap: 10px;
    --linked-location-dots-padding: 10px 13px;
    --linked-location-dots-margin-bottom: -10px;
    --linked-location-dot-size: 9px;
  }
}

@media (max-width: 520px) {
  .linked-location {
    --linked-location-frame-height: clamp(220px, 64vw, 330px);
    --linked-location-head-top: 14px;
    --linked-location-head-left: 18px;
    --linked-location-head-max-width: calc(100% - 36px);
    --linked-location-eyebrow-size: 0.66rem;
    --linked-location-eyebrow-spacing: 0.15em;
  }

  .linked-location + .other-races-section {
    --category-strip-padding-top: 32px;
    --category-strip-padding-bottom: 14px;
  }
}
