/*===== SINGLE TOUR SHOWCASE STYLES =====*/
section.single-tour-showcase {
  width: 100%;
  height: 100vh;
  /*background-image: linear-gradient(to top, hsla(0, 0%, 0%, 0.3), hsla(0, 0%, 0%, 0.3)), url(../images/banner-sample.webp);
      background-size: cover;
      background-repeat: no-repeat; */
  max-height: 700px;
  position: relative;
  overflow: hidden;
}

section.single-tour-showcase .single-tour-showcase-intro {
  position: absolute;
  width: 100%;
  top: 50%;
  z-index: 5;
  color: white;
}

section.single-tour-showcase .single-tour-showcase-intro p {
  font-family: var(--heading-font);
  font-size: 32px;
  font-weight: 700;
}

section.single-tour-showcase .single-tour-showcase-intro h1 {
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.single-tour-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.single-tour-carousel-image {
  height: 100%;
  width: 100vw;
  object-fit: cover;
}

/*
  .single-tour-carousel::after {
    content: "";
    position: absolute;
  
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
  }*/

.single-tour-dot-navigation {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.single-tour-dot {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 100%;
  border: thin solid white;
  display: inline-block;
  margin-right: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in;
}

.single-tour-dot:hover,
.single-tour-dot.active {
  background-color: var(--brown-primary);
}
/*----- SINGLE TOUR BANNER RESPONSIVENESS-----*/
@media (max-width: 550px) {
  section.single-tour-showcase .single-tour-showcase-intro p {
    font-size: 1.75rem;
  }

  section.single-tour-showcase .single-tour-showcase-intro h1 {
    font-size: 1.25rem;
  }
}

/*===== SINGLE TOUR DETAILS STYLES =====*/
section.tour-details {
  padding-top: 3rem;
}

section.tour-details .container {
  display: flex;
  justify-content: space-between;
}

section.tour-details .container .main-details {
  flex-basis: 60%;
  font-size: 18px;
  color: var(--text-color);
  max-width: 768px;
}

section.tour-details .container .main-details h2 {
  font-family: var(--heading-font);
  font-size: 45px;
  font-weight: 700;
  color: var(--brown-primary);
  text-transform: uppercase;
  margin-bottom: 40px;
}

section.tour-details .container .main-details .tour-icons {
  display: grid;
  grid-template-columns: repeat(2, auto);
  row-gap: 1rem;
  margin-bottom: 2rem;
}

section.tour-details .container .main-details .tour-icons .icon-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section.tour-details .container .main-details .tour-icons .icon-entry p.location {
  text-transform: capitalize;
}

section.tour-details .container .main-details .tour-icons .icon-entry img {
  width: 18px;
}

section.tour-details .container .main-details .information h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-primary);
  line-height: 1.2em;
  margin-bottom: 20px;
}

section.tour-details .container .main-details .information .info-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

section.tour-details .container .main-details .tour-itenerary {
  display: flex;
  flex-direction: column;
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 40% 60%;
  padding-block: 1rem;
  border-bottom: thin solid var(--vast-background);
  justify-content: space-between;
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry .itenerary-item {
  color: var(--brown-primary);
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry ul.intenerary-list-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry ul.intenerary-list-values li {
  display: flex;
  gap: 0.75rem;
  align-items: first baseline;
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry ul.intenerary-list-values.included li i {
  color: #32cd32;
}

section.tour-details .container .main-details .tour-itenerary .itenerary-entry ul.intenerary-list-values li i {
  color: #f00;
}

section.tour-details .container .main-details .tour-gallery {
  margin-bottom: 3rem;
}

section.tour-details .container .main-details .tour-gallery h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-primary);
  line-height: 1.2em;
  margin-block: 20px;
  margin-top: 2rem;
}

.tour-gallery-carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.tour-gallery-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.tour-gallery-carousel .gallery-image {
  flex: 0 0 33.34%;
  /*min-width: 33.33%;  Show three logos at a time */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-gallery-carousel .gallery-image img {
  width: 240px;
  height: auto;
}

section.tour-details .container .main-details .tour-highlights {
  margin-bottom: 3rem;
}

section.tour-details .container .main-details .tour-highlights h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-primary);
  line-height: 1.2em;
  margin-block: 20px;
  margin-top: 2rem;
}

section.tour-details .container .main-details .tour-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

section.tour-details .container .main-details .tour-highlights ul li {
  display: flex;
  gap: 0.5rem;
}

section.tour-details .container .main-details .tour-highlights ul li i {
  color: #32cd32;
}

section.tour-details .container .main-details .tour-plan h3 {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown-primary);
  line-height: 1.2em;
  margin-block: 20px;
}

.tour-accordion {
  width: 100%;
  margin: 20px auto;

  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background-color: #f4f5f8;
  padding: 20px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-family: var(--heading-font);
  color: var(--brown-primary);
}

/*.accordion-header:hover {
    background-color: #eaeaea;
  }*/

.accordion-header::after {
  content: "+";
  font-size: 18px;
  transition: transform 0.3s ease;
}

.accordion-item input[type="checkbox"] {
  display: none;
}

.accordion-item input[type="checkbox"]:checked + .accordion-header::after {
  content: "-";
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0; /* Start collapsed */
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color: #f4f5f8;
  padding: 0 30px;

  line-height: 1.75;
}

.accordion-content .accordion-content-inner {
  padding-bottom: 20px;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-content {
  max-height: 100vh; /* Expand to full viewport height (dynamic) */
}

section.tour-details .container .booking-form {
  flex-basis: 30%;
  max-width: 432px;
}

section.tour-details .container .booking-form h3 {
  width: 100%;
  background: var(--brown-primary);
  color: white;
  text-align: center;
  font-family: var(--heading-font);
  font-size: 1.75rem;
  font-weight: 600;
  padding-block: 1rem;
}

section.tour-details .container .booking-form form {
  background: #f4f5f8;
  width: 100%;
  padding: 45px 25px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section.tour-details .container .booking-form form .form-control {
  width: 100%;
}

section.tour-details .container .booking-form form .form-control input,
section.tour-details .container .booking-form form .form-control textarea {
  width: 100%;
  font-size: 18px;
  font-family: var(--paragraph-font);
  padding: 20px;
  border: none;
  background: white;
  color: var(--text-color);
}

section.tour-details .container .booking-form form .form-control textarea {
  height: 136px;
}

section.tour-details .container .booking-form form .form-control textarea::placeholder {
  color: var(--text-color);
}

section.tour-details .container .booking-form form .form-control input:focus,
section.tour-details .container .booking-form form .form-control textarea:focus {
  border: none;
  outline: none;
}

section.tour-details .container .booking-form form .form-control button {
  width: fit-content;
  font-size: 18px;
  font-family: var(--paragraph-font);
  padding: 10px 20px;
  border: none;
  background: var(--brown-primary);
  color: white;
  cursor: pointer;
}

aside .info-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 30px;
}

aside .info-links a {
  display: inline-block;
  color: var(--brown-primary);
  font-size: 20px;
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 25px;
  padding-block: 13px;
  background-color: #f4f5f8;
}

aside .related-tours {
  width: 100%;
  padding: 25px 25px;
  padding-bottom: 45px;
  background-color: var(--vast-background);
  margin-top: 30px;
}

aside .related-tours h2.related-tour-title {
  padding-bottom: 5px;
  border-bottom: 1px solid #e6eaf6;
  font-size: 20px;
  font-family: var(--heading-font);
  font-weight: 600;
  line-height: 1.75em;
  margin-bottom: 30px;
  color: var(--brown-primary);
}

aside .related-tours .related-tour-wrapper {
  display: flex;
  justify-content: space-between;
}

aside .related-tours .related-tour-wrapper .slide a {
  text-decoration: none;
  color: white;
  display: inline-block;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card {
  width: 150px;
  height: 223px;
  background-size: contain;
  position: relative;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card .tour-price {
  position: absolute;
  top: 5%;
  right: 7%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.5rem;
  background: var(--brown-primary);
  font-size: 14px;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card .card-footer {
  position: absolute;
  bottom: 5%;
  left: 4%;
  width: 140px;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card .card-footer h4 {
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  width: fit-content;
  text-transform: capitalize;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card .card-footer h4::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 65%;
  background: white;
  bottom: 0;
  left: 0;
  transition: width 300ms ease-in;
  transition-delay: 200ms;
}

aside .related-tours .related-tour-wrapper .slide a .tour-image-card .card-footer .control-height {
  max-height: 0;
  overflow: hidden;
  transition: all 300ms ease-in;
  margin-top: 8px;
}

aside .related-tours .related-tour-wrapper .slide a:hover .tour-image-card .card-footer h4::after {
  width: 140px;
}

aside .related-tours .related-tour-wrapper .slide a:hover .tour-image-card .card-footer .control-height {
  max-height: 60px;
  transition: all 300ms ease-in;
  width: 100%;
}

/*----- SINGLE TOUR DETAILS RESPONSIVENESS -----*/
@media (max-width: 1250px) {
  section.tour-details .container .booking-form {
    flex-basis: unset;
    width: 360px;
  }

  section.tour-details .container .main-details {
    flex-basis: unset;
    width: clamp(28.125rem, -22.9821rem + 90.8571vw, 48rem);
  }
}

@media (max-width: 900px) {
  section.tour-details .container {
    flex-direction: column;
    gap: 3rem;
  }

  section.tour-details .container .main-details h2 {
    font-size: 2rem;
  }

  section.tour-details .container .main-details,
  section.tour-details .container .booking-form {
    max-width: unset;
    width: 100%;
  }

  aside .related-tours .related-tour-wrapper {
    width: 100%;
  }

  aside .related-tours .related-tour-wrapper .slide a .tour-image-card {
    width: 43vw;
    aspect-ratio: 150 / 223;
    height: unset;
  }
}

@media (max-width: 767px) {
  aside .related-tours .related-tour-wrapper .slide a .tour-image-card {
    width: 40vw;
  }

  .tour-gallery-carousel .gallery-image {
    flex: 0 0 50%;
  }

  .tour-gallery-carousel .gallery-image img {
    width: 95%;
  }
}

@media (max-width: 500px) {
  section.tour-details .container .main-details .tour-itenerary .itenerary-entry {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  section.tour-details .container .main-details .tour-itenerary .itenerary-entry {
    padding-block: 2rem;
  }
}

@media (max-width: 400px) {
  .accordion-header {
    padding-inline: 16px;
  }

  aside .related-tours {
    padding: 1rem 1rem;
  }

  aside .related-tours .related-tour-wrapper .slide a:hover .tour-image-card .card-footer .control-height {
    max-height: 70px;
  }

  section.tour-details .container .booking-form form {
    padding: 1rem 1rem;
  }
}

section.tour-details .container .booking-form form .form-control {
  position: relative;
}

/* Form Controls */

/* Spinner Styles */
.spinner {
  display: none;
  position: absolute;
  top: 120%;
  left: 10%;

  width: 24px;
  height: 24px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--brown-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Submit Button */
#tourInquiryForm button[type="submit"] {
  background-color: var(--brown-primary);
  color: white;
  padding: 12px 25px;
  border: none;

  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

#tourInquiryForm button[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Response Message */
.response-message {
  display: none;
  background-color: #f8f8f8;
  border-left: 4px solid #007cba;
  padding: 15px 20px;
  margin-top: 15px;
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.response-message.success {
  border-color: #28a745;
  background-color: #e6ffe6;
}

.response-message.error {
  border-color: #dc3545;
  background-color: #ffe6e6;
}

.response-message p {
  margin: 0;
  padding-right: 30px;
  font-size: 16px;
}

/* Close Button */
.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--brown-primary);
  transition: color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
