body {
    background-color: #ECE6DB;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

@media (max-width: 600px) {
  body, html {
    padding: 0;
    margin: 0;
  }
  * {
    box-sizing: border-box;
  }
  .header,
  .container,
  .introContainer,
  .aptDescription,
  .reservation-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 10px;
    padding-right: 10px;
  }
}

/*header*/

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    box-sizing: border-box;
    overflow: hidden;

}

.logo {
    width: 40px;
    height: auto;
    float: left;
}

.nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

.nav a {
    color: #364C63;
    font-size: 16px;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-decoration: none;
}

.language {
    float: right;
    font-size: 22px;
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: normal;
    padding: 16px;
    cursor: pointer;
}

.dash {
    height: 30px;
    width: 1px;
}

/*landing image + slogan*/

.slogan {
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 50px;
    position: absolute;
    top: 100px;
    left: 60px;
    text-align: left;
}

.container {
  position: relative;
  text-align: center;
}

/*apartment logo*/

.apartmentLogo {
    padding: 20px;
    width: 418px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*introduction*/
.logoInText {
    width: 186px;
    height: auto;
    padding: 40px;
    margin: auto;
    display: block;
}

.introContainer {
    display: flex;
    padding: 50px 20px;
}

.introParagraph {
    text-align: justify;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 100px;
    padding-right: 20px;
    font-size: 18px;
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}
/*reservation button*/
.contaiReserv {
    position: relative;
}

.roja {
    text-align: right;
    position: relative;
    left:0.5px;
}

.rojaBeach {
    border-top-left-radius: 80px;
    padding-right: 200px;
    width: 650px;
    height: auto;
}

.rezervaceButton {
    position: absolute;
    text-decoration: none;
    font-size: 25px;
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    border: 1px;
    border-radius: 10px;
    background-color: #F3B340;
    padding: 14px 22px;
    text-decoration: none;
    height: 40px;  
    width: 200px;
    left: 560px;
    bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width: 600px) {
  .rojaBeach {
    padding-right: 0px;
    padding-left: 20px;
    width: 350px;
    height: auto;
  }

  .rezervaceButton {
    text-decoration: none;
    font-size: 14px;
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    border: 1px;
    border-radius: 10px;
    background-color: #F3B340;
    padding: 14px 22px;
    text-decoration: none;
    height: 40px;  
    width: 200px;
    left: 30px;
    bottom: 20px;
  }
}
/*co vás čeká*/
h2 {
    font-family: "Aboreto", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    text-align: center;
    color: #364C63;
}

.aptDescription {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    color: #364C63;
    padding: 20px 260px;
    text-align: left;
}
/*gallery*/
.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.nav-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-button img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.nav-button img:hover {
  transform: scale(1.1);
}

.main-image-wrapper img#main {
  width: 600px;
  height: 450px;
  object-fit: cover;
  border-radius: 10px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  gap: 10px;
}

.thumbnails img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}

@media (max-width:600px) {
  .main-image-wrapper img#main {
    width: 260px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
  }

  .thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 10px;
  }

  .thumbnails img {
    width: 20px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
  }
}

.thumbnails img.active {
  border-color: #280071;
}

.gallery .thumb {
  margin: 4px;
  border-radius: 6px;
  opacity: 0.8;
  transition: 0.3s ease;
}

.gallery .thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

/*full screen overlay*/
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

.fullscreen-overlay img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: white;
  border: none;
  font-size: 48px;
  cursor: pointer;
  z-index: 10000;
  user-select: none;
}

.nav-btn.left {
  left: 30px;
}

.nav-btn.right {
  right: 30px;
}


/*vybavení*/
.personText, 
.poolText, 
.beachText, 
.shopText, 
.carText, 
.kitchenText {
    font-size: 18px;
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
}

.vybavContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: auto;
    padding: 2rem 1rem;
}

.person,
.beach,
.kitchen,
.pool,
.car,
.shop {
    width: 44px;
    height: 44px;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.phonenumber {
    color: #364C63;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}


/*calendar*/
.calendar {
  width: clamp(320px, 400px, 90%);
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.calendar h3 {
  font-weight: 600;
  font-family: Lato, sans-serif;
  padding-left: 40px;
  color: #364C63;
}

.calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calendar nav {
  display: flex;
  align-items: center;
  padding-right: 40px;
}
.calendar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  font-family: Lato, sans-serif;
  color: #364C63;
  
}
.calendar ul li {
  width: calc(100% / 7);
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #364C63;
}
#prev,
#next {
  width: 20px;
  height: 20px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}
#prev::before,
#next::before {
  content: "";
  width: 50%;
  height: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  border-style: solid;
  border-width: 0.25em 0.25em 0 0;
  border-color: #ccc;
}
#next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
#prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}
#prev:hover::before,
#next:hover::before {
  border-color: #364C63;;
}
.days {
  font-weight: 600;
}
.dates li.today {
  color: #fff;
}
.dates li.today::before {
  content: "";
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #364C63;;
  border-radius: 50%;
  z-index: -1;
}
.dates li.inactive {
  color: #ccc;
}

.calendar .dates li {
  cursor: pointer;
}

.calendar .dates li.in-range {
  background-color: #add8e6; /* light blue */
  color: #000;
}

.calendar .dates li.range-start {
  background-color: #004080; /* dark blue */
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  color: #fff;
}

.calendar .dates li.range-end {
  background-color: #004080; /* dark blue */
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  color: #fff;
}

.dates li.reserved {
  background-color: #f6a99c;
  text-decoration: line-through;
  color: #e44d3a;
  cursor: not-allowed;
  border-radius: 0px;
}

/*rezervace*/
.reservation-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    border-radius: 16=x;
}

.reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 400px;
    width: 100%;
    margin-top: 0;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea,
.reservation-form button[type="submit"] {
    border-radius: 8px;
    border: none;
    padding: 14px 16px;
    background-color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reservation-form textarea {
  height: 60px;
}

.reservation-form input[name="name"],
.reservation-form input[name="email"],
.reservation-form select[name="visitors"],
.reservation-form textarea.zprava,
.reservation-form button[type="submit"] {
    grid-column: span 2;
    width: 100%;
}

#submitButton {
  background-color: #364C63;
  color: white;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

#submitButton:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
    color: #364C63;
    font-family: "Lato", sans-serif;
    font-size: 14px;
}

.reservation-form .date-row {
  display: flex;
  gap: 16px;
  grid-column: span 2;
}
.reservation-form .date-row input {
  flex: 1 1 0;
}

#thankYou {
  color: #364C63;
  font-family: "Lato", sans-serif;
  font-size: 16px;
  padding: 10px; 
}

.iframe-container {
  position: relative;
  width: 50%;
  padding-bottom: 40%;
  height: 0;
  overflow: hidden;
  margin: 0 auto;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fullIcon {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fullIcon:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.email, .phonenumber, .instagram {
  color: #364C63;
  font-size: 18px;
}

#instaIcon {
  height: 48px;
  width: 48px;
}

/*footer*/
footer {
  text-align: center;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #364C63;
}

 /* for desktop */
      .whatsapp_float {
          position: fixed;
          width: 60px;
          height: 60px;
          bottom: 40px;
          right: 40px;
          background-color: #25d366;
          color: #FFF;
          border-radius: 50px;
          text-align: center;
          font-size: 30px;
          box-shadow: 2px 2px 3px #999;
          z-index: 100;
      }

      .whatsapp-icon {
          margin-top: 16px;
      }

      /* for mobile */
      @media screen and (max-width: 767px) {
          .whatsapp-icon {
              margin-top: 10px;
          }

          .whatsapp_float {
              width: 40px;
              height: 40px;
              bottom: 20px;
              right: 10px;
              font-size: 22px;
          }
      }


/*-------------------------------------------------*/
@media (max-width:600px) {
  .person,
  .beach,
  .kitchen,
  .pool,
  .car,
  .shop {
    width: 33px;
    height: 33px;
  }

  .mainImage {
    width: 20px;
    height: 20px;
  }

  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .dash {
    display: none;
  }

  .email, .phonenumber, .instagram{
    font-size: 16px;
  }

  .phoneIcon, .emailIcon {
    width: 5px;
    height: 5px;
  }

  h2 {
    font-size: 22px;
  }

  .reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 400px;
    width: 100%;
    margin-top: 0;
  }

  .reservation-form .date-row {
    display: inherit;
  }

  /*vybaveni two columns*/
  .vybavContainer {
    grid-template-columns: repeat(2, 1fr);
  }

  .aptDescription {
    padding: 20px;
    font-size: 16px;
  }

  .introParagraph {
    padding: 20px;
    font-size: 16px;
  }

  .slogan {
    font-size: 28px;
    top: 40px;
    left: 20px;
  }

  .header h4 {
    float: none;
    display: block;
    text-align: left;
    font-size: 16px;
  }

  .reservation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 400px;
    width: 100%;
    margin-top: 0;
  }

  /*header*/
.logo {
  width: 60px;
  height: auto;
}

  .header {
    padding: 4px 10px;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav a {
      font-size: 16px;
  }

  .language {
      font-size: 22px;
      padding: 0px;
  }

  .dash {
      height: 20px;
      width: 1px;
  }

  .introParagraph {
    font-size: 16px;
    padding-top: 10px;
  }

  .aptDescription {
    font-size: 16px;
  }

  .introContainer {
    display: initial;
    padding: 0px;
  }

  .apartmentLogo {
      width: 200px;
      height: auto;
      display: block;
      margin-left: auto;
      margin-right: auto;
      padding: 10px;
  }

  #kontaktujte {
    text-align: center;
  }

  /*shell in text*/
  .logoInText {
      width: 120px;
      height: auto;
      padding: 20px;
      margin-left: auto;
      margin-right: auto;
      /*centre*/
  }

  /*landing image + slogan*/
  .slogan {
      font-size: 18px;
      top: 30px;
      left: 20px;
      text-align: left;
  }

  .container {
    position: relative;
    text-align: center;
  }

}