@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #1E3A8A;
  --primary-color-dark: #808080;
  --text-dark: #0c0a09;
  --text-light: #78716c;
  --white: #f9f9f9;
  --max-width: 1200px;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 4rem 1rem;
}

.section__subheader {
  margin-bottom: 0.5rem;
  position: relative;
  text-align: center;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.section__subheader::after {
  position: absolute;
  content: "";
  top: 50%;
  transform: translate(1rem, -50%);
  height: 2px;
  width: 4rem;
  background-color: var(--primary-color);
}

.section__header {
  max-width: 600px;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 auto 2rem auto; 
  text-align: center;
  line-height: 2rem;
  color: var(--text-dark);
}

.section__description {
  max-width: 600px;
  margin-bottom: 1rem;
  text-align: justify;
  color: var(--text-light);
}

.btn {
  padding: 0.75rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--primary-color-dark);
}

img {
  width: 100%;
  display: flex;
}

a {
  text-decoration: none;
}

.logo {
  max-width: 60px;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

.header {
  background-image: url("assets/fotto\ 11.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

nav {
  position: fixed;
  isolation: isolate;
  top: 0;
  width: 100%;
  max-width: var(--max-width);
  margin: auto;
  z-index: 9;
}

.nav__bar {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--primary-color);
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  list-style: none;
  position: absolute;
  width: 100%;
  padding: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  background-color: rgba(192, 192, 192, 0.9);
  transform: translateY(-100%);
  transition: 0.5s;
  z-index: -1;
}

.nav__links.open {
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.7);
}

.nav__links a {
  position: relative;
  isolation: isolate;
  padding-bottom: 8px;
  color: var(--white);
  transition: 0.3s;
}

.nav__btn {
  display: none;
}

.header__container {
  padding-block: 10rem 5rem;
}

.header__container p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--white);
  text-align: center;
  opacity: 1;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.header__container h1 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 4.5rem;
  color: var(--white);
  text-align: center;
}

.header__container h1 span {
  color: var(--primary-color);
}

.about__container {
  overflow: hidden;
  display: grid;
  gap: 2rem;
}

.about__image img {
  max-width: 450px;
  margin: auto;
  border-radius: 5px;
}

.room__grid {
  margin-top: 4rem;
  display: grid;
  gap: 1rem;
}

.room__card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
}

.room__card__image {
  position: relative;
  isolation: isolate;
}

.room__card__icons {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  z-index: 1;
}

.room__card__icons span {
  display: inline-block;
  padding: 2px 8px;
  font-size: 1.5rem;
  background-color: var(--white);
  border-radius: 100%;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.room__card__icons span:nth-child(1) {
  color: #808080;
}

.room__card__icons span:nth-child(2) {
  color: #A9A9A9;
}

.room__card__icons span:nth-child(3) {
  color: #60a5fa;
}

.room__card__details {
  padding: 1rem;
}

.room__card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-dark);
}

.room__card p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.room__card h5 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
}

.room__card h5 span {
  font-size: 1.1rem;
  color: var(--text-dark);
}


/* Section styling */
.gallery {
  padding: 4rem 1rem;
  text-align: center; /* Centering text horizontally */
}

.gallery .section__subheader {
  font-size: 1.2rem;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.gallery .section__header {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin: 0 auto 2rem auto; /* Centering and spacing below */
  text-align: center; /* Ensures text aligns center in its box */
  max-width: 600px; /* Optional: Restrict width for better readability */
  line-height: 1.4; /* Improves spacing between lines */
}

/* Gallery container */
.gallery__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
}

/* Gallery item */
.gallery__item {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Image styling */
.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .gallery .section__header {
    font-size: 1rem;
  }

  .gallery .section__subheader {
    font-size: 1rem;
  }
}


.location {
  padding: 4rem 1rem;
  text-align: center; /* Centering text horizontally */
}

.location .section__subheader {
  font-size: 1.2rem;
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.location .section__header {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  margin: 0 auto 2rem auto; /* Centering and spacing below */
  text-align: center; /* Ensures text aligns center in its box */
  max-width: 600px; /* Optional: Restrict width for better readability */
  line-height: 1.4; /* Improves spacing between lines */
}

.location {
  padding: 4rem 2rem;
  background-color: var(--bg-dark);
}

.location__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-light);
}

.location__content p,
.location__content address {
  font-size: 1.1rem;
  line-height: 1.6;
}

.location__map {
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.location__map iframe {
  border: none;
}

@media (max-width: 768px) {
  .location {
    padding: 2rem 1rem;
  }

  .location__map iframe {
    height: 200px;
  }
}



.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 0rem 0;
  text-align: center;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__col {
  margin-bottom: 2rem;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.footer__links {
  list-style: none;
  padding: 0;
  font-size: 1rem;
}

.footer__links li {
  margin-bottom: 0rem;
}

.footer__links a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer__socials img {
  max-width: 30px;
  transition: opacity 0.3s;
}

.footer__socials img:hover {
  opacity: 0.9;
}

.footer__bar {
  padding: 0rem;
  font-size: 1rem;
  color: var(--text-light);
  text-align: center;
}

@media (width > 576px) {
  .room__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width > 768px) {
  nav {
    padding: 2rem 1rem;
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__bar {
    padding: 0;
    background-color: transparent;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    padding: 0;
    width: unset;
    position: static;
    transform: none;
    flex-direction: row;
    background-color: transparent;
  }

  .nav__btn {
    display: block;
  }

  .nav__links a::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: 0.3s;
    transform-origin: left;
  }

  .nav__links a:hover::after {
    width: 100%;
  }

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .room__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  

  .footer__container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width > 1024px) {
  .room__grid {
    gap: 2rem;
  }
}

/* Customer Reviews Section */
.reviews {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #ffffff;
}

.reviews__container {
  max-width: var(--max-width);
  margin: 2rem auto;
  position: relative;
  overflow: visible; /* Ubah dari hidden ke visible */
  display: flex;
  flex-direction: column;
}

.reviews__slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 2rem 0.5rem;
  gap: 1.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin-bottom: 1rem; /* Tambahkan margin bawah */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.reviews__slider::-webkit-scrollbar {
  display: none;
}

.review__card {
  flex: 0 0 300px;
  scroll-snap-align: center;
  background-color: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.review__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.review__user-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
  border: 2px solid var(--primary-color);
}

.review__user-info h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.review__stars {
  color: #FFD700;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.review__date {
  font-size: 0.8rem;
  color: var(--text-light);
}

.review__text {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
}

.review__source {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review__source i {
  color: #4285F4;
  font-size: 1rem;
}

.reviews__nav {
  position: relative; /* Ubah dari absolute ke relative */
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  justify-content: center; /* Posisikan di tengah */
  gap: 1rem;
  margin-top: 2rem; /* Tambah margin atas */
  margin-bottom: 1rem; /* Tambah margin bawah */
}

.reviews__nav-btn {
  background-color: var(--white);
  border: 2px solid var(--primary-color); /* Tebalkan border */
  color: var(--primary-color);
  width: 44px; /* Perbesar ukuran tombol */
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem; /* Perbesar ukuran font */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10; /* Pastikan tombol berada di atas */
}

.reviews__nav-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.reviews__slider-container {
  overflow: hidden; /* Tetap hide scrollbar di container ini */
  margin-bottom: 2rem;
}

/* Responsiveness untuk tombol navigasi */
@media (max-width: 576px) {
  .reviews__nav-btn {
    width: 45px; /* Ukuran lebih besar di mobile */
    height: 45px;
    background-color: var(--primary-color); /* Beri warna kontras di mobile */
    color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Tambahkan bayangan agar lebih menonjol */
  }
  
  .reviews__nav {
    margin-top: 1rem; /* Kurangi margin di mobile */
  }
}

/* For larger screens, show more cards at once */
@media (width >= 768px) {
  .review__card {
    flex: 0 0 350px;
  }
  
  .reviews__slider {
    padding: 2rem 1rem;
  }
}

@media (width >= 1024px) {
  .reviews__container {
    padding: 0 3rem;
  }
  
  .reviews__slider {
    gap: 2rem;
  }
}
/* Customer Reviews Section */
.reviews {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #ffffff;
}

.reviews__container {
  max-width: var(--max-width);
  margin: 2rem auto;
  position: relative;
  overflow: visible; /* Ubah dari hidden ke visible */
  display: flex;
  flex-direction: column;
}

/* Google Review Block */
.google-review-block {
  max-width: 300px;
  margin: 0 auto 2rem auto;
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.google-review-info {
  text-align: center;
}

.google-review-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  color: var(--text-dark);
}

.google-review-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.google-stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.google-review-count {
  font-weight: 500;
  margin-bottom: 1rem !important;
}

.google-review-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1E3A8A;
  color: white;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
  text-decoration: none;
}

.google-review-btn:hover {
  background-color: #3367d6;
}

.review__card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.review__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* Memastikan teks tetap berwarna semula meskipun dalam tag <a> */
.review__card__link h4,
.review__card__link p,
.review__card__link .review__date,
.review__card__link .review__text {
  color: inherit;
}