/* Global */
body {
    font: 15px/1.5 Veranda, sans-serif;

}

.container {
    width: 60%;
    margin: auto;
    overflow: hidden;
}

.bordercontainer {
    overflow: hidden;
    border: 1px solid #223e4a;
    margin: 10px;
    padding: 10px;

}

/* Style the news bar of the header */
.news {

    background-color: #223e4a;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    min-height: 15px;
    overflow: hidden;

}

header {
    border-bottom: #223e4a 1px solid; /* old color #bbb5a9*/
}

header a {
    color: #bbb5a9;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover{
    color:#223e4a;
}

header .current a{
    color: #223e4a;
    font-weight: bold;
}

header ul {
    float: right;
    padding-top: 36px;
    padding-bottom: 0;
}

header li {
    float: left;
    display: inline;
    padding-right: 20px;

}

header #logo {
    float: left;

}

/* SIMPLE SLIDESHOW


 #slider{
  width: 1000px;
  height: 500px;
  margin: 20px auto;
  position: relative;
  border: 10px solid white;
  box-shadow: 0px 0px 5px 2px #ccc;
 }
 button{
  padding: 20px;
  border: none;
  background: #37f;
  font-size: 30px;
  color: white;
  position: absolute;
  top:45%;
  cursor: pointer;
 }

    .next{
      border-radius: 10px 0px 0px 10px;
      margin-left: 950px;
    }
    .prev{
      border-radius: 0px 10px 10px 0px;
    }
*/


/* GALLERY STYLE */

.gallery{
  width:60%;
  margin: auto;
  display:flex;
  flex-flow: row wrap;
}

.gallery__item{
  box-sizing:border-box;
  width:100%;
  padding:1rem;
  margin:1rem;
  box-shadow: 1px 2px 40px 2px rgba(160, 160, 160, .5);
}
.gallery__image-caption{
  margin-top:1rem;
  font-size:0.95rem;
}
.gallery__image{
  width:100%;
  display:block;
}

@media only screen and (min-width: 33.75em){
  .gallery__item{
    flex-basis: calc(50% - 2rem);
  }

}

@media only screen and (min-width: 48em){
  .gallery__item{
    flex-basis: calc((100% / 3) - 2rem);
  }
}

@media only screen and (min-width: 60em){
  .gallery__item{
    flex-basis: calc((100% / 4) - 2rem);
  }
}

/* 4.14. Listing / .listing
***********************/
.listing {
  position: relative;
  background-color: #ffffff;
  transition: 0.3s all ease-out;
}
.listing:hover {
  box-shadow: 0px 1px 7px 0px rgba(0, 0, 0, 0.12);
}
@media only screen and (min-width: 992px) {
  .listing--v2 {
    display: flex;
    align-items: center;
  }
}
.listing img {
  width: 100%;
}
.listing__logo {
  max-width: 100%;
  width: auto !important;
}
.listing__favorite {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.93);
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
}
.listing__favorite i {
  color: #bbbbbb;
  font-size: 16px;
  line-height: 40px;
}
.listing__content {
  padding: 10px 20px 20px;
}

.listing__content--v2 {
  padding: 15px 30px;
}

.listing__type {
  display: inline-block;
  color: #1fc341;
  font-size: 11px;
  text-transform: uppercase;
}
.listing__header {
  margin-bottom: 10px;
}
@media only screen and (min-width: 768px) {
  .listing__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.listing__location {
  margin-bottom: 8px;
  color: #999999;
  font-size: 15px;
}

.listing__price {
  margin-bottom: 20px;
  color: #223e4a;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.listing__price a {
  color: #223e4a;
}

@media only screen and (min-width: 768px) {
  .listing__details {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.listing__title {
  margin-bottom: 4px;
}
.listing__title a {
  color: #333333;
  font-size: 16px;
  transition: 0.3s color ease-out;
}
.listing__title a:hover {
  color: #1fc341;
}

.listing__stats {
  margin-bottom: 10px;
  color: #333333;
  font-size: 10px;
  text-transform: uppercase;
}
@media only screen and (min-width: 768px) {
  .listing__stats {
    margin-bottom: 0;
  }
}

.listing__stats li {
  display: inline-block;
  margin-right: 10px;
}
.listing__stats li:last-child {
  margin-right: 0;
}
.listing__figure {
  display: block;
  font-size: 20px;
}
.listing__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 35px;
  border: 1px solid #223e4a;
  color: #223e4a;
  font-size: 13px;
  text-transform: uppercase;
  margin: auto;
  border-radius: 40px;
  transition: 0.3s all ease-out;
}
.listing__btn:hover {
  color: #ffffff;
  background: #223e4a;
}
.listing__btn-icon {
  padding-left: 3px;
}

/* 4.9. Item Grid / .item-grid
***********************/
.item-grid {
  position: relative;
  padding: 40px 0 100px;
  background-color: #f6f6f6;
}
@media only screen and (min-width: 768px) {
  .item-grid {
    padding: 170px 10px 100px;
    border: 1px;
  }
}
.item-grid__container {
  box-sizing:border-box;
  width:91.6%;
  padding:1rem;
  margin:1rem;
  box-shadow: 1px 2px 40px 2px rgba(160, 160, 160, .5)
}

.item-grid__image-container {
  position: relative;
  overflow: hidden;
}
.item-grid__image-container img {
  transition: 0.3s transform ease-out;
}
@media only screen and (min-width: 992px) {
  .item-grid__image-list {
    width: 41.6%;
  }
}
@media only screen and (min-width: 992px) {
  .item-grid__content-list {
    width: 58.4%;
  }
}
.item-grid__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s background ease-out;
}
.item-grid__image-container:hover .item-grid__image-overlay {
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.item-grid__image-container:hover img {
  transform: scale(1.1);
}
@media only screen and (min-width: 992px) {
  .item-grid__image-container--v2 {
    position: relative;
    width: 32%;
  }
}

@media only screen and (min-width: 992px) {
  .item-grid__content-container--v2 {
    width: 68%;
  }
}
