/* ── GFM Reasons to Visit Block ─────────────────────────────── */

.reasons {
  position: relative;
  background: #08070D;
  overflow: hidden;
}

/* ── Background layers ── */
.reasons__bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.reasons__bg-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.reasons__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.reasons__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay, 0.4));
  z-index: 1;
  pointer-events: none;
}

.reasons__inner {
  position: relative;
  z-index: 3;
  padding: clamp(60px, 8vh, 120px) var(--nav-px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5.2vw, 80px);
}

.reasons__header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.reasons__headline {
  font-weight: 600;
  font-size: var(--type-h2-size);
  line-height: 1.05;
  color: #FFFEFD;
  margin: 0;
  max-width: 1200px;
  text-transform: uppercase;
}

.reasons__headline-hl {
  color: #04DDCF;
}

/* ── Navigation ── */
.reasons__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.reasons__arrow {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-stroke, #59516D);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.reasons__arrow:hover {
  border-color: #04DDCF;
  background: rgba(4, 221, 207, 0.12);
}

.reasons__arrow--prev img {
  transform: rotate(180deg);
}

.reasons__arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Swiper ── */
.reasons__grid {
  position: relative;
  overflow: visible;
}

.reasons__track {
  will-change: transform;
}

.reasons__swiper {
  overflow: visible;
}

.reasons__swiper .swiper-slide {
  width: 33%;
  height: auto;
}

/* ── Card ── */
.reasons__card {
  position: relative;
  background: rgba(8, 7, 13, 0.8);
  border: 1px solid var(--color-stroke);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  height: auto;
  flex: 0 0 auto;
  width: 33%;
}

/* ── Corner dots ── */
.reasons__corner {
  position: absolute;
  width: 12px;
  height: 12px;
  /* match the card's cycling button colour (orange / green / purple) */
  background: var(--rc-link, var(--dot-color, #4F07AF));
}

.reasons__corner--tl {
  top: -6px;
  left: -6px;
}

.reasons__corner--tr {
  top: -6px;
  right: -6px;
}

.reasons__corner--bl {
  bottom: -6px;
  left: -6px;
}

.reasons__corner--br {
  bottom: -6px;
  right: -6px;
}

/* ── Card image ── */
.reasons__card-img {
  height: clamp(180px, 22vw, 360px);
  overflow: hidden;
  border: 1px solid var(--color-stroke);
  flex-shrink: 0;
}

.reasons__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Card body ── */
.reasons__card-body {
  display: flex;
  flex-direction: column;
  gap: 36px;
  flex: 1;
}

.reasons__card-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: #FDFDFD;
  margin: 0;
  text-transform: uppercase;
}

.reasons__card-description {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #FDFDFD;
  margin: 0;
}

.reasons--why-visit .reasons__card {
  min-height: 575px;
}

.reasons--why-visit .reasons__card-body {
  gap: 12px;
}

.reasons--why-visit .reasons__card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: calc(16px * 1.2 * 3);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CTA link (replaces sponsor logo) ── */
.reasons__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  color: #FDFDFD;
  font-family: var(--font-brand);
  font-size: var(--type-body-md-size);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  border: 1px solid var(--rc-link, var(--color-turquoise-500, #04DDCF));
  background: transparent;
  transition: gap 0.3s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.reasons__card-cta:hover {
  color: #FDFDFD;
  background: var(--rc-link, var(--color-turquoise-500, #04DDCF));
  gap: 13px;
  opacity: 1;
}

.reasons__card-cta svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.reasons__card-cta:hover svg {
  transform: translateX(4px);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .reasons__swiper .swiper-slide {
    width: 80%;
  }

  .reasons--why-visit .reasons__card {
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .reasons__header {
    flex-direction: column;
    gap: 16px;
  }

  .reasons__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    scrollbar-width: none;
    padding: 4px;
    justify-content: start;
  }

  .reasons__grid::-webkit-scrollbar {
    display: none;
  }

  .reasons__card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
    width: 80vw;
  }

  .reasons__card-img {
    height: 220px;
  }

  .reasons__card-description {
    font-size: 16px;
  }

  .reasons--why-visit .reasons__card-description {
    max-height: calc(16px * 1.2 * 3);
  }
}

/* ── Editor preview ── */
.editor-styles-wrapper .reasons__nav {
  display: none;
}

.editor-styles-wrapper .reasons {
  background: #08070D;
  min-height: 400px;
}

.editor-styles-wrapper .reasons__swiper {
  overflow: visible;
}

.editor-styles-wrapper .reasons__swiper .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  transform: none !important;
  will-change: unset;
}

.editor-styles-wrapper .reasons__swiper .swiper-slide {
  width: calc(33% - 16px) !important;
  height: auto !important;
}
