* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.icon {
  color: #eb6b5d;
}

img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 8px;
}

/* Globals end here */

.container {
  font-family: sans;
  width: 80%;
  margin: 0 auto;
  line-height: 1.5;
  font-size: 16px;
}

.modal-container {
  width: 100%;
  height: 75%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #ffffff;
  display: none;
  color: #777777;
}

.modal-container::after {
  content: '';
  width: 100%;
  height: 100%;
  display: flex;
  position: fixed;
  top: 75%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-close {
  color: #000;
  font-weight: 700;
  display: flex;
  margin-top: 30px;
  justify-content: space-between;
}

.modal-close>span {
  margin-left: 30px;
}

.modal-close>.close {
  margin-right: 30px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-container h4 {
  color: #000;
}

.modal-btn {
  box-shadow: 0 4px 4px #edeef1;
  height: 70px;
}

.modal-guest-btn:focus,
.modal-location-btn:focus {
  border: 1px solid #000 !important;
}

/* Header Element */
.button,
.modal-btn {
  font-size: inherit;
  padding: 10px 20px;
  background: none;
  border: 1px solid #edeef1;
  cursor: pointer;
}

.button {
  padding: 15px !important;
}

/* header element */
#search-wrapper :first-child,
.modal-buttons-container :first-child {
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border-right: none;
  border-right: none;
}

/* header element */
#search-wrapper :last-child,
.modal-buttons-container :last-child {
  font-size: 22px;
  border-left: none;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.modal-location-btn,
.modal-guest-btn {
  margin-top: 30px;
  height: 70px;
  width: 30%;
}

.modal-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  margin-top: 30px;
  background: #eb6b5d;
  color: #ffffff;
  font-weight: bolder;
  margin-top: 30px;
  border: none;
}

#search {
  display: none;
}

.magnifier {
  margin-top: 10px;
  margin-right: 5px;
}

.modal-buttons-container {
  display: flex;
  justify-content: center;
}

.cities {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.list {
  position: relative;
  left: -15.5%;
  display: flex;
  color: #485469;
  flex-direction: column;
  gap: 15px;
}

.list>li {
  display: flex;
  list-style-type: none;
  padding: 5px 15px 5px 10px;
  gap: 5px;
}

.list>li:hover {
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  width: fit-content;
}

.guest-counter {
  display: flex;
  gap: 25px;
  flex-direction: column;
}

.operator {
  width: 20px;
  height: 20px;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 5px;
  margin: 5px;
}

input,
input:focus,
input:active {
  font-size: 15px !important;
  outline: none;
  border: none;
  padding: none;
}

label {
  font-weight: 600;
  color: #000;
}

/* Modal Ends Here */

header {
  display: flex;
  margin: 30px 0;
  padding: 15px 0;
  justify-content: space-between;
  align-items: center;
}

header>svg {
  width: 128px;
  height: 64px;
}

#search-wrapper {
  display: flex;
  border-radius: 15px;
  box-shadow: 0 4px 5px 4px #edeef1;
}

#search-wrapper :nth-child(2) {
  color: #edeef1;
  border-right: none;
}

#search-wrapper :last-child {
  background-color: #eb6b5d;
  color: #edeef1;
}

#search-wrapper :first-child:active {
  color: #777777;
}

#search-wrapper :nth-child(2):active {
  color: #777777;
}

/* Header Ends Here */

#stays-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 45px;
}

#main-headings {
  display: flex;
  justify-content: space-between;
  padding: 30px 0;
}

.stays {
  margin-top: 5px;
}

.rating-container {
  display: flex;
  float: right;
  gap: 3px;
  align-items: center;
}

.card-description {
  font-size: 16px;
  color: #9ca3af;
}

.superhost {
  font-size: 11px;
  padding: 5px;
  font-weight: 800;
  border-radius: 10px;
  border: 1px solid #000;
  line-height: 1.5;
}

.not-found {
  display: none;
  margin-top: 100px;
  text-align: center;
}

.card h4 {
  width: fit-content;
  margin-top: 10px;
  font-size: 16px;
}

/* Stays-view Ends Here */

footer {
  margin: 4rem 0 0 0;
  border-radius: 10px;
  color: #57595f;
  width: 100%;
  padding: 30px;
  text-align: center;
}

/* Media Queries  */

@media screen and (max-width: 1060px) {
  .container {
    width: 90%;
  }

  .stay-views {
    display: grid;
    width: 80%;
    gap: 0px;
  }

  #search {
    display: none;
  }
}

/* Medium Breakpoint */
@media screen and (max-width: 950px) {
  .container {
    width: 100%;
    padding: 30px 20px;
    font-size: 18px;
  }

  img {
    height: 80%;
  }

  #stays-view {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
  }

  #search {
    display: none;
  }
}

/* Small Breakpoint */
@media screen and (max-width: 590px) {
  .container {
    width: 90%;
    margin: 0 auto;
    font-size: 16px;
  }

  #stays-view {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 25px;
  }

  header {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .modal-buttons-container,
  #search-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    width: 100%;
    box-shadow: none;
  }

  #search-wrapper :first-child,
  #search-wrapper :nth-child(2),
  #search-wrapper :last-child {
    border-radius: 15px;
    height: 50px;
    border: 1px solid #edeef1;
    margin-top: 5px;
  }

  .modal-btn {
    width: 80%;
    height: 50px;
    padding-top: 5px;
    font-size: 14px;
    margin: 5px auto;
    border-radius: 20px;
    box-shadow: none;
  }

  .modal-btn:last-child {
    display: none;
  }

  #search {
    margin: 40px auto;
    border-radius: 20px;
    font-size: 18px;
    height: 40px;
    display: flex;
  }

  .magnifier {
    margin-bottom: 8px;
  }
}