/* 
Desktop: 1200px
Laptop: 992px
Tablet 768px
Phone 480px
*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

.wrapper {
  display: grid;
  grid-template-columns: 4fr 3fr;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#map {
  height: 500px;
  margin-right: 10px;
}

.map-panel {
  height: auto;
  width: auto;
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
}

.search {
  margin: 10px 1px;
  width: 45%;
  height: 25px;
  border-width: 1px;
  border-radius: 5px;
  border-color: rgb(0, 157, 255);
}

.search:focus {
  outline-width: 1px;
  outline-color: rgb(0, 157, 255);
}

.switch {
  margin: auto;
}

.switch-image {
  height: 15px;
  width: 15px;
}

.add-waypoint {
  background-color: lightskyblue;
  border-width: 0;
  cursor: pointer;
  height: 20px;
  border-radius: 10px;
  font-size: large;
}

.add-waypoint:hover {
  background-color: rgb(0, 157, 255);
}

.add-waypoint:focus {
  outline-width: 0;
}

.button-popup {
  margin: auto;
}

.popup-stop,
.popup-switch {
  display: none;
  background-color: rgb(54, 54, 54);
  color: white;
  border-radius: 5px;
  padding: 3px;
  position: absolute;
  z-index: 1;
  /* top: auto;
  left: auto; */
}

.hovering {
  display: block;
}

.not-hovering {
  display: none;
}

.waypoints {
  margin: auto;
  width: 50%;
}

.search-waypoint {
  margin: 0 0 10px 0;
  width: 100%;
}

.card-wrapper-attr,
.card-wrapper-rest {
  flex: 2;
  margin: 5px;
}

h1 {
  margin: 0 0 5px 0;
}

.card-featured {
  background-color: lightskyblue;
  padding: 5px;
  border-radius: 10px;
  height: 500px;
}

.ft-restaurant {
  display: flex;
  flex-direction: column;
}

.card-wrapper-other {
  display: grid;
  column-gap: 10px;
  row-gap: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.card-other-attr,
.card-other-rest {
  background-color: lightskyblue;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
}

.selected {
  background-color: rgb(0, 157, 255);
}

img {
  object-fit: cover;
  height: 300px;
  width: 100%;
}

h2 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-weight: 100;
  text-align: center;
  height: 60px;
}

.attr-desc {
  height: 100px;
  overflow: auto;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 7px;
  background-color: lightgray;
}

::-webkit-scrollbar-thumb {
  background: cornflowerblue;
  border-radius: 5px;
}

.rest-title {
  margin-bottom: 0;
}

.carousel {
  align-items: center;
  display: flex;
  margin: 5px;
  overflow: hidden;
  position: relative;
}

.carousel__images {
  display: flex;
  width: 100%;
}

.btn {
  cursor: pointer;
  color: white;
  font-size: 125%;
  opacity: 0.25;
  position: absolute;
  border-radius: 50%;
  border: none;
  outline: none;
  z-index: 1;
  background-color: black;
}

.carousel__images:hover + .carousel__buttons > .btn {
  opacity: 0.5;
}

.prev {
  left: 5px;
}

.prev:hover {
  opacity: 0.75;
}

.next {
  right: 5px;
}

.next:hover {
  opacity: 0.75;
}

.dots {
  text-align: center;
}

.dot {
  height: 7px;
  width: 7px;
  margin: 0 2px;
  background-color: #80808050;
  border-radius: 50%;
  display: inline-block;
}

.active,
.dot:hover {
  background-color: rgb(0, 157, 255);
  height: 8px;
  width: 8px;
}

.menu-rating {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.rest-menu {
  flex: 1;
}

.rest-rating-img {
  width: 100px;
  height: 15px;
}

.rest-rating {
  margin: 0;
}

.rest-bottom {
  overflow: hidden;
}

.category {
  font-family: Georgia, "Times New Roman", Times, serif;
  text-align: center;
  color: rgb(0, 157, 255);
}

.info-image {
  width: 300px;
  height: 300px;
}

@media (min-width: 2100px) {
  .wrapper {
    /* margin: 0 100px; */
    grid-template-columns: 7fr 4fr;
  }

  .search-start,
  .search-destination {
    width: 47%;
  }
}

@media (max-width: 1300px) {
  .wrapper {
    grid-template-columns: 1fr 1fr;
  }

  .search-start,
  .search-destination {
    width: 42%;
  }
}

@media (max-width: 1108px) {
  .menu-rating {
    margin-top: 10px;
  }
}

@media (max-width: 900px) {
  .wrapper {
    display: grid;
  }

  .map-directions {
    grid-column: 1/4;
  }

  #map {
    height: 300px;
  }

  .cards {
    grid-row: 2;
    grid-column: 1/4;
  }

  .popup-stop,
  .popup-switch {
    text-align: center;
  }
}

@media (max-width: 454px) {
  .search-start,
  .search-destination {
    width: 38%;
  }

  h1 {
    font-size: 150%;
  }

  h2 {
    font-size: 120%;
  }

  .card-other-attr,
  .card-other-rest,
  a,
  p {
    font-size: 80%;
  }

  .attr-image,
  .rest-image {
    /* width: 100%; */
    height: 200px;
  }

  .card-featured {
    height: 400px;
  }
}

@media (max-width: 366px) {
  .search-start,
  .search-destination {
    width: 35%;
  }

  .search-waypoint {
    width: 70%;
  }
}
