:root {
  /* Restored Original Palette with Quiet Luxury Structure */
  --bg-primary: #ffffff;
  --text-primary: #2a3a45;
  /* Dark Slate */
  --text-secondary: #737779;
  /* Soft Grey */
  --accent: #d7530a;
  /* Sunset Orange */
  --soft-peach: #ffe4d5;
  --bg-secondary: #f5f5f5;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Whitespace */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  /* Reduced for smaller screens default */
  --spacing-xl: 6rem;
  /* Reduced for smaller screens default */
  --spacing-xxl: 8rem;
  /* Reduced for smaller screens default */
}

@media (min-width: 1025px) {
  :root {
    --spacing-lg: 5rem;
    --spacing-xl: 10rem;
    --spacing-xxl: 15rem;
  }
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-weight: 300;
  overflow-x: hidden;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

ul {
  list-style: none;
}

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

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader {
  max-width: 100px;
  /* Smaller, more elegant preloader if possible */
  opacity: 0.8;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: url("../images/banner.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.0);
  transition: transform 10s ease-out;
  /* Slow zoom effect on load */
}

/* Vivid Sunset Gradient Overlay for a brighter, more lively hero */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom,
      rgba(215, 83, 10, 0.45) 0%,
      /* Vivid Sunset Orange at the top */
      rgba(255, 228, 213, 0.15) 40%,
      /* Very light peach in the middle */
      rgba(42, 58, 69, 0.8) 100%
      /* Dark slate at bottom for text contrast */
    );
}

/* Top Navigation Bar */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.4s ease;
}

.top-header.scrolled {
  padding: 1rem 5vw;
  background: var(--bg-primary);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  position: fixed;
}

.top-header.scrolled select#Lang,
.top-header.scrolled .hamburguer {
  color: var(--text-primary);
}

/* Desktop nav links turn dark on scroll */
@media (min-width: 901px) {
  .top-header.scrolled .nav-bar a {
    color: var(--text-primary);
  }

  .top-header.scrolled .nav-bar a::after {
    background-color: var(--accent);
  }
}

/* Mobile/tablet: links inside the overlay are always white */
@media (max-width: 900px) {
  nav.nav-bar a {
    color: #fff !important;
  }
}

.top-header.scrolled .header-logo-img {
  width: 70px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo-img {
  width: 100px;
  /* Slightly larger since there is no text */
  height: auto;
  border-radius: 4px;
  background: white;
  /* Guarantee visibility */
  padding: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  /* Soft premium shadow */
  transition: transform 0.3s ease;
}

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

nav.nav-bar {
  display: flex;
  align-items: center;
}

nav.nav-bar ul {
  display: flex;
  gap: 3rem;
}

nav.nav-bar a {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  position: relative;
  padding-bottom: 5px;
}

nav.nav-bar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.4s ease;
}

nav.nav-bar a:hover,
nav.nav-bar a.active {
  opacity: 1;
}

nav.nav-bar a:hover::after,
nav.nav-bar a.active::after {
  width: 100%;
}

select#Lang {
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  margin-left: 3rem;
  outline: none;
  opacity: 0.8;
  transition: all 0.4s ease;
}

select#Lang option {
  background: var(--text-primary);
  color: #fff;
}

div.hamburguer {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Content */
.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
  padding: 0 5vw;
  max-width: 1000px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  color: #fff;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 2.5rem;
  color: #fff;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 0.4s ease;
}

.hero-btn:hover {
  border-color: var(--accent);
  background-color: var(--accent);
  color: #fff;
}

@media (max-width: 900px) {
  nav.nav-bar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

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

  nav.nav-bar ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  nav.nav-bar a {
    font-size: 1.2rem;
  }

  select#Lang {
    margin-left: 0;
    margin-top: 3rem;
    font-size: 1.1rem;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  div.hamburguer {
    display: block;
    z-index: 1001;
    position: relative;
  }

  .desaparece {
    opacity: 0;
    pointer-events: none;
  }
}

/* --- Lodge Ethos Section --- */
.lodge-ethos {
  padding: var(--spacing-xxl) 5vw;
  background-color: var(--bg-primary);
  position: relative;
}

.ethos-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 8fr 5fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.ethos-media-wrapper {
  position: relative;
  overflow: hidden;
}

.ethos-media img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ethos-media:hover img {
  transform: scale(1.03);
  /* Subtle luxury zoom */
}

/* Elegant Section Titles */
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.title-sub {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.ethos-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.ethos-item {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* Extremely subtle border */
  transition: all 0.4s ease;
}

.ethos-item:hover {
  border-bottom-color: var(--accent);
  transform: translateX(10px);
  /* Subtle shift */
}

.ethos-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.ethos-text {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .ethos-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .ethos-media img {
    height: 60vh;
  }
}

/* --- Rooms & Suites Section --- */
.rooms-suites {
  padding: var(--spacing-xxl) 5vw;
  background-color: #fff;
  /* Crisp white for the rooms section */
}

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

.suites-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-md);
  align-items: start;
}

/* Base Card CSS */
.suite-card {
  background: var(--bg-primary);
  border: 1px solid #eaeaea;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
}

.suite-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
}

.suite-card--large {
  grid-column: span 8;
  flex-direction: row;
  /* Horizontal layout for the large card */
}

.suite-media {
  overflow: hidden;
  position: relative;
}

.suite-card--large .suite-media {
  width: 60%;
  height: 500px;
}

.suite-card:not(.suite-card--large) .suite-media {
  width: 100%;
  height: 300px;
}

.suite-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

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

.suite-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.suite-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1rem;
  align-self: flex-start;
}

.suite-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

.detail-label {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.detail-val {
  font-weight: 500;
}

.detail-val small {
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* Amenities Aside - Perfectly Balanced Symmetrical Layout */
.suites-amenities {
  grid-column: span 12;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md) 0;
  border-top: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.amenities-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.5rem;
}

.amenities-list-elegant {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 2rem;
  column-gap: 4rem;
  width: 100%;
}

.amenity-item-elegant {
  display: flex;
  align-items: center;
  padding-bottom: 0.5rem;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
  /* Prepare for hover */
}

.amenity-item-elegant:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-3px);
}

.amenity-item-elegant i {
  color: var(--accent);
  font-size: 1.8rem;
  margin-right: 1rem;
  opacity: 0.8;
  transition: transform 0.4s ease;
}

.amenity-item-elegant:hover i {
  transform: scale(1.1);
  opacity: 1;
}

.amenity-item-elegant span {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  opacity: 0.85;
}

/* Notes on a dedicated line at the bottom */
.amenities-notes {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 4rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 2rem;
}

.amenities-notes p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.amenities-notes p::before {
  content: '\f05a';
  /* Optional: solid info icon if you have FontAwesome/LineAwesome mapped */
  font-family: 'Line Awesome Free';
  font-weight: 900;
  margin-right: 8px;
  color: var(--accent);
}

.note-highlight {
  color: var(--text-primary) !important;
  font-weight: 400;
}

@media (max-width: 1024px) {

  .suite-card,
  .suite-card--large {
    grid-column: span 12;
    flex-direction: column;
  }

  .suite-card--large .suite-media {
    width: 100%;
    height: 400px;
  }

  .suites-amenities {
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .amenities-list-elegant {
    gap: 1.5rem 2rem;
  }

  .amenities-notes {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4rem);
    line-height: 1.2;
  }

  .ethos-container {
    padding: 0;
  }

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

  .ethos-item {
    justify-content: flex-start;
  }

  .ethos-media img {
    height: 50vh;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-title {
    font-size: 2.5rem;
  }

  .footer-contact li {
    justify-content: flex-start;
  }

  .footer-form-wrapper {
    width: 100%;
  }

  .ghost-btn {
    width: 100%;
  }

  .amenity-item-elegant {
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- Gallery Masonry --- */
.gallery-section {
  padding: var(--spacing-xl) 5vw;
  background-color: var(--bg-primary);
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  background: var(--text-primary);
}

.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  opacity: 0.9;
}

.masonry-item:hover img {
  transform: scale(1.08);
  opacity: 1;
}

.masonry-item--wide {
  grid-column: span 2;
}

.masonry-item--tall {
  grid-row: span 2;
}

@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 150px;
  }

  .masonry-item--wide,
  .masonry-item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Hide extra gallery items on mobile by default */
  .gallery-extra {
    display: none;
  }

  .gallery-extra.visible {
    display: block;
  }
}

/* Show More Button — only visible on mobile */
.gallery-show-more-wrapper {
  display: none;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .gallery-show-more-wrapper {
    display: flex;
  }
}

.gallery-show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-show-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

.gallery-show-more-btn i {
  font-size: 1rem;
  transition: transform 0.4s ease;
}

.gallery-show-more-btn.expanded i {
  transform: rotate(180deg);
}

/* --- Footer & Form --- */
.site-footer {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--spacing-xxl) 5vw var(--spacing-md) 5vw;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
  /* Prevent overflow from children */
}

.footer-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

.footer-contact i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-right: 1rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: #fff;
}

/* Ghost Form */
.footer-form-wrapper {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.input-group {
  margin-bottom: 2rem;
}

.ghost-input,
.ghost-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.4s ease;
  resize: vertical;
}

.ghost-input:focus,
.ghost-textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.ghost-input::placeholder,
.ghost-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 1rem 3rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: all 0.4s ease;
  margin-top: 1rem;
}

.ghost-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}