@import "Pages/index.css";

/****** General ***********/
* {
  font-family: "Raleway", sans-serif;
}

:root {
  --main-color: #0065fc;
  --main-bg-color: #f2f2f2;
  --filter-bg-color: #deebff;
}

.fa-solid {
  color: var(--main-color);
}

body {
  display: flex;
  justify-content: center;
}

.main-container {
  width: 100%;
  max-width: 1440px;
  padding: 0 50px;
  box-sizing: border-box;
}

.section-title {
  font-size: 22px;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 5px;
  filter: drop-shadow(0px 3px 15px rgba(0, 0, 0, 0.1));
}

.card img {
  object-fit: cover;
}

.card-title {
  font-size: 16px;
}

.euro {
  font-weight: 700;
}

.neutral-star {
  color: var(--main-bg-color);
}

/****** Hebergements And Populaires ***********/
.hebergements-and-populaires {
  display: flex;
  justify-content: space-between;
}

.hebergements-and-populaires section {
  border-radius: 20px;
  box-sizing: border-box;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

/****** Hebergements ***********/
.hebergements {
  width: 65%;
  background-color: var(--main-bg-color);
}
.section-title {
  margin-bottom: 2rem;
}
.hebergements h2 {
  margin-top: 2rem;
}

.hebergements-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
}
.hebergements-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.card-host {
  background-color: white;
  border-radius: 20px;
}

.hebergements-cards .card-host {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
  padding: 0.3rem;
}

.hebergements-cards img {
  width: 100%;
  height: 124px;
  border-radius: 1.25rem 1.25rem 0rem 0rem;
  object-fit: cover;
}

.hebergements-cards .card-content {
  width: 100%;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.hebergements-cards .card-title {
  margin-top: 10px;
  margin-bottom: 10px;
}

.hebergements-cards .card-subtitle {
  margin: 0;
  font-size: 0.875rem;
}

.hebergements-cards .card-rating {
  margin-bottom: 5px;
  margin-top: 5px;
}
.hebergements a {
  text-decoration: none;
  color: black;
}
/****** Populaires ***********/
.populaires {
  width: 32%;
  background-color: var(--main-bg-color);
}
.section-title-popular {
  margin: 0;
  font-family: Raleway;
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding-top: 1.1rem;
}
.populaires-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.populaires-cards a {
  text-decoration: none;
  color: black;
}

.populaires-cards .card {
  display: flex;
  margin-top: 33px;
}

.populaires-cards img {
  width: 33%;
  height: 136px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.populaires-cards .card-content {
  width: 67%;
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.populaires-cards .card-title {
  margin-top: 10px;
  margin-bottom: 4px;
}

.populaires-cards .card-subtitle {
  margin: 0;
}

.populaires-cards .card-rating {
  margin-bottom: 5px;
}

/* Activité*/
.activity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem;
}

.activity-cards a {
  text-decoration: none;
  color: black;
}
.activity-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
}

.activity-cards .card-activity {
  display: flex;
  height: 439px;
  width: 100%;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0px 3px 15px 0px rgba(0, 0, 0, 0.1);
}

.activity-cards img {
  height: 85%;
  width: 100%;
  flex-shrink: 0;
  border-radius: 1.25rem 1.25rem 0rem 0rem;
  object-fit: cover;
}

.activity-cards .card-content {
  padding-left: 15px;
  align-self: stretch;
}

.activity-cards .card-title {
  font-family: Raleway;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* Le code ci-dessous correspond à la version responsive uniquement */

/****** Media queries ***********/
/* Medium devices (tablets, less/equal than 1024px) */
@media (max-width: 1024px) {
  .header-title h1 {
    margin-top: 2rem;
  }
  .filtres-menu {
    flex-direction: column;
    gap: 0rem;
  }

  .hebergements-and-populaires {
    flex-direction: column;
  }

  .hebergements {
    width: 100%;
  }
  .section-title-popular {
    padding-bottom: 1rem;
  }
  .populaires-cards article {
    display: flex;
    flex-basis: 33%;
  }
  .populaires {
    width: 100%;
    margin-top: 50px;
  }
  .activity-title .section-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }
  .populaires-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .populaires-cards .card {
    display: flex;
    margin: 10px;
  }

  .populaires-cards .card-title {
    font-size: 14px;
  }

  .populaires-cards .card-subtitle {
    font-size: 13px;
  }

  .activity-cards .card-activity {
    height: 270px;
  }
  .activity-cards img {
    height: 75%;
  }
}
/* Small devices (phones, less than 768px) */
@media (max-width: 767.98px) {
  body {
    margin: 0;
  }
  .main-container {
    padding: 0px;
  }
  .head-logo {
    flex-direction: column;
  }
  .logo-booki {
    display: flex;
    margin: auto;
    padding: 30px;
    height: 3rem;
  }
  .hebergement {
    display: flex;
    border-bottom: 2px solid #f2f2f2;
  }
  .hebergement a {
    flex-basis: 100%;
    justify-content: center;
    font-size: larger;
  }
  .link:hover {
    color: #0065fc;
    border-bottom: 2px solid #0065fc;
    border-top: none;
    padding-bottom: 15px;
  }
  .link {
    padding-top: 0rem;
    padding-bottom: 15px;
    display: flex;
    flex-direction: row;
  }
  .header-title {
    font-size: larger;
    margin: 1.25rem;
  }
  .search {
    display: flex;
    height: 49px;
    padding: 15px 16px;
    align-items: center;
    color: white;
    border-radius: 15px;
    border: 1px solid #0065fc;
    background: #0065fc;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  }
  .filter-search {
    margin: 1.25rem;
  }
  .recherche {
    justify-content: center;
    align-items: center;
    width: 100%;
    border: none;
  }
  .ville {
    border-top: 1px solid #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
  }
  .searchblue {
    display: none;
  }

  .border-filtres-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    align-items: center;
  }

  .subtitle-head {
    margin-bottom: 0rem;
  }
  .hebergements-and-populaires {
    flex-direction: column-reverse;
  }

  .populaires {
    width: 100%;
    margin-top: 0px;
  }

  .populaires-cards {
    display: flex;
    flex-direction: column;
    margin: 0 -1rem 0 -1rem;
  }
  .hebergements {
    width: 100%;
    background-color: white;
  }
  .hebergements-and-populaires section {
    border-radius: 0px;
  }
  .hebergements-cards {
    display: flex;
    flex-direction: column;
  }
  .hebergements-cards .card-host {
    padding: 0rem;
  }
  .hebergements-cards img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .card-host {
    width: 100%;
  }
  .card-host:nth-of-type(1) {
    order: 1;
  }
  .card-host:nth-of-type(2) {
    order: 6;
  }
  .card-host:nth-of-type(3) {
    order: 3;
  }
  .card-host:nth-of-type(4) {
    order: 4;
  }
  .card-host:nth-of-type(5) {
    order: 2;
  }
  .card-host:nth-of-type(6) {
    order: 5;
  }
  .activity-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }
  .activity-cards .card-activity {
    height: 200px;
  }
  .activity-cards img {
    width: 100%;
    height: 70%;
  }

  .footer-title {
    flex-direction: column;
    padding-top: 1rem;
  }
}
/* Very Small devices (phones, less than 400px) */
@media (max-width: 399px) {
  .border-filtres {
    display: flex;
    justify-content: center;
    padding: 0rem;
  }
  .filterlogo {
    padding-right: 0.4rem;
  }
}
