@import "variables.css";

main {
  position: relative;
}

main .background {
  max-width: 100%;
}

.searchbar-container {
  max-width: 1300px;
  width: 80%;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

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

.cards-container {
  min-width: 260px;
  max-width: 75%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.card-container {
  min-width: 260px;
  width: 23%;
  padding-left: 10px;
  padding-right: 10px;
}

.card {
  position: relative;
  width: 100%;
  min-height: 440px;
  margin: auto;
  margin-bottom: 30px;
  background-color: white;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
}

.card .img img {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  width: 100%;
  height: 250px;
}

.card .sport_icon {
  width: 45px;
  height: 45px;
  position: absolute;
  left: 15px;
  top: 15px;
  border: 1px solid #5c5c5c;
  border-radius: 40px;
  background-color: #ffffff;
  opacity: 0.8;
}

.card .sport_icon img {
  padding: 10px;
}

.card-details {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 25px;
  flex-grow: 1;
  gap: 10px;
  min-height: 160px;
}

.card-details .name a {
  font-size: large;
  font-weight: bold;
  text-decoration: none;
  color: rgb(0, 0, 0);
}

.card-details .price {
  font-weight: bold;
}

.card-details .reserve {
  margin-top: auto;
  margin-left: auto;
}

.card-details .reserve .button {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 18px;
  cursor: pointer;
}

.card-details .reserve .button {
  text-decoration: none;
}

.card .reserve a:hover {
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.35));
}

.map_header {
  width: 75%;
  text-align: left;
  background-color: #f4f4f4;
  margin: auto;
}

.map_header h1 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #3c3b3b;
}

.map_header p {
  font-size: 20px;
  color: #5c5c5c;
  padding-bottom: 10px;
}

#map {
  width: 75%;
  height: 700px;
  margin: auto;
  border-radius: 15px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1300px) {
  .searchbar-container {
    width: fit-content;
  }
}

@media (max-width: 1150px) {
  .searchbar-container {
    width: 80%;
  }
  #map {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .map_header h1 {
    font-size: 35px;
  }
  .map_header p {
    font-size: 16px;
  }
  #map {
    height: 400px;
  }
}

@media (max-width: 425px) {
  .card-container {
    padding: 0px;
  }
}
