/* =========================================
   Modern Variables & Reset
   ========================================= */
:root {
  --bg-color: #ffffff;
  --surface-color: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #b55d1c;
  --accent-hover: #8c4310;
  --font-main: "Plus Jakarta Sans", sans-serif;
}

/* 1. Locks the invisible boundaries to prevent horizontal scroll */
html,
body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

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

/* 2. Forces ALL images to stay inside their boxes */
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 3. Forces long text (like addresses) to wrap */
p,
h1,
h2,
h3,
h4,
span,
a {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

.section-padding {
  padding: 100px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.subtitle {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
}

/* =========================================
   Fixed Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 20px 0;
  height: 70px;
  display: flex;
  align-items: center;
  transition:
    height 0.3s ease,
    box-shadow 0.3s ease;
}

.navbar.scrolled {
  height: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-img {
  height: 140px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
  transform: translateY(5px);
}

.navbar.scrolled .logo-img {
  height: 45px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}

.navbar.scrolled .logo-text {
  font-size: 1.25rem;
}

/* Navbar Right Side (Links + Phone) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-color);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.phone-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.nav-phone:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 6px 15px rgba(181, 93, 28, 0.2);
  transform: translateY(-2px);
}

.nav-phone:hover .phone-icon {
  color: #ffffff;
}

/* =========================================
   Hero Section
   ========================================= */
/* =========================================
   Hero Section (REVISED - Fixed Stacking)
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  margin-top: 0;
  /* Fallback color if image path is wrong */
  background-color: #000000;
}

/* Container covers entire hero, locked in positioned context */
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Base Layer */
}

/* Image fills container */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay covers image, defined later in HTML so sits on top */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Restores the dark semi-transparent color */
  background: rgba(15, 23, 42, 0.7);
}

/* Content box sitting perfectly on top of all absolute background layers */
.hero-content {
  max-width: 650px;
  color: #ffffff;
  /* Magic fix: absolute positioning puts it firmly in a higher layer */
  position: relative;
  z-index: 10;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.125rem;
  font-weight: 300;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-text {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 4px;
  transition: all 0.2s;
}

.btn-text:hover {
  color: var(--accent-color);
}

/* =========================================
   Gallery Section
   ========================================= */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Tweaked to 280px to fit smaller phones safely */
  gap: 30px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

.carousel-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 3;
  background-color: #e2e8f0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease;
  z-index: 2;
}

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

.prev-btn {
  left: 10px;
}
.next-btn {
  right: 10px;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.item-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-details h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.item-details p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
  margin-top: auto;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

/* =========================================
   Room Prices and Discount Logic
   ========================================= */
.price-tag {
  display: flex;
  align-items: center;
  gap: 8px; /* Adds perfect spacing between old price, new price, and /night */
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #94a3b8; /* A muted grayish-blue so it fades into the background */
  font-size: 1.05rem;
  font-weight: 500;
}

.discounted-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-color); /* Keeps your primary brand color */
}

.price-tag small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* The Floating Discount Badge */
.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10; /* Ensures it sits on top of the images */
  background-color: #ef4444; /* An eye-catching, premium red */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); /* Gives it a slight glowing shadow */
}

.feature-tag {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--surface-color);
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =========================================
   Amenities Section
   ========================================= */
.amenities {
  background-color: var(--surface-color);
}

.amenities-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.amenity-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-color);
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  cursor: default;
}

.amenity-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  border-color: var(--accent-color);
}

.amenity-icon {
  font-size: 1.2rem;
}
.amenity-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* =========================================
   Dining Section & Menu Button
   ========================================= */
.dining-section {
  padding: 60px 20px;
  background-color: #faf9f6; /* A very soft, warm off-white */
  text-align: center;
}

.dining-container {
  max-width: 600px;
  margin: 0 auto;
}

.dining-title {
  font-family: "Georgia", serif; /* Gives that high-end restaurant feel */
  font-size: 2.2rem;
  color: #2d2a26; /* Deep charcoal/espresso */
  margin-bottom: 12px;
}

.dining-subtitle {
  font-size: 1.1rem;
  color: #57534e; /* Warm grey */
  margin-bottom: 32px;
  line-height: 1.6;
}

/* The Premium Menu Button */
.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #2d2a26;
  color: #ffffff;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px; /* A slight rounding looks more elegant than a full pill shape */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 42, 38, 0.15);
}

.btn-menu:hover {
  background-color: #4a4641;
  transform: translateY(-3px); /* Satisfying lift when tapped */
  box-shadow: 0 6px 20px rgba(45, 42, 38, 0.25);
}

.btn-menu .icon {
  font-size: 1.2rem;
}

/* =========================================
   How to Reach (Location Section)
   ========================================= */
.location {
  background-color: var(--bg-color);
}

.header-description {
  max-width: 600px;
  margin: 15px auto 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.location-card {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.location-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.location-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  padding: 15px;
  background-color: var(--surface-color);
  border-radius: 50%;
  color: var(--accent-color);
}

.location-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.location-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.location-card strong {
  color: var(--accent-color);
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
  background-color: var(--surface-color);
  border-radius: 24px;
  margin: 0 5% 5%;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-text h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 450px;
}

.contact-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-primary);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-color);
}

.btn-solid {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
  color: #ffffff;
}

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

/* =========================================
   Premium Footer
   ========================================= */
.footer {
  background-color: var(--text-primary);
  color: #f8fafc;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: var(--accent-color);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links ul {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition:
    color 0.3s,
    padding-left 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 6px;
}

.footer-contact p {
  color: #cbd5e1;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* =========================================
   Animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   MOBILE RESPONSIVENESS (THE FIX)
   ========================================= */
@media (max-width: 768px) {
  /* 1. Locks the Grids to 1 column to prevent horizontal scroll */
  .gallery-grid,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }

  /* 2. Shrinks the massive desktop logo to fit inside a phone screen */
  /* .logo-img {
    height: 40px !important;
    width: auto !important;
    max-width: 140px;
    transform: translateY(0);
  } */
  /* .logo-text {
    font-size: 1.25rem;
  } */

  /* 3. Re-arranges the Navigation to fit the circular button */
  .nav-links {
    display: none;
  }
  .nav-right {
    gap: 15px;
  }
  .phone-text {
    display: none;
  }

  .nav-phone {
    padding: 0;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .phone-icon {
    margin: 0;
  }

  /* 4. Fixes the Contact box spacing */
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .contact-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
  .carousel-btn {
    opacity: 1; /* Forces the arrows to always show */
    background-color: rgba(
      15,
      23,
      42,
      0.7
    ); /* Slightly darker so they stand out */
    width: 32px;
    height: 32px; /* Slightly smaller so they don't block too much of the photo */
  }
  .prev-btn {
    left: 8px;
  }
  .next-btn {
    right: 8px;
  }
}

/* Ultra-small phones (e.g., old iPhones) */
@media (max-width: 400px) {
  /* .logo-text {
    display: none; */
  /* } Hides text so just the logo + phone button fit */
  .nav-container {
    padding: 0 3%;
  }
}
