
.iti-day {
  color: var(--accent);
  font-weight: 700;
}

.view-vgallery-tour {
  padding: 5px;
  margin-left: auto;
  margin-right: auto;
}

.views-field-field-tr-gallery > .field-content {
  display: grid;
  grid-template-columns: 55% repeat(3, 1fr);
  grid-auto-rows: 55vh;
  gap: 15px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
  }
}

.tour-wrapper-primary {
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url("../../images/2.svg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.015;
    z-index: 0;
    mask-image: linear-gradient(
      white 80%,
      transparent
    );
  }

  .tour-content-primary {
    position: relative;
    z-index: 1;
  }
}

.field-tr-parg-short-iti {
  margin-top: 30px;
}

.field-tr-parg-short-iti {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.short-itinerary-accordion {
  border-bottom: 1px solid #f1f1f1;
}

.short-itinerary-accordion__title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;

  &::-webkit-details-marker {
    display: none;
  }

  &::marker {
    content: "";
  }

  path {
    stroke: var(--accent);
  }
}

.short-itinerary-accordion[open] .short-itinerary-accordion__title svg {
  transform: rotate(90deg);
}

.field-parg-shiti-description {
  padding-bottom: 10px;
}

.tour-characteries {
  border-top: 1px solid #f1f1f1;
  padding-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 10px;

  .gr-icon {
    width: 40px;
    height: 40px;
    border-radius: 30%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand);
  }

  .gr-values {
    flex: 1;
  }

  .char-value {
    font-size: 15px;
  }

  path {
    fill: white;
  }

  .item-char {
    display: flex;
    gap: 10px;

  }

  .field__label {
    font-weight: 700;
    color: var(--darked);
    font-size: 13px;
    text-transform: capitalize;
  }
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

.field-price {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  color: var(--darked);

  .price {
    color: var(--accent);
    font-weight: 700;
    font-size: 34px;
  }
}

.tab-header {
  background-color: #e4eae9;
  margin-top: 40px;
  position: sticky;
  top: 68px;
}

.tab__nav {
  display: flex;
  list-style: none;
  justify-content: space-between;
  gap: 20px;
  padding-left: 0;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tabs__nav-item {
  flex-shrink: 0;
}

.tabs__link {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 16px 10px 12px;
  font-size: 14px;
  color: var(--brand);
  text-transform: uppercase;
  white-space: nowrap;

  svg {
    width: 18px;
    height: 18px;
  }

  &.is-active {
    font-weight: 700;

    .icon {
      background-color: var(--brand);
    }

    path {
      fill: white;
    }
  }

  .icon {
    width: 28px;
    height: 28px;
    background-color: #b0c2c0;
    border-radius: 30%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  path {
    fill: #EEE;
  }
}

.tabs__content {
  padding-top: 30px;
  padding-bottom: 30px;

  display: grid;
  gap: 50px;
}

.card-booking {
  position: sticky;
  top: 150px;
  max-width: 380px;
  padding: 30px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 0 17px 0 rgba(0, 0, 0, 0.1);

  .tour__second-title {
    color: var(--brand);
    font-weight: 700;
    display: block;
    border-bottom: 1px solid #ffd8b8;
    padding-bottom: 10px;
  }

  .group-price {
    padding-top: 10px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
  }

  .tour__second-duration {
    display: flex;
    flex-direction: column;
  }

  .tour__second-price {
    display: flex;
    flex-direction: column;
  }
}

.tour__second-duration {
  font-size: 13px;

  .duration {
    color: var(--brand);
    font-size: 16px;
    font-weight: 700;
  }
}

.tour__second-price {
  font-size: 13px;
  text-align: end;

  .price {
    color: var(--accent);
    font-size: 26px;
    font-weight: 700;
  }
}

.card-form {
  margin-top: 20px;
  padding: 20px;
  border-radius: 15px;
  background-color: white;
  box-shadow: 0 0 17px 0 rgba(0, 0, 0, 0.1);
}

/* SOLO PARA ESTE FORMULARIO */
@scope (.webform-submission-wf-tour-contact-form) {
  .js-form-item {
    margin-bottom: 15px;
  }

  label {
    color: var(--darked);
    font-weight: 700;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
  }

  input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #E1E1E1;
    padding: 15px 10px;
    border-radius: 10px;

    &:focus {
      outline: none;
      border-color: var(--brand);
    }
  }

  .iti {
    width: 100%;
  }

  .form-submit {
    flex: 1;
    background: none;
    border-radius: var(--border-radius);
    border: 2px solid var(--brand);
    text-transform: capitalize;
    padding: 8px 20px;
    box-shadow: 0 4px 10px rgba(5, 61, 56, 0.16);
    font-size: 14px;
    color: var(--darked);
  }
}

.form__group-actions {
  display: flex;
  gap: 20px;
  text-align: center;
}

.tour-contact-actions__link {
  flex: 1;
  font-size: 14px;
  display: block;
  width: fit-content;
  background-color: var(--brand);
  color: white;
  border-radius: var(--border-radius);
  padding: 8px 20px;
  text-transform: capitalize;
  cursor: default;
  box-shadow: 0 4px 10px rgba(5, 61, 56, 0.16);
}

/* ./SOLO PARA ESTE FORMULARIO */

/**/

/* SOLO PARA LOS TOURS */
@scope (.page-node-type-tour) {
  .region-featured {
    background: var(--brand);
    border-bottom-right-radius: 40px;
    padding-bottom: 55px;
  }

  .main-content {
    margin-top: -55px;
    background-color: white;
  }
}

/* ./SOLO PARA LOS TOURS */
.tour-gallery-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .tour-gallery-container {
    flex-direction: row;
    height: 54vh;
  }

  .gallery-item {
    flex: 1;
    transition: flex 0.5s ease-in-out;
  }

  .gallery-item.is-active {
    flex: 5;
  }
}

/* Solo para mobiles */
@media (max-width: 767px) {
  .tour-gallery-container {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 450px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tour-gallery-container::-webkit-scrollbar {
    display: none;
  }

  .gallery-item {
    flex: 0 0 90%;
    scroll-snap-align: center;
    height: 100%;
  }

  .gallery-item.is-active {
    flex: 0 0 90%;
  }

  .card__price-mb {
    --border-radius: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 8px 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: 0 -5.7rem 1.6rem 0 rgba(0, 0, 0, 0), 0 -3.6rem 1.5rem 0 rgba(0, 0, 0, .01), 0 -2.1rem 1.2rem 0 rgba(0, 0, 0, .05), 0 -0.9rem .9rem 0 rgba(0, 0, 0, .09), 0 -0.2rem .5rem 0 rgba(0, 0, 0, .1);
  }

  .btn--booking-mb {
    font-size: 14px;
    display: block;
    width: fit-content;
    background-color: var(--brand);
    color: white;
    border-radius: var(--border-radius);
    padding: 8px 30px;
    text-transform: capitalize;
    cursor: default;
    box-shadow: 0 4px 10px rgba(5, 61, 56, 0.16);
  }

  .mb-field-price {
    font-size: 13px;

    .price {
      color: var(--accent);
      font-size: 24px;
      font-weight: 700;
    }
  }
}

/* ./SOLO PARA MOBILES */

/* MEDIA QUERIES */
@media (width >= 1024px) {

  .tabs__link {
    padding: 16px 10px 12px;
    font-size: 16px;

    .icon {
      width: 35px;
      height: 35px;
    }
  }

  .tab__nav {
    gap: 0;
    padding-left: 0;
  }

  .tour-grid {
    grid-template-columns: 70% 30%;
  }

  .tour-characteries {
    grid-template-columns: repeat(4, 1fr);
  }

  .tabs__content {
    grid-template-columns: 1fr 28%;
  }

  .view-vgallery-tour {
    padding: 15px;
  }

  @scope (.page-node-type-tour) {
    .region-featured {
      border-bottom-right-radius: 40px;
    }

    .main-content {
      border-top-left-radius: 50px;
    }
  }
}

/* MEDIA QUERIES */


