html {
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body {
    overflow-y: scroll;
    scrollbar-width: none;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: beige;
}

body::-webkit-scrollbar {
    display: none;
}
.title h2 {
    color: white;
    margin: 70px;
}

.banner {
    width: 100%;
    height: 500px;
    position: relative;
    background-image: url('roomratebg.avif');
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.banner h2 {
    position: relative;
    z-index: 2;
    font-size: 80px;
    font-family: "Georgia";
    text-transform: uppercase;
    color: rgb(249, 245, 245);
    letter-spacing: 15px;
}

.navbar {
    width: 100%;
    height: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    padding: 0 20px;
    z-index: 3;
    opacity: 1;
    background-color: whitesmoke;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar:not(.visible) {
    transform: translateY(-100%);
}
.navbar .title h2 {
  color: black;
  margin-right: auto;
  font-size: 40px;
  font-family: "Corinthia", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: 4px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    margin-left: -13rem;
    align-items: center;
}

.nav-links a {
    padding: 15px 30px;
    color: black;
    text-decoration: none;
    font-size: 20px;
    height: auto;
    margin: 0 10px;
    position: relative;
    line-height: 20px; 
    font-family: "Gelasio", serif;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 5px; 
    left: 0;
    width: 0;
    height: 3px;
    background-color: burlywood;
    transition: 0.3s;
    transform: translateY(50%); 
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a:hover {
    color: darkgoldenrod;
}
.register a {
    padding: 12px 30px;
    color: black;
    text-decoration: none; 
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-left: -15rem;
    position: relative; 
    font-family: "Gelasio", serif;
}

.register a::after {
    content: none; 
}

.register a:hover {
    background-color: darkgoldenrod;
    text-decoration: none; 
}

.register a:focus {
    outline: none;
}
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInLoad 1.5s ease forwards;
}

@keyframes fadeInLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}
/* dito yung transition */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInLoad 1.5s ease forwards;
}

@keyframes fadeInLoad {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
#room-grid-container {
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .room-grid-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
  }
  
  .room-grid-image {
    width: 100%;
    height: 150px;
  }
  
  .room-grid-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .room-grid-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }
  
  .room-grid-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.2em;
    color: #333;
    font-family: "Gelasio", serif;
  }
  
  .room-grid-rating {
    color: gold;
    margin-bottom: 10px;
    font-size: 0.9em;
  }
  
  .room-grid-price {
    font-size: 1.4em;
    font-weight: bold;
    color: #c28e0e;
    margin-bottom: 10px;
  }
  
  .price-unit-grid {
    font-size: 0.9em;
    color: #777;
  }
  
  .room-grid-features {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
  }
  
  .room-grid-features li {
    margin-bottom: 4px;
    color: #555;
    font-size: 0.85em;
  }
  
  .room-grid-book-now {
    background-color: darkgoldenrod;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
    margin-top: auto;
  }
  
  .room-grid-book-now:hover {
    opacity: 0.9;
  }
  
  @media (max-width: 992px) {
    .room-grid-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
  }
  
  @media (max-width: 600px) {
    .room-grid-container {
      grid-template-columns: 1fr;
    }
  }
