/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Open+Sans:wght@400;600&display=swap');

/* Font Families */
.font-serif {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 1px; /* Increased letter spacing for sophistication */
}
.font-sans {
  font-family: 'Open Sans', sans-serif;
}

/* Accent Color */
.text-accent {
  color: #a18f72; /* Gold-ish tone */
}

/* Base Styling */
body {
  background-color: #fdfdfd; /* Clean light background */
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Prevent horizontal scroll on Safari */
  width: 100%;
  max-width: 100vw;
  padding-top: 85px; /* Adjust this value based on your navbar height */
}

/* Override Bootstrap bg-light for consistency */
.bg-light {
  background-color: #fdfdfd !important;
}

/* Custom Navbar Styling */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid rgba(204, 204, 204, 0.3);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.3rem 1rem;
}

.navbar-logo {
  transition: height 0.3s ease;
  height: 80px;
  width: auto;
}

.scrolled .navbar-logo {
  height: 60px;
}

.custom-navbar-brand {
  color: #333;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar .nav-link {
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  padding: 1rem 0.75rem;
}

.navbar .nav-link:hover {
  color: #a18f72;
  text-decoration: none; /* Remove underline on hover */
}

/* Universal navigation active state */
.navbar .navbar-nav .nav-item .nav-link.active,
.navbar-nav .nav-item .nav-link.active,
.navbar .nav-item .nav-link.active,
.navbar-collapse .navbar-nav .nav-item .nav-link.active,
a.nav-link.active {
  color: #a18f72 !important;
  font-weight: 600 !important;
  position: relative !important;
  text-decoration: none !important;
  background-color: rgba(161, 143, 114, 0.1) !important;
  border-radius: 4px !important;
}

/* Mobile-specific active nav link enforcement */
@media (max-width: 767.98px) {
  .navbar .nav-item .nav-link.active,
  .navbar-nav .nav-item .nav-link.active,
  .navbar-collapse .navbar-nav .nav-item .nav-link.active,
  .navbar-collapse.show .navbar-nav .nav-item .nav-link.active,
  .navbar-collapse.collapsing .navbar-nav .nav-item .nav-link.active {
    color: #a18f72 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    background-color: rgba(161, 143, 114, 0.1) !important;
    border-radius: 4px !important;
    padding-left: 1rem !important;
    margin: 0.25rem 0 !important;
  }
}

/* Custom Footer Styling */
.custom-footer {
  background: linear-gradient(135deg, #3c3c3c, #2b2b2b); /* Dark gradient */
  color: #ddd;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}
.footer-heading {
  color: #c9b59a; /* Subtle gold-ish tone */
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}
.footer-link:hover {
  color: #c9b59a;
}
.footer-divider {
  margin: 0.5rem auto;
  width: 50%;
  border-top: 1px solid #666;
}
.footer-copy {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #aaa;
}

/* Carousel Styling */
.carousel-item {
  height: 100vh;
  position: relative;
}
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Subtle gradient overlay for enhanced text legibility */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Button Overrides */
.btn-primary {
  background-color: #a18f72;
  border-color: #a18f72;
  border-radius: 4px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #8f7d63;
  border-color: #8f7d63;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Reservations max width */
.max-width-600 {
  max-width: 600px;
}

/* Section Separation */
main > *:not(:last-child) {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Video Hero Section Styling */
.video-hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
  margin: 0;
  padding: 0;
  z-index: 0; /* Ensure proper stacking context */
  background-color: transparent;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#hero-video { /* Targeting the HTML5 video player */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  z-index: 1; 
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Optional: slight dimming for text legibility */
  z-index: 10; /* Above the video, for text or play buttons */
  pointer-events: none; /* Allow clicks to pass through if no interactive elements */
}

/* Award Badge Styling */
.award-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  background-color: #fdfdfd;
  border-bottom: 1px solid rgba(204, 204, 204, 0.3);
  position: relative;
}

.award-badge-container a {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

.award-badge-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, rgba(161, 143, 114, 0), rgba(161, 143, 114, 0.5), rgba(161, 143, 114, 0));
}

.award-badge {
  height: 150px;
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.award-badge:hover {
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .award-badge-container {
    padding: 30px 0;
  }
  
  .award-badge {
    height: 100px;
  }
}

/* Aspect ratio adjustments for #hero-video */
@media (max-aspect-ratio: 16/9) {
  #hero-video {
    /* These rules might be aggressive if video is 'contain'. Evaluate if needed. */
    /* width: 300vw !important; */ 
    /* height: 150vh !important; */
    /* transform: translate(-50%, -50%); */
  }
}

/* Mobile menu active page highlight fix */
.navbar-collapse .navbar-nav .nav-item .nav-link.active,
.show .navbar-nav .nav-item .nav-link.active,
.collapsing .navbar-nav .nav-item .nav-link.active,
.navbar-toggler[aria-expanded="true"] ~ .navbar-collapse .nav-link.active {
  color: #a18f72 !important;
  font-weight: 600 !important;
  background-color: rgba(161, 143, 114, 0.1) !important; /* Subtle background for better visibility */
  border-radius: 4px !important;
  text-decoration: none !important;
}

/* Make the active state more visible on mobile */
@media (max-width: 767.98px) {
  .navbar-collapse .navbar-nav .nav-item .nav-link.active {
    padding-left: 1rem !important;
    margin: 0.25rem 0 !important;
  }
}

/* Mobile-optimized video styling for HTML5 video */
@media (max-width: 767.98px) {
  .video-hero-section {
    height: 60vh; 
    max-height: 500px; /* Example max height */
    min-height: 300px; /* Example min height */
    width: 100vw !important; 
    max-width: 100% !important;
    left: 0 !important;
    overflow: hidden !important; /* Critical to prevent scrollbars */
  }
  
  .video-container {
    height: 100% !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #hero-video {
    object-fit: contain; /* Ensures full video is visible on mobile */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Safari-specific fixes */
@supports (-webkit-touch-callout: none) {
  body, html {
    position: relative;
    width: 100%;
    overflow-x: hidden;
  }
  
  #hero-video { /* Styles for Safari */
    /* width: 100vw !important; */ /* May need adjustment depending on contain behavior */
    /* max-width: 100vw !important; */
    /* left: 50% !important; */
  }
}

/* Gallery Page Styles */
.gallery-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-img:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Gallery nav pills */
#gallery-tabs {
  margin-bottom: 2.5rem;
}

#gallery-tabs .nav-link {
  color: #333;
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#gallery-tabs .nav-link:hover {
  background-color: rgba(161, 143, 114, 0.1);
}

#gallery-tabs .nav-link.active {
  background-color: #a18f72;
  color: white;
  box-shadow: 0 2px 8px rgba(161, 143, 114, 0.4);
}

/* Lightbox customization */
.lb-data .lb-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #fff;
}

.lb-data .lb-details {
  padding: 10px 15px;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 0.6;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
  opacity: 1;
}

/* Gallery section headers */
.gallery-section-title {
  color: #a18f72;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}

/* Hero Section Styles (if not already added) */
.full-width-hero {
  margin-top: 0;
  position: relative;
  width: 100%;
  height: 60vh; /* Adjust height as needed */
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
  display: flex;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Adjust main content padding for pages with hero */
.full-width-hero + main {
  padding-top: 3rem;
}

/* Make hero responsive on mobile */
@media (max-width: 767px) {
  .full-width-hero {
    height: 40vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Video Placeholder Styling */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.play-button {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.play-button i {
  color: #a18f72;
  font-size: 36px;
  margin-left: 8px; /* Offset for play icon */
}

.play-button-overlay:hover .play-button {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767.98px) {
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button i {
    font-size: 24px;
    margin-left: 6px;
  }
}

/* Manual Play Button Styles (moved from index.html) */
.manual-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.manual-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.manual-play-btn svg {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}