@import url('general.css');

* {
  box-sizing: border-box;
}

html,
body {
  position: relative;
  height: 100%;
  width: 100%;
}

nav {
  margin-bottom: 10px;
}

body {
  background-color: var(--body-background);
  color: var(--main-text-color);
  margin: 0;
}

section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  height: calc(100vh - 15%);
}

.gallary-section {
  width: 95%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.gallary-images {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40%;
  gap: 10px;
}

.gallary-images span {
  display: flex;
  gap: 10px;
  height: 40%;
}

.gallary-images span div {
  height: 100%;
}

.second-gallary-img {
  height: 60%;
}

.main-gallary-img,
.second-gallary-img,
.third-gallary-img,
.fourth-gallary-img {
  object-fit: cover;
  border-radius: 10px;
}

section {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-gallary-img {
  width: 60%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.second-gallary-img,
.third-gallary-img,
.fourth-gallary-img {
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 60%;
}

.fourth-gallary-img {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay {
  background-color: rgb(0, 0, 0);
  opacity: 0.3;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  border-radius: 10px;
}

.view-gallry-button {
  background-color: transparent;
  border: none;
  outline: none;
  color: var(--body-background);
  text-decoration: underline;
  z-index: 1;
  font-size: medium;
}

.tags {
  display: flex;
  justify-content: space-between;
  margin: 0 10px;
  align-items: center;
}

.location-tag,
.heart-tag {
  background-color: var(--container-background);
  display: flex;
  justify-content: center;
  align-items: center;
}

.location-tag {
  border-radius: 20px;
  margin: 0;
  padding: 7px 15px;
  color: var(--second-text-color);
}

.heart-tag {
  padding: 18px;
  visibility: hidden;
}

.location-tag .location-icon,
.hotel-icon {
  margin-right: 10px;
  color: var(--main-text-color);
}

.heart-tag .heart-icon {
  color: var(--main-text-color);
}

.details {
  width: 95%;
  height: 100%;
  padding: 0 15px;
}

.upper-details {
  position: sticky;
  top: 0;
  background-color: var(--body-background);
  padding: 15px 0;
  z-index: 1;
  border-bottom: 1px solid var(--border-color);
}

.upper-details span {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.email-booking,
.phone-booking,
.whatsapp-booking,
.booking {
  background-color: var(--main-theme-color);
  color: var(--body-background);
  border-radius: 30px;
}

.email-booking,
.phone-booking,
.whatsapp-booking {
  padding: 10px;
}

.booking {
  border: none;
  outline: none;
  padding: 12px 25px;
}

.price {
  font-size: x-large;
  margin: 0;
}

.name-rating,
.company {
  display: flex;
  align-items: center;
}

.hotel-name,
.room-name {
  font-size: xx-large;
  font-weight: bold;
}


.hotel-name,
.room-name,
.hotel-rating {
  margin: 0;
  display: inline-block;
  width: fit-content;
}

.separator {
  height: 40px;
  width: 5px;
}

.separator-tag {
  height: 20px;
  width: 2px;
}

.separator,
.separator-tag {
  display: inline-block;
  background-color: color-mix(in srgb, var(--border-color) 50%, transparent);
  border-radius: 20px;
  margin: 0 10px;
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  object-fit: cover;
  margin-right: 10px;
}

.overview-title,
.description-title,
.facilities-title,
.views-title,
.top-hotels,
.location-title {
  margin: 25px 0 15px 5%;
  font-size: large;
  font-weight: bold;
  color: var(--main-text-color);
}

.location-title .location-icon,
.hotel-icon {
  margin-right: 10px;
}

.overview-table-container,
.location-table-container,
.description,
.facilities,
.views {
  width: 80%;
  margin-left: 10%;
}

.description,
.facilities,
.views,
.facilities span i,
.views span i,
.overview-table td,
.location-table td {
  color: var(--second-text-color);
}

.star-icon {
  color: var(--gold-color);
}

.overview-table-container {
  background-color: var(--container-background);
  padding: 5px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.overview-table,
.location-table {
  margin: 0;
  width: 100%;
  outline: 2px solid var(--container-background);
  outline-offset: -1px;
  background-color: var(--container-background);
  border-collapse: collapse;
}

.overview-table td,
.location-table td {
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.overview-table td span,
.location-table td span {
  display: flex;
  align-items: center;
}

.overview-table td span {
  justify-content: center;
}

.location-table td span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.overview-table td span .fa-fw {
  margin-right: 10px;
}

.area-icon {
  min-width: 1.25em;
  min-height: 1.25em;
  background-color: var(--second-text-color);
  -webkit-mask-image: url('image.svg');
  mask-image: url('../images/area-icon.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.room-container-link {
  display: contents;
}

.description {
  line-height: 1.5em;
}

.facilities,
.views {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.facilities span,
.views span {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 20px 0 0;
  background-color: var(--container-background);
  padding: 15px;
  border-radius: 26px;
  border: 1px solid var(--border-color);
  width: 200px;
  height: 80px;
  transform: skewX(340deg);
}

.location-table-container div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 20px 0 0;
  background-color: var(--container-background);
  padding: 15px;
  border-radius: 26px;
  border: 1px solid var(--border-color);
  min-height: 80px;
  transform: skewX(340deg);
}

.location-table-container span {
  max-width: 200px;
}

.facilities span p,
.views span p {
  width: 100px;
  text-align: center;
}

.facilities span i,
.views span i {
  /* background-color: var(--container-background); */
  padding: 15px;
  /* border-radius: 100%; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 1px solid var(--border-color); */
}

.facilities span .fa-fw,
.views span .fa-fw {
  width: 3em;
  height: 3em;
}

/* Base Swiper styles */
.swiper {
  width: 100%;
  height: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* Base slide styles */
.swiper-slide {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

/* Base image styles */
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Main Swiper (mySwiper2) styles */
.mySwiper2 {
  height: 75vh;
  width: 80%;
  margin: 10px;
  border-radius: 10px;
}

.mySwiper2 .swiper-slide img {
  width: fit-content !important;
}

/* Thumbnail Swiper (mySwiper) styles */
.mySwiper {
  height: 17vh;
  width: 80%;
  box-sizing: border-box;
  padding: 10px 0;
}

.mySwiper .swiper-slide {
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide img {
  object-fit: cover !important;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.mySwiper .swiper-wrapper {
  justify-content: center;
}

.images {
  position: fixed;
  /* Changed from absolute to fixed for full-screen overlay */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  /* Increased z-index to ensure it appears above other content */
  display: none;
  /* Hidden by default */
  padding: 20px;
  box-sizing: border-box;
}

.images.active {
  display: block;
  /* Show when active class is added */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

#showGallery {
  cursor: pointer;
}

.hotels {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.hotel-container {
  width: 40%;
  background-color: var(--container-background);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hotel-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.hotel-container:hover {
  transform: scale(1.05);
}

.hotel-container span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--second-text-color);
}

.hotel-container span p {
  margin: 5px;
}

.hotel-name,
.bold-price,
.location-icon {
  color: var(--main-text-color);
}

.name {
  color: var(--main-text-color);
}

.hotel-image {
  width: 100%;
  aspect-ratio: 10 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.rooms-tabs {
  text-decoration: none;
}

.price-btn {
  border: none;
  outline: none;
  width: 48%;
}

.rooms-tabs,
.price-btn {
  color: #000000;
  background-color:
    color-mix(in srgb, var(--main-theme-color) 40%, transparent);
  padding: 10px 15px;
  border-radius: 15px 0 15px 0;
  margin: 10px;
  display: inline-block;
}

.price-btn.active {
  color: var(--body-background);
  background-color: var(--main-theme-color);
}

.price-buttons {
  width: 200px;
  min-width: 178px;
}

.booking-form {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.booking-form.active {
  display: flex;
}

.booking-form form {
  background-color: var(--container-background);
  max-width: 800px;
  width: 30%;
  height: 95%;
  border-radius: 10px;
}

.tabs {
  flex-wrap: wrap;
  gap: 10px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  height: 100%;
  overflow: auto;
}

input::placeholder {
  color: color-mix(in srgb, var(--main-theme-color) 70%, transparent);
}

input {
  color: var(--main-theme-color);
  width: 80%;
  margin: 10px 0 20px;
  padding: 10px;
  border-radius: 25px;
  outline: none;
  border: 1px solid var(--border-color);
  text-align: center;
}

.date,
.persons-quantity-label {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type='date'] {
  -webkit-appearance: none;
  width: 100%;
}

.error {
  text-align: center;
  background-color: red;
  padding: 10px;
  color: var(--container-background);
}

.success {
  text-align: center;
  background-color: green;
  padding: 10px;
  color: var(--container-background);
}

.submit {
  background-color: var(--main-text-color);
  color: var(--main-theme-color);
  border: 2px solid var(--main-text-color);
  outline: none;
  border-radius: 25px;
  padding: 10px;
  font-size: medium;
  width: 80%;
}


.adult-quantity {
  width: 40px;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--main-theme-color);
  font-size: medium;
}

.quantity-container {
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 10px;
  align-items: center;
}

.kid-quantity,
.adult-quantity {
  width: 40px;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--main-theme-color);
  font-size: medium;
}

.plus-btn,
.minus-btn {
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--main-theme-color);
  font-size: medium;
}

.persons-quantity-label .quantity-container {
  display: flex;
  flex-direction: row;
  max-height: 50px;
  width: 100%;
  margin: 10px;
}

.quantity-container * {
  flex-grow: 1;
}

input[type="number"] {
  text-align: center;
  margin: 0;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.price-request {
  text-decoration: none;
  color: var(--main-theme-color);
  background-color: color-mix(in srgb, var(--main-theme-color) 40%, transparent);
  padding: 10px 15px;
  border-radius: 10px;
  margin: 10px 0;
  display: inline-block;
}

@media screen and (max-width: 800px) {
  .location-tag {
    margin-top: 10px;
  }

  section {
    display: block;
  }

  .gallary-section {
    max-height: 350px;
    margin-left: 2.5%;
  }

  .details {
    width: 100%;
  }

  .overview-table td span,
  .location-table td span {
    flex-wrap: wrap;
    text-align: center;
  }

  .overview-table td,
  .location-table td {
    padding: 1rem 5px;
  }

  .facilities,
  .views {
    justify-content: center;
  }

  .hotel-container {
    width: 100%;
  }

  .overview-table,
  .location-table {
    margin: 10px 0;
    outline: 4px solid var(--container-background);
    outline-offset: -2px;
  }

  .mySwiper {
    height: 10vh;
    width: 100%;
  }

  .mySwiper2 {
    width: 100%;
  }

  .booking-form form {
    width: 80%;
  }

  .second-gallary-img {
    height: 70%;
  }

  .gallary-images span {
    height: 30%;
  }
}