:root {
  --widgety-primary-color: #45a7e2;
  --widgety-secondary-color: #eff1f8;
  --widgety-neutral-color: #fbf8f2;
  --widgety-sticky-offset: 0px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
}

.cta:hover,
.cta:focus {
  text-decoration: none;
  outline: 0;
}

.cta:disabled,
.cta.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

.cta.-plain {
  background-color: var(--widgety-primary-color);
  color: #fff;
  border-color: var(--widgety-primary-color);
}

.cta.-plain:hover,
.cta.-plain:focus {
  background-color: color-mix(in srgb, var(--widgety-primary-color) 85%, #000);
  border-color: color-mix(in srgb, var(--widgety-primary-color) 85%, #000);
}

.cta.-secondary {
  background-color: transparent;
  color: var(--widgety-primary-color);
  border-color: var(--widgety-primary-color);
}

.cta.-secondary:hover,
.cta.-secondary:focus {
  background-color: var(--widgety-primary-color);
  color: #fff;
}

.cta.-clear {
  border: 1px solid var(--widgety-primary-color);
}

.cta.-outline {
  background-color: transparent;
  color: var(--widgety-primary-color);
  border-color: var(--widgety-primary-color);
}

.cta.-outline:hover,
.cta.-outline:focus {
  background-color: var(--widgety-primary-color);
  color: #fff;
}

/* Enquire button specific */
.enquire-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  background-color: transparent;
  color: var(--widgety-primary-color);
  border: 1px solid var(--widgety-primary-color);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.enquire-button:hover,
.enquire-button:focus {
  background-color: var(--widgety-primary-color);
  color: #fff;
}

/* ==========================================================================
   Enquiry Dialog/Modal Styles
   ========================================================================== */

.enquiry-dialog {
  border: none;
  border-radius: 0.5rem;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  overflow: hidden;
}

.enquiry-dialog[open] {
  display: flex;
  flex-direction: column;
}

.enquiry-dialog *,
.enquiry-dialog *::before,
.enquiry-dialog *::after {
  box-sizing: border-box;
}

.enquiry-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.enquiry-dialog .modal-content {
  padding: 2.4rem;
}

.enquiry-dialog h4 {
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 2rem 0;
  color: var(--widgety-primary-color);
}

.enquiry-dialog label {
  display: block;
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.enquiry-dialog input[type="text"],
.enquiry-dialog input[type="email"],
.enquiry-dialog input[type="tel"],
.enquiry-dialog input[type="number"],
.enquiry-dialog select,
.enquiry-dialog textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 0.25rem;
  transition: border-color 0.2s ease-in-out;
  box-sizing: border-box;
  max-width: 100%;
}

.enquiry-dialog input:focus,
.enquiry-dialog select:focus,
.enquiry-dialog textarea:focus {
  border-color: var(--widgety-primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(69, 167, 226, 0.1);
}

.enquiry-dialog textarea {
  min-height: 100px;
  resize: vertical;
}

.enquiry-dialog .validation-error {
  font-size: 1.2rem;
  color: #dc3545;
  margin-top: 0.4rem;
}

.enquiry-dialog input:invalid,
.enquiry-dialog select:invalid,
.enquiry-dialog textarea:invalid {
  border-color: #dc3545;
}

.enquiry-dialog input.error,
.enquiry-dialog select.error,
.enquiry-dialog textarea.error {
  border-color: #dc3545;
}

.enquiry-dialog button[type="submit"],
.enquiry-dialog .button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  background-color: var(--widgety-primary-color);
  color: #fff;
  border: 1px solid var(--widgety-primary-color);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  width: 100%;
}

.enquiry-dialog button[type="submit"]:hover,
.enquiry-dialog .button-primary:hover {
  background-color: color-mix(in srgb, var(--widgety-primary-color) 85%, #000);
  border-color: color-mix(in srgb, var(--widgety-primary-color) 85%, #000);
}

.enquiry-dialog .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  line-height: 1;
}

.enquiry-dialog .close-button:hover {
  color: #333;
}

.enquiry-dialog .success-message {
  padding: 1.6rem;
  text-align: center;
  font-size: 1.6rem;
}

/* Validation error messages inside form fields */
.enquiry-dialog span.error-message {
  display: block;
  font-size: 1.2rem;
  color: #dc3545;
  margin-top: 0.4rem;
  padding: 0;
  text-align: left;
}

.enquiry-dialog .success-message {
  color: #22c55e;
}

.enquiry-dialog .error-message {
  color: #ef4444;
}

.enquiry-dialog .dialog-wrapper {
  padding: 0;
}

.enquiry-dialog .dialog-header {
  padding: 2rem 2.4rem;
  border-bottom: 1px solid #eee;
}

.enquiry-dialog .dialog-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.enquiry-dialog .dialog-header h4 {
  margin: 0;
}

.enquiry-dialog .dialog-header .close-dialog {
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  position: relative;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.enquiry-dialog .dialog-header .close-dialog::before,
.enquiry-dialog .dialog-header .close-dialog::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.4rem;
  height: 1px;
  background-color: #666;
  transition: background-color 0.2s ease;
}

.enquiry-dialog .dialog-header .close-dialog::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.enquiry-dialog .dialog-header .close-dialog::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.enquiry-dialog .dialog-header .close-dialog:hover {
  border-color: #999;
}

.enquiry-dialog .dialog-header .close-dialog:hover::before,
.enquiry-dialog .dialog-header .close-dialog:hover::after {
  background-color: #333;
}

.enquiry-dialog .dialog-header .call-us {
  margin: 1rem 0 0 0;
  text-align: center;
  font-size: 1.4rem;
  color: #666;
}

.enquiry-dialog .dialog-header .call-us a {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--widgety-primary-color);
  text-decoration: none;
}

.enquiry-dialog .dialog-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 90vh;
}

.enquiry-dialog .dialog-body {
  padding: 2.4rem;
  overflow-y: auto;
  flex: 1;
}

.enquiry-dialog .dialog-footer {
  padding: 1.6rem 2.4rem;
  border-top: 1px solid #eee;
  background: #fff;
  flex-shrink: 0;
}

.enquiry-dialog .dialog-footer button[type="submit"] {
  display: block;
  width: 100%;
  padding: 1.4rem 2.4rem;
  font-size: 1.6rem;
  font-weight: 600;
  background-color: var(--widgety-primary-color);
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.enquiry-dialog .dialog-footer button[type="submit"]:hover {
  background-color: color-mix(in srgb, var(--widgety-primary-color) 85%, #000);
}

.enquiry-dialog form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
  max-width: 100%;
}

.enquiry-dialog .-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  width: 100%;
}

@media screen and (min-width: 480px) {
  .enquiry-dialog .-row {
    grid-template-columns: 1fr 1fr;
  }
}

.enquiry-dialog .-col {
  display: flex;
  flex-direction: column;
}

.enquiry-dialog .form-group {
  margin-bottom: 0;
}

.enquiry-dialog .form-group label {
  margin-bottom: 0.5rem;
}

.enquiry-dialog .success-dialog,
.enquiry-dialog .error-dialog {
  padding: 2rem;
  text-align: center;
}

.enquiry-dialog .success-dialog p {
  font-size: 1.8rem;
  color: #22c55e;
}

.enquiry-dialog .error-dialog p {
  font-size: 1.8rem;
  color: #dc3545;
}

* {
  scroll-behavior: smooth;
  scroll-margin-top: calc(var(--widgety-sticky-offset) + 50px);
}

html {
  font-size: 62.5%;
}

body {
  font-size: 1.8rem;
  margin: 0;
  scrollbar-gutter: stable;

  &:has(dialog[open]) {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px);

    dialog {
      display: none;
    }

    dialog[open] {
      display: flex;
    }
  }
  &.apple-device {
    .enquiry-dialog {
      height: calc(
        100vh - 40rem
      ); /* hack for Safari wrong height calculation */
    }
  }
}

.bm__container {
  width: 100%;
  padding-inline: 2.4rem;
  @media (min-width: 992px) {
    padding-inline: 4.8rem;
  }
  @media (min-width: 1440px) {
    padding-inline: 8rem;
  }
  @media (min-width: 1920px) {
    /* padding-inline: 0; */
    /* width: 1600px; */
    padding-inline: 8rem !important;
    width: 1760px !important;
    margin-inline: auto;
  }
}
h1,
.bm__h1 {
  font-size: 3.2rem;
}

h2,
.bm__h2 {
  font-size: 2.4rem;
}

h3,
.bm__h3 {
  font-size: 1.8rem;
}

h4,
.bm__h4 {
  font-size: 1.4rem;
}

h5,
.bm__h5 {
  font-size: 1.2rem;
}

h6,
.bm__h6 {
  font-size: 1rem;
}

p,
.bm__p {
  font-size: 1.6rem;
}

a,
.bm__a {
  font-size: 1.6rem;
}

.bm__ul {
  font-size: 1.6rem;
  list-style-type: none;
}

.bm__li {
  font-size: 1.6rem;
}

form {
  font-size: 16px;

  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="tel"],
  input[type="date"],
  input[type="url"],
  input[type="password"],
  textarea,
  select {
    font-family: inherit;
    padding: 0.6rem;
    border: 1px solid var(--widgety-primary-color);
    border-radius: 0;
    background-color: white;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--widgety-primary-color);
    width: 100%;
  }

  /* Global placeholder styling */
  input::placeholder,
  textarea::placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  input::-webkit-input-placeholder,
  textarea::-webkit-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  input::-moz-placeholder,
  textarea::-moz-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  input:-ms-input-placeholder,
  textarea:-ms-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  input::-ms-input-placeholder,
  textarea::-ms-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  input[type="date"] {
    appearance: none;
  }

  input[type="submit"] {
    padding-block: 1rem;
    padding-inline: 2rem;
    font-size: 1.6rem;
  }

  button {
    padding-block: 0.5rem;
    padding-inline: 1rem;
    font-size: 1.6rem;

    &:hover {
      cursor: pointer;
    }
  }

  .-row {
    display: flex;
    flex-flow: column;
    /* gap: 1rem; */

    @media screen and (min-width: 992px) {
      flex-flow: row;
      gap: 1rem;
    }
  }

  .-col {
    display: flex;
    flex-flow: column;
    gap: 1rem;
  }

  .error-message {
    color: red;
    font-size: small;
    display: block;
    margin-top: -5px;
  }

  .error {
    padding-block: 0.5rem;
    padding-inline: 1rem;
    border-color: red;
  }
}

.form-control {
  font-size: 16px !important;
}

dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  padding: 0;
  border: none;
  box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: 100%;
  margin: 0;
  max-height: 100vh;
  max-width: 100vw;
}

#inquiry-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100vw - var(--scrollbar-width, 0px) - 4.8rem);
  margin: 0;
  width: 100%;
  height: 100%;
  color: var(--widgety-primary-color);

  @media screen and (min-width: 992px) {
    width: fit-content;
    height: calc(100vh - 24rem);
  }

  /* Fix for Safari and mobile devices */
  @supports (-webkit-touch-callout: none) {
    width: 100% !important;
    max-width: 600px !important;
  }

  @media screen and (max-width: 480px) {
    max-width: calc(100vw - 2.4rem);
  }

  .dialog-wrapper {
    width: 100%;
    max-width: min(600px, 100%);
    margin: 0 auto;
    background-color: white;
    height: 100%;
    overflow: hidden;
  }

  .dialog-header {
    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e5e7eb;
      padding: 1.6rem;
      /* border-bottom: 1px solid var(--widgety-neutral-color); */
    }
    .close-dialog {
      background: none;
      border: none;
      padding: 0;
      width: 3.4rem;
      height: 3.4rem;
      cursor: pointer;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 3rem;
        height: 3rem;
        background-image: url("../assets/close-cross.svg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-color: transparent;
      }

      &:hover {
        opacity: 0.7;
      }
    }
    h4 {
      margin: 0;
      font-size: 2.4rem;
      color: var(--widgety-primary-color);
      font-weight: 500;
      text-align: center;
      padding-bottom: 0;
    }
    .call-us {
      font-size: 1.8rem;
      font-weight: 400;
      text-align: center;
      padding-top: 0.8rem;
      a {
        font-size: 2.2rem;
        font-weight: 500;
        line-height: 2;
        text-align: center;
        text-decoration: none;
        outline: transparent;
        color: var(--widgety-primary-color);

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }
  .dialog-body {
    width: 100%;
    height: calc(100% - 16rem);
    padding: 2.4rem 1.6rem;
    padding-top: 0;
    overflow-y: auto;
    /* max-height: 70vh; */
    /* @media screen and (min-width: 992px) {
            max-height: 54vh;
        } */

    @media screen and (min-width: 768px) {
      padding: 2.4rem;
      padding-top: 0;
    }

    input,
    textarea {
      border: 1px solid var(--widgety-primary-color) !important;
      color: var(--widgety-primary-color) !important;
      border-radius: 0;
      padding: 1.3rem 1.6rem;
      font-size: 1.8rem;
      line-height: 1;
      width: 100%;
    }

    /* Placeholder styling for all browsers */
    input::placeholder,
    textarea::placeholder {
      color: var(--widgety-primary-color);
      opacity: 0.5;
    }

    /* For older WebKit browsers */
    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder {
      color: var(--widgety-primary-color);
      opacity: 0.5;
    }

    /* For Firefox 19+ */
    input::-moz-placeholder,
    textarea::-moz-placeholder {
      color: var(--widgety-primary-color);
      opacity: 0.5;
    }

    /* For IE 10+ */
    input:-ms-input-placeholder,
    textarea:-ms-input-placeholder {
      color: var(--widgety-primary-color);
      opacity: 0.5;
    }

    /* For Edge */
    input::-ms-input-placeholder,
    textarea::-ms-input-placeholder {
      color: var(--widgety-primary-color);
      opacity: 0.5;
    }

    form {
      width: 100%;
      max-width: 100%;
      min-width: auto;

      .-col {
        width: 100%;
        gap: 0.2rem;
        margin-bottom: 0.8rem;
        @media screen and (min-width: 992px) {
          margin-bottom: 1.6rem;
        }

        #timeOfContact {
          width: max(22rem, 100%) !important;
          color: var(--widgety-primary-color);
          border-color: var(--widgety-primary-color);
        }
      }
      .cta {
        width: 100%;
        margin-top: 1.6rem;
      }
    }
  }
}

.link {
  &.-nostyle {
    text-decoration: none;
  }

  &:hover {
    opacity: 0.8;
  }
}

.button-container {
  display: flex;
  flex-flow: row;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;

  @media screen and (min-width: 992px) {
    justify-content: flex-start;
  }

  button {
    font-size: 18px;
    font-weight: 500;
    padding: 1.2rem 2.4rem;

    &:hover {
      cursor: pointer;
    }
  }
}

.spacer-bottom {
  margin-bottom: 24px;
}

.widgety-fetch_error {
  /* display: grid; */
  grid-template-columns: repeat(auto-fill, minmax(0, 1fr));
  place-items: center;
  text-align: center;
  font-weight: 400;
  max-width: 1200px;
  margin: 7rem auto;
  padding: 4.8rem;
}

.widgety-fetch_error .bm__h5 {
  color: var(--widgety-primary-color);
  font-weight: 500;
  font-size: 2.4rem;
}

.wrapper {
  max-width: 192rem;
  margin: 0 auto;
  padding-block: 2.4rem;

  @media screen and (min-width: 992px) {
    padding-block: 4.8rem;
  }
}

.layout {
  &.-searchbar {
    display: flex;
    flex-flow: column;
    align-items: flex-start !important;
    justify-content: center;
    max-width: 1920px;
    z-index: 1;
    background: rgba(250, 250, 250, 0.75);
    backdrop-filter: blur(25px);
    box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.2);
    padding: 2.4rem;

    .-header {
      display: flex;
      flex-flow: column;
      align-items: flex-start !important;
      justify-content: flex-start !important;
      margin-bottom: 1.6rem;

      .-heading {
        font-size: 2.2rem;
        font-weight: 500;
        line-height: 2.4rem;
        color: var(--widgety-primary-color);
        padding-bottom: 0;
        margin-bottom: 0.8rem;
        @media screen and (min-width: 992px) {
          font-size: 3rem;
          line-height: 3.3rem;
        }
      }

      .-subheading {
        font-size: 1.6rem;
        line-height: 2.4rem;
        font-weight: 400;
        color: var(--widgety-primary-color);
        margin-bottom: 0;
      }
    }
    .widgety-search-form {
      display: flex;
      flex-flow: column;
      align-items: flex-start;
      justify-content: center;
      gap: 2.4rem;
      width: 100%;

      @media screen and (min-width: 992px) {
        align-items: center;
      }

      form {
        display: flex;
        flex-flow: column;
        justify-content: center;
        /* align-items: center; */
        gap: 0.8rem;
        width: 100%;
        max-width: 1200px;
        @media screen and (min-width: 992px) {
          gap: 2.4rem;
        }

        @media screen and (min-width: 1200px) {
          flex-flow: row;
          gap: 2rem;
        }

        .-form-group {
          > input[type="text"],
          > select {
            width: 100%;
            min-width: 30rem;
            font-size: 1.8rem;
            line-height: 1;
            border-radius: 0;
            height: 4rem;
            padding: 0.8rem 1.4rem;
            font-size: 2.2rem !important;
            font-weight: 400;
            border: 1px solid var(--widgety-primary-color);
            color: var(--widgety-primary-color);
            background-color: rgba(250, 250, 250, 0.1);
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
            @media screen and (min-width: 992px) {
              height: 4.8rem;
              padding: 1.3rem 1.6rem;
              font-size: 1.8rem !important;
            }

            &::placeholder {
              color: var(--widgety-primary-color);
            }
          }

          &.chevron {
            position: relative;

            &::after {
              content: "";
              display: block;
              width: 25px;
              height: 14px;
              position: absolute;
              top: 50%;
              right: 1.6rem;
              transform: translateY(-50%);
              background-image: url("../assets/chevron-down.svg");
              background-repeat: no-repeat;
              background-position: center;
              background-size: contain;
              z-index: 2;
              pointer-events: none;
            }

            &:focus {
              box-shadow: none;
            }
          }
        }

        button[type="submit"].-search-widget {
          height: 4.8rem;
          min-width: 30rem;
          width: 100%;
          font-size: 1.8rem;
          line-height: 1;
          border: 1px solid var(--widgety-secondary-color);
          opacity: 1;
          pointer-events: all;
          margin-top: 0.8rem;
          @media screen and (min-width: 992px) {
            margin-top: initial;
          }
        }

        .defaults {
          display: flex;
          flex-flow: column;
          gap: 1rem;
          width: 100%;
          min-width: 30rem;

          @media screen and (min-width: 992px) {
            flex-flow: row;
            justify-content: center;
            gap: 2rem;
          }

          > select,
          > button {
            min-width: 30rem !important;
            width: 100%;
          }
        }
      }

      .form-error-message {
        display: none;
        color: #dc3545;
        font-size: 1.4rem;
        text-align: center;
        padding: 0.5rem;
        width: 100%;

        &.active {
          display: block;
        }
      }
    }
  }

  &.-search {
    background-color: #ffffff;
    padding-block: 4rem;
    margin-bottom: 3rem;
    box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    margin-inline: auto;
    /* @media screen and (min-width: 992px) {
            padding: 4rem;
        } */

    .-heading {
      font-size: 2.4rem;
      font-weight: 400;
      text-align: left;
      color: var(--widgety-primary-color);
      padding-inline: 3rem;
      padding-bottom: 0;
      margin-bottom: 0;
      @media screen and (min-width: 992px) {
        font-size: 3rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 1.6rem;
      }
      &:after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        opacity: 0.25;
        margin-top: 1.6rem;
        background-color: var(--widgety-primary-color);
        @media screen and (min-width: 992px) {
          display: none;
        }
      }
    }
    .widgety-search-form {
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
      /* gap: 2.4rem; */
      position: relative;

      @media screen and (min-width: 1200px) {
        flex-flow: row;
        gap: 4rem;
      }

      form {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        /* gap: 2.4rem; */
        width: 100%;
        padding-inline: 2rem;

        @media screen and (min-width: 992px) {
          width: auto;
        }

        @media screen and (min-width: 1200px) {
          flex-flow: row;
        }
        .-form-group {
          > input[type="text"],
          > select {
            width: 100%;
            height: 4.8rem;

            font-size: 1.8rem;
            line-height: 1;
            border-radius: 0;
            padding: 1.3rem 1.6rem;
            border: 1px solid var(--widgety-primary-color);
            color: var(--widgety-primary-color);
            -webkit-appearance: none;
            appearance: none;
            cursor: pointer;
            @media screen and (min-width: 992px) {
              min-width: 30rem;
            }

            &::placeholder {
              color: var(--widgety-primary-color);
            }
          }
          &.chevron {
            position: relative;

            &::after {
              content: "";
              display: block;
              width: 25px;
              height: 14px;
              position: absolute;
              top: 50%;
              right: 1.6rem;
              transform: translateY(-50%);
              background-image: url("../assets/chevron-down.svg");
              background-repeat: no-repeat;
              background-position: center;
              background-size: contain;
              z-index: 2;
              pointer-events: none;
            }

            &:focus {
              box-shadow: none;
            }
          }
        }

        button[type="submit"].widgety-search-submit {
          height: 4.8rem;
          width: 100%;
          min-width: 30rem;
          font-size: 1.8rem;
          line-height: 1;
          border: 1px solid var(--widgety-secondary-color);
          opacity: 0.5;
          pointer-events: none;
          margin-top: 1.6rem;

          @media screen and (min-width: 1200px) {
            min-width: 20rem;
            width: auto;
            margin-left: 2rem;
            margin-top: 0;
          }

          &.active {
            opacity: 1;
            pointer-events: all;
          }
        }
      }

      label {
        display: none;
      }

      .defaults {
        display: flex;
        flex-flow: column;
        gap: 1rem;
        width: 100%;
        min-width: 30rem;

        @media screen and (min-width: 992px) {
          flex-flow: row;
          justify-content: center;
          gap: 2rem;
        }

        & > select {
          min-width: 30rem;
        }
        /* @media screen and (min-width: 1200px) {
                    flex-flow: row wrap;
                } */
      }
    }
  }
}

.tab-container {
  width: 100%;
}

/* Desktop Layout */
.tab-container .desktop-layout {
  display: none; /* Hidden by default on mobile */
  background-color: white;
}

.tab-container .desktop-layout .tab-header {
  display: flex;
  /* border: 1px solid var(--widgety-primary-color); */
  border-bottom: none;
  margin-bottom: 0;
  background-color: white;
}

.tab-container .desktop-layout .tab-link {
  padding: 1.6rem 2.4rem;
  cursor: pointer;
  border: none;
  background: white;
  color: var(--widgety-primary-color);
  font-weight: 500;
}

.tab-container .desktop-layout .tab-link:last-child {
  border-right: none;
}

.tab-container .desktop-layout .tab-link.active {
  color: var(--widgety-primary-color);
  background-color: var(--widgety-neutral-color);
  opacity: 1;
}

.tab-container .desktop-layout .tab-content {
  background-color: var(--widgety-neutral-color);
  /* border: 1px solid var(--widgety-primary-color); */
  border-top: none;
}

.tab-container .desktop-layout .tab-content .tab-pane {
  display: none;
  padding: 2.4rem;
}

.tab-container .desktop-layout .tab-content .tab-pane.active {
  display: block;
}

/* Mobile Layout */
.tab-container .mobile-layout {
  display: none; /* Hidden by default on desktop */
}

.tab-container .mobile-layout .accordion-item {
  /* border: 1px solid var(--widgety-primary-color); */
  border-bottom: none;
  background-color: white;
}

.tab-container .mobile-layout .accordion-item:last-child {
  border-bottom: 1px solid var(--widgety-primary-color);
}

.tab-container .mobile-layout .accordion-header {
  padding: 1.6rem;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  color: var(--widgety-primary-color);
  border: 1px solid var(--widgety-primary-color);
  border-bottom: none;
  /* opacity: 0.5; */
}

.tab-container .mobile-layout .accordion-header::after {
  content: "";
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3.4rem;
  height: 1.9rem;
  background-image: url("../assets/chevron-down-large.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.tab-container .mobile-layout .accordion-header.active {
  color: var(--widgety-primary-color);
  background-color: var(--widgety-neutral-color);
  opacity: 1;
  border-bottom: 1px solid var(--widgety-primary-color);
}

.tab-container .mobile-layout .accordion-header.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.tab-container .mobile-layout .accordion-content {
  display: none;
  padding: 2.4rem;
  background-color: var(--widgety-neutral-color);
}

.tab-container .mobile-layout .accordion-content.active {
  display: block;
  .floorplans {
    img {
      object-fit: contain;
      width: 100%;
      height: 100%;
    }
  }
}

/* Responsive Breakpoints */
@media screen and (min-width: 768px) {
  .tab-container .desktop-layout {
    display: block;
  }
  .tab-container .mobile-layout {
    display: none;
  }
}

@media screen and (max-width: 767px) {
  .tab-container .desktop-layout {
    display: none;
  }
  .tab-container .mobile-layout {
    display: block;
  }
}

.widgety-single-cruise,
.widgety-single-cruise-itinerary,
.widgety-cruise-ship,
.widgety-operators-list,
.widgety-cruises-list,
.widgety-ship-list {
  max-width: min(1920px, 100%);
  width: 100%;
  margin: 0 auto;
  padding-block: 4.8rem;
  box-sizing: border-box;

  .label {
    font-weight: 900;
  }
}

.cruise {
  max-width: min(1920px, 100%);
  width: 100%;
  margin: 0 auto;
  padding-top: 2.4rem;
  box-sizing: border-box;

  @media screen and (min-width: 992px) {
    padding-top: 4.8rem;
  }

  &.-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: #ffffff;
    color: var(--widgety-primary-color);

    @media screen and (min-width: 992px) {
      grid-template-columns: repeat(2, 1fr);
    }

    .image {
      height: 100%;
      overflow: hidden;
      background-color: #1a1a1a;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* Placeholder image - show full logo with contain */
        &[src*="placeholder"] {
          object-fit: contain;
          padding: 2rem;
        }
      }
    }

    .content {
      display: flex;
      flex-flow: column;
      gap: 1rem;
      justify-content: space-between;

      .-title {
        margin: 0;
        font-size: 4.8rem;
        font-weight: 400;
        line-height: 4.8rem;

        @media screen and (min-width: 1200px) {
          font-size: 6.1rem;
          line-height: 7.3rem;
          margin-bottom: 1.6rem;
        }
      }

      .-price {
        font-size: 2.2rem;
        font-weight: 400;
        display: inline-flex;
        gap: 1rem;
        padding-bottom: 1.6rem;
        margin-top: 0.8rem;

        @media screen and (min-width: 992px) {
          font-weight: 500;
        }
      }

      .details {
        background-color: var(--widgety-neutral-color);
        display: flex;
        flex-flow: column;
        gap: 0;

        .-row {
          display: flex;
          flex-flow: row;
          gap: 1rem;
          background-color: var(--widgety-neutral-color);

          &:not(:last-child) {
            border-bottom: 1px solid var(--widgety-primary-color);
          }

          .-item {
            flex-grow: 1;
            flex-basis: 0;
            text-align: left;
            font-size: 1.8rem;
            font-weight: 300;
            padding: 1.6rem;
            @media screen and (min-width: 992px) {
              padding: 2.4rem;
              font-weight: 400;
            }

            &.-ref {
              font-size: 1.4rem;
              @media screen and (min-width: 992px) {
                font-size: 1.8rem;
              }
            }
            &:first-child {
              border-right: 1px solid var(--widgety-primary-color);
            }

            .label {
              display: block;
              font-size: 1.9rem;
              font-weight: 400;
              margin-bottom: 1rem;
              @media screen and (min-width: 992px) {
                font-size: 2.2rem;
                line-height: 2.4rem;
                font-weight: 500;
                margin-bottom: 1.4rem;
              }
            }
          }
        }
      }

      .button-container {
        padding: 0;
        margin-top: 2.4rem;

        @media screen and (min-width: 992px) {
          width: 50%;
        }

        button {
          padding: 1.2rem 2.4rem;
          font-size: 1.8rem;
          font-weight: 400;
          width: 100%;
        }
      }
    }
    .dataset {
      display: none;
    }
  }

  &.-nav {
    position: sticky;
    top: var(--widgety-sticky-offset);
    background-color: white;
    box-shadow: 0px 4px 2px -2px rgba(0, 0, 0, 0.15);
    margin-block: 1rem;
    padding-block: 0;
    padding-inline: 0;
    margin-inline: 0;
    max-width: 2560px;
    width: 100%;
    z-index: 2;

    .wrapper {
      max-width: 1920px;
      height: 50px;
      margin: 0 auto;
      padding: 0;
      /* border-bottom: 1px solid #ccc; */

      .link-list {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: stretch;

        /* .link-item {
                    .link {
                        text-decoration: none;

                        &:hover {
                            opacity: 0.8;
                        }
                    }
                } */
        .link-item {
          display: inline;
          list-style-type: none;
          width: 100%;

          .link {
            text-decoration: none;
            font-weight: 700;
            color: var(--widgety-primary-color);
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
          }

          &:hover {
            cursor: pointer;
            background-color: var(--widgety-primary-color);

            .link {
              color: white;
            }
          }
        }
      }
    }
  }

  &.-ship {
    display: flex;
    flex-flow: column;
    gap: 2rem;
    background-color: white;
    color: var(--widgety-primary-color);
    box-sizing: border-box;
    overflow: hidden;

    .header {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      box-sizing: border-box;
      overflow: hidden;

      @media screen and (min-width: 992px) {
        grid-template-columns: 1fr 30rem;
      }

      @media screen and (min-width: 1440px) {
        grid-template-columns: 1fr minmax(auto, 30rem);
      }

      .description {
        display: flex;
        flex-flow: column;
        gap: 2rem;

        .-title {
          font-size: 3.2rem;
          font-weight: 400;
          margin-top: 0;
          margin-bottom: 2.4rem;

          @media screen and (min-width: 992px) {
            font-size: 6.8rem;
          }
        }

        .-teaser {
          font-size: 1.8rem;
          font-weight: 400;
        }

        .image {
          img {
            width: 100%;
            height: 100%;
            max-height: 45rem;
            object-fit: cover;
          }
        }
      }

      .facts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        background-color: var(--widgety-neutral-color);
        box-sizing: border-box;
        overflow: hidden;

        @media screen and (min-width: 992px) {
          width: 100%;
          max-width: 30rem;
          display: flex;
          flex-flow: column;
          justify-content: space-evenly;
        }

        .-item {
          flex-basis: 0;
          text-align: left;
          font-size: 18px;
          font-weight: 400;
          padding: 2.4rem;
          box-sizing: border-box;

          &:last-child {
            border-bottom: 0;
          }

          @media screen and (max-width: 992px) {
            &:nth-child(2n) {
              border-left: 1px solid var(--widgety-primary-color);
              border-bottom: 1px solid var(--widgety-primary-color);
            }
            &:nth-child(3) {
              border-bottom: 1px solid var(--widgety-primary-color);
            }

            &:first-child {
              border-bottom: 1px solid var(--widgety-primary-color);
            }

            &:last-child {
              border-bottom: 0;
            }
          }

          @media screen and (min-width: 992px) {
            width: 100%;
            border-bottom: 1px solid var(--widgety-primary-color);
          }

          .label {
            display: block;
            font-size: 2.2rem;
            font-weight: 500;
            margin-bottom: 1rem;
          }
        }
      }
    }

    .details {
      width: 100%;
      padding-block: 3rem;

      .tab-header {
        justify-content: center;
        .tab-link {
          font-size: 2rem;
          font-weight: 500;
          color: var(--widgety-primary-color);
          &.active {
            font-size: 2rem;
            font-weight: 700;
          }
        }
      }
      .tab-container {
        .mobile-layout {
          display: block;
          @media screen and (min-width: 1110px) {
            display: none;
          }
          .accordion-item {
            .accordion-header {
              font-size: 2rem;
              font-weight: 700;
            }
          }
        }
        .desktop-layout {
          display: none;
          @media screen and (min-width: 1110px) {
            display: block;
          }
        }
      }
      .tab-content {
        padding-block: 15px;
      }
    }

    /* .deckplans {
            width: 100%;
            padding-block: 3rem;

            .-title {
                text-align: center;
                margin-bottom: 2rem;
            }

            .tab-header {
                justify-content: center;
            }

            .tab-content {
                padding-block: 15px;

                .tab-pane {
                    .description {
                        font-size: 16px;
                        font-weight: 300;
                        padding-block: 2rem;

                        ul {
                            list-style-type: none;
                            padding: 0;
                            margin: 0;
                            display: flex;
                            flex-flow: row wrap;
                            justify-content: center;
                            gap: 2rem;

                            li {
                                font-size: 14px;
                            }
                        }
                    }

                    .image {
                        padding-block: 2rem;
                        
                        img {
                            width: 100%;
                            height: auto;
                            object-fit: contain;
                        }
                    }
                }
            }
        } */
  }

  &.-prices {
    margin-bottom: 6.4rem;
    @media screen and (min-width: 992px) {
      margin-bottom: 8.8rem;
    }

    color: var(--widgety-primary-color);
    .cabins {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2.4rem;
      @media screen and (min-width: 992px) {
        gap: 4.8rem;
      }

      .accommodation-type {
        background-color: white;
        box-shadow: 0px 0px 10px 0px rgba(22, 47, 77, 0.15);
        /* margin-bottom: 4rem; */
        padding: 1.6rem;
        @media screen and (min-width: 992px) {
          padding: 2.4rem;
        }

        .-columns {
          display: flex;
          flex-direction: column;
          gap: 2rem;

          @media screen and (min-width: 992px) {
            flex-direction: row;
            gap: 4rem;
          }

          .-left {
            width: 100%;

            @media screen and (min-width: 992px) {
              width: 40%;
              flex-shrink: 0;
            }

            .image {
              margin-bottom: 2rem;

              img {
                width: 100%;
                height: auto;
              }
            }
            .button-container {
              padding-inline: 0;
              padding-block: 0;
              @media screen and (min-width: 992px) {
                padding: initial;
              }
              .cta {
                width: 100%;
                @media screen and (min-width: 992px) {
                  width: auto;
                }
              }
            }
          }

          .-right {
            width: 100%;

            @media screen and (min-width: 992px) {
              width: 60%;
            }
            .name {
              font-size: 2.4rem;
              font-weight: 500;
              margin-bottom: 1.6rem;

              @media screen and (min-width: 992px) {
                font-size: 3.2rem;
              }
            }
            .-grid {
              padding: 0;
            }

            .mobile-layout {
              .accordion-content {
                padding: 0.6rem;
                .details {
                  .-item {
                    padding: 1.6rem;
                  }
                }
              }
            }
            .desktop-layout {
              .tab-header {
                .tab-link {
                  font-size: 2rem;
                  font-weight: 600;
                }
              }
              .tab-content {
                .-item {
                  font-size: 1.8rem;
                  font-weight: 400;
                  .label {
                    font-size: 2.2rem;
                    font-weight: 500;
                  }
                }
              }
            }
            .floorplan {
              &.tab-pane {
                img {
                  object-fit: contain;
                  width: 100%;
                  height: 100%;
                }
              }
            }
          }
        }
      }
    }
  }
  &.-deckplans {
    padding-top: 6.4rem;
    @media screen and (min-width: 992px) {
      padding-top: 8.8rem;
    }
    .-title {
      font-size: 3.2rem;
      font-weight: 400;
      text-align: left;
      margin-bottom: 1.8rem;
      @media screen and (min-width: 992px) {
        font-size: 4.8rem;
        font-weight: 500;
        text-align: center;
        margin-bottom: 3rem;
      }
    }

    .tab-container {
      background-color: white;
      .tab-content .tab-pane,
      .accordion-content {
        background-color: white;
        .description {
          font-size: 16px;
          font-weight: 300;
          margin-block: 2rem;

          ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-flow: row wrap;
            justify-content: center;
            gap: 2rem;

            li {
              font-size: 14px;
            }
          }
        }

        .image {
          padding-block: 2rem;

          img {
            width: 100%;
            height: auto;
            object-fit: contain;
          }
        }
      }
      .mobile-layout {
        display: block;
        @media screen and (min-width: 992px) {
          display: none;
        }
      }
      .desktop-layout {
        background-color: white;
        display: none;
        @media screen and (min-width: 992px) {
          display: block;
        }
        .tab-header {
          justify-content: space-evenly;
          background-color: white;

          .tab-link {
            opacity: 1;
            font-size: 2rem;
            font-weight: 500;
            &.active {
              font-size: 2rem;
              font-weight: 700;
              border: 1px solid var(--widgety-primary-color);
              background-color: white;
            }
          }
        }
        .tab-content {
          padding-block: 0;
          margin-block: 2rem;
        }
      }
    }
  }
}

.widgety-operators-list {
  .operator {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    padding-block: 2rem;
    /* padding-inline: 2rem; */

    @media screen and (min-width: 992px) {
      flex-flow: row;
      /* height: 300px; */
    }

    .header {
      display: flex;
      flex-flow: column;
      gap: 3rem;
      padding-block: 1rem;
      padding-inline: 1rem;
      justify-content: flex-start;
      align-items: center;
      width: 100%;

      @media screen and (min-width: 992px) {
        width: 20%;
      }

      .-logo {
        width: 150px;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }

      .button-container {
        display: flex;
        flex-flow: row;
        gap: 1rem;
        justify-content: center;
        padding: 2rem;

        button {
          font-size: 18px;
          font-weight: 500;
          padding: 1.7rem 2.4rem;

          &:hover {
            cursor: pointer;
          }
        }
      }
    }

    .details {
      width: 100%;
      padding-inline: 2rem;

      @media screen and (min-width: 992px) {
        width: 80%;
      }

      .tab-content {
        height: 250px;

        .tab-pane {
          .ship-list {
            display: grid;
            gap: 2rem;
            grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
            margin-block: 16px;

            .ship {
              display: flex;
              flex-flow: column;
              justify-content: space-between;
              box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.15);

              .name {
                margin-block: 0;
                padding: 12px 16px;
                font-size: 1.8rem;
                font-weight: 500;
                text-align: center;
              }

              .image {
                a {
                  display: flex;
                  height: 100%;

                  img {
                    width: 100%;
                    height: 150px;
                    object-fit: cover;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.widgety-offers-list,
.pontoon-offers-list {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  gap: 2rem;
  max-width: 1920px;
  margin: 0 auto;
  padding-top: 4.8rem;
  /* @media screen and (min-width: 1200px) {
        padding: 4.8rem;
    } */
  .cruise-image {
    img {
      width: 100%;
      max-height: 200px;
      object-fit: cover;
    }
  }
  &.-header {
    display: flex;
    flex-flow: row wrap;
    gap: 2rem;
    padding-top: 4.8rem;
    margin-bottom: -3rem;

    /* &.-header-splide {
            padding-right: 4.8rem;
            padding-left: 4.8rem;
        } */
  }

  &.splide {
    visibility: hidden;
    opacity: 0;
    transition:
      visibility 0s,
      opacity 0.3s;
    justify-content: center;
    align-items: center;

    .splide__slide {
      display: flex;
      width: 100% !important;
      /* margin-right: 2.4rem; */

      @media screen and (min-width: 620px) {
        width: calc(100% / 1.5 - 4.8rem) !important;
        margin-right: 2.4rem;
      }

      @media screen and (min-width: 992px) {
        width: calc(100% / 2 - 9.6rem) !important;
        margin-right: 4.8rem;
      }

      @media screen and (min-width: 1440px) {
        width: calc(100% / 3 - 4.8rem) !important;
        margin-right: 2.4rem;
      }
    }

    .splide__track {
      scrollbar-width: none;
      -ms-overflow-style: none;
      width: 100%;
    }

    .splide__list {
      padding-right: 2.4rem;
    }

    .custom-arrows {
      &.-desktop {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        display: none;
        justify-content: space-between;
        pointer-events: none;
        z-index: 2;

        @media screen and (min-width: 769px) {
          display: flex;
        }

        button {
          background: none;
          border: none;
          cursor: pointer;
          padding: 0;
          position: absolute;
          top: 50%;
          pointer-events: auto;
          transform: translateY(-50%);

          &.splide__prev {
            left: 0rem;
            display: none;
            @media screen and (min-width: 1920px) {
              left: -5rem;
            }
          }

          &.splide__next {
            right: 0;
            @media screen and (min-width: 1920px) {
              right: -5rem;
            }
          }

          svg {
            width: 45px;
            height: 84px;
          }
        }
      }

      &.-mobile {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-top: 2rem;
        z-index: 2;

        @media screen and (min-width: 769px) {
          display: none;
        }

        button {
          background: none;
          border: none;
          cursor: pointer;
          padding: 0;
          pointer-events: auto;

          &.splide__prev {
            transform: rotate(180deg);
          }

          svg {
            width: 27px;
            height: 50px;
          }
        }
      }
    }

    .fader {
      display: none;

      @media screen and (min-width: 768px) {
        display: block;
      }

      height: 100%;
      width: 10rem;
      position: absolute;
      top: 0;
      right: 0;
      z-index: 1;
      background: linear-gradient(
        90deg,
        rgba(251, 248, 242, 0) 0%,
        #fbf8f2 100%
      );
    }
  }

  &.splide.is-initialized {
    visibility: visible;
    opacity: 1;
  }

  @media screen and (min-width: 1280px) {
    .splide__slide {
      width: calc(
        (100% - 4.8rem) / 3
      ) !important; /* Only override at largest breakpoint */
    }
  }

  &.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
    /* Responsive for mobile */
    grid-auto-rows: min-content;
    gap: 1rem;
    /* padding-inline: 2.4rem; */

    @media screen and (min-width: 1200px) {
      /* Adjust breakpoint as needed */
      grid-template-columns: repeat(3, 1fr);
      /* Max 400px on larger screens */
    }

    .cruise {
      justify-self: center;
    }
  }

  .cruise {
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.2);
    background-color: white;
    padding-block: 0;
    padding-inline: 0;
    margin: 0;
    margin-bottom: 2rem;

    &.maxwidthgrid {
      width: 100%;
      max-width: 450px;
      gap: 2rem;
    }

    .thumbnail {
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease-in-out;

        &:hover {
          transform: scale(1.1);
        }
      }
    }

    .-link {
      text-decoration: none;
    }

    .details {
      flex: 1;
      min-height: 0;
      display: flex;
      flex-direction: column;

      /* @media screen and (min-width: 992px) {
                padding-inline: 2.4rem;
            } */

      .-ref {
        font-size: 12px;
        font-weight: 300;
        padding-top: 1.6rem;
        padding-inline: 1.6rem;
        @media screen and (min-width: 992px) {
          padding-inline: 2.4rem;
        }
      }

      .-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        justify-content: flex-start;
        padding-top: 1.6rem;
        padding-inline: 1.6rem;
        @media screen and (min-width: 992px) {
          padding-inline: 2.4rem;
        }
      }

      .-title {
        display: flex;
        flex-direction: column;
        flex: 1 0 auto;
        min-height: 0;
        font-size: 3rem;
        line-height: 1;
        font-weight: 500;
        /* margin-bottom: 10px; */
      }

      .-price {
        display: flex;
        flex-flow: row;
        gap: 0.5rem;
        align-items: center;
        margin-top: 1rem;
        text-align: left;
        font-size: 2.2rem;
        font-weight: 500;
        color: var(--widgety-primary-color);
        /* padding-top: 1.6rem; */
        padding-inline: 1.6rem;
        @media screen and (min-width: 992px) {
          padding-inline: 2.4rem;
        }

        .label {
          font-size: 1.6rem;
          font-weight: 400;
          color: var(--widgety-primary-color);
        }

        .small {
          font-size: 2.2rem;
          font-weight: 500;
        }
      }

      .info-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        border-collapse: separate;
        border: none;
        background-color: var(--widgety-neutral-color);
        margin-top: 2.4rem;

        & > div {
          /* Target direct children of .info-grid */
          border-width: 0.5px;
          border-style: solid;
          border-color: var(--widgety-primary-color);
          margin: 0;
          padding: 1.6rem;
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          gap: 1rem;

          &:nth-child(1),
          &:nth-child(3) {
            border-left: none;
            border-top: none;
            border-right: none;
          }

          &:nth-child(2),
          &:nth-child(4) {
            border-right: none;
            border-top: none;
          }

          &:nth-child(1),
          &:nth-child(2) {
            border-top: none;
          }

          &:nth-child(3),
          &:nth-child(4) {
            border-bottom: none;
          }

          .-glyph {
            max-width: 30px;
            max-height: 30px;
            width: 100%;
            height: 100%;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;

            &.-cal {
              background-image: url(../assets/calendar-filled.svg);
            }

            &.-moon {
              background-image: url(../assets/moon-filled.svg);
            }

            &.-plane {
              background-image: url(../assets/plane-filled.svg);
            }

            &.-boat {
              background-image: url(../assets/anchor-filled.svg);
            }
          }
        }
      }

      .-operator {
        font-size: 1.4rem;
        font-weight: 400;
        @media screen and (min-width: 992px) {
          font-size: 1.8rem;
        }
      }

      .-startdate {
        font-size: 1.4rem;
        font-weight: 400;
        @media screen and (min-width: 992px) {
          font-size: 1.6rem;
        }
        /* margin-bottom: 10px; */
      }

      .-nights {
        font-size: 16px;
        font-weight: 400;
        /* margin-bottom: 16px; */
      }
    }

    .ctas {
      display: flex;
      justify-content: space-between;
      padding-block: 1.6rem;
      padding-inline: 1.6rem;
      @media screen and (min-width: 992px) {
        padding-inline: 2.4rem;
      }

      .cta {
        margin-right: 0 !important;
        padding-inline: 1.6rem;
        min-width: 14rem;
        @media screen and (min-width: 992px) {
          padding-inline: 2.4rem;
        }
      }

      .dataset {
        display: none;
      }
    }

    .label {
      font-size: 1.8rem;
      font-weight: 700;
    }

    &.-error {
      margin-block: 48px;
      max-width: min(500px, 100%);

      .message {
        padding-block: 1rem;
        font-size: 1.8rem;
        text-align: center;
      }
    }
  }
}

/* Remove all debug styles */
.widgety-offers-list.splide,
.pontoon-offers-list.splide,
.splide__track,
.splide__list,
.splide__slide {
  border: none;
}

.splide__slide::after {
  display: none;
}

.widgety {
  .-heading {
    font-size: 3.2rem;
    font-weight: 500;
    padding-block: 2rem;
  }

  &.-operators-list {
    .operator {
      .details {
        display: flex;
        flex-flow: row;
        gap: 2rem;
        padding-block: 2rem;
        padding-inline: 2rem;

        .-image {
          width: 40%;
          height: 100%;
          overflow: hidden;

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }

        .-info {
          width: 60%;
          display: flex;
          flex-flow: column;

          .-logo {
            width: 150px;
            height: 50px;
          }

          .-title {
            font-size: 3.2rem;
            font-weight: 500;
          }

          .-description {
            font-size: 1.8rem;

            p {
              font-size: 1.8rem;
            }
          }
        }
      }

      /* SHIPS */
      .ship-list {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));

        .ship {
          box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.15);

          .-title {
            padding-block: 2.4rem;
            /* padding-inline: 2.4rem; */
            font-size: 1.8rem;
            font-weight: 500;
            text-align: center;
          }
        }
      }
    }
  }

  &.-cruises-list {
    display: grid;
    gap: 4rem;
    grid-template-columns: 1fr;

    .cruise-item {
      margin: 0;
      display: flex;
      flex-flow: column;
      background-color: white;
      box-shadow: 2px 2px 15px 0px rgba(0, 0, 0, 0.15);

      @media screen and (min-width: 992px) {
        flex-flow: row;
        gap: 2.4rem;
      }
      .-inner {
        display: flex;
        gap: 0.8rem;
        padding: 0.8rem;
        @media screen and (min-width: 992px) {
          gap: 2.4rem;
          padding: 2.4rem;
          padding-right: 0;
          width: 100%;
        }
        .image {
          height: 100%;
          width: min(350px, 30%);
          overflow: hidden;

          @media screen and (min-width: 992px) {
            width: 100%;
          }

          &:hover {
            img {
              transform: scale(1.1);
            }
          }

          img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease-in-out;
          }
        }
        .header {
          display: flex;
          flex-flow: column;
          gap: 1.6rem;
          width: min(350px, 70%);
          /* padding: 2.4rem; */
          @media screen and (min-width: 992px) {
            width: 100%;
            gap: 3.4rem;
            /* padding: 2rem; */
          }

          .title {
            h2 {
              font-size: 2.2rem;
              line-height: 2.4rem;
              font-weight: 400;
              margin-bottom: 0 !important;
              padding-bottom: 0 !important;
              @media screen and (min-width: 992px) {
                font-size: 3rem;
                line-height: 3.3rem;
                font-weight: 500;
                padding-top: 1.6rem;
              }
              /* margin-bottom: 1.6rem; */
            }
          }
          .fare-sets {
            /* margin: 1.6rem 0; */
            .-price {
              line-height: normal;
              color: var(--widgety-primary-color);
              font-size: 1.6rem;
              @media screen and (min-width: 992px) {
                font-size: 1.8rem;
              }
              .label {
                font-size: 1.6rem;
                font-weight: 400;
                color: var(--widgety-primary-color);
                opacity: 0.5;
                @media screen and (min-width: 992px) {
                  opacity: 1;
                }
              }
            }
          }
          .ctas {
            padding-left: 0;
            justify-content: flex-start;

            &.-desktop {
              display: none;
              @media screen and (min-width: 992px) {
                display: flex;
              }
            }
          }
        }
      }
      .ctas {
        padding-top: 0.8rem;
        padding-bottom: 1.6rem;
        padding-inline: 0.8rem;
        &.-mobile {
          display: flex;
          justify-content: center;

          @media screen and (min-width: 992px) {
            display: none;
          }
          .cta {
            width: 100%;
          }
        }
      }

      .details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin-bottom: 1.6rem;

        background-color: var(--widgety-neutral-color);
        @media screen and (min-width: 992px) {
          width: max(495px, 100%);
          margin: 2.4rem;
          margin-left: 0;
        }
        .-item {
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
          font-size: 1.6rem;
          padding: 2.4rem;
          position: relative;
          @media screen and (min-width: 992px) {
            font-size: 1.8rem;
          }

          &:not(:nth-child(2n)) {
            border-right: 0.5px solid var(--widgety-primary-color);
          }

          &:not(.-last) {
            border-bottom: 0.5px solid var(--widgety-primary-color);
          }
          &.ctas {
            justify-self: center;
            align-self: center;
            padding: 1.4rem;
            @media screen and (min-width: 992px) {
              padding: 2.4rem;
            }

            .cta {
              padding-inline: 1.6rem;
              @media screen and (min-width: 992px) {
                padding-inline: 2.4rem;
              }
            }
          }

          .label {
            font-size: 1.6rem;
            padding-bottom: 0.8rem;
            color: var(--widgety-primary-color);
            font-weight: 400;
            opacity: 0.5;
            @media screen and (min-width: 992px) {
              opacity: 1;
            }
          }
        }
      }
    }
  }
}

#cruises-list-container {
  .-heading {
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2.4rem 0;
    text-align: center;
  }
}
#search-pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 4rem;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  max-width: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */

  .page-link {
    padding-block: 0.5rem;
    padding-inline: 1rem;
    margin: 0.2rem; /* Add small margin for better spacing on mobile */

    &.-text {
      border: 1px solid transparent;
      background-color: transparent;
      color: #000;
      font-size: 1.6rem;
      font-weight: 500;
      min-width: 3rem; /* Ensure consistent width */
      text-align: center;

      &.active {
        font-weight: 900;
        text-decoration: underline;
      }

      &:hover {
        text-decoration: underline;
      }
    }

    &.-prev,
    &.-next {
      margin-inline: 0.5rem;
      white-space: nowrap; /* Prevent text wrapping */

      @media screen and (max-width: 480px) {
        /* Use icons instead of text on very small screens */
        font-size: 0;
        position: relative;
        min-width: 3rem;

        &::before {
          content: "←"; /* Left arrow for previous */
          font-size: 1.6rem;
        }
      }
    }

    &.-next {
      @media screen and (max-width: 480px) {
        &::before {
          content: "→"; /* Right arrow for next */
        }
      }
    }

    &:hover {
      cursor: pointer;
    }
  }

  /* Hide some page numbers on small screens */
  @media screen and (max-width: 576px) {
    .elipse {
      display: none;
    }
  }
}

#loader-container {
  position: fixed;
  /* Or absolute, depending on your layout */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent backdrop */
  z-index: 9999;
  /* Ensure it's on top */
}

.loader {
  display: flex;
  align-items: center;
  /* Vertical centering */
}

.lds-ring {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.itinerary-tabs-container {
  background-color: white;
  color: var(--widgety-primary-color);
  padding-top: 2.4rem;
  margin: 0 auto;
  max-width: min(1920px, 100%);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  @media screen and (min-width: 1200px) {
    padding-top: 4.8rem;
  }

  .itinerary-week-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    position: relative;

    .itinerary-week-tab {
      padding: 1.2rem 2.4rem;
      background: none;
      border: 1px solid var(--widgety-primary-color);
      color: var(--widgety-primary-color);
      cursor: pointer;
      transition: all 0.3s ease;
      opacity: 0.5;
      font-weight: 500;
      font-size: 3rem;
      min-width: 25rem;
      text-align: center;

      &:hover,
      &.itinerary-active {
        opacity: 1;
        background-color: var(--widgety-neutral-color);
        color: var(--widgety-primary-color);
      }

      @media screen and (max-width: 991px) {
        display: none;

        &.mobile-active {
          display: block;
          width: 100%;
        }
      }
    }

    .mobile-nav-arrow {
      display: none;

      @media screen and (max-width: 991px) {
        display: block;
        position: absolute;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        z-index: 10;

        &.-prev {
          top: 45%;
          left: 1.6rem;
          width: 1.1rem;
          height: 1.8rem;
          background-repeat: no-repeat;
          background-position: center;
          background-size: contain;
          background-image: url("../assets/chevron-right.svg");

          transform: translateY(-50%) rotate(180deg);
        }
        &.-next {
          top: 45%;
          right: 1.6rem;
          width: 1.1rem;
          height: 1.8rem;
          background-repeat: no-repeat;
          background-position: center;
          background-size: contain;
          background-image: url("../assets/chevron-right.svg");

          transform: translateY(-50%);
        }
        &:disabled {
          opacity: 0.5;
          cursor: not-allowed;
        }
      }
    }
  }

  .itinerary-week-content {
    background-color: var(--widgety-neutral-color);
    .itinerary-week-pane {
      display: none;

      &.itinerary-active {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
      }

      @media screen and (max-width: 991px) {
        &.itinerary-active {
          flex-direction: column;
        }
      }
    }
  }

  .desktop-layout {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: 100%;

    @media screen and (max-width: 991px) {
      display: none;
    }

    .itinerary-day-tabs {
      flex-direction: column;
      flex-shrink: 0;
      gap: 0;
      border-right: 1px solid var(--widgety-primary-color);
      padding-right: 0;
      width: 18rem;
      max-width: 18rem;
      background-color: white;
      .itinerary-day-tab {
        padding: 1.6rem 1rem;
        background: white;
        border: 1px solid var(--widgety-primary-color);
        color: var(--widgety-primary-color);
        opacity: 0.5;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
        width: 100%;
        box-sizing: border-box;

        &:hover,
        &.itinerary-active {
          background-color: var(--widgety-neutral-color);
          opacity: 1;
        }
      }
    }

    .itinerary-day-content {
      flex-grow: 1;

      .itinerary-day-pane {
        display: none;

        &.itinerary-active {
          display: block;
          background-color: var(--widgety-neutral-color);
          padding: 2.4rem;
        }

        .content-row {
          padding-bottom: 2.4rem;
          .title {
            font-size: 1.4rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
            color: var(--widgety-primary-color);
          }
          .value {
            font-size: 1.8rem;
            font-weight: 400;
          }
        }
      }
    }
  }

  .mobile-layout {
    display: none;
    width: 100%;

    @media screen and (max-width: 991px) {
      display: block;

      .day-accordion {
        border: 1px solid var(--widgety-primary-color);
        border-bottom: 0;
        &:last-child {
          border-bottom: 1px solid var(--widgety-primary-color);
        }
      }

      .day-accordion-header {
        padding: 1.6rem 1rem;
        background: white;
        position: relative;
        cursor: pointer;
        font-weight: 500;
        border: none;
        width: 100%;
        text-align: left;

        &::after {
          content: "";
          position: absolute;
          right: 1.6rem;
          top: 50%;
          transform: translateY(-50%);
          width: 3.4rem;
          height: 1.9rem;
          background-image: url("../assets/chevron-down-large.svg");
          background-repeat: no-repeat;
          background-position: center;
          background-size: contain;
          transition: transform 0.3s ease;
        }

        &.active {
          background-color: var(--widgety-neutral-color);
          border-bottom: 1px solid var(--widgety-primary-color);

          &:after {
            transform: translateY(-50%) rotate(180deg);
          }
        }
      }

      .day-accordion-content {
        display: none;
        padding: 1.6rem;
        background-color: var(--widgety-neutral-color);
        border: 0;

        &.active {
          display: block;
        }
      }
    }
  }
}

.advanced-filters-panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0px 4px 40px 0px rgba(0, 0, 0, 0.2);
  max-width: 60rem;
  width: 100%;
  z-index: 1000;
  display: none;

  &.open {
    display: block;
  }

  .dialog-wrapper {
    .panel-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid #e5e7eb;
      padding: 2.4rem 1.6rem;

      h4 {
        margin: 0;
        font-size: 2.4rem;
        color: var(--widgety-primary-color);
        font-weight: 500;
        text-align: center;
        padding-bottom: 0;
      }

      .close-dialog {
        background: none;
        border: none;
        padding: 0;
        width: 3.4rem;
        height: 3.4rem;
        cursor: pointer;
        position: relative;

        &::after {
          content: "";
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 3rem;
          height: 3rem;
          background-image: url("../assets/close-cross.svg");
          background-repeat: no-repeat;
          background-position: center;
          background-size: contain;
          background-color: transparent;
        }

        &:hover {
          opacity: 0.7;
        }
      }
    }

    .panel-content {
      padding: 0 3.2rem 3.2rem 3.2rem;
      overflow-y: auto;
      max-height: 60vh;

      .advance {
        .-form-section {
          display: flex;
          flex-direction: column;
          gap: 0.5rem;
          padding-bottom: 2rem;
          border-bottom: 1px solid var(--widgety-neutral-color);

          &:last-child {
            padding-bottom: 0;
            border-bottom: none;
          }

          .-section-title {
            font-size: 1.8rem;
            color: var(--widgety-primary-color);
            font-weight: 400;
            padding-bottom: 0;
            margin-top: 0.5rem;
          }

          .-form-group {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;

            &.-row {
              display: flex;
              flex-direction: row;
              justify-content: space-between;
              gap: 2rem;

              .nights-inputs {
                flex: 1;
                display: flex;
                flex-direction: column;
                gap: 1rem;

                label {
                  display: block;
                  font-size: 1.6rem;
                  color: var(--widgety-primary-color);
                }

                select {
                  width: 100%;
                }
              }
            }

            label {
              font-size: 1.6rem;
              color: var(--widgety-primary-color);
            }

            .price-range-slider {
              width: 100%;

              .from_to {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                padding-bottom: 2.4rem;

                &.-row {
                  display: flex;
                  flex-flow: row wrap;
                  justify-content: space-between;
                  gap: 2rem;

                  .input-group {
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;
                    flex: 1;

                    label {
                      display: block;
                      font-size: 1.6rem;
                      color: var(--widgety-primary-color);
                    }

                    #min_price,
                    #max_price {
                      width: 100%;
                      height: 4.8rem;
                      font-size: 1.8rem;
                      line-height: 1;
                      border-radius: 0;
                      padding: 1.3rem 1.6rem;
                      border: 1px solid var(--widgety-primary-color);
                      color: var(--widgety-primary-color);
                      -webkit-appearance: none;
                      appearance: none;
                      background-color: #fff;

                      &:disabled {
                        background-color: #fff;
                        opacity: 1;
                        cursor: not-allowed;
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }

    .panel-footer {
      display: flex;
      justify-content: space-between;
      padding: 3.2rem 2rem;
      box-shadow: 0px 0px 10px 0px rgba(22, 47, 77, 0.15);
      background-color: var(--widgety-neutral-color);

      button {
        padding: 1rem 2rem;

        &.show-results {
          background-color: var(--widgety-secondary-color);
          color: white;
          border: none;
          font-weight: 500;

          &:hover {
            opacity: 0.9;
          }
        }

        &.clear-all {
          background: none;
          border: none;
          color: var(--widgety-primary-color);
          text-decoration: underline;

          &:hover {
            opacity: 0.7;
          }
        }
      }
    }
  }
}

.advanced-filters-btn {
  display: inline-flex;
  align-items: center;
  min-width: 20rem;
  width: 100%;
  height: 4.8rem;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: none;
  border: 1px solid var(--widgety-primary-color);
  color: var(--widgety-primary-color);
  cursor: pointer;
  position: relative;
  padding-right: 4rem;

  @media screen and (min-width: 992px) {
    width: auto;
  }

  &::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    background-image: url("../assets/settings.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  &:hover {
    opacity: 0.8;
  }
}

.-form-group.advanced-btn {
  display: none;

  &.show {
    display: block;
  }
}

/* ========================================
   Dual Range Slider (Price Range)
   ======================================== */

.price-range-slider .slider-container {
  padding: 0 0.5rem;
}

.price-range-slider .from_to {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.price-range-slider .from_to .input-group {
  flex: 1;
}

.price-range-slider .from_to .input-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #666;
}

.price-range-slider .from_to .input-group input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.slider-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  margin: 1.5rem 0;
}

.slider-range {
  position: absolute;
  height: 100%;
  background: var(--widgety-secondary-color, #0d5c63);
  border-radius: 3px;
  top: 0;
  left: 0;
  width: 100%;
}

.slider-thumb {
  display: none;
}

/* Both range inputs overlay on the same track */
.slider-track input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: absolute;
  width: 100%;
  height: 6px;
  background: transparent;
  pointer-events: none;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
}

/* Webkit (Chrome, Safari, Edge) - Track */
.slider-track input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Webkit - Thumb */
.slider-track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--widgety-secondary-color, #0d5c63);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -9px;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Firefox - Track */
.slider-track input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Firefox - Thumb */
.slider-track input[type="range"]::-moz-range-thumb {
  -moz-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--widgety-secondary-color, #0d5c63);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* IE/Edge legacy - Track */
.slider-track input[type="range"]::-ms-track {
  width: 100%;
  height: 6px;
  background: transparent;
  border-color: transparent;
  color: transparent;
  cursor: pointer;
}

/* IE/Edge legacy - Thumb */
.slider-track input[type="range"]::-ms-thumb {
  width: 24px;
  height: 24px;
  background: var(--widgety-secondary-color, #0d5c63);
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-track input[type="range"]::-ms-fill-lower,
.slider-track input[type="range"]::-ms-fill-upper {
  background: transparent;
}

/* Focus states */
.slider-track input[type="range"]:focus {
  outline: none;
}

.slider-track input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.3);
}

.slider-track input[type="range"]:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.3);
}

/* Z-index for overlapping thumbs */
.slider-track #price-range-max {
  z-index: 2;
}

.slider-track #price-range-min {
  z-index: 1;
}

.nights-inputs.chevron {
  position: relative;

  &::after {
    content: "";
    display: block;
    width: 25px;
    height: 14px;
    position: absolute;
    top: calc(50% + 13px); /* Adjust for label height */
    right: 1.6rem;
    transform: translateY(-50%);
    background-image: url("../assets/chevron-down.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
  }

  select {
    width: 100%;
    height: 4.8rem;
    font-size: 1.8rem;
    line-height: 1;
    border-radius: 0;
    padding: 1.3rem 1.6rem;
    border: 1px solid var(--widgety-primary-color);
    color: var(--widgety-primary-color);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }
}

/* General chevron styling for main form */
.-form-group.chevron {
  position: relative;

  &::after {
    content: "";
    display: block;
    width: 25px;
    height: 14px;
    position: absolute;
    top: 50%;
    right: 1.6rem;
    transform: translateY(-50%);
    background-image: url("../assets/chevron-down.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
  }
}

/* Advanced panel chevron adjustments */
.advanced-filters-panel {
  .nights-inputs.chevron,
  .-form-group.chevron {
    &::after {
      top: calc(
        50% + 13px
      ); /* Only adjust chevron position in advanced panel */
    }
  }
}

.widgety-pagination {
  margin: 4rem 0;
  display: flex;
  justify-content: center;

  .navigation.pagination {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .nav-links {
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;

    @media screen and (max-width: 480px) {
      gap: 0.4rem;
    }
  }

  .page-numbers {
    min-width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid var(--widgety-primary-color);
    color: var(--widgety-primary-color);
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;

    @media screen and (max-width: 480px) {
      min-width: 3.5rem;
      height: 3.5rem;
      font-size: 1.4rem;
    }

    &:hover {
      background-color: var(--widgety-primary-color);
      color: white;
    }

    &.current {
      background-color: var(--widgety-primary-color);
      color: white;
      cursor: default;
    }

    &.dots {
      border: none;
      cursor: default;

      &:hover {
        background-color: transparent;
        color: var(--widgety-primary-color);
      }

      @media screen and (max-width: 480px) {
        /* Reduce space taken by dots on mobile */
        padding: 0 0.5rem;
        min-width: auto;
      }
    }

    &.prev,
    &.next {
      padding: 0 1.6rem;

      @media screen and (max-width: 480px) {
        /* Use icons instead of text on very small screens */
        padding: 0;
        font-size: 0;

        .nav-prev-text,
        .nav-next-text {
          display: none;
        }

        &::after {
          content: "←"; /* Left arrow for previous */
          font-size: 1.6rem;
        }
      }
    }

    &.next {
      @media screen and (max-width: 480px) {
        &::after {
          content: "→"; /* Right arrow for next */
        }
      }
    }
  }
}

.tab-container .tab-content .tab-pane .details,
.tab-container .accordion-content .details {
  background-color: var(--widgety-neutral-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;

  .-item {
    background-color: var(--widgety-neutral-color);
    padding: 2.4rem;
    border: none;
    font-size: 1.8rem;
    font-weight: 400;

    &:nth-child(2n) {
      border-left: 1px solid var(--widgety-primary-color);
      border-bottom: 1px solid var(--widgety-primary-color);
    }

    &:first-child {
      border-bottom: 1px solid var(--widgety-primary-color);
    }

    &:last-child {
      border-bottom: 0;
    }

    .label {
      display: block;
      font-size: 1.4rem;
      font-weight: 300;
      margin-bottom: 0.8rem;
    }
  }
}

#widgety-cruise-search .defaults > select,
#widgety-cruise-search .defaults > button {
  min-width: 30rem;
  width: 100%;
}

#calendarPopup select {
  max-width: 13rem;
  min-width: auto;
}

.widgety-search-form form .defaults,
#widgety-cruise-search .defaults {
  display: flex;
  flex-flow: column;
  gap: 1rem;
  width: 100%;
  min-width: 30rem;

  @media screen and (min-width: 992px) {
    flex-flow: row;
    justify-content: center;
    gap: 2rem;
  }

  > select,
  > button {
    min-width: 30rem !important;
    width: 100%;
  }
}

/* Ships list styles */
.ship-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.4rem;
  padding-top: 2.4rem;
  @media screen and (min-width: 1200px) {
    padding-top: 4.8rem;
  }
}

.ship-list .loading,
.ship-list .error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.4rem;
  font-size: 1.8rem;
}

.ship-list .error {
  color: #dc3545;
}

.ship-list .ship-item {
  background: white;
}

.ship-list .ship-item .ship-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease-in-out;
}

.ship-list .ship-item .ship-link:hover {
  transform: scale(1.02);
}

/* .ship-list .ship-image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.ship-list .ship-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */

.ship-list .ship-details {
  padding: 1.6rem;
  text-align: center;
}

.ship-list .ship-title {
  margin: 0 0 1.6rem;
  font-size: 2rem;
  color: var(--widgety-primary-color);
  text-shadow: 0px 0px 20px var(--widgety-primary-color);
}

/* .ship-item {
    margin-bottom: 20px;
} */

.ship-item .ship-image {
  position: relative;
  width: 100%;
  height: 25rem;
  background: radial-gradient(
      50% 50% at 50% 50%,
      rgba(22, 47, 77, 0.4) 0%,
      rgba(22, 47, 77, 0) 100%
    ),
    var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  cursor: pointer;
}

.ship-item .ship-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-item .ship-title {
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin: 0;
  font-size: 3rem;
  /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); */
}

.ship-item .ship-image:hover .ship-title-overlay {
  opacity: 0.8;
}

/* Callback Form Styles */
.widgety-callback-form-container {
  margin: 2rem auto;
  max-width: 120rem;
}

.callback-form-wrapper {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: rgba(250, 250, 250, 0.85);
  width: 100%;
  max-width: 100%;
}

.callback-form-header {
  position: relative;
  color: var(--widgety-primary-color);
  padding: 2rem;
  padding-bottom: 0.8rem;

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.4rem;

    h4 {
      font-size: 3rem;
      line-height: 3.3rem;
      font-weight: 700;
      text-transform: uppercase;
      margin: 0;
      padding: 0;
      color: var(--widgety-primary-color);
    }
  }

  .call-description {
    font-size: 1.8rem;
    line-height: 2.52rem;
    font-weight: 400;
    margin: 0.8rem 0;
    color: var(--widgety-primary-color);
  }

  .call-us {
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    padding-top: 0.8rem;
    a {
      font-size: 2.2rem;
      font-weight: 500;
      line-height: 2;
      text-align: center;
      text-decoration: none;
      outline: transparent;
      color: #fff;

      &:hover {
        opacity: 0.8;
      }
    }
  }
}

.callback-form-body {
  width: 100%;
  padding: 2.4rem 1.6rem;

  @media screen and (min-width: 768px) {
    padding: 2.4rem;
  }

  input,
  textarea {
    border: 1px solid var(--widgety-primary-color) !important;
    color: var(--widgety-primary-color) !important;
    border-radius: 0;
    padding: 1.3rem 1.6rem;
    font-size: 1.8rem;
    line-height: 1;
    width: 100%;
  }

  /* Placeholder styling for all browsers */
  input::placeholder,
  textarea::placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  /* For older WebKit browsers */
  input::-webkit-input-placeholder,
  textarea::-webkit-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  /* For Firefox 19+ */
  input::-moz-placeholder,
  textarea::-moz-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  /* For IE 10+ */
  input:-ms-input-placeholder,
  textarea:-ms-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  /* For Edge */
  input::-ms-input-placeholder,
  textarea::-ms-input-placeholder {
    color: var(--widgety-primary-color);
    opacity: 0.5;
  }

  .callback-form {
    width: 100%;
    max-width: 100%;
    min-width: auto;

    .-col {
      width: 100%;
      gap: 0.2rem;
      margin-bottom: 0.8rem;
      @media screen and (min-width: 992px) {
        margin-bottom: 1.6rem;
      }

      select[name="timeOfContact"] {
        width: 100% !important;
        color: var(--widgety-primary-color) !important;
        border-color: var(--widgety-primary-color) !important;
      }
    }

    .form-group {
      margin-bottom: 1.6rem;

      label {
        color: var(--widgety-primary-color);
        margin-bottom: 0.8rem;
        font-weight: 400;
      }
    }

    .cta {
      width: 100%;
      margin-top: 1.6rem;
    }
  }

  .success-dialog,
  .error-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background-color: #f9f9f9;
    min-height: 20rem;

    p {
      font-size: 1.8rem;
      font-weight: 500;
      color: var(--widgety-primary-color);
      line-height: 1.4;
    }
  }

  .success-dialog p {
    color: #46b450;
  }

  .error-dialog p {
    color: #dc3232;
  }
}

/* Add loading indicator for the form */
.callback-form.loading {
  position: relative;
  opacity: 0.7;
  pointer-events: none;
}

.callback-form.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--widgety-primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
