html, body {
  width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto 1fr;
}

header {
  /* row-start/column-start/row-end/column-end */
  grid-row: 1/2;
  grid-column: 1 / 3;
  color: whitesmoke;
  font-size: 1.8vh;
  font-family: AvenirMediumBold;
}

.top-nav {
  display: grid;
  grid-gap: 10px;
  padding: 1vh;
  grid-template-columns: 1fr auto auto;
}

header .top-nav-banner {
}

.banner {
  font-size: 14px;
  display: grid;
  justify-items: center;
  align-items: center;
  height: 35px;
  font-family: AvenirMediumBold;
  background-image: linear-gradient(to right, #5476B9, #5476FF, #926dc0, #b35eb1, #cd4c98);
}

.filter-nav {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: auto;
}

.rl-logo {
  width: 25%;
}
.links {
  display: none;
}

.filter-listing {
  display: grid;
  grid-gap: 1%;
  padding: 5px;
  grid-template-columns: auto auto auto auto;
  font-family: AvenirMediumBold;
  color: white !important;
  justify-content: start;
  overflow-x: scroll;
  align-items: center;
  padding-top: 7px;
}

.app-download-logo {
  margin-left: 20px;
  height: 35px;
}

.link-mob {
  align-self: center;
  color: black;
}

.rentalSale {
  display: grid;
  grid-gap: 25px;
  color: #000;
  grid-template-columns: auto auto;
  font-size: 25px;
}

.rentalSale a {
  color: #888;
}

.filter-listing button {
  font-size: 25px !important;
  color: black;
  background-color: white;
}

.rSelected {
  /* text-decoration:underline !important; */
  background-color: #4f82c2 !important;
  color: white !important;
  }


.sSelected {
    /* text-decoration:underline !important; */
    background-color: #cd4d99 !important;
    color: white !important;
    }

nav {
  grid-row: 3/4;
  grid-column: 1 / 3;
  background-color:#f1f1f1;
  color: whitesmoke;
}

main {
  grid-row: 2/3;
  grid-column: 1 / 3;
  color: whitesmoke;
  grid-row: 30vh;
}

.address_chip a {
  color: #4E82C2;
}

main .map {
  height: 100%;  /* The height is 400 pixels */
  width: 100%;  /* The width is the width of the web page */
  position: fixed !important;
  display: none;
 }

.listings {
  overflow-y: auto;
  display: grid;
  padding-left: 10px;
  padding-right: 10px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(380px, 400px)) !important; 
}

/* .app-icons {
  display: none;
} */

.toggle-map {
  display: none !important;
}


.social-media{
  display: grid;
  grid-gap: 2%;
  justify-content: left;
  align-items: center;
  grid-template-columns: auto auto auto auto;
  padding-left: 20px;
}

.social-media a img {
  width: 20px;
}

video::-webkit-media-controls-fullscreen-button {
  display: none;
}

.mob-download {
  display: none;
}

@media (min-width:320px)  { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px)  { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px)  { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }


@media (max-width:801px) {
  .social-media {
    display: none !important;
  }

  .app-icons {
    display: grid !important;
    padding-top: 5px;
    justify-content: center;
    grid-template-columns: auto auto;
  }

  .filter-nav {
    grid-gap: 0px !important;
  }
}

.rl-logo-pos {
  display: grid;
  justify-self: center;
}

@media  only screen and (max-device-width:601px) {

  .mob-padding {
    right: 10%;
   }

   .mob-download {
     display: block;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    margin: 10px;
   }

  body {
    display: grid;
    /* grid-template-rows: fit-content(300px) 1fr; */
    grid-template-rows: auto auto;
    /* grid-template-columns: minmax(200px, 2.8fr) 9fr; */
    grid-template-columns: auto 1fr;
  }
  
  .mob-nav-dropdown {
    right: 0 !important;
  }
  .dropdown-content {
    width: max-content;
    display: block;
    position: relative;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 12;
  }
}

@media  only screen and (min-device-width:601px) {


  body {
    display: grid;
    grid-template-rows: fit-content(300px) 1fr;
    /* grid-template-columns: minmax(200px, 2.8fr) 9fr; */
    grid-template-columns: auto 1fr;
  }

  .listings {
    justify-content: right;
  }


  
  header {
    /* row-start/column-start/row-end/column-end */
    grid-column: 1 / 3;
    color: whitesmoke;
  }

  header .top-nav {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: 2fr 2fr 2fr;
    padding: 1vh;
    align-items: center;
  }

  .links {
    display: grid;
    grid-gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(75px, auto));
    font-family: AvenirMediumBold;
    color: white !important;
    justify-content: end;
  }

  .links a {
    color: #4E82C2;
    font-size: 15px;
  }

  .link-mob {
    display: none !important;
  }

  header .filter-nav {
    background-color: #ffffff;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 3fr 7fr 3fr;
  }
  
  nav {
    padding-left: 50px !important;
    color: whitesmoke;
    grid-area: 2/1/3/2;
  }
  
  main {
    color: whitesmoke;
    grid-row: 30vh;
    grid-area: 2/2/3/3;
  }

  .body-grid {
    grid-template-columns: minmax(200px, 3fr) 0fr !important;
  }

  .app-icons {
    display: grid;
    justify-self: right;
    grid-template-columns: auto auto;
    grid-gap: 10px;
    padding: 5px;
  }

  .body-grid .listings {
    width: 80%;
    grid-gap: 10px 10px;
    margin: auto;
    justify-content: center;
    justify-items: center;
    grid-template-columns: repeat(auto-fit, minmax(370px, 400px)) !important; 
  }
  
  .body-grid .listings .listing {
    background-color: white;
    border-radius: 10px;
    margin: 2%;
    display: grid;
    grid-template-rows: auto auto auto;
    max-height: 62vh;
    width: 370px;
  }

  /* .listing {
    max-height: 77vh;
    max-width: 21vw;
  } */
  
  .filter-listing {
    display: grid;
    grid-gap: 1%;
    grid-template-columns: repeat(auto-fit, minmax(50px, auto));
    font-family: AvenirMediumBold;
    color: white !important;
    justify-content: center;
    overflow: auto;
    justify-content: center;
  }



  .filter-show-hide-map {
    display: grid;
    grid-gap: 1%;
    grid-template-columns: auto auto;
    justify-content: end;
    align-items: center;
    overflow: auto;
    padding-right: 10px;
  }

  .toggle-map {
    display: block !important;
    width: min-content !important;
  }

  .rl-logo-pos {
    display: grid;
    justify-items: center;
  }

  .dropdown-content {
    width: max-content;
    display: block;
    position: relative;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 12;
  }

  main .map {
    position: absolute !important;
    display: block;
   }

}

/* media end */

.listing-popup {
  grid-template-rows: auto 40vh !important;
}



.gm-style-iw-d .listingInfo {
  color: black !important;
}

.gm-style-iw-d .listing {
  background-color: white;
  border-radius: 10px;
  margin: 2%;
  display: grid;
  grid-template-rows: auto 300px auto !important;
  grid-template-columns: 1fr;
  max-width: 300px !important;
}

.listing {
  background-color: white;
  border-radius: 10px;
  margin: 2%;
  display: grid;
  grid-template-rows: auto auto auto;
  max-height: 70vh;
  height: fit-content;
  position: relative;
  border-radius: 25px;
}

.details {
  position: relative;
  background: black;
  justify-items: center;
  border-radius: 25px;
}

.footer {
  padding: 2% 2% 3% 5%;
  position: absolute;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-template-columns: auto auto auto;
  bottom: 0px;
  width: 100%;
  font-family: AvenirLight;
  align-items: baseline;
  border-radius: 0 0 25px 25px;
  color: #fff;
}

.listing a:hover {
  color: #fff !important;
}

.footer .price {
  font-size: 24px;
}

.footer .bedbath {
  font-size: 18px;
}

.footer .address {
  grid-row: 2/3;
  grid-column: 1/4;
}

.footer .subneighborhood {
  grid-row: 3/4;
  grid-column: 1/4;
}

.footer .check-availability {
  color: #ffffffff;
  grid-row: 2/4;
  grid-column: 3 / 4;
  font-size: 14px !important;
  font-family: AvenirLight;
  border-radius: 20px !important;
  align-self: end;
}

/* .footer .address {
  font-size: 24px;
  grid-row: 1/2;
  grid-column: 1/4;
  padding-bottom: 2%;
  color: #fff;
  font-family: AvenirLight;
  height: fit-content;
}

.footer .listing-info {
  grid-column: 3/4;
  color: #fff;
  justify-self: end;
}

.footer .bed-bath {
  grid-row: 2/3;
  grid-column: 1 / 2;
  padding-top: 4%;
  color: #fff;
  font-family: AvenirLight;
}

.footer .gap {
  grid-row: 2/3;
  grid-column: 2 / 3;
} */

/* .footer .check-availability {
  color: #ffffffff;
  grid-row: 2/3;
  grid-column: 3 / 4;
  font-size: 14px !important;
  font-family: AvenirLight;
  border-radius: 20px !important;
} */

.heart_chip{
  z-index: 10;
  position: absolute;
  bottom: 15%;
  right: 3%;
  color: #ffffff;
}

.play_chip{
  z-index: 10;
  position: absolute;
  bottom: 50%;
  left: 50%;
  color: aliceblue;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0), 0 6px 20px 0 rgba(0, 0, 0, 0);

}

.price_chip{
  z-index: 10;
  position: absolute;
  bottom: -3%;
  left: 3%;
  font-size: 14px !important;
  font-family: AvenirLight;
  background-color:#CD4C87  !important;
  color: #ffffff !important;
}

.nofee_chip{
  color: black;
  z-index: 10;
  position: absolute;
  bottom: -3%;
  right: 2%;
  background-color: #f1f1f1 !important;
}

.address_chip{
  color: black;
  z-index: 10;
  position: absolute;
  top: 1%;
  right: 2%;
  background-color: #f1f1f1 !important;
}

.openHouse_chip{
  color: black;
  z-index: 10;
  position: absolute;
  top: 1%;
  left: 3%;
  background-color: #f1f1f1 !important;
}

.closebtn {
  padding-left: 10px;
  color: #888;
  font-weight: bold;
  float: right;
  font-size: 20px;
  cursor: pointer;
}

.closebtn:hover {
  color: #000;
}

.ovalchip {
  display: inline-block;
  padding: 0 15px;
  height: auto;
  font-size: 14px;
  line-height: 30px;
  border-radius: 25px;
  background-color: #f1f1f1;
  font-family: AvenirLight;
  color: black;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}


.filter-chip {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  padding: 0 15px;
  width: fit-content;
  font-size: 16px;
  height: 35px;
  border-radius: 25px;
  /* background-color: #f1f1f1; */
  color: black;
}

.listing .details video {
  width: 100%;
  height: 600px;
  max-height: 55vh;
  object-fit: cover;
  border-radius: 20px;
}

.listing .details a {
  width: 100%;
  height: 100%;
}


.chip {
  color: black;
  display: grid;
  grid-gap: 1%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  font-size: 15px;
}

.chip a .agentlogo {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  padding: 6px;
}

.chip a .companylogo {
  height: auto;
  width: 8em;
}

.chip .agent {
  align-items: center;
  color: black;
  font-family: AvenirLight;
}

.single-line {
  overflow: hidden;
  white-space: nowrap;
}


.chip:hover {
  color: #000;
}

.medium-bold-font {
  font-family: AvenirMediumBold;
}

@font-face {
  font-family: AvenirLight;
  src: url("../webfonts/AvenirLTStd-Light.woff2") /* EOT file for IE */
}

@font-face {
  font-family: AvenirBold;
  src: url("../webfonts/AvenirLTStd-Roman.woff2") /* EOT file for IE */
}

@font-face {
  font-family: AvenirMediumBold;
  src: url("../webfonts/AvenirLTStd-Medium.woff") /* EOT file for IE */
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-decoration: underline;
}


.pbblue {
  background-color: #4E82C2 !important;
}

.pbpink {
  background-color: #cd4c98 !important;
  color: #ffffff;
}

.pbChip {
  background-color: #f1f1f1;
}

.check-availability-dialog {
  width: min-content !important;
}

.chipIcon {
  padding-right: 2px !important;
  vertical-align: text-bottom;
}

.show-hide-map {
  padding-right: 15px !important;
  padding-left: 10px !important;
}

.dropdown {
  position: relative !important;
  width: fit-content !important;
}

.dropdown-content {
  width: max-content;
  display: none;
  position: fixed;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 12;
}

.dropdown-content a {
  color: black !important;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1;}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: #3e8e41;}


/* material override */
.mdl-textfield__label {
  color: black !important;
}

.heart-clicked {
  width: fit-content !important;
}

.show {
  display: block;
}

.hide {
  display: none !important;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.avatar-img {
  width: 50px;
}

.heart-clicked {
  font-size: 14px !important;
  font-family: AvenirLight !important;
}

.mdl-switch__track {
  color: #4E82C2 !important;
}

.mdl-switch__thumb {
  color: #4E82C2 !important;
}

.modal-header {
  font-size: 14px;
  font-family: AvenirLight;
}

.sorting {
  margin-top: 3px;
  color: black;
  display: grid;
  margin-left: 25px;
  justify-content: end;
  grid-template-columns: auto auto;
  grid-gap: 5px;
  align-items: baseline;
  font-family: AvenirMediumBold;
}

.dropdown-content-rl {
  display: block;
  width: 100%;
  height: calc(1.5em + .75rem + 2px);
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4E82C2;
  background-color: #e9ecef;
  background-clip: padding-box;
  border: 0px;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.sorting select { text-align-last: right; }
.sorting option { direction: rtl; }


