:root {
  --primary-color: #967e5b;
  --secondary-color: #3d441e;
  --accent-color: #c4a47c;
  --bg-light: #f8f9f5;
  --text-main: #4a5548;
  --text-heading: #1e291b;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --header-bg-transparent: rgba(255, 255, 255, 0);
  --header-bg-scrolled: rgba(255, 255, 255, 0.85);
  --glass-blur: 12px;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--text-heading);
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subheader {
  color: var(--primary-color);
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* --- Header & Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.8rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--header-bg-transparent);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  padding: 1rem 5%;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo-container {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.1;
  transition: var(--transition-smooth);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.header.scrolled .logo {
  color: var(--text-heading);
  text-shadow: none;
}

.logo-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 2px;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-tagline {
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem; /* Reduced from 2.2rem */
}

.nav-links li a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
  width: 100%;
}

.header.scrolled .nav-links li a {
  color: var(--text-heading);
}

.header.scrolled .nav-links li a:hover {
  color: var(--primary-color);
}

.phone-btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(150, 126, 91, 0.3);
}

.phone-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 68, 30, 0.4);
}

.header.scrolled .phone-btn {
  padding: 0.6rem 1.4rem;
}

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

.header.scrolled .menu-toggle {
  color: var(--text-heading) !important;
}

/* Ensure toggle stays visible on top of menu */
.menu-toggle.active {
  color: var(--text-heading) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* --- High-Density Desktop (992px to 1200px) --- */
@media (min-width: 993px) and (max-width: 1200px) {
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links li a {
    font-size: 0.75rem;
  }
}

/* --- Mobile Fix: Hamburger Menu --- */
@media (max-width: 992px) {
  .header {
    padding: 0.8rem 5%;
  }
  
  .nav-links {
    display: none; /* Explicitly remove from desktop flow */
  }
  
  .nav-links.active {
    display: flex; /* Re-enable for mobile overlay */
    right: 0;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 3100; /* Must be ABOVE .nav-links which is 3000 */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%; /* Cover full width on mobile for better focus */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98); /* Less transparent to prevent clutter */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: var(--transition-smooth);
    box-shadow: none;
    z-index: 3000; /* Extremely high z-index */
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    color: var(--text-heading) !important;
    font-size: 1.2rem;
  }

  .phone-btn span {
    display: none; /* Only icon on small mobile */
  }

  .header.scrolled .phone-btn,
  .phone-btn {
    padding: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    justify-content: center !important;
    background: var(--accent-color) !important;
    box-shadow: 0 4px 10px rgba(196, 164, 124, 0.3) !important;
    color: var(--white) !important;
  }

  .phone-btn i {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
  }
  
  .logo-tagline {
    font-size: 0.55rem;
    letter-spacing: 1px;
  }

  .header-actions {
    gap: 0.8rem;
  }
}

.bg-light {
  background-color: var(--bg-light);
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding-top: 80px;
}


.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  margin-bottom: 0.5rem;
  color: var(--white);
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-color);
}

.hero-text {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 1.5rem 60px;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
  }

  .hero-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
  }

  .hero-bottom-info {
    position: relative; 
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    font-size: 0.85rem;
    z-index: 2;
    margin-top: auto; /* Push to bottom of content flow */
    width: 100%;
    border-radius: 12px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Extreme short viewport fix (e.g. 500x477) */
  @media (max-height: 600px) {
    .hero {
      padding-top: 100px;
      padding-bottom: 30px;
    }
    
    .hero h1 {
      font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
      font-size: 0.9rem;
      margin-bottom: 0.8rem;
    }
    
    .hero-text {
      font-size: 0.9rem;
      margin-bottom: 1.2rem;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .hero-bottom-info {
      margin-top: 1rem;
      padding: 1rem;
    }
  }

  @media (max-height: 500px) {
    .hero {
      padding-top: 70px;
      padding-bottom: 15px;
      min-height: auto;
    }
    
    .hero h1 {
      font-size: 1.4rem !important;
      margin-bottom: 0.3rem;
    }
    
    .hero-subtitle {
      font-size: 0.75rem !important;
      margin-bottom: 0.5rem;
    }
    
    .hero-text {
      display: none !important; /* Force hide to prevent any overlap */
    }

    .hero-buttons {
      margin-bottom: 0.8rem;
    }

    .hero-buttons .btn {
      padding: 0.5rem 1rem;
      font-size: 0.8rem;
    }

    .hero-bottom-info {
      margin-top: 0.5rem;
      padding: 0.6rem;
      font-size: 0.7rem;
      gap: 0.3rem;
    }
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, background-color 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #796649;
}

.btn-light {
  background-color: var(--white);
  color: var(--secondary-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-light:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Grid layout for cards */
.icon-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.icon-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

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

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: #ced4c1;
  /* Soft Olive Green */
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.icon-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.icon-card p {
  color: #64748b;
  font-size: 0.95rem;
}

/* --- Contact Section Simplification --- */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1.2rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-btn.secondary {
  background-color: var(--sandy-brown);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.contact-details {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- Mobile Optimizations --- */
@media (max-width: 768px) {

  .h1,
  h1 {
    font-size: 2.5rem !important;
  }

  .h2,
  h2 {
    font-size: 2rem !important;
  }

  .hero-section {
    padding: 6rem 5% 4rem;
    height: auto;
    min-height: 80vh;
  }

  .room-grid,
  #gallery-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 1.2rem;
  }

  .phone-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* Image Grids */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.image-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 300px;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
}

.image-overlay h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.image-overlay ul {
  list-style: none;
  font-size: 0.9rem;
}

.image-overlay ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.25rem;
}

.image-overlay ul li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

/* Block Content (Restaurant/Contact) */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-content img {
  width: 100%;
  border-radius: 10px;
  height: auto;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.info-item .icon {
  width: 40px;
  height: 40px;
  background: #ced4c1;
  /* Soft Olive Green */
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.info-item h4 {
  margin-bottom: 0.25rem;
}

.info-item p {
  color: #64748b;
  font-size: 0.9rem;
}

/* Call to Action Box */
.cta-box {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 10px;
  text-align: center;
  margin-top: 3rem;
  border: 1px solid var(--border-color);
}

.cta-box h3 {
  margin-bottom: 1rem;
}

.cta-box p {
  margin-bottom: 1.5rem;
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  background-color: var(--secondary-color);
  color: #94a3b8;
  padding: 4rem 5% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact li i {
  color: var(--primary-color);
  margin-top: 0.25rem;
}

/* Map area */
.map-container {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery Section */
.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-grid .image-card {
  height: 250px;
}

/* Bottom info hero */
.hero-bottom-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 3rem;
  color: var(--white);
  font-size: 0.9rem;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-bottom-info span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.hero-bottom-info span:hover {
  opacity: 1;
}

.hero-bottom-info i {
  color: var(--accent-color);
  font-size: 1.1rem;
}

@media(max-width: 900px) {

  .split-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .phone-btn {
    display: none;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 1.1rem;
}

.page-btn:hover {
  color: var(--primary);
}

.page-btn.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
  color: var(--secondary);
}

/* Modal / Lightbox Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.4s;
  border: 3px solid white;
  border-radius: 4px;
}

@keyframes zoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--secondary);
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: white;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: 300;
}

.image-card img {
  cursor: pointer;
}