@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --white: #ffffff;
  --black: #000000;
  --black50: #00000099;
  --active: #4A76F6;
  --boxshadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  --textshadow: 0px 3px 4px rgba(0, 0, 0, 0.7);
  --btnview-height: 40px;

  --view-height: calc(100vw / 1.5);
  --expanded-view-height: calc(60vw/1.5);
  --thumbview-height: calc(100vh / 1.5 / 6 + 5px);
  --insta-expanded-height: calc(100vw / 4 * 1.60);
  --expanded-container-height: calc(60vw/1.5 + 40px) !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100vh;
  width: 100%;
  margin: 0px;
  padding: 0px;
  background: transparent;
  font-family: "Red Hat Display", Roboto, sans-serif;
}

.container {
  width: inherit;
  height: inherit;
  /* background-color: var(--white); */
}

.main-view {
  position: relative;
  width: inherit;
  min-height: 170px;
  height: calc(var(--view-height) + var(--btnview-height));
  overflow: hidden;
  background-color: var(--white);
}

.main-container {
  height: inherit;
}

.inner-container {
  position: relative;
  height: inherit;
}

/* Background Animation */
.shine {
  background: #ccc;
  background-image: linear-gradient(to right, #ccc 0%, #dfdfdf 20%, #dfdfdf 40%, #ccc 100%);
  background-repeat: no-repeat;
  background-size: 700px 100%;
  display: inline-block;
  position: relative;
  -webkit-animation-duration: 1s;
  -webkit-animation-fill-mode: forwards;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-name: photonLoadingFrames;
  -webkit-animation-timing-function: linear;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: photonLoadingFrames;
  animation-timing-function: linear;
  border-radius: 10px;
}

@-webkit-keyframes photonLoadingFrames {
  0% {
    background-position: -700px 0;
  }

  100% {
    background-position: 700px 0;
  }
}

@keyframes photonLoadingFrames {
  0% {
    background-position: -700px 0;
  }

  100% {
    background-position: 700px 0;
  }
}

.flexslider {
  border: 0;
  margin: 0;
  background: transparent;
}

.flex-direction-nav a {
  padding: 6px;
  height: 36px;
  width: 36px;
  top: 50%;
  background: var(--white) !important;
  color: var(--black) !important;
  box-shadow: var(--boxshadow);
  border-radius: 50%;
  opacity: 0.8;
}

.flex-direction-nav a:before {
  font-family: fontawesome;
  font-size: 30px;
  margin: -4px 0px 0px 5px;
  content: '\f104';
}

.flex-direction-nav a.flex-next:before {
  content: '\f105';
  margin: -4px 5px 0 0;
}

a.flex-next:hover,
a.flex-prev:hover {
  background-color: var(--active) !important;
}

.m360-icon-fullscreen-open {
  display: none;
}

.viewer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
}

.insta-wrapper {
  position: relative;
  height: auto;
}

#promo {
  background-color: var(--black);
  height: calc(100% - var(--btnview-height));
}

#imgMain.flexslider,
#damagesMain.flexslider {
  height: var(--view-height) !important;
}

.is-expanded #imgMain.flexslider,
.is-expanded #damagesMain.flexslider {
  height: var(--expanded-view-height) !important;
}

#damagesMain {
  width: 100%;
  min-height: 164px;
}

#insta360 {
  width: 100%;
  min-height: 164px;
  height: var(--view-height);
}

.is-expanded #insta360 {
  height: var(--insta-expanded-height);
}

.photon-thumbnails {
  position: relative;
  margin: 4px 0 0 0;
  height: var(--thumbview-height);
}

#imgThumb,
#damagesThumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 36px;
}

#imgThumb .flex-slide {
  border: 2px solid transparent;
  border-radius: 5px;
}

#imgThumb .flex-active-slide {
  border: 2px solid var(--active);
  border-radius: 5px;
}

.buttons-view {
  display: flex;
  height: var(--btnview-height);
  text-align: center;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  /* padding: 0 36px; */
}

.button {
  background: var(--white);
  opacity: 0.8;
  box-shadow: var(--boxshadow);
  border-radius: 6px;
  color: var(--black);
  height: 30px;
  width: 30px;
  cursor: pointer;
  padding: 6px 9px;
}

.button:hover {
  background-color: var(--active);
  color: var(--white);
}

.btn-inner-wrapper {
  display: flex;
  align-items: center;
  flex-flow: nowrap;
}

.btn-navs {
  display: flex;
  height: 36px;
}

.btn-navs .button {
  border-radius: 0 !important;
  width: auto;
  height: auto;
  font-size: .85rem;
  padding: 6px;
}

.btn-navs .button:first-child {
  border-radius: 6px 0 0 6px !important;
}

.btn-navs .button:last-child {
  border-radius: 0 6px 6px 0 !important;
}

.btn-navs .button:only-child {
  border-radius: 6px !important;
}

.btn-extra {
  display: flex;
}

.btn-navs .button-active {
  background-color: var(--active);
  color: var(--white);
}

.btn-caption {
  display: inline-block;
  font-weight: bold;
  margin-left: 2px;
}

.navigations {
  display: flex;
}

.centered-button-wrapper {
  position: absolute;
  left: 0;
  right: 0;
}

.centered-buttons {
  display: inline-block;
  margin: auto;
}

/* PANORAMA */
.custom-hotspot {
  visibility: hidden;
}

.hotspot-icon {
  top: 2px;
  left: -8px;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  border: 1px solid #ffffffff;
  background: #4cc0ff;
  box-shadow: 0 0 0 0 #000;
  animation: hotspot-pulse 2s infinite;
  position: inherit;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #b804fbff;
  }

  80% {
    transform: scale(1);
    box-shadow: 0 0 0 10px #b804fb00;
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 #b804fb00;
  }
}

div.custom-tooltip span {
  visibility: hidden;
  position: absolute;
  border-radius: 3px;
  background-color: #fff;
  color: #000;
  text-align: center;
  max-width: 200px;
  padding: 5px 10px;
  margin-left: -220px;
  cursor: default;
  font-size: .8rem;
}

@media (hover: hover) {
  div.custom-tooltip:hover span {
    visibility: visible;
  }

  div.custom-tooltip:hover span:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-width: 10px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    bottom: -20px;
    left: -10px;
    margin: 0 50%;
  }
}

.button-damages, .button-hotspot {
  overflow:hidden;
  opacity: 0.9;
  box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
  border-radius: 50%;
  color: var(--black);
  height: 30px;
  width: 30px;
  cursor: pointer;
  margin-right: 6px;
  border: 2px solid #fff;
}
.button-damages {
  background-image: url(/images/imperfection_dark.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: padding-box;
}
.button-hotspot {
  background: linear-gradient(0deg, rgba(184,4,251,1) 20%, rgba(76,192,255,1) 100%);
  visibility: hidden;
}

.button-hotspot img {
  width: 140%;
  transform: translate(-5px, -5px);
}

.model-hotspot {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  border-radius: 3px;
  background-color: #ffffffee;
  color: #000;
  text-align: center;
  width: calc(100% / 2.8);
  padding: 5px;
  cursor: default;
  z-index: 99;
  bottom: 10px;
  right: 10px;
  transition: all .4s ease-in-out;
}

.model-hotspot.show {
  opacity: 1;
  transition: all .4s ease-in-out;
  visibility: visible;
}

.model-hotspot .header {
  font-size: .8rem;
  padding: 4px;
  margin-bottom: 4px;
}

.model-hotspot .title {
  font-weight: 500;
}

.model-hotspot .close {
  padding: 2px 6px;
  margin: -2px -6px 0px 0px;
  border-radius: 3px;
  float: right;
  cursor: pointer;
}

.model-hotspot .close:hover {
  background-color: #00000044;
}

.model-hotspot .body {
  position: relative;
  text-align: center;
}

.model-hotspot .body img {
  width: 100%;
  vertical-align: bottom;
  border-radius: 2px;
}

/* #promo-nav {
  border-radius: 50%;
  margin: 0 20px 0 0;
  padding: 6px 0px 0px 2px;
} */

#custom-expand {
  margin-left: 10px;
}

#close-nav {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  display: none;
}

/* #promo-nav.button-active {
  background-color: var(--active);
} */

.rotate-indication {
  display: none;
  text-align: center;
  position: absolute;
  top: 9px;
  z-index: 3;
  padding: 10px;
  border-radius: 4px;
  width: 260px;
  left: calc(50% - 130px);
  color: var(--white);
  text-shadow: var(--textshadow);
  pointer-events: none;
}

.rotate-title {
  font-weight: 600;
}

.rotate-desc {
  font-size: .9rem;
}

/* Icons */
.photon-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-origin: content-box;
}

.centered-buttons .photon-icon{
  width: 28px;
  height: 24px;
}

.button .photon-icon.icon-interior {
  background-image: url("../images/int_dark.png");
}

.photon-icon.icon-exterior {
  background-image: url("../images/ext_dark.png");
}

.photon-icon.icon-photo {
  background-image: url("../images/img_dark.png");
}

.photon-icon.icon-damages {
  background-image: url("../images/imperfection_dark.png");
}

.photon-icon.icon-expand {
  background-image: url("../images/exp_dark.png");
}

.photon-icon.icon-video {
  background-image: url("../images/vid_dark.png");
  padding: 0;
}

.photon-icon.icon-share {
  background-image: url("../images/shr_dark.png");
}

/* Hover and active */
.button.button-active .photon-icon.icon-interior,
.button:hover .photon-icon.icon-interior {
  background-image: url("../images/int_light.png");
}

.button.button-active .photon-icon.icon-exterior,
.button:hover .photon-icon.icon-exterior {
  background-image: url("../images/ext_light.png");
}

.button.button-active .photon-icon.icon-photo,
.button:hover .photon-icon.icon-photo {
  background-image: url("../images/img_light.png");
}

.button.button-active .photon-icon.icon-damages,
.button:hover .photon-icon.icon-damages {
  background-image: url("../images/imperfection_light.png");
}

.button.button-active .photon-icon.icon-expand,
.button:hover .photon-icon.icon-expand {
  background-image: url("../images/exp_light.png");
}

.button.button-active .photon-icon.icon-video,
.button:hover .photon-icon.icon-video {
  background-image: url("../images/vid_light.png");
}

.button.button-active .photon-icon.icon-share,
.button:hover .photon-icon.icon-share {
  background-image: url("../images/shr_light.png");
}

.photon-icon.icon-close {
  background-image: url("../images/close.png");
}

.photon-icon.icon-view {
  background-image: url("../images/vu_dark.png");
  margin: 0;
  height: 16px;
  width: 16px;
  vertical-align: middle;
}

.photon-icon.icon-rotate {
  background-image: url("../images/rotate_light.png");
  width: 40px !important;
  height: 20px !important;
  margin-bottom: -8px;
}

.no-of-views {
  cursor: auto;
  width: auto;
  padding: 4px 10px;
  font-family: RedHatDisplay, Roboto, sans-serif;
}

.no-of-views:hover {
  background-color: var(--white);
  color: var(--black);
}

.no-of-views span {
  vertical-align: middle;
  font-size: .8rem;
}

.hidden {
  display: none;
}

.is-expanded {
  height: 100%;
  width: 100%
}

.is-expanded.main-view {
  background-color: var(--black50);
}

.is-expanded .main-container {
  height: var(--expanded-container-height);
  width: 60% !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.is-expanded .flex-direction-nav .flex-prev {
  left: 6px !important;
  opacity: 1 !important;
}

.is-expanded .flex-direction-nav .flex-next {
  right: 6px !important;
  opacity: 1 !important;
}

.slider-img {
  cursor: default;
}

.is-expanded #imgThumb,
.is-expanded #damagesThumb { display: none; } 

.is-expanded #custom-expand {
  display: none;
}

.is-expanded #close-nav {
  display: block;
}

/* Share modal dialoug */
.share-dialog_btn {
  display: inline-flex;
  background-color: transparent;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  padding-bottom: 8px;
  color: #ffffffea;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: capitalize;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  border: 1px solid #2f2f2f;
  cursor: pointer;
  height: 38px;
}

.share-dialog_btn:hover {
  border-color: #777;
}

.share-dialog_btn i {
  font-size: 20px;
  padding-right: 5px;
}

.share-dialog {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: #000000EA;
  z-index: 10;
}

.share-dialog_content {
  margin: auto;
  width: 70%;
  max-width: 450px;
  min-width: 230px;
  box-shadow: 0 8px 16px rgb(0 0 0 / 15%);
  z-index: -1;
  padding: 10px 20px 20px 20px;
  border-radius: 4px;
  background-color: #181818;
  color: #FFFFFFEA;
}

header {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 10px 5px;
}

.targets {
  display: grid;
  grid-gap: 10px;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
}

.share-dialog_close {
  background-color: transparent;
  color: #777777;
  border: none;
  padding: 8px 0px;
  float: right;
  font-size: 20px;
  cursor: pointer;
}

.share-dialog_close svg {
  width: 30px;
  height: 30px;
  margin-right: 0;
}

.dipPhoton360GalleryZoomOpen {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0px;
  padding: 0px;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.dipPhoton360GalleryZoomClose {
  position: relative;
  width: 100%;
  height: inherit;
}

@media screen and (max-width : 1024px) {
  .no-of-views .btn-caption {
    display: none;
  }

  .is-expanded .btn-caption {
    display: none;
  }
}

@media screen and (max-width: 600px) {
  .container {
    font-size: 0.9rem;
  }

  .btn-caption {
    display: none;
  }

  .button {
    height: 26px;
    width: 26px;
    padding: 4px 7px;
  }

  .button-hotspot, .button-damages {
    height: 26px;
    width: 26px;
    margin-right: 6px;
  }

  .no-of-views {
    width: auto;
  }
  

  /* #promo-nav {
    margin: 0 8px 0 0;
    padding: 5px 0 0 2px;
  } */

  #custom-expand {
    margin-left: 4px;
  }

  .btn-navs .button {
    width: auto;
    padding: 6px;
  }

  .is-expanded {
    width: 100% !important;
  }

  .is-expanded .insta-wrapper {
    height: inherit;
  }

  .is-expanded .main-container {
    height: calc(var(--view-height) + var(--btnview-height));
    width: 100% !important;
  }

  .is-expanded .viewer {
    height: var(--view-height);
  }

  .is-expanded #insta360 {
    height: inherit;
  }

  .targets {
    display: grid;
    grid-gap: 5px;
    grid-template-rows: auto;
    grid-template-columns: auto;
  }

  .share-dialog_content {
    margin: auto;
    width: 60%;
    min-width: 250px;
  }
}