/* GLOBAL */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --green: #549c86;
  --light-gray: #f0f1f1;
  --middle-gray: #f5efee;
  --gray: #c1c3c3;
  --dark-gray: #6f6f70;
  --dark-blue: #04153c;
}
body {
  font-family: "Roboto", sans-serif;
  color: black;
  background-color: var(--light-gray);
}
a {
  text-decoration: none;
  color: black;
}
ul {
  list-style: none;
}
input {
  background-color: var(--light-gray);
  border: none;
  height: 35px;
  border-radius: 3px;
  padding: 8px;
}
button {
  border: none;
  border-radius: 4px;
  height: 36px;
  background-color: var(--green);
  color: white;
  cursor: pointer;
  font-weight: lighter;
}
h1 {
  text-align: center;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 20px;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  background-color: white;
  padding: 8px 16px;
}
header .logo {
  color: var(--green);
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.5px;
}
header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
header nav a:hover {
  color: var(--green);
}

/* MAIN INDEX */
.home {
  background-image: url("./assets/background.jpg");
  height: 100vh;
  background-position: center;
  background-size: cover;
  padding: 32px;
}
.home h1,
.subtitle {
  padding-bottom: 16px;
  color: white;
}
.home h1 {
  font-weight: normal;
  font-size: 28px;
}
.subtitle {
  text-align: center;
  font-weight: lighter;
  font-size: 17px;
  margin-bottom: 32px;
}

.trip-search-container {
  display: flex;
  justify-content: center;
  gap: 150px;
}

.trip-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  padding: 22px;
  max-width: 300px;
  width: 100%;
  height: 350px;
}

hr {
  border: none;
  border-bottom: 2px solid var(--gray);
  width: 98%;
  position: relative;
  left: 1%;
}
hr.green {
  width: 80%;
  border-bottom-color: var(--green);
}

.search-arrival {
  margin-bottom: 40px;
}

.trip-search {
  margin-top: auto;
}

.trip-card-result {
  padding-right: 0;
}
.trip-result-infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 20px;
  height: 100%;
  gap: 30px;
  font-size: 14px;
}
.trip-result-infos img {
  width: 100px;
}

.trip-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  scrollbar-color: var(--dark-gray) white;
  scrollbar-width: thin;
  padding-right: 16px;
}
.trip-result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--middle-gray);
  border-radius: 4px;
  padding: 8px;
  font-size: 14px;
}

.btn-book {
  height: auto;
  padding: 6px 8px;
}

/* CART & BOOKINGS */
.cart,
.bookings {
  height: calc(100vh - 60px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-container,
.bookings-container {
  background-color: white;
  width: 70%;
  border-radius: 4px;
}

.infos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  padding: 30px 0;
}

.cart-items,
.bookings-items {
  display: flex;
  flex-direction: column;
  padding-left: 60px;
  padding-right: 60px;
  gap: 16px;
  padding-top: 30px;
}
.cart-items li,
.bookings-items li {
  background-color: var(--middle-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  border-radius: 4px;
  font-size: 14px;
}
.bookings-items li {
  padding: 16px 8px;
}
.btn-delete {
  aspect-ratio: 1;
  padding: 8px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.cart-footer {
  background-color: var(--dark-blue);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-top: 30px;
  padding: 16px 30px;
  color: white;
  font-weight: light;
  display: flex;
  align-items: center;
  justify-content: space-between;
  display: none;
}
.cart h1,
.bookings h1 {
  display: none;
}
.bookings-footer {
  color: var(--green);
  font-size: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  display: none;
}

.bookings-footer::before {
  content: "";
  background-color: var(--dark-gray);
  width: 15%;
  height: 2px;
  margin: 0 auto;
  display: inline-block;
  margin-bottom: 16px;
}

.btn-purchase {
  padding: 4px 16px;
}

/* RESPONSIVE */

/* MAIN INDEX */
@media only screen and (max-width: 800px) {
  .trip-search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* CART */
@media only screen and (max-width: 800px) {
  .cart-items li,
  .bookings-items li {
    flex-direction: column;
    gap: 8px;
  }
}
