/* =====================================================
   DESTINATIONS — HERO
===================================================== */
.bbs-destination-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
}

.bbs-destination-hero--medium {
  min-height: 480px;
}

.bbs-destination-hero--large {
  min-height: 620px;
}

.bbs-destination-hero--fullscreen {
  min-height: 100vh;
}

.bbs-destination-hero__media {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bbs-destination-hero__overlay {
  position: absolute;
  inset: 0;
}

.bbs-destination-hero--overlay-light .bbs-destination-hero__overlay {
  background: linear-gradient(to bottom, rgba(15, 36, 84, 0.34), rgba(15, 36, 84, 0.14));
}

.bbs-destination-hero--overlay-medium .bbs-destination-hero__overlay {
  background: linear-gradient(to bottom, rgba(15, 36, 84, 0.46), rgba(15, 36, 84, 0.20));
}

.bbs-destination-hero--overlay-strong .bbs-destination-hero__overlay {
  background: linear-gradient(to bottom, rgba(15, 36, 84, 0.58), rgba(15, 36, 84, 0.28));
}

.bbs-destination-hero__content {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 180px 0 110px;
}

.bbs-destination-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.bbs-destination-hero__title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
}

/* =====================================================
   DESTINATIONS — TEASER
===================================================== */
.bbs-destination-teaser {
  width: min(1320px, calc(100% - 48px));
  margin: 56px auto 0;
  font-size: 18px;
  line-height: 1.9;
  color: #5e667a;
}

.bbs-destination-teaser p {
  margin: 0 0 18px;
}

.bbs-destination-teaser p:last-child {
  margin-bottom: 0;
}

/* =====================================================
   DESTINATIONS — WRAPPERS
===================================================== */
.bbs-destinations {
  width: 100%;
}

.bbs-destinations__grid {
  display: grid;
  gap: 34px;
}

.bbs-destinations--cols-1 .bbs-destinations__grid {
  grid-template-columns: 1fr;
}

.bbs-destinations--cols-2 .bbs-destinations__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bbs-destinations--cols-3 .bbs-destinations__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bbs-destinations--cols-4 .bbs-destinations__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bbs-destinations__item {
  min-width: 0;
}

.bbs-destinations--carousel {
  overflow: hidden;
  padding-bottom: 0;
}

.bbs-destinations--carousel .swiper-wrapper {
  align-items: stretch;
}

.bbs-destinations--carousel .swiper-slide {
  height: auto;
}

.bbs-destinations-carousel-wrap {
  position: relative;
  width: 100%;
}

.bbs-destinations--carousel {
  overflow: hidden;
  padding-bottom: 0;
}

.bbs-destinations__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 44px;
  height: 56px;
  border: 1px solid #b42318;
  background: #ffffff;
  color: #b42318;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(180, 35, 24, 0.16);
  transition: all 0.25s ease;
}

.bbs-destinations__nav:hover,
.bbs-destinations__nav:focus {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #ffffff !important;
}

.bbs-destinations__nav--prev {
  left: -64px;
}

.bbs-destinations__nav--next {
  right: -64px;
}


@media (max-width: 1399px) {
  .bbs-destinations__nav--prev {
    left: 16px;
  }

  .bbs-destinations__nav--next {
    right: 16px;
  }
}

@media (max-width: 767px) {
  .bbs-destinations__nav {
    width: 38px;
    height: 48px;
    font-size: 24px;
  }
}

.bbs-destinations__pagination {
  position: relative;
  margin-top: 18px;
  text-align: center;
}

.bbs-destinations__pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  opacity: 1;
  background: rgba(15, 36, 84, 0.16);
}

.bbs-destinations__pagination .swiper-pagination-bullet-active {
  background: #b42318;
}

/* =====================================================
   DESTINATION CARD
===================================================== */
.bbs-destination-card {
  position: relative;
  height: 100%;
}

.bbs-destination-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.bbs-destination-card__media {
  position: relative;
  min-height: 620px;
  border-radius: 0;
  overflow: hidden;
  background: #dfe5ef;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bbs-destination-card__image,
.bbs-destination-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s ease,
    opacity 0.45s ease,
    filter 0.45s ease;
}

.bbs-destination-card__video {
  opacity: 0;
  pointer-events: none;
}

.bbs-destination-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.bbs-destination-card--overlay-light .bbs-destination-card__overlay {
  background:
    linear-gradient(to top, rgba(15, 36, 84, 0.18) 0%, rgba(15, 36, 84, 0.06) 40%, rgba(15, 36, 84, 0.02) 100%);
}

.bbs-destination-card--overlay-medium .bbs-destination-card__overlay {
  background:
    linear-gradient(to top, rgba(15, 36, 84, 0.24) 0%, rgba(15, 36, 84, 0.08) 42%, rgba(15, 36, 84, 0.02) 100%);
}

.bbs-destination-card--overlay-strong .bbs-destination-card__overlay {
  background:
    linear-gradient(to top, rgba(15, 36, 84, 0.28) 0%, rgba(15, 36, 84, 0.10) 44%, rgba(15, 36, 84, 0.03) 100%);
}

.bbs-destination-card__ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 9px 14px;
  background: #b42318;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
  transform: none;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.bbs-destination-card__content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.bbs-destination-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  transition: margin-bottom 0.4s ease;
}

.bbs-destination-card__pin {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bbs-destination-card__pin svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bbs-destination-card__title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.bbs-destination-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease 0.1s;
  pointer-events: none;
}

.bbs-destination-card__count {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

.bbs-destination-card__button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #ffffff;
}

.bbs-destination-card__button-arrow {
  transition: transform 0.25s ease;
}

/* hover reel preview */
.bbs-destination-card:hover .bbs-destination-card__video,
.bbs-destination-card:focus-within .bbs-destination-card__video {
  opacity: 1;
}

.bbs-destination-card:hover .bbs-destination-card__image,
.bbs-destination-card:focus-within .bbs-destination-card__image {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.bbs-destination-card:hover .bbs-destination-card__button-arrow,
.bbs-destination-card:focus-within .bbs-destination-card__button-arrow {
  transform: translateX(4px);
}

/* subtle shrink on hover like Travol feel */
.bbs-destination-card:hover .bbs-destination-card__media,
.bbs-destination-card:focus-within .bbs-destination-card__media {
  transform: scale(0.985);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

/* reveal hidden footer + lift content */
.bbs-destination-card:hover .bbs-destination-card__content,
.bbs-destination-card:focus-within .bbs-destination-card__content {
  transform: translateY(-10px);
}

.bbs-destination-card:hover .bbs-destination-card__title-row,
.bbs-destination-card:focus-within .bbs-destination-card__title-row {
  margin-bottom: 14px;
}

.bbs-destination-card:hover .bbs-destination-card__footer,
.bbs-destination-card:focus-within .bbs-destination-card__footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bbs-destination-card:hover .bbs-destination-card__overlay,
.bbs-destination-card:focus-within .bbs-destination-card__overlay {
  background:
    linear-gradient(to top, rgba(15, 36, 84, 0.65) 0%, rgba(15, 36, 84, 0.22) 50%, rgba(15, 36, 84, 0.10) 100%);
}

/* =====================================================
   DESTINATION TOURS
===================================================== */
.bbs-destination-tours-wrap {
  width: 100%;
  margin-top: 48px;
}

.bbs-destination-tours-title {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f2454;
}

/* support destination-tour listing using related-tour card system */
.bbs-related-tours-grid--cols-1 {
  grid-template-columns: 1fr;
}

.bbs-related-tours-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bbs-related-tours-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* =====================================================
   SECTION UTILITIES
===================================================== */
.bbs-destination-section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.bbs-destination-section + .bbs-destination-section {
  margin-top: 56px;
}

/* =====================================================
   DESTINATION CARDS — 3-COLUMN FOOTER CLEANUP
===================================================== */
.bbs-destinations--cols-3 .bbs-destination-card__content {
  bottom: 18px;
}

.bbs-destinations--cols-3 .bbs-destination-card__footer {
  padding-top: 10px;
}

/* remove the grey footer feel on 3-column layouts */
.bbs-destinations--cols-3 .bbs-destination-card--overlay-light .bbs-destination-card__overlay,
.bbs-destinations--cols-3 .bbs-destination-card--overlay-medium .bbs-destination-card__overlay,
.bbs-destinations--cols-3 .bbs-destination-card--overlay-strong .bbs-destination-card__overlay {
  background: linear-gradient(
    to top,
    rgba(15, 36, 84, 0.10) 0%,
    rgba(15, 36, 84, 0.03) 38%,
    rgba(15, 36, 84, 0.00) 100%
  );
}

/* keep the text readable on hover without bringing back the heavy grey band */
.bbs-destinations--cols-3 .bbs-destination-card:hover .bbs-destination-card__overlay,
.bbs-destinations--cols-3 .bbs-destination-card:focus-within .bbs-destination-card__overlay {
  background: linear-gradient(
    to top,
    rgba(15, 36, 84, 0.34) 0%,
    rgba(15, 36, 84, 0.10) 42%,
    rgba(15, 36, 84, 0.02) 100%
  );
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1199px) {
  .bbs-destination-hero__content {
    padding-top: 160px;
    padding-bottom: 90px;
  }

  .bbs-destination-card__media {
    min-height: 540px;
  }

  .bbs-destinations--cols-4 .bbs-destinations__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .bbs-destination-hero--medium {
    min-height: 420px;
  }

  .bbs-destination-hero--large {
    min-height: 520px;
  }

  .bbs-destination-hero__content {
    width: min(100%, calc(100% - 32px));
    padding-top: 144px;
    padding-bottom: 74px;
  }

  .bbs-destination-teaser,
  .bbs-destination-section {
    width: min(100%, calc(100% - 32px));
  }

  .bbs-destinations--cols-3 .bbs-destinations__grid,
  .bbs-destinations--cols-4 .bbs-destinations__grid,
  .bbs-related-tours-grid--cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbs-destination-card__media {
    min-height: 460px;
  }

  .bbs-destination-card__content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
}

@media (max-width: 767px) {
  .bbs-destination-hero--medium,
  .bbs-destination-hero--large,
  .bbs-destination-hero--fullscreen {
    min-height: 420px;
  }

  .bbs-destination-hero__content {
    padding-top: 132px;
    padding-bottom: 64px;
  }

  .bbs-destination-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.28em;
  }

  .bbs-destination-card__media {
    min-height: 420px;
  }

  .bbs-destination-card__ribbon {
      top: 14px;
      right: 14px;
      min-height: auto;
      padding: 8px 12px;
      font-size: 12px;
    }

  .bbs-destination-card__title {
    font-size: 22px;
  }

  .bbs-destination-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bbs-destination-card:hover .bbs-destination-card__content,
  .bbs-destination-card:focus-within .bbs-destination-card__content {
    transform: translateY(-6px);
  }

  .bbs-destinations__grid,
  .bbs-destinations--cols-2 .bbs-destinations__grid,
  .bbs-destinations--cols-3 .bbs-destinations__grid,
  .bbs-destinations--cols-4 .bbs-destinations__grid,
  .bbs-related-tours-grid--cols-2,
  .bbs-related-tours-grid--cols-3 {
    grid-template-columns: 1fr;
  }
}

