/*
Theme Name: Bricks Child
Template: bricks
*/

body:not([data-builder-window]):not(.iframe) .reveal,
body:not([data-builder-window]):not(.iframe) .reveal-stagger > * {
  visibility: hidden;
}

html:not(.lenis) {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    visibility: visible;
  }
}

/* Full Height */
.fh {
  height: 100svh;
  overflow: hidden;
}

/* Mobile Menu Active */
.mobile-nav a.is-active {
  color: var(--badge-green) !important;
}

.tb-flag {
  display: block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}
.tb-currency-toggle [data-tb-flag],
.tb-currency-menu button[role="option"] > span:first-child {
  display: inline-flex;
  align-items: center;
}

/* Swiper Slides */
.brxe-container > .brxe-block,
.brx-grid > * {
  min-width: 0;
}

.swiper.brxe-block {
  width: 100%;
  min-width: 0;
}

.swiper-wrapper.brxe-block {
  flex-wrap: nowrap !important;
}

/* Hero polaroids before Swiper starts: show the first card in place, so mobile doesn't flash a row of slides */
.hero-polaroid-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  width: 100%;
}

.hero-polaroid-swiper:not(.swiper-initialized) .swiper-slide {
  grid-area: 1 / 1;
  width: 100%;
}

.hero-polaroid-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  visibility: hidden;
}

/* Spin */
.spin {
  animation: spin 10s linear infinite;
}

/* Tilt */
.tilt {
  animation: tilt 3s ease infinite alternate-reverse;
}
@keyframes tilt {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 45deg;
  }
}

/* Home Highlight Cards */
.home-featured .highlight-item:nth-child(2) {
  border-color: var(--pink) !important;
  .highlight-badge {
    background: var(--pink) !important;
  }
  &:hover {
    background: #fbf1fe !important;
  }
}
.home-featured .highlight-item:nth-child(3) {
  border-color: var(--badge-green) !important;
  .highlight-badge {
    background: var(--badge-green) !important;
  }
  &:hover {
    background: #f2fdf5 !important;
  }
}

/* Single Tour Carousel */
.tour-gallery {
  padding-block: 45px !important;
  opacity: 0;
}
.tour-gallery.swiper-initialized {
  opacity: 1;
  transition: opacity 300ms ease;
}

.tour-gallery:not(.swiper-initialized) .swiper-wrapper {
  transform: translateX(calc((100% - 24px) / 3 + 12px));
}
.tour-gallery:not(.swiper-initialized) .swiper-slide {
  width: calc((100% - 24px) / 3);
  margin-right: 12px;
}
.tour-gallery:not(.swiper-initialized) .swiper-slide:nth-child(1) {
  transform: translateY(-30px);
}
.tour-gallery:not(.swiper-initialized) .swiper-slide:nth-child(2) {
  transform: rotate(5deg);
}
@media (min-width: 992px) {
  .tour-gallery:not(.swiper-initialized) .swiper-wrapper {
    transform: translateX(calc(50% - (100% - 70px) / 9));
  }
  .tour-gallery:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 70px) / 4.5);
    margin-right: 20px;
  }
}

.tour-gallery .swiper-slide {
  background: white;
  padding: 16px;
  padding-bottom: 50px;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.05);
  transition: transform 1000ms ease;
}
.tour-gallery__img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  width: 100%;
}
.tour-gallery__caption {
  font-family: "Degular";
  color: var(--badge-blue);
  margin-top: 15px;
  margin-bottom: -35px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tour-gallery__caption svg {
  width: 10px;
  fill: var(--badge-blue);
  height: 9px;
}
.tour-gallery .swiper-slide.swiper-slide-prev {
  transform: rotate(-5deg);
}
.tour-gallery .swiper-slide.swiper-slide-active {
  transform: translateY(-30px);
}
.tour-gallery .swiper-slide.swiper-slide-next {
  transform: rotate(5deg);
}

/* Arc Carousel */
.arc-carousel {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding: 32px;
  overflow: visible;
}
.arc-carousel__wheel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 238px));
  justify-content: center;
  gap: 24px;
  width: 100%;
  height: auto;
  transform: none;
}
.arc-carousel__card {
  position: relative;
  width: 100%;
  aspect-ratio: 238 / 306;
  transform: none;
}
.arc-carousel__surface {
  width: 100%;
  height: 100%;
}
.arc-carousel__image,
.arc-carousel__image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.arc-carousel__card[data-arc-clone] {
  display: none;
}
.bricks-is-frontend .arc-carousel {
  --card-width: 238px;
  --card-height: 306px;
  --orbit: -890px;
  --circle-y: 890px;
  --rotation: 0deg;
  --headroom: 40px;
  --stage-height: 685px;
  height: calc(var(--stage-height) + var(--headroom));
  margin-top: calc(var(--headroom) * -1);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}
.bricks-is-frontend .arc-carousel__wheel {
  position: absolute;
  top: calc(var(--circle-y) + var(--headroom));
  left: 50%;
  display: block;
  width: var(--card-width);
  height: var(--card-width);
  transform: translateX(-50%) rotate(var(--rotation));
  transform-origin: 50% 50%;
  will-change: transform;
}
.bricks-is-frontend .arc-carousel__card {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--card-width);
  height: var(--card-height);
  aspect-ratio: auto;
  transform: rotate(var(--angle)) translateY(var(--orbit));
  transform-origin: 50% calc(var(--card-width) / 2);
  backface-visibility: hidden;
}
.bricks-is-frontend .arc-carousel__card[data-arc-clone] {
  display: block;
}
@media (max-width: 1024px) {
  .bricks-is-frontend .arc-carousel {
    --card-width: 190px;
    --card-height: 244px;
    --orbit: -690px;
    --circle-y: 690px;
    --headroom: 32px;
    --stage-height: 540px;
  }
}
@media (max-width: 600px) {
  .bricks-is-frontend .arc-carousel {
    --card-width: 138px;
    --card-height: 178px;
    --orbit: -472px;
    --circle-y: 472px;
    --headroom: 24px;
    --stage-height: 330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bricks-is-frontend .arc-carousel__wheel {
    will-change: auto;
  }
}

/* Tours Bottom Nav */
.tour-bottom-nav.is-visible {
  transform: translateX(-50%) translateY(0%) !important;
}

/* Currency switcher (header dropdown) */
.tb-currency-switcher {
  position: relative;
  display: inline-block;
  margin-right: 10px;
  font-family: inherit;
}
.tb-currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f5f5f5;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 112px;
  justify-content: center;
}
.tb-currency-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: transform 0.2s ease;
}
.tb-currency-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
  color: #585858;
}
.tb-currency-toggle[aria-expanded="true"] .tb-currency-chevron {
  transform: rotate(180deg);
}
.tb-currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 130px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 9999;
}
.tb-currency-menu.is-open {
  display: flex;
}
.tb-currency-menu button[role="option"] {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  width: 100%;
}
.tb-currency-menu button[role="option"]:hover {
  background: #f5f5f5;
}
.tb-currency-menu button[role="option"][aria-selected="true"] {
  background: #f0f7f7;
  color: #017071;
}

/* Currency change toast notification */
.tb-toast {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 32px;
  margin-inline: auto;
  width: fit-content;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(1, 112, 113, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(80px);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------
   CARDS STACK SWIPER 
---------------------------------------- */
.cards-stack-swiper {
  width: 100%;
  max-width: min(400px, 85vw);
  aspect-ratio: 400 / 260;
  margin: 70px auto 120px; /* room for the stack above and the flipped card below */
  overflow: visible;
}
.cards-stack-swiper .swiper-slide {
  height: 100%;
  border-radius: 18px;
}
.cards-stack-swiper .swiper-slide > .card,
.cards-stack-swiper .cards-stack-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cards-stack-swiper .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cards-stack-swiper.swiper-cards-stack .cards-stack-back {
  overflow: hidden;
  background: #f9f6f3;
  -webkit-backface-visibility: hidden;
}
.cards-stack-swiper .cards-stack-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  position: static;
}
.cards-stack-swiper .swiper-slide-shadow {
  background-color: rgba(20, 20, 60, 0.06);
  transform: translateZ(0);
}

/* Builder preview (swiper not initialised): stack the slides in place */
.cards-stack-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  height: 100%;
}
.cards-stack-swiper:not(.swiper-initialized) .swiper-slide {
  grid-area: 1 / 1;
  position: relative;
}

/* Add-ons before Swiper starts: two rows with Swiper's card widths and gaps, so the section doesn't jump on load */
.addon-swiper:not(.swiper-initialized) .swiper-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: calc((100% - 3px) / 1.2);
  gap: 15px;
}
@media (min-width: 768px) {
  .addon-swiper:not(.swiper-initialized) .swiper-wrapper {
    grid-auto-columns: calc((100% - 40px) / 3);
    gap: 20px;
  }
}

/* MODALS Use [data-tb-modal-group] */

[data-tb-modal-group] [aria-haspopup="dialog"] {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
[data-tb-modal-group] [aria-haspopup="dialog"]:hover {
  transform: translateY(-3px);
  border-color: var(--peach-dark, #ff6f4e);
  box-shadow: 0 10px 24px rgba(32, 32, 32, 0.1);
}
[data-tb-modal-group] [aria-haspopup="dialog"]:focus-visible {
  outline: none;
}

.tb-modal-portal {
  display: contents !important;
}
html.tb-modal-open,
html.tb-modal-open body {
  overflow: hidden;
}

/* ---- Modal wrapper ---- */
.tb-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}
.tb-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

/* ---- Overlay ---- */
.tb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 32, 32, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tb-modal.is-open .tb-modal__overlay {
  opacity: 1;
}

/* ---- Sheet ---- */
.tb-modal__sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  max-height: 90dvh;
  padding: 8px;
  background: var(--white, #fff);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 44px rgba(32, 32, 32, 0.22);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.tb-modal.is-open .tb-modal__sheet {
  transform: translateY(0);
}
.tb-modal.is-dragging .tb-modal__sheet {
  transition: none;
}

/* ---- Grabber (mobile) ---- */
.tb-modal__grabber {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: 4px;
  margin-left: -22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.8);
}
.tb-modal__sheet:not(:has(.tb-modal__media)) .tb-modal__grabber {
  background: rgba(32, 32, 32, 0.18);
}

/* ---- Close button ---- */
.tb-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white, #fff);
  color: var(--black, #202020);
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(32, 32, 32, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tb-modal__close:hover {
  background: var(--peach-dark, #ff6f4e);
  color: #fff;
  transform: scale(1.06);
}
.tb-modal__close:focus-visible {
  outline: none;
}
.tb-modal__close i,
.tb-modal__close svg {
  color: inherit;
  fill: currentColor;
  line-height: 1;
}
.tb-modal__close i {
  font-size: 1em;
}

/* ---- Scroll area ---- */
.tb-modal__scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ---- Image ---- */
.tb-modal__media {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 16px;
  object-fit: cover;
}

/* Gallery carousel in place of the image: same box, photos fill each slide */
.tb-modal__media.brxe-carousel {
  overflow: hidden;
}
.tb-modal__media.brxe-carousel .bricks-swiper-container,
.tb-modal__media.brxe-carousel .swiper-wrapper,
.tb-modal__media.brxe-carousel .swiper-slide,
.tb-modal__media.brxe-carousel .image {
  height: 100%;
}
.tb-modal__media.brxe-carousel .image {
  border-radius: 16px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Body ---- */
.tb-modal__body {
  padding: 24px 16px 32px;
}
.tb-modal__sheet:not(:has(.tb-modal__media)) .tb-modal__body {
  padding-top: 44px;
}

.tb-modal__title {
  margin: 0 0 12px;
  font-family: "Degular", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--black, #202020);
}

.tb-modal__text {
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--black-l-1, #454545);
}
.tb-modal__text > *:first-child {
  margin-top: 0;
}
.tb-modal__text > *:last-child {
  margin-bottom: 0;
}
.tb-modal__text p {
  margin: 0 0 1em;
}
.tb-modal__text ul,
.tb-modal__text ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.tb-modal__text li {
  margin-bottom: 0.4em;
}
.tb-modal__text a {
  color: var(--teal, #017071);
  text-decoration: underline;
}
.tb-modal__text h2,
.tb-modal__text h3,
.tb-modal__text h4 {
  margin: 1.4em 0 0.5em;
  font-family: "Degular", sans-serif;
  color: var(--black, #202020);
}

/* ---- Desktop: side panel ---- */
@media (min-width: 768px) {
  .tb-modal {
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
  }

  .tb-modal__sheet {
    max-height: 95vh;
    width: 500px;
    border-radius: 24px;
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity 0.25s ease;
    box-shadow: 0 24px 60px rgba(32, 32, 32, 0.28);
  }
  .tb-modal.is-open .tb-modal__sheet {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  .tb-modal__grabber {
    display: none;
  }
  .tb-modal__media {
    height: 260px;
  }
  .tb-modal__body {
    padding: 28px 16px 36px;
  }
  .tb-modal__title {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tb-modal__overlay,
  .tb-modal__sheet {
    transition: none;
  }
}

body:not(.bricks-is-frontend) .tb-preview .tb-modal,
body:not(.bricks-is-frontend) .tb-modal.tb-preview {
  position: relative;
  inset: auto;
  z-index: 10;
  display: block;
  padding: 0;
  margin-top: 16px;
  visibility: visible;
  pointer-events: auto;
}
body:not(.bricks-is-frontend) .tb-preview .tb-modal__overlay,
body:not(.bricks-is-frontend) .tb-modal.tb-preview .tb-modal__overlay {
  display: none;
}
body:not(.bricks-is-frontend) .tb-preview .tb-modal__sheet,
body:not(.bricks-is-frontend) .tb-modal.tb-preview .tb-modal__sheet {
  max-height: none;
  opacity: 1;
  transform: none;
  transition: none;
}

/* Highlights modal on mobile */
@media (max-width: 767px) {
  .brxe-flbxlc .tb-modal__sheet {
    max-height: 98vh;
    max-height: 98svh;
  }

  .brxe-flbxlc .brxe-zizppv,
  .brxe-flbxlc .brxe-kusodf {
    flex-direction: column;
    gap: 12px;
  }

  .brxe-flbxlc .brxe-zizppv .bricks-button {
    width: 100%;
    margin-top: 0;
  }
}