/* Header Styles */

/* Common header styles */
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0; /* Reduced padding */
  position: relative;
}

/* Logo styles */
.logo-outer, .logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 6;
}

/* Navigation styles */
.nav-outer-pc, .right-col-pc {
  margin-left: auto;
  display: block; /* Visible on desktop */
}

.nav-outer, .right-col {
  display: none; /* Hidden on desktop */
}

/* Book Now button styling */
.mobile-book-now {
  display: none; /* Hidden on desktop */
}

.desktop-book-now {
  display: block; /* Visible on desktop */
}

/* Make the theme button smaller on desktop too */
.desktop-book-now .theme-btn {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* Reduce spacing in navigation items */
.navigation li {
  margin: 0 8px; /* Reduced margin */
  line-height: 1.2; /* Reduced line height */
}

.navigation li a {
  padding: 5px 0; /* Reduced padding */
}

/* Mobile styles for Book Now buttons */
@media only screen and (max-width: 991px) {
  /* Completely remove the desktop book now button from the DOM */
  li.desktop-book-now {
    display: none !important;
  }
}

/* Mobile styles */
@media only screen and (max-width: 991px) {
  /* Show mobile navigation and hide desktop navigation */
  .nav-outer, .right-col {
    display: block;
  }
  
  .nav-outer-pc, .right-col-pc {
    display: none;
  }
  
  .header-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 5px 0; /* Reduced padding */
  }
  
  /* Logo positioning for mobile - left column */
  .logo-outer, .logo {
    grid-column: 1;
    z-index: 5;
  }
  
  /* Book Now button - center column */
  .mobile-book-now {
    display: flex;
    justify-content: center;
    grid-column: 2;
    z-index: 5;
    margin-top: 5px;
  }
  
  /* Make sure mobile Book Now button has proper spacing */
  .mobile-book-now .theme-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 6px 12px; /* Smaller padding */
    font-size: 0.9rem; /* Slightly smaller text */
  }
  
  /* Hide desktop Book Now button in navigation */
  .desktop-book-now {
    display: none;
  }
  
  /* Nav toggler positioning - right column */
  .nav-toggler {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    z-index: 5;
    margin-right: 10%;
  }
  
  /* Full-width navigation when expanded */
  .navbar-collapse.collapse {
    display: none;
  }

  .navbar-collapse.collapse.show {
    display: block;
    width: 100%;
    background: white;
    padding: 15px;
    border-radius: 0 0 5px 5px;
    margin-top: 15px;
    margin-bottom: 55px;
    grid-column: 1 / span 3; /* Make dropdown span all three columns */
  }
  
  .navbar-collapse {
    grid-row: 2;
  }
  
  /* Adjust navigation items in mobile dropdown */
  .navbar-collapse.collapse.show .navigation {
    display: block;
    width: 100%;
  }

  .navbar-collapse.collapse.show .navigation li {
    display: block;
    margin: 10px 0;
    text-align: center;
  }
}

/* Button styles */
.navbar-toggle {
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  display: none; /* Hide on desktop */
}

.icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Make sure navigation doesn't appear until toggled in mobile */
@media only screen and (max-width: 991px) {
  .nav-outer, .right-col {
    position: static;
  }
  
  .navbar-collapse {
    width: 100%;
  }
}

@media only screen and (max-width: 991px) {
  .navbar-toggle {
    display: block; /* Show on mobile */
  }
}

/* Medium device specific adjustments (481px - 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  .main-header {
    margin-bottom: 68px;
    padding-bottom: 30px;
  }
}

/* Sticky header specific styles */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.sticky-header.sticky-fixed {
  transform: translateY(0);
}

/* Show desktop navigation in sticky header */
.sticky-header .right-col {
  display: block;
}

/* Hide the desktop navigation in sticky header on mobile */
@media only screen and (max-width: 991px) {
  .sticky-header .right-col {
    display: none;
  }
}

/* Apply grid layout to sticky header in mobile view */
@media only screen and (max-width: 991px) {
  .sticky-header .header-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
  }
  
  .sticky-header .logo {
    grid-column: 1;
  }
  
  .sticky-header .mobile-book-now {
    grid-column: 2;
    display: flex;
    justify-content: center;
  }
  
  .sticky-header .nav-toggler {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
  }
}
