/* MEDIA QUERIES */
@media only screen and (max-width: 1150px) {
  .show-wrapper {
    grid-template-rows: minmax(500px, auto);
  }

  .stay-details,
  .reviews-container,
  .show-wrapper #map {
    grid-column: 1/3;
    grid-row: auto;
  }
  .show-wrapper #map {
    grid-row: 1/2;
  }

  .search-page {
    display: block;
  }

  .search-page #map {
    height: 100vh;
    width: 100%;
    position: fixed;
  }

  .toggleMap {
    display: block;
  }

  #toggleMap:checked ~.search-page {
    display: block;
    width: 100vw;
  }

  #toggleMap:checked ~ .staysList {
    height: 100vh;
    width: 100%;
    right: 0;
    top: 0;
  }
  
  #toggleMap:checked ~ #map {
    height: 100vh;
    width: 100%;
    right: 0;
    top: 0;
    left:0;
    z-index: 1;
  }

  #toggleMap:checked ~ .toggleMap {
    z-index: 2;
  }

}

@media only screen and (max-width: 950px) {
  /* PAGE-CONTENT */
  .staysList {
    padding-top: 0;
  }

  /* FORM */
  .stays .search-form_section {
    z-index: 1;
    position: relative;
  }

  .search-form_submit {
    width: 12%;
  }

  .brand-quote {
    width: 90%;
    min-width: 0;
    z-index: -1;
  }

  .stays #form-container {
    margin: 1em auto;
    padding: 1em 0;
  }

  .calendar-days,
  .weeks-container {
    justify-content: space-evenly;
  }

  .weeks {
    width: 40%;
  }

  .days {
    width: 40%;
  }

  .cal-btn {
    width: 1.2em;
    height: 1.2em;
  }

  .next-btn {
    right: 0.2em;
  }
  .prev-btn {
    left: 0.2em;
  }

  /* SEARCH PAGE */
  .search-card {
    width: 90vw;
    height: 300px;
    margin-left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
  }

  .card-div:last-child {
    padding-top: 1em;
  }

  .card-div .view-button {
    bottom: 0.5em;
    left: 0.5em;
    width: 90%;
    display: flex;
    justify-content: space-between;
  }
}

@media only screen and (max-width: 800px) {
  .hidden,
  .overflow-hide {
    overflow: hidden;
  }
  .page-content {
    padding-top: 10%;
}
  /* NAVBAR & CO. */
  .navbar {
    background: #fff;
    height: 48px;
    z-index: 10;
    position: fixed;
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
  }

  .navbar.hide {
    z-index: -1;
  }

  .logo path {
    fill: #fd705d;
  }

  .logo:nth-child(2) {
    display: none;
  }

  .nav-content {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease-out;
    visibility: hidden;
  }
  .nav-content.opacity {
    opacity: 1;
    visibility: visible;
  }

  .menu {
    position: absolute;
    flex-direction: column;
    justify-content: space-evenly;
    background: #fff;
    color: #000;
    top: 0;
    right: 0;
    width: 65%;
    max-width: 400px;
    height: 100vh;
    transition: all 0.5s ease-out;
    transform: translateX(100%);
  }

  .menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 48px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .menu-open {
    transform: translateX(0%);
  }

  .nav-item {
    width: 100%;
    text-align: center;
  }

  .home .auth::after {
    border-bottom: 1px solid #000;
  }

  .home #nav-btn-link {
    color: #000;
    border-color: #000;
  }

  .home #nav-btn-link:hover {
    color: #fff;
    background: #000;
  }

  #hamburger {
    display: flex;
    z-index: 5;
  }

  #hamburger > svg {
    stroke: black;
    transition: all 0.5s ease-in-out;
  }
  .line-one {
    transform: rotate(45deg);
  }
  .line-two {
    position: absolute;
    transform: rotate(-45deg);
  }
  .line-three {
    transform: translateX(100%);
    opacity: 0;
    position: absolute;
  }

  .gallery-img-container {
    width: 45%;
  }
  /* FORM */
  .stays .search-form_section,
  .search-form_section {
    position: static;
    top: 0;
  }

  #form-container {
    position: static;
  }
  .stays #form-container {
    padding: 0.5em 0 3em 0;
  }

  #search-form {
    flex-wrap: wrap;
  }

  .form-div:nth-of-type(1) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  }

  .stays .form-div:nth-of-type(1) {
    border-top-left-radius: 0.2em;
    border-top-right-radius: 0.2em;
  }

  .date-picker {
    width: 50%;
    border: none;
  }
  #check-in-section {
    border-right: 1px solid rgba(0, 0, 0, 0.2);
  }

  .search-form_submit {
    right: 50%;
    top: 100%;
    transform: translateY(50%) translateX(50%);
    width: 20%;
    min-width: 150px;
    z-index: 1;
  }

  .stays .search-form_submit {
    top: 95%;
    right: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
  }

  .search-form_submit > svg {
    transform: scale(0.7);
  }

  .brand-quote {
    margin-top: 2em;
  }

  /* CALENDAR */
  .calendar-container {
    position: fixed;
    top: 0;
}

  .scene,
  .stays .scene {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 10;
    position: fixed;
  }

  .slider {
    transform: rotateY(0deg);
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .calendar {
    position: relative;
    top: 15%;
    height: 500px;
    overflow: visible;
  }

  #mobile-weeks {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.3em;
    background-color: #fff;
    height: 3em;
    top: 15%;
    display: block;
  }

  .weeks-container {
    display: none;
  }

  .weeks:nth-of-type(1) {
    display: none;
  }

  .weeks {
    width: 95%;
    top: 0.5em;
  }

  .months {
    position: absolute;
    top: 3.5em;
    height: 500px;
  }

  .months:nth-of-type(1) {
    top: 3.5em;
  }

  .months h3 {
    width: 100%;
  }
  .calendar-days {
    position: absolute;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 500px;
    top: 6em;
    width: 100vw;
  }

  .days {
    width: 95%;
  }

  .cal-btn {
    display: none;
  }

  .span-button_container {
    width: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    height: 2.5em;
    padding: 1em;
    font-size: 1.2em;
    z-index: 10;
  }

  .cal-clear {
    right: 0.5em;
    top: 0.4em;
  }

  .close-cal {
    top: .4em;
  }

  .sm-cal-form {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    width: 100%;
    height: 10%;
    position: absolute;
    top: 5%;
    background-color: #fff;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
  }

  .sm-date-picker {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .continue-box {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--scene-height);
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 0px 15px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in;
  }

  .continue-box.transform-up {
    transform: translateY(-100%);
  }

  .cont-btn {
    font-weight: 600;
    padding: 0.2em 0.5em;
    background-color: #ff8474ef;
    color: #fff;
    cursor: pointer;
    border-radius: 0.3em;
  }

  .cont-btn:hover {
    background-color: #ff8474;
  }
  /* SHOWCASE */
  #showcase-container {
    justify-content: space-around;
  }

  .showcase-item {
    width: 80%;
    display: flex;
    flex-direction: column;
    margin-bottom: 2em;
  }

  .showcase-item:last-child {
    margin-bottom: 0;
  }

  /* SEARCH PAGE */
  .search-card {
    grid-template-columns: 1fr;
    grid-template-rows: 300px 200px;
    height: auto;
    gap: 0;
    border: none;
  }
  .search-card:last-child {
    border: none;
    margin-bottom: 1em;
  }
  .search-card:first-of-type {
    padding-top: 0;
  }

  .card-div:last-child {
    padding-top: 0;
    margin-top: 1em;
  }

  .card-div .view-button {
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  /* LISTING FORM  */
  .listing-form__container {
    padding-top: 0;
  }

  .listing-form__btn {
    width: 100%;
  }

  /* SHOW PAGE  */

  .show-wrapper {
    height: auto;
    margin-bottom: 1em;
    grid-template-rows: auto;
  }

  .reviews-container {
    margin-top: 1em;
  }

  .reviews-modal {
    height: 100%;
    width: 100vw;
    top: 0;
    left: 0;
    transform: translateY(0%) translateX(0%);
    border-radius: 0;
  }
}