/*===== VARIABLES =====*/

:root {
  --brown-primary: #4f1a00;
  /*--orange-primary: #ee5512;*/
  --text-color: #676977;
  --vast-background: #f4f5f8;
  --heading-font: "Poppins", sans-serif;
  --paragraph-font: "Barlow", sans-serif;
}

/*===== PAST TOURS BANNER STYLES =====*/
section.past-tours-banner {
  padding-top: 180px;
  padding-bottom: 150px;
  background-image: linear-gradient(to top, hsla(0, 0%, 0%, 0.4), hsla(0, 0%, 0%, 0.4)), url(../images/current-tours-banner.png);
  color: white;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

section.past-tours-banner .current-tours-title .container h1 {
  font-size: 32px;
  font-family: var(--heading-font);
  font-weight: 700;
}

section.past-tours-banner .current-tours-title .container p {
  font-size: 18px;
  letter-spacing: 1px;
}

/*===== CURRENT TOUR DETAILS STYLES =====*/
section.tour-details {
  height: auto;
}

section.tour-details .container {
  display: flex;
  justify-content: space-between;
}

section.tour-details .container .main-details-container {
  flex-basis: 64%;
  width: 768px;
  font-size: 18px;
  color: var(--text-color);

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-around;
  row-gap: 2rem;
}

.main-details {
}

.tour-card-container {
  width: 356px;
  height: 450px;
}

.tour-card-container .tour-card {
  width: 100%;
  height: 450px;
  position: relative;
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25), -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transform-style: preserve-3d;

  perspective: 1200;
  -webkit-perspective: 1200;
  transform: perspective(1200px);
}

.tour-card-container .tour-card .square {
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  z-index: 1;
  background-size: cover;
  background-position: center center;
  -webkit-transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  -o-transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25), -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  overflow: hidden;
  position: absolute;
  top: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  width: 100%;
  height: 100%;
}

.tour-card-container:hover .tour-card .square {
  -webkit-transform: rotateY(-180deg);
  transform: rotateY(-180deg);
}

.tour-card-container:hover > .tour-card .front {
  cursor: pointer;
  transform: translateX(-650px) scale(0.88);
}

.tour-card-container:hover > .tour-card .back {
  transform: translateY(-50%) translateX(0px) translateZ(0px) scale(1);
}

.tour-card-container .tour-card .front,
.tour-card-container .tour-card .back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
}

.tour-card-container .tour-card .front {
  position: relative;
  -webkit-transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  -o-transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25), -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  -webkit-transform: translateX(0px) scale(1);
  -ms-transform: translateX(0px) scale(1);
  transform: translateX(0px) scale(1);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  z-index: 2;
}

.tour-card-container .tour-card .front .country {
  position: absolute;
  right: 7%;
  top: 5%;
  background: var(--brown-primary);
  color: white;
  text-transform: uppercase;
  padding: 1rem 0.5rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tour-card-container .tour-card .front .location {
  position: absolute;
  color: white;
  bottom: 10%;
  right: 10%;
}

.tour-card-container .tour-card .back {
  -webkit-transform: rotateY(180deg) translateY(-50%);
  transform: rotateY(180deg) translateY(-50%);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  z-index: 1;
  -webkit-transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  -o-transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  transition: transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25), -webkit-transform 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.25);
  overflow: hidden;
  position: absolute;
  top: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  top: 50%;
  background: var(--vast-background);
  display: grid;
  place-items: center;
}

.tour-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 1rem;
  margin-bottom: 2rem;
}

.tour-icons .icon-entry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tour-icons .icon-entry img {
  width: 18px;
}

.country {
  position: absolute;
  right: 6%;
  top: 4%;
  background: var(--brown-primary);
  color: white;
  text-transform: uppercase;
  padding: 1rem 0.5rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.location {
  position: absolute;
  right: 6%;
  bottom: 4%;
  text-align: right;
}

.location h3 {
  font-family: var(--heading-font);
  font-weight: 700;
  text-transform: capitalize;
  font-size: 28px;
}

.back-inner {
  padding: 2rem;
}

.back-inner h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2rem;
  color: var(--brown-primary);
  font-size: 28px;
  margin-bottom: 0.5rem;
  text-transform: capitalize;
}

.back-inner .back-price {
  margin-bottom: 1.25rem;
}

.back-inner p.tour-brief {
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.back-inner a {
  text-decoration: none;
  color: var(--text-color);
  position: relative;
}

.back-inner a::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  height: 1px;
  width: 100%;
  background-color: var(--brown-primary);
}

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;
}
