:root {
  --primary: #073763;
  --primary-light: #3d85c6;
  --secondary: #d4af37; /* Premium Gold */
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
  --bg-color: #f6f6f6;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 700;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-container img {
  height: 60px;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}
/* Mobile responsive header */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--glass-border);
  }
  nav ul.active {
    max-height: 500px;
  }
  nav ul li {
    margin: 1rem 0;
    text-align: center;
  }
}


/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../images/733c2d48ca594a3fb49fdb74db868a70.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding-top: 80px;
}

@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  color: var(--text-light);
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-style: italic;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  background-color: var(--glass-bg);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Section Containers */
.section {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
}

/* About Section */
.about {
  text-align: center;
  max-width: 900px;
}

.about p {
  font-size: 1.2rem;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

/* Cabins Grid */
.cabins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.cabin-card {
  background: var(--text-light);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.cabin-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Cabin Image Gallery (Horizontal Scroll Snap) */
.gallery-wrapper {
  position: relative;
  width: 100%;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

.cabin-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: none; /* Firefox */
  height: 350px; /* Increased height for better view */
}

.cabin-gallery::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.gallery-item {
  scroll-snap-align: center;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.cabin-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cabin-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cabin-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.4;
  flex-grow: 1;
}

.cabin-features {
  display: flex;
  gap: 15px;
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.cabin-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1.5rem;
}

.btn-book {
  width: 100%;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
}

/* Map Container */
.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* MODAL REDESIGN */
.reserva-modal {
  /* It comes with full screen overlay in reserva.css, we just override the content */
}

.reserva-content {
  background: var(--bg-color) !important;
  border-radius: 15px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
  border: none !important;
  max-width: 700px !important; /* Larger modal for calendar */
  width: 95% !important;
  overflow: hidden;
}

.reserva-header {
  background: var(--primary) !important;
  color: var(--text-light) !important;
  padding: 25px 20px !important;
  text-align: center;
  border-bottom: 3px solid var(--secondary);
}

.reserva-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem !important;
  margin: 0;
  color: var(--text-light);
}

.reserva-body {
  padding: 30px !important;
}

.reserva-body h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

/* Selected cabin display inside modal */
#selectedCabinNameDisplay {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-light);
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Flatpickr customization */
.flatpickr-calendar {
  margin: 0 auto !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
  border: 1px solid #ddd !important;
  border-radius: 10px !important;
  padding: 10px !important;
}

.btn-next, .btn-prev, .btn-finish {
  background-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 5px !important;
  font-weight: bold !important;
  font-family: var(--font-body) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 12px 25px !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.btn-next:hover, .btn-finish:hover {
  background-color: var(--primary-light) !important;
}

.btn-prev {
  background-color: #999 !important;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  text-align: center;
  padding: 3rem 1rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
  object-fit: contain;
}

@keyframes zoomIn {
  from {transform:scale(0.8); opacity:0} 
  to {transform:scale(1); opacity:1}
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 100000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  nav ul.active {
    max-height: 400px;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  
  .menu-toggle {
    display: block;
  }
}
