.packages-listing {
  display: flex;
  flex-direction: column;
  gap: 20px;

  .package-item {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    grid-column-gap: 20px;
    grid-row-gap: 25px;
    padding: 20px;
    box-shadow: 0px 0px 36px 0px #0000000f;
    border-radius: 6px;
    grid-area: auto;

    & > div:nth-of-type(1) {
      grid-area: 1 / 1 / 3 / 2;
    }

    & > div:nth-of-type(2) {
      grid-area: 1 / 2 / 2 / 6;
    }

    & > div:nth-of-type(3) {
      grid-area: 2 / 2 / 3 / 5;
    }

    & > div:nth-of-type(4) {
      grid-area: 3 / 1 / 4 / 5;
    }

    & > div:nth-of-type(5) {
      grid-area: 2 / 5 / 4 / 6;
    }

    & > div {
      grid-area: auto;
      /*       min-height: 100px;
        border: 1px solid green; */
    }

    div.package-thumb {
      aspect-ratio: 167/214;
      border-radius: 4px;
      overflow: hidden;
      height: 214px;
      position: relative;
      max-width: 100%;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
      }

      span.tour-duration {
        font-family: Satoshi;
        font-weight: 500;
        font-size: 15px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #ffffff;
        background: #104ba0;
        position: absolute;
        left: 10px;
        top: 10px;
        padding: 3px 8px;
        border-radius: 4px;
      }
    }

    div:has(> .package-title) {
      display: flex;
      flex-direction: column;
      gap: 14px;

      .package-title {
        font-family: Satoshi;
        font-weight: 500;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #101010;
        margin: 0;
        cursor: pointer;
      }

      .package-amenities {
        display: flex;
        flex-direction: row;
        gap: 12px;
        overflow-x: auto;
        flex-wrap: wrap;

        .package-aminity {
          /*           flex: 1; */
          padding: 5px 8px;
          background-color: #f4f9ff;
          border-radius: 3px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 10px;

          font-family: Satoshi;
          font-weight: 500;
          font-size: 14px;
          line-height: 100%;
          letter-spacing: 0%;

          img {
            width: 16px;
            height: 16px;
          }
        }
      }
    }

    div.package-options {
      display: flex;
      flex-direction: column;
      gap: 14px;

      & > div {
        display: flex;
        gap: 12px;

        img {
          /* max-width: 20px;
          max-height: 20px; */
          max-width: 42px;
          max-height: 42px;
          padding: 11px;
          border-radius: 6px;
          background: #f4f9ff;
        }

        div {
          display: flex;
          gap: 5px;
          flex-direction: column;
          justify-content: center;
          overflow: hidden;
          h4 {
            margin: 0;
            font-family: Satoshi;
            font-weight: 500;
            font-size: 16px;
            line-height: 100%;
            letter-spacing: 0%;
            color: #101010;
          }

          p {
            margin: 0;
            font-family: Satoshi;
            font-weight: 400;
            font-size: 14px;
            line-height: 100%;
            letter-spacing: 0%;
            color: #79797a;

            /* white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 500px; */

            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
            display: block;
          }
        }
      }
    }

    div.package-info {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      border-top: 1px solid #ebe6e6;
      padding-top: 24px;

      a.package-info-btn {
        flex: 1;
        text-decoration: none;
        border: 1px solid #ebe6e6;
        padding: 20px;

        font-family: Satoshi;
        font-weight: 500;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        color: #101010;
        text-align: center;
        border-radius: 6px;
      }
    }

    div.pricing {
      padding: 20px 25px;
      background: #f4f9ff;
      border-radius: 6px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 15px;

      p.price {
        font-family: Satoshi;
        font-weight: 400;
        font-size: 15px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
        color: #79797a;
        margin: 0;

        span {
          font-family: Satoshi;
          font-weight: 700;
          font-size: 20px;
          line-height: 100%;
          letter-spacing: 0%;
          text-align: center;
          color: #101010;
          display: block;
          padding: 5px 0;
        }
      }

      a.enquiry-btn {
        background: #104ba0;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        padding: 6px 29px;

        font-family: Satoshi;
        font-weight: 500;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;

        transition: all 500ms ease;
        border: 1px solid #104ba0;

        &:hover {
          background: #0000;
          color: #104ba0;
        }
      }
    }
  }
}

/*  */
.hide {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(-50%) scale(0.8) !important;
  -moz-transform: translateX(-50%) translateY(-50%) scale(0.8) !important;
  -o-transform: translateX(-50%) translateY(-50%) scale(0.8) !important;
  -webkit-transform: translateX(-50%) translateY(-50%) scale(0.8) !important;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  background: #ffffff;
  -moz-border-radius: 12px;
  -o-border-radius: 12px;
  -webkit-border-radius: 12px;
  border-radius: 12px;
  width: 1244px;
  -moz-transition: all 120ms;
  -webkit-transition: all 120ms;
  -o-transition: all 120ms;
  transition: all 120ms;
  z-index: 99;
  padding: 32px 20px;
  color: #5e5e5e;
  box-shadow: 0px 0px 0px 9999px rgba(0, 0, 0, 0.5);
}

.enquiry-popup {
  width: 855px;

  .popup-header {
    align-items: center;
    .title {
      max-width: 267px;
      margin-right: 24px;
    }

    .tour-duration {
      color: #ffffff;
      padding: 6px 12px;
      font-family: Satoshi;
      font-weight: 500;
      font-size: 16px;
      line-height: 100%;
      letter-spacing: 0%;
      border-radius: 4px;
      background: #104ba0;
      margin: auto auto 0 0;
    }
  }

  .popup-body {
    margin-top: 20px;
    .package-amenities {
      display: flex;
      flex-direction: row;
      gap: 12px;
      overflow-x: auto;
      flex-wrap: wrap;
      padding-bottom: 20px;
      border-bottom: 1px solid #ebe6e6;

      .package-aminity {
        padding: 5px 8px;
        background-color: #f4f9ff;
        border-radius: 3px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

        font-family: Satoshi;
        font-weight: 500;
        font-size: 14px;
        line-height: 100%;
        letter-spacing: 0%;

        img {
          width: 20px;
          height: 20px;
        }
      }
    }

    .package-options {
      margin-top: 20px;
      border: 1px solid #ebe6e6;
      border-radius: 6px;

      .tour-options::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 15px;
        width: calc(100% - 30px);
        height: 1px;
        background: #ebe6e6;
      }

      & > div {
        position: relative;
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        justify-content: start;
        align-items: start;

        span.options-label {
          font-family: Satoshi;
          font-weight: 700;
          font-size: 18px;
          line-height: 100%;
          letter-spacing: 0%;
          color: #fff;
          padding: 5px 19px;
          background: #104ba0;
          border-radius: 0 50px 50px 0;
          margin-left: -15px;
        }

        ul {
          margin: 0;
          padding: 0;
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          li {
            list-style: none;
            padding: 6px 10px;
            margin: 0;
            font-family: Satoshi;
            font-weight: 400;
            font-size: 14px;
            line-height: 100%;
            letter-spacing: 0%;
            color: #101010;
            background: #f4f9ff;
            border-radius: 6px;
          }
        }
      }
    }
  }

  .popup-footer {
    margin-top: 32px;

    form {
      display: flex;
      flex-direction: column;
      gap: 15px;
      .form-row,
      .form-group {
        display: flex;
        gap: 15px;

        & > * {
          flex: 1;
        }

        p {
          font-family: Satoshi;
          font-weight: 500;
          font-size: 14px;
          line-height: 100%;
          letter-spacing: 0%;
          margin: 0;
          margin-bottom: 6px;
          color: #101010;
        }

        label {
          font-family: Satoshi;
          font-weight: 500;
          font-size: 14px;
          line-height: 100%;
          letter-spacing: 0%;
          color: #101010;
        }
      }
      input,
      select,
      textarea {
        border: 1px solid #ebe6e6;
        font-family: Satoshi;
        font-weight: 500;
        font-size: 15px;
        line-height: 20.04px;
        letter-spacing: -1%;
        padding: 10.5px 16px;
        color: #ababab;
        border-radius: 6px;
        background: #fff;
      }

      button {
        font-family: Satoshi;
        font-weight: 500;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;

        border-radius: 4px;
        padding-top: 9px;
        padding-right: 17px;
        padding-bottom: 9px;
        padding-left: 17px;
        background: #104ba0;
        border: 1px solid #104ba0;
        color: #fff;
        align-self: flex-end;
        &:hover,
        &:focus {
          background: #fff;
          color: #104ba0;
        }
      }
    }
  }
}

.enquiry-response-message {
  border: 1px solid #ebe6e6;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-size: 16px;
  font-family: Satoshi;
  font-weight: 500;
  color: #101010;

  &.success {
    color: green;
  }
}

.popup {
  max-height: calc(100vh - 80px);
  overflow-y: scroll;
  z-index: 999999;
}

@media screen and (max-width: 1000px) {
  .popup {
    width: calc(100% - 32px);
  }
}

.popup-header {
  font-family: Satoshi;
  font-weight: 700;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #181717;

  display: flex;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .package-item {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    flex-direction: column !important;

    & > div {
      grid-area: auto !important;
      max-width: 100% !important;
    }

    .package-thumb {
      height: auto !important;
      width: 100%;
      aspect-ratio: 3/2 !important;
    }

    div.package-options {
      max-width: calc(100vw - 72px) !important;
    }

    div.package-info {
      flex-wrap: wrap;

      a.package-info-btn {
        padding: 15px !important;
      }
    }

    div.pricing {
      padding: 15px !important;
      flex-direction: row !important;
      justify-content: space-between !important;
      align-items: end !important;

      p.price {
        text-align: left !important;
      }

      a.enquiry-btn {
        height: 100%;
        display: flex;
        align-items: center;
      }
    }
  }

  .package-item > div {
    grid-area: auto !important;
  }

  .popup-footer {
    margin-top: 32px;

    form {
      .form-row {
        flex-direction: column;
      }
    }
  }

  .enquiry-popup {
    width: calc(100% - 32px);
    max-height: calc(100vh - 80px);
    overflow-y: scroll;
  }
}

@media (max-width: 768px) {
}

/* accordion styles inside info popup */
.package-info {
  .popup-header {
    margin-bottom: 24px;
  }
  .popup-body {
    details {
      border-top: 1px solid #ebe6e6;
      /*   margin-bottom: 10px; */
      overflow: hidden;

      font-family: Satoshi;
      font-weight: 400;
      font-size: 15px;
      line-height: 31px;
      letter-spacing: 0%;
      padding: 24px 0;

      & > ul:nth-of-type(1),
      & > .timeline.itinerary {
        margin-top: 12px;
      }

      &:nth-last-of-type(1) {
        padding-bottom: 0;
      }
    }

    /* Style the summary (header) */
    summary {
      padding: 0;
      cursor: pointer;
      font-weight: 600;
      position: relative;
      list-style: none;
      display: flex;
      align-items: center;
      transition: all 0.3s ease;

      font-family: Satoshi;
      font-weight: 700;
      font-size: 21px;
      line-height: 100%;
      letter-spacing: 0%;
      color: #101010;
    }

    /* Remove default arrow */
    summary::-webkit-details-marker {
      display: none;
    }

    /* Add custom arrow indicator */
    summary::after {
      /*   content: "+"; */
      content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExIDdWMTVNMTUgMTFMNyAxMSIgc3Ryb2tlPSIjMTQxQjM0IiBzdHJva2Utd2lkdGg9IjEuNSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0yMSAxMUMyMSA1LjQ3NzE1IDE2LjUyMjggMSAxMSAxQzUuNDc3MTUgMSAxIDUuNDc3MTUgMSAxMUMxIDE2LjUyMjggNS40NzcxNSAyMSAxMSAyMUMxNi41MjI4IDIxIDIxIDE2LjUyMjggMjEgMTFaIiBzdHJva2U9IiMxNDFCMzQiIHN0cm9rZS13aWR0aD0iMS41Ii8+Cjwvc3ZnPg==");
      margin-left: auto;
      font-size: 20px;
      transition: transform 0.3s ease;
    }

    details[open] summary::after {
      /*   content: "-"; */
      content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDExTDcgMTEiIHN0cm9rZT0iIzAwOEJENSIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjEgMTFDMjEgNS40NzcxNSAxNi41MjI4IDEgMTEgMUM1LjQ3NzE1IDEgMSA1LjQ3NzE1IDEgMTFDMSAxNi41MjI4IDUuNDc3MTUgMjEgMTEgMjFDMTYuNTIyOCAyMSAyMSAxNi41MjI4IDIxIDExWiIgc3Ryb2tlPSIjMDA4QkQ1IiBzdHJva2Utd2lkdGg9IjEuNSIvPgo8L3N2Zz4=");
    }

    details[open] summary {
      color: #008bd5;
    }

    /* Animation for content */
    details > ul {
      /* padding: 0 15px 15px; */
      padding: 0;
      margin: 0;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transform: translateY(-10px);
      transition: all 0.3s ease-out;
    }

    details[open] > ul {
      max-height: 500px;
      opacity: 1;
      transform: translateY(0);
      transition: all 0.3s ease-in;
    }

    /* Style list items */
    details ul li {
      /*   margin: 8px 0; */
      list-style-type: none;
      position: relative;
      padding-left: 20px;
    }

    details ul li::before {
      content: "•";
      position: absolute;
      left: 0;
      color: #555;
    }
  }
}

/* itinerary timeline */
.timeline.itinerary {
  position: relative;

  * {
    font-family: Satoshi;
  }
}

.timeline::before {
  content: "";
  position: absolute;
  width: 4px;
  background-color: #008bd544;
  top: 0;
  bottom: 0;
  left: 120px;
  margin-left: -2px;
}

.day-container {
  padding-left: 150px;
  position: relative;
  margin-bottom: 30px;

  &:nth-last-of-type(1) {
    margin-bottom: 0;
  }
}

.day-label {
  position: absolute;
  left: 0;
  background-color: #f4f9ff;
  background: linear-gradient(90deg, #232a6b 0%, #008bd5 61%, #00b8eb 100%);

  padding: 10px 20px;
  padding: 0;
  border-radius: 20px;
  font-weight: 600;
  color: #fff;
  width: 100px;
  text-align: center;
  line-height: 31px;
}

.day-content {
  display: flex;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
  border: 1px solid #ebe6e6;
}

.day-image {
  flex: 0 0 300px;
  background-size: cover;
  background-position: center;
}

.day-details {
  flex: 1;
  padding: 25px;
}

.day-details h2 {
  margin-bottom: 15px;

  font-family: Satoshi;
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #101010;
}

.day-details p,
.day-description {
  width: 165;
  height: 210;
  top: 134px;
  left: 857px;
  border-radius: 6px;
  color: #ababab;
}

@media (max-width: 900px) {
  .day-content {
    flex-direction: column;
  }

  .day-image {
    height: 200px;
    flex-basis: auto;
  }
}

@media (max-width: 600px) {
  .timeline::before {
    left: 60px;
    width: 0;
  }

  .day-container {
    padding-left: 90px;
    padding-left: 0;
  }

  .day-label {
    /*width: 70px;*/
    padding: 8px 5px;
    font-size: 0.9rem;
    left: 15px;
    top: 15px;
  }

  .day-details {
    padding: 20px;
  }
}

.highlight {
  background-color: #f4f9ff;
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 500;
}
