/* GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: normal;
} 

html, body {
  scroll-behavior: smooth;
  background-color: #F0F5EE;

  max-width: 100%;
  overflow-x: hidden;
}

.content-wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}


/*NAVBAR*/
.navbar {
  background: rgba(26, 46, 26, 0.95);
  backdrop-filter: blur(10px);
  color: white;

  display: flex;
  align-items: center;
  justify-content: space-between;

  position: fixed;

  width: 100%;
  height: 70px;
  left: 50%;
  transform: translateX(-50%);

  padding: 0 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 1000;

  transition: all 0.4s ease;
}

.navbar ul {
  display: flex;
  list-style: none;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
  margin: 0 16px;
}

.navbar ul li a:hover {
  text-decoration: underline;
  opacity: 0.5;
}

.hamburger {
  display: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
}


/*SECTION*/
section {
  padding-top: 120px;
  min-height: auto; /* heightnya aku ganti ya guys kalo mau kyk sebelumnya diganti jadi 100vh */
  padding-inline: clamp(20px, 10vw, 150px);


  display: flex;
  flex-direction: column;
  align-items: flex-start;   
  justify-content: flex-start;
}

.hero-section {
  background-color: #F5F1E6; 
  min-height: 50vh;
  width: 100%; 
  overflow: hidden;    
  position: relative; 
  display: flex;
  flex-direction: column; 
  justify-content: center; 
  align-items: center;     

  background-size: cover;     
  background-position: center; 

background-image: 
    linear-gradient(to bottom, rgba(245, 241, 230, 0) 80%, rgba(245, 241, 230, 1) 100%), url('/public/alodie1.jpg'); 
}

.hero-section h1 {
  color: white;
  font-size: 5rem; 
  font-weight: bold;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.3); 
  margin-bottom: 100px; 
}


/*BOOKING*/

.booking-section {
  scroll-margin-top: 50px;

  width: 100%;
  background-color: #F0F5EE; 
  
  display: flex;
  justify-content: center; 
  align-items: center;     
  padding: 60px 0; 
  margin-bottom: 30px;
}

.booking-card {
  background: white;
  width: 100%;
  max-width: 100%;

  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.booking-card h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2D5A27;
  margin-bottom: 4px;
}

.booking-container{
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.booking-container i {
  font-size: 32px;
  color: #2D5A27;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.input-group{
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.booking-card input, 
.booking-card select {
  font-size: 20px; 
  padding: 0;

  margin-top: 5px;

  border: none;
  border-radius: 8px;

  transition: 0.3s ease;
  color: #2f2f2f;
  background: transparent;
  width: 100%;
}

.booking-card input:hover, 
.booking-card select:hover{
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  opacity: 0.7;
}

.date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.date-group input {
  flex: 1;
  min-width: 0;
  width: 100%;
}

#building {
  width: 100px;
}

#guests {
  width: 200px;
}

.submit-btn {
  background-color: #2D5A27;
  color: white;
  width: 100%;

  padding: 10px;

  border: none;
  border-radius: 8px;

  font-weight: bold;

  cursor: pointer;
  transition: 0.3s ease;


  margin-top: 10px;
  font-size: 20px;
}

.submit-btn:hover {
  background-color: #A8C5A0;
}

.filter-row {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.divider{
  margin: 10px;
}


/*ABOUT*/
#about {
  display: flex;
  flex-direction: column;

  gap: 14px;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  padding-top: 20px;

  scrollbar-width: none;
}

.gallery img {
  width: clamp(200px, 25vw, 500px);
  height: 400px;

  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.gallery-wrapper {
  margin: auto;
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;

  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-bottom: 3rem;
  padding-top: 3rem;
  overflow: hidden;

  scroll-snap-type: x mandatory;
}

.gallery::-webkit-scrollbar {
  display: none; 
}

#gallery-section h1{
  font-size: 40px;
}

.arrow {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;

  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;  

  border-radius: 50%;
  z-index: 10;
}

.arrow:hover{
  opacity: 0.7;
}

.arrow.left {
  left: 20px;
  padding-bottom: 8px; 
  padding-right: 2px; 
}

.arrow.right {
  right: 20px;
  padding-bottom: 8px; 
  padding-left: 2px; 
}


/* ROOMS */
#rooms {
  padding: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

#rooms h1 {
  text-align: center;
  font-size: 50px;
  margin-bottom: 30px;
  font-weight: bold;
  color: #1A2E1A;

}

.rooms-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.room-card {
  width: 100%;
  max-width: 1100px;

  display: flex;
  align-items: center;

  background: #fff;
  border-radius: 18px;
  padding: 25px;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  gap: 25px;
}

.room-card img {
  width: 250px;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}

.room-info {
  flex: 1;
  gap: 10px;
}

.badge {
  display: inline-block;
  background: #000;
  color: white;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
}

.room-info h2 {
  margin: 15px 0;
  font-size: 24px;
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #444;
  margin-bottom: 15px;
}

.meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  color: #333;
}

.room-info a {
  color: blue;
  font-size: 14px;
  text-decoration: none;
}

.room-price {
  text-align: center;
}

.room-price p {
  color: #555;
}

.room-price h2 {
  font-size: 30px;
  margin: 10px 0;
}

.room-price span {
  display: block;
  color: gray;
  font-size: 14px;
  margin-bottom: 18px;
}

.room-price button {
  background: #2D5A27;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.room-price button:hover {
  background: #A8C5A0;
}

/* FOOTER */

.footer {
  background: #1A2E1A;
  color: #F8F5F2;
  padding: 30px 40px 40px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.footer-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}

.footer-header img {
  width: 80px;         
  height: 80px;        
  object-fit: cover;   
  border-radius: 50%;  
  border: 2px solid #C8A96B; 
}

.logo-box {
  width: 60px;
  height: 60px;
  border: 1px solid #C8A96B;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.footer h2 {
  font-size: 32px;
  font-weight: 600;
}

.footer p {
  font-size: 16px;
  color: #D7CCC8;
}

.address {
  margin-top: 10px;
  line-height: 1.8;
  max-width: 400px;
  color: #F1E7DD;
}

.social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.icon {
  width: 45px;
  height: 45px;
  border: 1px solid #A8C5A0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.icon:hover {
  background: #A8C5A0;
  color: black;
}

.footer-right {
  display: flex;
  justify-content: flex-end;
}

.map-box {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 500px;
}

.map-box iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

.copyright {
  margin-top: 20px;
  border-top: 1px solid rgba(200,169,107,0.3);
  padding-top: 15px;
  text-align: center;
  
  font-size: 16px;
  font-weight: bold;
  color: #D7CCC8;
}


/*MODAL*/

#modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

#modal-box {
  background: white;
  padding: 36px;
  border-radius: 20px;
  min-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#modal-box h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2D5A27;
}

#modal-box p {
  color: #888;
  font-size: 14px;
  margin-bottom: 8px;
}

#modal-box label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2D5A27;
}

#modal-box input[type="date"] {
  border: 1px solid #e0d9cf;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  width: 100%;
  outline: none;
  color: #2f2f2f;
}

#modal-box input[type="date"]:focus {
  border-color: #2D5A27;
}

#modal-box button:first-of-type {
  background: #2D5A27;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: 0.3s;
}

#modal-box button:first-of-type:hover {
  background: #A8C5A0;
}

#modal-box button:last-of-type {
  background: transparent;
  color: #888;
  border: none;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

#modal-box button:last-of-type:hover {
  color: red;
}

#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #3D2B1F;
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

#toast.show {
  opacity: 1;
}

#toast.error {
  background: #8B2020;
}
#toast.success {
  background: #2D5A27;
}

/* FOOTER LOCATION SWITCH */

.location-switch{
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.location-btn{
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  color: #F8F5F2;

  cursor: pointer;
  transition: all 0.3s ease;

  font-size: 14px;
  font-weight: 600;

  backdrop-filter: blur(10px);
}

.location-btn:hover{
  background: #A8C5A0;
  color: #1A2E1A;
  transform: translateY(-2px);
}

.location-btn.active{
  background: #F8F5F2;
  color: #1A2E1A;
}





/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {

  /* GLOBAL */
  .content-wrap {
    padding: 0 20px;
  }

  img {
    max-width: 100%;
    display: block;
  }

  /* NAVBAR */
  .navbar {
    padding: 0 20px;
    height: 70px;
  }

  .hamburger {
    display: block;
    font-size: 28px;
    position: relative;
    z-index: 4000;
  }
    
  .nav-links {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;

    background: rgba(26, 46, 26, 0.97);
    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 40px;
    list-style: none;

    transition: 0.4s ease;

    z-index: 3000;
  }

  .nav-links.active {
    top: 0;
  }
  
  .nav-links li a {
    font-size: 32px;
    font-weight: 600;
    color: white;
    text-decoration: none;
  }

  body.menu-open {
    overflow: hidden;
  }

    /* GALLERY */
  .gallery-wrapper {
    width: 100%;

    left: 0;
    right: 0;

    margin-left: 0;
    margin-right: 0;

    overflow: hidden;
  }

  .gallery {
    gap: 14px;
    padding: 10px 0;
  }

  .gallery img {
    width: 100%;
    height: 150px;
    border-radius: 16px;
  }

  .arrow {
    display: none;
  }

  #gallery-section h1{
    font-size: 20px;
  }
}

@media (max-width: 850px) {

    /* HERO */
  .hero-section {
    width: 100%;
    min-height: 30vh;

    padding-top: 100px;
    padding-bottom: 50px;

    text-align: center;

    background-position: center;
    background-size: cover;

    margin-bottom: 0 !important;
    overflow: hidden;
  }

  .hero-section h1 {
    font-size: clamp(32px, 10vw, 60px);
    line-height: 1;
    margin-bottom: 0 !important;

    display: block;
  }
  
    /* ABOUT */
  #about{
    margin-top: 0;
    gap: 0;
    padding: 40px 15px !important;
  }

  #about h2 {
    font-size: 22px !important;
  }

  #about p {
    font-size: 12px !important;
  }

  section {
    padding-inline: 20px;
  }

  .booking-section {
    padding: 10px 10px;
  }

  .booking-card {
    padding: 30px 20px;
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .booking-container {
    width: 100%;
  }

    .booking-card input,
  .booking-card select {
    max-height: 20px;
    font-size: 12px;
  }

  .booking-container i {
  font-size: 8px;
  color: #2D5A27;
  flex-shrink: 0;
  }

  .booking-card h2 {
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2D5A27;
    margin-bottom: 4px;
  }  
  #check-in,
  #check-out {
    width: 100%;
    font-size: 14px;
    padding: 8px 0;
  }

  #building,
  #guests {
    width: 100%;
  }

  @media (min-width: 601px) and (max-width: 850px) {
    .date-group {
      flex-direction: row;
      align-items: center;
      gap: 8px;
    }

    .date-group span {
      display: inline;
    }

    .date-group input {
      font-size: 12px;
    }
  }

  @media (max-width: 600px) {
    .date-group {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      width: 100%;
    }

    .date-group span {
      display: none;
    }
  }


  .date-group input {
    width: 100%;
    min-width: 0;
    font-size: 10px;
  }

  #check-in,
  #check-out {
    padding: 0;
  }
  .date-group span {
    font-size: 10px;
  }


  .submit-btn {
    padding: 10px;

    margin-bottom: 0;
    font-size: 16px;

  }

  /* ROOMS */
  #rooms{
    padding-inline: 30px;
  }

  #rooms h1 {
    font-size: 24px;
  }

  .room-price h2{
    font-size: 24px;
  }

  .features{
    font-size: 1px;
  }

  .room-card {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;

    padding: 20px;
    gap: 20px;
  }

  .room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .room-info h2 {
    font-size: 22px;
  }

  .features,
  .meta {
    gap: 10px;
    flex-wrap: wrap;
  }

  .room-price {
    width: 100%;
    text-align: left;
  }

  .room-price button {
    width: 100%;
  }

  /* FOOTER */
  .footer {
    padding: 40px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-header {
    align-items: flex-start;
  }

  .footer h2 {
    font-size: 18px;
  }

  .footer p{
    font-size: 12px;
  }

  .footer-right {
    justify-content: center;
  }

  .copyright{
    font-size: 12px;
  }

  .map-box {
    width: 100%;
    max-width: 100%;
  }

  .map-box iframe {
    height: 250px;
  }

  /* MODAL */
  #modal-box {
    width: 90%;
    min-width: unset;
    padding: 24px;
  }

  /* TOAST */
  #toast {
    width: calc(100% - 40px);
    text-align: center;
    white-space: normal;
  }

/* FOOTER LOCATION SWITCH */

.location-switch{
  display: flex;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.location-btn{
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  color: #F8F5F2;

  cursor: pointer;
  transition: all 0.3s ease;

  font-size: 12px;
  font-weight: 600;

  backdrop-filter: blur(10px);
}

.location-btn:hover{
  background: #A8C5A0;
  color: #1A2E1A;
  transform: translateY(-2px);
}

.location-btn.active{
  background: #F8F5F2;
  color: #1A2E1A;
}
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 40vh;
    background-attachment: scroll; 
  }

  .navbar {
    left: 0;
    transform: none;
    width: 100%;
  }
}