/* --- Core Styles & Variable Palette --- */
:root {
  --forest-green: #1b4332;
  --moss-green: #40916c;
  --warm-wood: #8c6239;
  --cozy-cream: #f4f1ea;
  --dark-charcoal: #2d2d2d;
  --pure-white: #ffffff;
  --error-red: #cc0000;
  --font-heading: "Playfair Display", serif;
  --font-body: "Lora", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--cozy-cream);
  color: var(--dark-charcoal);
  line-height: 1.7;
}

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

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--forest-green);
}

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

/* --- Navigation Bar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(27, 67, 50, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.relative-nav {
  position: relative;
  background-color: var(--forest-green);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
}

.logo {
  font-family: var(--font-heading);
  color: var(--pure-white);
  font-size: 1.8rem;
  text-decoration: none;
  font-weight: bold;
}

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

.nav-link {
  color: var(--pure-white);
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--moss-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pure-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Section Formatting & Parallax Framework --- */
.content-section {
  padding: 80px 0;
}

.parallax-header {
  height: 300px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.parallax-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.parallax-header h2 {
  font-size: 2.5rem;
  color: var(--pure-white);
  position: relative;
  z-index: 1;
}

.text-block p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  text-align: justify;
}

/* --- Hero Section & Carousel --- */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-text-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--pure-white);
  padding: 20px;
}

.hero-motto {
  color: var(--pure-white);
  font-size: 3.5rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtext {
  font-size: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
}

/* --- Card Grids (Rooms UI) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--pure-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

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

.card-body {
  padding: 20px;
}

.card-body h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.card-body p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555;
}

.btn {
  display: inline-block;
  background: var(--warm-wood);
  color: var(--pure-white);
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--forest-green);
}

/* --- Room Profile Layout Extensions --- */
.btn-back {
  background: var(--moss-green);
}
.room-long-desc {
  max-width: 800px;
  margin: 30px auto;
  font-size: 1.2rem;
}
.section-sub-title {
  margin-top: 50px;
  margin-bottom: 30px;
}
.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Default row of 3 */
  gap: 20px;
}

/* --- Gallery Section Framework --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Multi-row default sizing layout */
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Contact Section Layout --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--forest-green);
}

.form-group input,
.form-group-row input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--moss-green);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 1.1rem;
}

.error-msg {
  color: var(--error-red);
  font-size: 0.85rem;
  display: none;
  margin-top: 5px;
}

#form-success {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  text-align: center;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Custom Lightbox Engine Framework --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  border: 3px solid var(--pure-white);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--pure-white);
  font-size: 3rem;
  cursor: pointer;
}

.lightbox-arrow {
  position: absolute;
  color: var(--pure-white);
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.lightbox-prev {
  left: 30px;
}
.lightbox-next {
  right: 30px;
}

/* --- Footer Alignment --- */
footer {
  background: var(--forest-green);
  color: var(--pure-white);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.95rem;
}

/* --- Adaptive Layout Breakpoints (Responsive Queries) --- */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-motto {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Hamburger Menu Conversion Styling */
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--forest-green);
    border-top: 1px solid var(--moss-green);
    padding: 10px 0;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-link {
    padding: 12px 25px;
    display: block;
  }

  .grid-3,
  .room-gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .parallax-header {
    height: 200px;
    background-attachment: scroll;
  }
}