/*
 Theme Name:   B�ckmans fastigheter
 Description:  Ekko child theme for B�ckmans fastigheter
 Author:       Timelab
 Template:     ekko
 Version:      1.0.0
 Text Domain:  backmansfastigheter
*/

@-webkit-keyframes zoom-in {
  0% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1);
    -ms-transform: scale(1);
    /* IE 9 */

    -webkit-transform: scale(1);
    /* Safari and Chrome */

    -o-transform: scale(1);
    /* Opera */

    -moz-transform: scale(1);
    /* Firefox */
  }
  100% {
    transform: scale(1.2);
    -ms-transform: scale(1.2);
    /* IE 9 */

    -webkit-transform: scale(1.2);
    /* Safari and Chrome */

    -o-transform: scale(1.2);
    /* Opera */

    -moz-transform: scale(1.2);
    /* Firefox */
  }
}

@-webkit-keyframes zoom-out {
  0% {
    transform: scale(1.2);
    -ms-transform: scale(1.2);
    /* IE 9 */

    -webkit-transform: scale(1.2);
    /* Safari and Chrome */

    -o-transform: scale(1.2);
    /* Opera */

    -moz-transform: scale(1.2);
    /* Firefox */
  }
  100% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1);
    -ms-transform: scale(1);
    /* IE 9 */

    -webkit-transform: scale(1);
    /* Safari and Chrome */

    -o-transform: scale(1);
    /* Opera */

    -moz-transform: scale(1);
    /* Firefox */
  }
}

body.single-fastigheter .blog-header {
  display: none;
}

body.single-fastigheter .header-image-container {
  height: 473px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

body.single-fastigheter .header-image {
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  -webkit-background-size: cover;
     -moz-background-size: cover;
       -o-background-size: cover;
          background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.single-fastigheter .header-image.zoom-in {
  -ms-animation: zoom-in 60s ease forwards;
  -webkit-animation: zoom-in 60s ease forwards;
  -0-animation: zoom-in 60s ease forwards;
  -moz-animation: zoom-in 60s ease forwards;
}

body.single-fastigheter .header-image.zoom-out {
  -ms-animation: zoom-out 60s ease forwards;
  -webkit-animation: zoom-out 60s ease forwards;
  -0-animation: zoom-out 60s ease forwards;
  -moz-animation: zoom-out 60s ease forwards;
}

body.single-fastigheter #posts-content {
  padding: 56px 0;
  padding-bottom: 46px;
}

/*
 * Estate content
 */

body.single-fastigheter .estate-title {
  margin-bottom: 0;
  font-size: 35px;
  font-weight: 500;
}

body.single-fastigheter .estate-address {
  margin-bottom: 24px;
  font-size: 15.2px;
  margin-top: -3px;
  color: #000;
}

body.single-fastigheter .estate-description p {
  color: #000;
}

body.single-fastigheter .section-content-row {
  margin-bottom: 24px;
}

@media(max-width: 650px) {
  body.single-fastigheter #vr-gallery.section-tab .vr-viewer {
    height: 365px!important;
  }
}

/*
 * Estate slider
 */

body.single-fastigheter #vr-gallery {
  margin-bottom: 65px;
}

body.single-fastigheter #vr-gallery .estate-tab-slider.owl-carousel {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
}

body.single-fastigheter #vr-gallery .vr-viewer {
  z-index: 10;
  position: relative;
}

body.single-fastigheter #vr-gallery .estate-tab-slider.owl-carousel .owl-wrapper-outer {
  height: 100%;
}

body.single-fastigheter .estate-tab-slider.owl-carousel .owl-nav {
  margin: 0;
  position: absolute;
  top: 50%;
  height: 40px;
  z-index: 10;
  width: 100%;
  margin-top: -20px;
  overflow: visible;
  pointer-events: none;
}

@media(max-width: 767px) {
  .owl-carousel .owl-wrapper {
    display: block;
  }
}

@media(max-width: 990px) {
body.single-fastigheter .estate-tab-slider.owl-carousel .owl-nav {
  margin: 35px 0 0;
  position: relative;
  top: none;
}

body.single-fastigheter .estate-tab-slider.owl-carousel .owl-nav > div {
  margin: 0 15px;
  position: relative;
}

}

@media(min-width: 1367px) {
  body.single-fastigheter .estate-tab-slider.owl-carousel .owl-nav div.owl-prev,
  .photo-gallery-wrapper.photo-gallery-wrapper--items-no-padding .owl-nav div.owl-prev {
    left: -85px;
  }

  body.single-fastigheter .estate-tab-slider.owl-carousel .owl-nav div.owl-next,
  .photo-gallery-wrapper.photo-gallery-wrapper--items-no-padding .owl-nav div.owl-next {
    right: -85px;
  }
}

body.single-fastigheter .owl-dots {
  margin-top: 24px;
}

body.single-fastigheter .owl-dots .owl-dot {
  width: 12px;
  height: 12px;
  margin: 0 4.5px;
}

body.single-fastigheter #posts-content .estate-tab-slider .owl-item .fake-col-wrapper, 
.owl-item .fake-col-wrapper {
  display: -ms-grid;
  display: grid;
  overflow: hidden;
  -ms-grid-columns: 1fr;
  grid-template-columns: repeat(1, 1fr);
  -ms-grid-rows: 1fr 26px 1fr;
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 5px;
  grid-row-gap: 26px;
}

body.single-fastigheter #posts-content .estate-tab-slider .owl-item .fake-col-wrapper > *:nth-child(1), .owl-item .fake-col-wrapper > *:nth-child(1) {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}

body.single-fastigheter #posts-content .estate-tab-slider .owl-item .fake-col-wrapper > *:nth-child(2), .owl-item .fake-col-wrapper > *:nth-child(2) {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
}

@media(max-width: 959px) {
  .custom-slider-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .custom-slider-row .kd-section-title {
    margin-bottom: 47px!important;
  }
}

.photo-gallery-wrapper.photo-gallery-wrapper--items-no-padding .owl-wrapper-outer .owl-item {
  padding: 0;
}

.photo-gallery-wrapper.photo-gallery-wrapper--items-no-padding .owl-wrapper-outer .owl-item:not(.active) {
  opacity: 0;
  pointer-events: none;
}


@media(max-width: 767px) {
   body.single-fastigheter
   #posts-content
   .estate-tab-slider
   .owl-item
   .fake-col-wrapper,
   .owl-item
   .fake-col-wrapper{
   	display:block;
	width: 100%;
   }

body.single-fastigheter
   #posts-content
   .estate-tab-slider
   .owl-item
   .fake-col-wrapper img,
   .owl-item
   .fake-col-wrapper img {
   	max-height:350px;
   }

}

body.single-fastigheter #posts-content .estate-tab-slider .owl-item img,
.owl-item .fake-col-wrapper img {
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: 100%;
}

.owl-item .fake-col-wrapper > a{
  display: block;
}


/*
 * Estate tabs
 */
body.single-fastigheter .section-tab {
  display: none;
}

body.single-fastigheter .section-tab.active {
  display: block;
}

/*
 * Estate sidebar
 */

body.single-fastigheter .sidebar {
  margin-top: 19px;
}

@media(min-width: 992px) {
	body.single-fastigheter .sidebar {
  		padding-left: 52px;
  		margin-top: 19px;
	}
}

.seciton-our-estates .section-title {
  font-weight: bold;
  font-size: 17.4px;
  color: #000;
  margin-bottom: 27px;
}

body.single-fastigheter .sidebar .seciton-our-estates {
  border-bottom: 1.5px solid #bababa;
}

.seciton-our-estates .estates {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  padding-bottom: 30px;
}

.seciton-our-estates .estates .estate {
  background-color: #f3f3f3;
  color: #000;
  font-weight: bold;
  -webkit-border-radius: 25px;
     -moz-border-radius: 25px;
          border-radius: 25px;
  padding: 8.4px 13px;
  margin-bottom: 9px;
  margin-right: 12.5px;
}

.seciton-our-estates .estates .estate:hover,
.seciton-our-estates .estates .estate.active {
  background-color: #f49293;
}

body.single-fastigheter .sidebar .section-tab-selector {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  text-align: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 44px;
}

body.single-fastigheter .sidebar .section-tab-selector .tab {
  opacity: 0.3;
}

body.single-fastigheter .sidebar .section-tab-selector .tab.active,
body.single-fastigheter .sidebar .section-tab-selector .tab:hover {
  opacity: 1;
}

body.single-fastigheter .sidebar .section-tab-selector .tab.disabled {
  opacity: 0.3;
  pointer-events: none;
}

body.single-fastigheter .sidebar .section-tab-selector .tab .tab-text {
  color: #000;
  margin-top: 9px;
}

body.single-fastigheter
  .sidebar
  .section-tab-selector
  .tab:first-child
  .tab-image {
  width: 85.5px;
}

body.single-fastigheter
  .sidebar
  .section-tab-selector
  .tab:nth-child(2)
  .tab-image {
  width: 85.5px;
}

body.single-fastigheter
  .sidebar
  .section-tab-selector
  .tab:nth-child(3)
  .tab-image {
  width: 85.5px;
}

/*
 * Estate inquiry
 */
.section-inquiry {
  margin-top: 43px;
}

@media(min-width: 600px) {
	.section-inquiry {
  		display: -webkit-box;
  		display: -webkit-flex;
  		display: -moz-box;
  		display: -ms-flexbox;
  		display: flex;
  		-webkit-box-align: center;
  		-webkit-align-items: center;
  		   -moz-box-align: center;
  		    -ms-flex-align: center;
  		        align-items: center;
	}

	body .section-inquiry .inquiry-text p:last-child {
  		margin-bottom: 0;
	}
}

body .section-inquiry .inquiry-text p {
  color: #000;
}

.section-inquiry .inquiry-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.section-inquiry .inquiry-button {
  background-color: #5cad68;
  -webkit-border-radius: 30px;
     -moz-border-radius: 30px;
          border-radius: 30px;
  border-color: #5cad68;
  margin-top: -14px;
  font-size: 14.5px;
  text-transform: capitalize;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 29px;
  padding-right: 29px;
}

@media(max-width: 599px) {
	.section-inquiry .inquiry-button {
		margin-left: 0;
		margin-right: 0;
	}
}


body .section-inquiry .inquiry-button:hover {
  border-color: #69ca78 !important;
}

body .section-inquiry .inquiry-button:before {
  background-color: #69ca78 !important;
}

/*
 * Custom map
 */
.location-info .location-info-link {
  color: #a50000;
  font-weight: 600;
  font-size: 15.34px;
}

.map-tab {
  display: none;
}
.map-tab.active {
  display: block;
}

.area-map-section .section-content-row {
  margin-bottom: 91px;
}

.area-map-section .sidebar {
  padding-left: 60px;
  padding-top: 2px;
}

.area-map-section .contact-map-container .business-info-wrapper {
  min-width: 15%;
}

.area-map-section .contact-map-container .business-info-wrapper h4 {
  font-size: 17px;
}


/*
 * wpcf7
 */
.wpcf7-form:not(.invalid) .wpcf7-not-valid-tip {
  display: none!important;
}

.contact-form-intresseanmalan:after {
  content: "";
  display: table;
  clear: both;
}

.wpcf7 .wpcf7-form .wpcf7-submit {
  background-color: #5cad68;
  -webkit-border-radius: 30px;
     -moz-border-radius: 30px;
          border-radius: 30px;
  border-color: #5cad68;
  font-size: 14.5px;
  text-transform: capitalize;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-left: 29px;
  padding-right: 29px;
}

.wpcf7 .wpcf7-form .wpcf7-submit:hover {
  background-color: #69ca78 !important;
  border-color: #69ca78 !important;
}

@media(max-width: 991px) {
  .vr-viewer.fullscreen {
	position: fixed!important;
    top: 0!important;
    left: 0!important;
    width: 100vw!important;
    height: 100vh!important;
	width: 100dvw!important;
    height: 100dvh!important;
	z-index: 99999999999999;
  }

  body.fullscreen {
  	position: fixed; 
	left: 0; 
	top: 0; 
	right: 0; 
	bottom: 0;
  }
}


