/* Карусель «Похожие экскурсии» — своя разметка, без Splide */

.same-tours-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.same-tours-track {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.same-tours-track::-webkit-scrollbar {
  display: none;
}

.same-tours-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1em;
  width: max-content;
  align-items: stretch;
}

.same-tours-slide {
  flex: 0 0 auto;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.same-tours-carousel .link-tabs-excursion {
  overflow: hidden;
  width: 100%;
}

.same-tours-carousel .grid-wrapper-excursion {
  display: flex;
  position: relative;
}

.same-tours-carousel .grid-main-page-box-wrapper {
  overflow: visible;
  width: 100%;
}

/* Стрелки */
.same-tours-arrows {
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  padding-bottom: 0;
  position: absolute;
  inset: auto auto 0% -125px;
}

@media screen and (max-width: 767px) {
  .same-tours-arrows {
    position: static;
    justify-content: flex-end;
    margin-top: 1.5em;
  }
}

.same-tours-arrow {
  position: relative;
  z-index: 2;
  background-color: transparent;
  background-image: url('/images/arrow-grey.svg');
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: auto;
  width: 40px;
  height: 25px;
  margin-right: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: background-image 0.4s;
}

.same-tours-arrow:hover:not(:disabled) {
  background-image: url('/images/arrow-green.svg');
}

.same-tours-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.same-tours-arrow--prev {
  transform: rotateY(-180deg);
}
