html, body {
    background-color: black;
    color: white;
    font-family: 'Montserrat', sans-serif;
    margin:0;
    padding:0;
    height:100%;
}

.clearfix {
  clear: both;
}
.page-container {
  width:100vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 0.5fr 1.25fr;
  gap: 0px 0px;
  grid-template-areas:
    "header header"
    "logo-wrap logo-wrap "
    "list-container map-container";
}

.header{
  width:100vw;
  grid-area: header;
  position: relative;
}

.logo-wrap{
  grid-area: logo-wrap;
  align-self: center;
  justify-self: center;
}

.list-container{
  grid-area: list-container;
  position: relative;
  z-index: 1;
}
#map-container{
  grid-area: map-container;
}

#page-logo {
  padding:15px 0;
  min-width:80px;
  max-width:200px;
  width:20vw;
}
img.logo {
  width:100%;
  display:block;
}


.list-wrap{
  align-items: center;
  display: flex;
  overflow-y: auto;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

.list-container::before{
  content: "";
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background-image: url('../img/mountains.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity:0.35;
  z-index: -1;
}

#find-a-dealer {
  background-color: steelblue;
  bottom: 0px;
  font-weight: 600;
  left: 0px;
  padding: 1em;
  position: fixed;
  text-transform: uppercase;
  width: 100%;
  z-index: 200;
}
#find-a-dealer .icon {
  fill: currentColor;
  height: 20px;
  position: absolute;
  right: 4em;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform .25s;
  width: 20px;
}
#find-a-dealer .text::after {
  content: "Find A Dealer";
  position: relative;
}

#find-a-dealer.show .text::after {
  content: "Hide Map";
}

.bob {
  animation: bob;
  animation-duration: .25s;
  animation-timing-function: ease-in-out;
}

@keyframes bob {
  0% {
      top: 0px
  }

  50% {
      top: 5px
  }

  100% {
      top: 0px
  }
}

#map-container{
  grid-area: map-container;
}

#map {
  height:100%
}
#find-a-dealer {
  display: none;
}


.swiper {
  width:100%;
  height: 100%;
}
.swiper-slide {
  position: relative;
  background-position: 0% center;
  background-repeat: no-repeat;
  background-size: cover;
}
.swiper-pagination-bullet {
  background-color: rgba(255,255,255,0.5);
}
.swiper-pagination-bullet-active {
  background-color: rgba(255,255,255,1);
}
.swiper-button-prev,
.swiper-button-next {
    opacity: .3;
    transition: opacity .25s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 1;
}
.swiper-button-prev .icon,
.swiper-button-next .icon {
    fill: white;
    width: 42px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-button-prev {
  left: 3%;
  width:44px;
  transform: rotate(-90deg);
}

.swiper-button-next {
  right: 3%;
  width:44px;
  transform: rotate(90deg);
}

.slide-text {
  color:#FFF;
  font-weight: 800;
  text-shadow: 0px 0px 4px black;
  text-transform: uppercase;
  position: absolute;
}
.slide-text .sub-head {
  font-size:14px;
  line-height:16px;
}
.slide-text .model {
  font-size:38px;
  line-height:40px;
  margin-bottom:10px
}
.slide-text .dealer {
  font-size:18px;
  line-height:20px;
}

#model-1 .slide-text {
  top:100px;
  left:12%
}
#model-2 .slide-text {
  top:50px;
  right:8%;
  text-align: right;
}

#model-1 {
  background-image: url('../img/model-1-desktop.jpg');
  background-position: right;
}

#model-2 {
  background-image: url('../img/model-2-desktop.jpg');
  background-position: 30% 35%;
}


@media screen and (min-width:851px) {

  .page-container {
    height:100vh;
  }

}

@media screen and (max-width: 999px) {
  .page-container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.10fr 1.45fr 1.45fr;
    gap: 0px 0px;
    grid-template-areas:
      "logo-wrap logo-wrap"
      "header header"
      "list-container map-container"
      ;
  }

  #model-1 {
    background-image: url('../img/model-1-tablet.jpg');
    /* background-position: 100% 70%; */
    background-size: cover;
  }

  #model-2 {
    background-image: url('../img/model-2-tablet.jpg');
    /* background-position: 100% 50%; */
    background-size: cover;

  }

  .header {
    height:55vw
  }

}

@media screen and (max-width: 1300px) {

  #model-2 .slide-text {
    top:40px;
    left:40px;
    text-align: left;
  }

  #model-1 .slide-text {
    top:40px;
    right:40px;
    text-align: right;
  }
}

@media screen and (min-width: 850px) and (max-height:1000px) {
  .list-wrap{
    align-items: flex-start;
  }
}


@media screen and (max-width: 1200px) {

}
@media screen and (max-width: 850px) {
  .page-container {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0px 0px;
    grid-template-areas:
      "logo-wrap"
      "header"
      "list-container"
      "map-container";
  }
  .list-wrap{
    overflow-y:inherit;
    position: relative;
  }

  #map {
    height:400px;
  }

  #model-1 .slide-text,
  #model-2 .slide-text {
    top:30px;
    left:30px;
    text-align: left;
  }

  .slide-text .sub-head {
    font-size:12px;
    line-height:14px;
  }
  .slide-text .model {
    font-size:34px;
    line-height:36px;
    margin-bottom:10px
  }
  .slide-text .dealer {
    font-size:16px;
    line-height:18px;
  }
}

@media screen and (min-width:500px) and (max-width:650px) {
  .slide-text {
    transform:scale(0.8);
    transform-origin: top left;
  }
}

@media screen and (max-width:500px) {
  .header {
    height:119vw
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  #model-1 {
    background-image: url('../img/model-1-mobile.jpg');
    background-size: contain;
    background-position: initial;
  }

  #model-2 {
    background-image: url('../img/model-2-mobile.jpg');
    background-size: contain;
    background-position: initial;
  }

  #model-1 .slide-text {
    left:30px;
    bottom:50px;
    top: auto;
    text-align: left;
  }

  #model-2 .slide-text {
    left: 30px;
    bottom: 30px;
    text-align: left;
  }

  .page-container {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0px 0px;
    grid-template-areas:
      "logo-wrap"
      "header"
      "list-container"
  }

  #find-a-dealer {
    display:block;
  }
  .page-container {
    height:100vh;
  }

  #list {
    padding-bottom:80px !important;
  }
  #map-container {
    grid-area: unset;
    left: 0px;
    position: fixed;
    top: 100%;
    transition: top .25s ease-in-out;
    width: 100%;
    z-index: 100;
    height:100%;
  }
  #map {
    height:100%;
    width: 100%;
  }

  #map-container.show {
      top: 0%;
  }
}