/*************************************************************************** */
/**   Author: Josip Vinković (https://www.linkedin.com/in/josipvinkovic)  ** */
/**   Company: Altoden (https://www.altoden.hr)                           ** */
/*************************************************************************** */

/* #region main image and title */

#page-nav {
  position: absolute;
  right: 9.7vw;
  margin-right: 0;
}

.button_container span {
  background-color: white;
}

#logo {
  background-image: url("../img/logo/logo_white.png");
  right: 70.486vw;
  position: absolute;
}

#page-nav a {
  color: white;
}

.main-image {
  position: relative;
  width: 100%;
}

.full-image {
  width: 100%;
  height: 51.47vw;
}

.title-div {
  margin-left: 9.7vw;
  position: absolute;
  top: 31vw;
  color: white;
}

.title {
  font-size: 8.3vw;
  line-height: 0;
  font-family: "Basier-Square-Bold", Sans-Serif;
}

.subtitle {
  font-size: 1.59vw;
}

.colored {
  display: none;
  color: var(--main-orange);
}

/* for tablet */
@media screen and (max-width: 1200px) {
  .full-image {
    height: 62vw;
  }

  .title-div {
    margin-left: 7.1vw;
    top: 33vw;
  }

  .title {
    font-size: 11vw;
  }

  .subtitle {
    font-size: 3vw;
    max-width: 35vw;
  }
}

/* for mobile */
@media screen and (max-width: 880px) {
  #page-nav {
    top: 0;
    position: absolute;
    right: 0;
  }

  .button_container {
    position: absolute;
    top: 2vw;
  }

  #logo {
    right: 70vw;
  }

  .full-image {
    height: 68vw;
  }

  .title-div {
    margin-left: 6.25vw;
    top: 35vw;
  }

  .title {
    font-size: 15vw;
  }

  .subtitle {
    font-size: 4.4vw;
    max-width: 45vw;
  }
}

/* #endregion */
/* #region sections with title and image */

.text-image-section,
.text-image-section-reverse {
  display: flex;
  align-items: center;
  font-family: "Basier-Square";
  font-size: 22px;
  line-height: 34px;
}

.text-image-section-reverse {
  flex-direction: row-reverse;
}

.text-image-section img,
.text-image-section-reverse img {
  display: inline-block;
  width: 48.6%;
  height: auto;
}

.text-image-section p,
.text-image-section-reverse p {
  display: inline-block;
  width: 32vw;
}

.text-image-section p {
  margin-left: 2.78%;
}

.text-image-section-reverse p {
  margin-right: 2.78%;
}

/* for mobile/tablet */
@media screen and (max-width: 880px) {
  #story1 {
    opacity: 1;
  }

  #story2 > .title-group {
    display: none;
  }

  .text-image-section,
  .text-image-section-reverse {
    display: block;
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 6.25vw;
  }

  .text-image-section img,
  .text-image-section-reverse img {
    width: 100vw;
  }

  .text-image-section p,
  .text-image-section-reverse p {
    width: 87vw;
  }

  .text-image-section p {
    margin-left: 0;
    margin-bottom: 0;
    padding-left: 6.25vw;
    padding-right: 6.25vw;
  }

  .text-image-section-reverse p {
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 6.25vw;
    padding-right: 6.25vw;
  }
}

/* #endregion */
/* #region apartments gallery */

.gallery,
.guest-reviews {
  display: flex;
  flex-wrap: wrap;
  justify-items: center;
  align-content: center;
  align-items: center;
}

.gallery {
  justify-content: space-evenly;
}

.gallery .image-hover-text-container {
  width: calc(100% * 1 / 3);
  height: 32.8vw;

  position: relative;
  transition: all 0.2s linear;
}

.image-hover-image {
  overflow: hidden;
}

.image-hover-image img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hover-text {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: background-color 0.5s linear;
  transition: opacity 0.5s linear;
}

.image-hover-text:hover {
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 1;
}

.image-hover-text-bubble {
  height: 100%;
  overflow: hidden;
  font-size: calc(15px + 1.05vw);
}

.image-hover-text .image-hover-text-title {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 0 12% 10%;
  display: block;
  color: white;
  width: 200px;
}

.image-hover-text-title > span {
  font-family: "Basier-Square-Bold";
}

/* for mobile/tablet */
@media screen and (max-width: 880px) {
  .gallery .image-hover-text-container {
    width: 100%;
    height: 100vw;
    margin-bottom: 31.25vw;
  }

  .image-hover-text {
    opacity: 1;
    transition: none;
  }

  .image-hover-text:hover {
    background-color: rgba(0, 0, 0, 0);
  }

  .image-hover-text-bubble {
    font-size: 20px;
    line-height: 24px;
  }

  .image-hover-text .image-hover-text-title {
    position: absolute;
    width: 87vw;
    padding: 6.25vw 0 0 6.25vw;
    display: block;
    color: var(--main-text);
    bottom: calc(-6.25vw - 24px); /* line height is 24 px */
  }
}

/* #endregion */
/* #region reviews */

.guest-reviews {
  margin-left: 2.43%;
  justify-content: space-evenly;
  align-items: stretch;
}

.guest-reviews .review {
  min-width: 220px;
  width: 21.5vw;
  max-width: 310px;
  min-height: 200px;
}

.review-title h2,
.star {
  color: var(--main-orange);
  font-weight: bold;
  font-size: 20px;
}

.review .star {
  margin-right: 18px;
  width: 24px;
  height: 24px;
  background: url("../img/icons/ic_star.png");
  background-repeat: no-repeat;
  background-position: right;
  background-size: 24px 24px;
}

.star span {
  margin-left: 30px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-title {
  line-height: 25px;
}

.review-title h2 {
  margin-block-end: 0;
  margin-block-start: 0;
}

.review-title h4 {
  margin-block-start: 0;
  margin-block-end: 0;
  font-size: 15px;
  font-weight: normal;
}

.review-content {
  margin-top: 41px;
  text-align: left;
  font-size: 15px;
  line-height: 25px;
}

/* for mobile/tablet */
@media screen and (max-width: 880px) {
  #reviews > .title-group {
    margin-top: 0;
  }

  .guest-reviews {
    margin-left: 0;
    width: 100vw;
  }

  .guest-reviews .review {
    min-width: 220px;
    max-width: 100vw;
    width: 100vw;
    padding-left: 6.25vw;
    padding-right: 6.25vw;
    margin-bottom: 13.125vw;
  }

  .review-title {
    line-height: 25px;
  }

  .review-content {
    margin-top: 10vw;
    font-size: 14px;
  }
}

/* #endregion */
/* #region webcam and weather */

.webcam_weather {
  margin: 0 9.7vw;
}

.webcam_weather .item {
  min-width: 30%;
  max-width: 50%;
}

/* for mobile/tablet */
@media screen and (max-width: 880px) {
  .webcam_weather {
    margin: 0;
    padding-left: 6.25vw;
    padding-right: 6.25vw;
  }

  .webcam_weather .item {
    min-width: 30%;
    max-width: 100%;
  }
}

/* #endregion */
/* #region location */

.map {
  display: flex;
  justify-content: flex-start;
  font-size: 18px;
  align-items: center;
}

.address {
  margin-left: 2.8vw;
}

.address h1 {
  font-family: "Basier-Square-Bold";
}

.map-iframe {
  width: 48.5vw;
  height: 28.3vw;
  background: url(../img/loader.gif) center center no-repeat;
}

.map-iframe iframe {
  height: 100%;
  width: 100%;
}

.map h1 {
  font-size: 30px;
  font-weight: bold;
}

/* for mobile/tablet */
@media screen and (max-width: 880px) {
  .map {
    flex-wrap: wrap;
    font-size: 15px;
  }

  .address {
    margin-top: 10vw;
    margin-left: 6.25vw;
  }

  .map-iframe {
    width: 100vw;
    height: 75vw;
  }

  .map-iframe iframe {
    height: 100%;
    width: 100%;
  }

  .map h1 {
    font-size: 20px;
  }
}

/* #endregion */
