:root {
  --bg-cream: #F7F3EE;
  --bg-white: #FFFFFF;
  --bg-dark: #1A1410;
  
  --accent-gold-1: #D4AF37;
  --accent-gold-2: #F1D27A;
  --accent-terra-1: #C46A3C;
  --accent-terra-2: #E89A6A;
  --accent-olive-1: #6B705C;
  --accent-olive-2: #A5A58D;
  --accent-cocoa-1: #3E2C23;
  --accent-cocoa-2: #5A3E36;
  
  --grad-gold: linear-gradient(135deg, var(--accent-gold-1), var(--accent-gold-2));
  --grad-terra: linear-gradient(135deg, var(--accent-terra-1), var(--accent-terra-2));
  --grad-olive: linear-gradient(135deg, var(--accent-olive-1), var(--accent-olive-2));
  --grad-cocoa: linear-gradient(135deg, var(--accent-cocoa-1), var(--accent-cocoa-2));
  
  --font-heading: 'Playfair Display', 'Libre Baskerville', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  
  --spacing-section: 140px;
  --radius-card: 24px;
  --radius-btn: 40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-cream);
}

body {
  font-family: var(--font-body);
  color: var(--bg-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility & SEO Focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-gold-1);
  outline-offset: 4px;
}

::selection {
  background: var(--accent-gold-1);
  color: var(--bg-white);
}

/* ----------------- TYPOGRAPHY ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--bg-dark);
  line-height: 1.2;
}

h1 { font-size: 5rem; letter-spacing: -0.02em; }
h2 { font-size: 3.5rem; letter-spacing: -0.01em; margin-bottom: 2rem; }
h3 { font-size: 2.5rem; }
h4 { font-size: 1.5rem; }

p { margin-bottom: 1.5rem; font-size: 1.125rem; color: #5A4E45; }

.subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  color: var(--accent-terra-1);
  margin-bottom: 1rem;
  display: block;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* ----------------- LAYOUT & UTILS ----------------- */
main { display: block; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.section { 
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section); 
}

.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 40px rgba(26, 20, 16, 0.05);
}

.glass-dark {
  background: rgba(26, 20, 16, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--bg-cream);
}

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

/* Image filtering to strictly avoid blues and enforce glossy earth luxe */
.img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(90, 62, 54, 0.15); /* Warm cocoa wash */
  mix-blend-mode: multiply;
  pointer-events: none;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Sepia and hue adjustments to neutralize any accidental cool tones */
  filter: sepia(0.2) contrast(1.1) saturate(1.1);
}

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

/* ----------------- NAVIGATION ----------------- */
.nav-header {
  position: fixed;
  top: 20px;
  left: 5%;
  right: 5%;
  z-index: 1000;
  border-radius: 50px;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
}

.nav-header.scrolled {
  top: 10px;
  padding: 12px 40px;
  background: rgba(255, 255, 255, 0.85);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--bg-dark);
}

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

.nav-links a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background: var(--grad-gold);
  transition: width 0.3s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ----------------- BUTTONS ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--bg-white);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-gold-1);
  color: var(--bg-dark);
}

.btn-outline:hover {
  background: var(--accent-gold-1);
  color: var(--bg-white);
}

/* ----------------- HERO ----------------- */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,20,16,0.2), rgba(26,20,16,0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--bg-white);
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--bg-white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 20px;
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.25rem;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 20px; justify-content: center; }

/* ----------------- EDITORIAL GRIDS ----------------- */
.ed-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  align-items: center;
}

.ed-text-left { grid-column: 1 / 6; }
.ed-img-right { grid-column: 6 / 13; height: 700px; }
.ed-text-right { grid-column: 8 / 13; }
.ed-img-left { grid-column: 1 / 8; height: 700px; }

/* ----------------- HOTEL CARDS ----------------- */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.hotel-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hotel-card .img-wrapper { height: 450px; border-radius: var(--radius-card); }

.hotel-card-content {
  padding: 30px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26,20,16,0.9), transparent);
  color: var(--bg-white);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.hotel-card-content h3 { color: var(--bg-white); font-size: 1.75rem; margin-bottom: 10px; }
.hotel-card-content p { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 0; }

.hotel-features {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.feature-tag {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----------------- HOTEL DETAIL PAGES ----------------- */
.hotel-header {
  padding-top: 180px;
  padding-bottom: 80px;
}

.hotel-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  border-top: 1px solid rgba(26,20,16,0.1);
  border-bottom: 1px solid rgba(26,20,16,0.1);
  padding: 20px 0;
}

.meta-item { display: flex; flex-direction: column; gap: 5px; }
.meta-label { font-size: 0.75rem; text-transform: uppercase; color: var(--accent-terra-1); letter-spacing: 0.1em; }
.meta-value { font-family: var(--font-heading); font-size: 1.25rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 20px;
  margin-bottom: var(--spacing-section);
}

.gallery-grid .img-wrapper:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }

.booking-panel {
  position: sticky;
  top: 120px;
  padding: 40px;
  border-radius: var(--radius-card);
}

.price-tier {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26,20,16,0.1);
}

.price-tier h4 { font-size: 1.25rem; }
.price-val { font-family: var(--font-heading); font-size: 1.5rem; color: var(--accent-terra-1); }

/* ----------------- FOOTER ----------------- */
.footer {
  background: var(--bg-dark);
  color: var(--bg-cream);
  padding: 100px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer h1, .footer h2, .footer h3, .footer h4 { color: var(--bg-cream); }
.footer p { color: rgba(247, 243, 238, 0.6); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: rgba(247, 243, 238, 0.8); }
.footer-links a:hover { color: var(--accent-gold-1); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 238, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(247, 243, 238, 0.5);
}

.footer-bottom-links { display: flex; gap: 20px; }

/* ----------------- ANIMATIONS ----------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------- MOBILE OPTIMIZATION ----------------- */
@media (max-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .hotel-grid { grid-template-columns: repeat(2, 1fr); }
  .ed-grid { display: flex; flex-direction: column; }
  .ed-img-right, .ed-img-left { height: 400px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .gallery-grid .img-wrapper:nth-child(1) { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .nav-links, .nav-actions { display: none; } /* Simplified mobile nav for real production */
  .hotel-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
  .hotel-meta { flex-wrap: wrap; }
}