/* ============================================================
   activities-banner.css
   CSS for the Decathlon activities jumbotron banner (City /
   Sport / Dates + Search).  tokens.css + vp-lib.css already
   define all design-system tokens and .vp-button — this file
   only adds what is missing.
   ============================================================ */

/* ── Scoped element resets inside the banner ──────────────
   activities.html's Tailwind base resets border-style: solid
   and zeroes out input/button padding.  Recreate only inside
   the banner so we don't touch the rest of the page.         */
.activities-jumbotron input,
.activities-jumbotron button:not(.vp-button) {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  margin: 0;
  padding: 0;
}

/* ── Grid container ───────────────────────────────────────── */
.container {
  display: grid;
  width: 100%;
  max-width: 1884px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}
@media (min-width: 601px) {
  .container { padding-left: 5rem; padding-right: 5rem; }
}
@media (min-width: 1302px) {
  .container { gap: 1.5rem; }
}
@media (min-width: 1688px) {
  .container { padding-left: 10rem; padding-right: 10rem; }
}

/* ── Utility classes used by the banner markup ────────────── */
.col-span-12 { grid-column: span 12 / span 12; }
.-mx-3       { margin-left: -1rem;  margin-right: -1rem; }
.py-5        { padding-top: 2rem;   padding-bottom: 2rem; }
.ml-3        { margin-left: 1rem; }
.mt-2        { margin-top: .5rem; }
.p-2         { padding: .5rem; }
.p-3         { padding: 1rem; }
.w-full      { width: 100%; }
.block       { display: block; }
.flex        { display: flex; }
.flex-1      { flex: 1 1 0%; }
.items-center { align-items: center; }
.text-left   { text-align: left; }
.top-3       { top: 1rem; }

.bg-white {
  background-color: #ffffff;
}

.font-bold  { font-weight: 700; }
.text-base  { font-size: 1rem; }
.text-grey-dark-3 { color: rgb(26 42 52); }

@media (min-width: 600px) {
  .xs\:-mx-6 { margin-left: -2.5rem; margin-right: -2.5rem; }
}
@media (min-width: 601px) {
  .sm\:-mx-9 { margin-left: -5rem; margin-right: -5rem; }
}
@media (min-width: 900px) {
  .md\:mt-0 { margin-top: 0; }
}
@media (min-width: 1302px) {
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
}

/* ── Jumbotron ────────────────────────────────────────────── */
.jumbotron {
  position: relative;
  display: flex;               /* children are the inner .container */
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 100%),
              linear-gradient(135deg, rgba(0,104,157,.15) 0%, rgba(0,104,157,.05) 100%);
  box-sizing: border-box;
}

/* Mobile: compact height */
.jumbotron { height: 340px; }

.jumbotron__content {
  position: relative;
  z-index: 1;
  grid-column: span 12 / span 12;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

/* Blue gradient title — always, even inside --rounded-image */
.jumbotron__content__title {
  white-space: pre-line;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.76rem;
  color: rgb(54 67 186);
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .jumbotron__content__title {
    background-image: linear-gradient(135deg, #0082c3, #012b49);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
}

/* Restore blue title inside --rounded-image (original CSS makes it dark) */
.jumbotron--rounded-image .jumbotron__content__title {
  background-image: linear-gradient(135deg, #0082c3, #012b49) !important;
  color: transparent !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.jumbotron__content__description {
  margin-top: .5rem;
  color: rgb(104 119 135);
}

/* Image: hidden by default, shown via --rounded-image */
.jumbotron__inner,
.jumbotron__picture {
  display: none;
}

/* --rounded-image: absolute image fills the background */
.jumbotron--rounded-image {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.jumbotron--rounded-image .jumbotron__content {
  justify-content: flex-end;
  padding-right: 0;
}
.jumbotron--rounded-image .jumbotron__inner,
.jumbotron--rounded-image .jumbotron__picture {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  width: 100%;
}
.jumbotron--rounded-image .jumbotron__inner__image,
.jumbotron--rounded-image .jumbotron__picture__image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  padding: 0;
}

/* Mid screens (900px+): taller, different gradient */
@media (min-width: 900px) {
  .jumbotron {
    height: 450px;
    background: linear-gradient(286.5deg, #fff 13.52%, rgba(255,255,255,0) 56.64%),
                linear-gradient(261.07deg, rgba(93,169,229,.25) 0%, rgba(93,169,229,0) 48.38%),
                linear-gradient(135deg, #ebeff6 0%, #fff 100%);
  }
  .jumbotron__content__title {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 3.51rem;
  }
  .jumbotron--rounded-image {
    background-image: none;
    height: 360px;
  }
  .jumbotron--rounded-image .jumbotron__content {
    margin-left: -2rem;
    margin-right: -2rem;
  }
  .jumbotron--rounded-image .jumbotron__inner,
  .jumbotron--rounded-image .jumbotron__picture {
    overflow: hidden;
  }
}

/* Large screens (1302px+): keep stacked layout (no 6+6 image grid split).
   Only restore content span; image stays as absolute background.           */
@media (min-width: 1302px) {
  .jumbotron__content {
    grid-column: span 12 / span 12;   /* keep full width — no sidebar split */
    padding-right: 2rem;
  }
  .jumbotron__content__description { margin-top: 1rem; }
  /* Hide the picture from the grid flow (it remains absolute via --rounded-image) */
  .jumbotron__inner,
  .jumbotron__picture {
    display: none;
  }
}

/* ── Responsive filter bar ────────────────────────────────── */

/* Mobile default: stack inputs vertically */
.activities-jumbotron .jumbotron__content section.flex {
  flex-direction: column;
  gap: .75rem;
  padding: .75rem;
}
/* Each autocomplete / date-range stretches full width */
.activities-jumbotron app-attendee-city-autocomplete,
.activities-jumbotron app-attendee-sports-groups-autocomplete,
.activities-jumbotron app-attendee-date-range-input {
  flex: 1 1 100%;
  width: 100%;
  margin-left: 0;
}
/* Search button: full width on mobile */
.activities-jumbotron .jumbotron__content section.flex > .vp-button {
  width: 100%;
  position: static;
  top: auto;
  margin-left: 0;
}

/* Desktop (900px+): back to horizontal row */
@media (min-width: 900px) {
  .activities-jumbotron .jumbotron__content section.flex {
    flex-direction: row;
    gap: 0;
    padding: 1rem;
    align-items: stretch;
  }
  .activities-jumbotron app-attendee-city-autocomplete,
  .activities-jumbotron app-attendee-sports-groups-autocomplete,
  .activities-jumbotron app-attendee-date-range-input {
    flex: 1 1 0%;
    width: auto;
  }
  .activities-jumbotron app-attendee-sports-groups-autocomplete,
  .activities-jumbotron app-attendee-date-range-input {
    margin-left: 1rem;
  }
  /* Search button: auto size; top:1rem matches .top-3 class offset */
  .activities-jumbotron .jumbotron__content section.flex > .vp-button {
    width: auto;
    position: relative;
    top: 1rem;
    margin-left: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
  }
}

/* ── Input group ──────────────────────────────────────────── */
.input-group__label {
  margin-bottom: .5rem;
  display: block;
  font-size: .75rem;
  color: rgb(104 119 135);
}

/* ── Autocomplete v2 ──────────────────────────────────────── */
.autocomplete-v2 {
  position: relative;
}

.autocomplete-v2__combobox__input {
  height: 3rem;
  width: 100%;
  box-sizing: border-box;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(104 119 135);
  padding-left: 1rem;
  padding-right: 3rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: #fff;
  color: rgb(16 16 16);
  font-size: 1rem;
}
.autocomplete-v2__combobox__input:focus {
  border-width: 2px;
  border-color: rgb(54 67 186);
}

.autocomplete-v2__combobox__clear-button {
  position: absolute;
  top: 0;
  right: 0;
  height: 3rem;
  width: 3rem;
  font-size: 1.5rem;
  color: rgb(97 97 97);
}

.autocomplete-v2__listbox {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10;
  width: 100%;
  overflow-y: auto;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-width: 1px;
  border-style: solid;
  border-top-width: 0;
  border-color: rgb(179 186 195);
  background-color: #ffffff;
  padding: .5rem;
  max-height: 400px;
  box-sizing: border-box;
}

.autocomplete-v2__listbox__list {
  flex-direction: column;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.autocomplete-v2__listbox__list__item {
  cursor: pointer;
  padding: .5rem;
}
.autocomplete-v2__listbox__list__item:hover,
.autocomplete-v2__listbox__list__item--focus {
  border-radius: .375rem;
  background-color: rgb(247 248 249);
}

/* with-icon */
.autocomplete-v2--with-icon .autocomplete-v2__combobox__icon {
  position: absolute;
  z-index: 1;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgb(16 16 16);
}
.autocomplete-v2--with-icon .autocomplete-v2__combobox__input {
  padding-left: 3rem;
}

/* transparent (pill) variant */
.autocomplete-v2--transparent .autocomplete-v2__combobox {
  position: relative;
  border-radius: 1.5rem;
  border-style: none;
  background-color: rgb(245 244 245);
  padding: 12px 1.5rem 12px 12px;
}
.autocomplete-v2--transparent .autocomplete-v2__combobox__input {
  height: 1.5rem;
  border-style: none;
  background-color: rgb(245 244 245);
  outline: none;
  box-shadow: none;
}
.autocomplete-v2--transparent .autocomplete-v2__listbox {
  margin-top: .5rem;
  border-style: none;
  box-shadow: 0 0 4px rgba(41,51,62,.05), 0 0 24px rgba(41,51,62,.25);
}
.autocomplete-v2--transparent.autocomplete-v2--with-icon .autocomplete-v2__combobox__icon {
  height: 1.5rem;
  width: 1.5rem;
}
.autocomplete-v2--transparent.autocomplete-v2--with-icon .autocomplete-v2__combobox__input {
  padding-left: 2rem;
  padding-right: 1.5rem;
}
.autocomplete-v2--transparent.autocomplete-v2--with-icon .autocomplete-v2__combobox__input::placeholder {
  color: rgb(97 97 97);
}

/* ── Date range input ─────────────────────────────────────── */
.date-range-input {
  position: relative;
}
.date-range-input__label {
  margin-bottom: .5rem;
  font-size: .75rem;
  color: rgb(104 119 135);
}
.date-range-input__button {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 48px;
  border-radius: 1.5rem;
  border-style: none;
  background-color: rgb(245 244 245);
  text-align: left;
  font-size: 1rem;
  color: rgb(97 97 97);
  cursor: pointer;
  font-family: inherit;
}
.date-range-input__icon {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: rgb(16 16 16);
}
.date-range-input--transparent .date-range-input__label {
  font-size: 1rem;
  font-weight: 700;
  color: rgb(26 42 52);
}

/* ── Modal (hidden overlay for date picker) ───────────────── */
.modal {
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .18s ease, visibility .18s ease;
}
.modal--open {
  visibility: visible;
  opacity: 1;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal-background {
  height: 100%;
  width: 100%;
  background-color: rgba(26, 42, 52, 0.5);
}

/* ── Promo-banner picture animation ──────────────────────────
   Source: decathlon_files/e8cc0b1bc69e8cba.css
          decathlon_files/3ac7ed63fbe3fc07.css
   Tokens --vp-semantic-motion-duration-slow (1000ms) and
   --vp-semantic-motion-easing-functional-ease-in-out are
   already defined in tokens.css.
   ----------------------------------------------------------- */

/* aspect-ratio utility (needed for image containers) */
.aspect-ratio {
  position: relative;
  overflow: hidden;
}
.aspect-ratio--1-1 {
  aspect-ratio: 1;
}
.aspect-ratio__content {
  position: absolute;
  inset: 0;
}
.aspect-ratio__content > * {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.focal-point--center,
.focal-point--center img,
.focal-point--center video {
  object-position: center;
}

/* promo-banner layout */
.promo-banner__assets-section {
  position: relative;
  align-self: stretch;
  order: 1;
  width: 100%;
}
@media (min-width: 600px) {
  .promo-banner__assets-section {
    grid-row: 1 / span 3;
    grid-column: 2 / 3;
    width: auto;
    padding-top: 75%;
  }
  .promo-banner__assets {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
  }
}
@media (min-width: 1200px) {
  .promo-banner__assets-section {
    grid-row: none;
    grid-column: 2 / 3;
    padding-top: unset;
  }
}

/* animation trigger — invisible sentinel for IntersectionObserver */
.promo-assets__animation-trigger-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.promo-assets__animation-trigger {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 0;
}
@media (min-width: 600px) {
  .promo-assets__animation-trigger {
    inset-block-start: 20%;
    inset-block-end: auto;
  }
}

/* promo-assets container */
.promo-assets {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
}

/* big image: 75% width, pushed to the right */
.promo-assets__big-item {
  width: 75%;
  margin-inline-start: auto;
}
@media (min-width: 1200px) {
  .promo-assets__big-item { width: 80%; }
}

/* small image: absolute, bottom-left, 50% width */
.promo-assets__small-item {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 50%;
}
@media (min-width: 600px) {
  .promo-assets__small-item {
    width: calc(50% - var(--vp-semantic-spacing-l, 20px));
  }
}
@media (min-width: 1200px) {
  .promo-assets__small-item { width: 40%; }
}

/* ── The animation ──────────────────────────────────────────
   Default (before intersection): items are off-screen.
   Mobile:  scale down slightly (scale 0.86, origin bottom).
   Desktop: slide up from below (translateY 100%).
   When .promo-assets--in-view is added by the Observer,
   items transition to their natural position.               */
.promo-assets__big-item,
.promo-assets__small-item {
  transition: transform var(--vp-semantic-motion-duration-slow, 1000ms)
              var(--vp-semantic-motion-easing-functional-ease-in-out, cubic-bezier(0.42, 0, 0.58, 1));
  transform: scale(0.86);
  transform-origin: bottom;
}
@media (min-width: 600px) {
  .promo-assets__big-item,
  .promo-assets__small-item {
    transform: scale(1) translateY(100%);
  }
}

.promo-assets--in-view .promo-assets__big-item,
.promo-assets--in-view .promo-assets__small-item {
  transform: scale(1);
}
@media (min-width: 600px) {
  .promo-assets--in-view .promo-assets__big-item,
  .promo-assets--in-view .promo-assets__small-item {
    transform: scale(1) translateY(0);
  }
}

/* ── Promo-assets slideshow (replaces animated GIF) ─────────────────────── */
.promo-assets__slide {
  opacity: 0;
}

.promo-assets__slide.active {
  opacity: 1;
}

/* ── Голосуем за лучший образ — crop images from top ─────────────────────── */
[data-cs-override-id="bestselling"] .aspect-ratio__content > img {
  object-position: top;
}

/* ── Vote buttons (Голосуем за лучший образ) ────────────────────────────── */
.vote-bar {
  display: flex;
  gap: 8px;
  padding: 10px 0 2px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  min-height: 33px;
  border-radius: 100px;
  border: none;
  background: #f5f4f5;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #616161;
  transition: background 0.15s, color 0.15s;
  user-select: none;
  -webkit-user-select: none;
}

.vote-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.vote-btn:hover {
  background: #eae9ea;
}

.vote-btn--like.voted {
  background: #e6f4ea;
  border-color: #4caf50;
  color: #2e7d32;
}

.vote-btn--dislike.voted {
  background: #fdecea;
  border-color: #ef5350;
  color: #c62828;
}

.vote-btn--bounce svg {
  animation: vote-bounce 0.3s ease;
}

@keyframes vote-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.85); }
  100% { transform: scale(1); }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
/* White gap between last content section and blue footer — uses same token
   as the design system's standard inter-section spacing */
.wnf-footer {
  margin-block-start: var(--vp-semantic-spacing-5xl);
}

/* Remove the empty padding left by the commented-out links grid */
.wnf-footer__links-wrapper {
  padding: 0;
}

/* Reduce padding-top inside footer so it matches padding-bottom
   (wnf-footer__bottom uses --vp-semantic-spacing-3xl) */
.wnf-footer {
  padding-block-start: var(--vp-semantic-spacing-3xl);
}
