/* Header Styles */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  z-index: 1000;
  padding: 0 40px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.site-header.scrolled::after {
  background: rgba(0, 0, 0, 0.06);
}

.site-header.scrolled {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.navbar {
  padding: 24px 0;
}

.nav-pill-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 6px 7px 50px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  margin-top: 54px;
  transition: all 0.4s ease;
}

.site-header.scrolled .nav-pill-wrapper {
  background: #faf7f2;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar-left, .navbar-center, .navbar-right {
  flex: 1;
}

.navbar-left {
  display: flex;
  justify-content: flex-start;
}

.navbar-center {
  display: flex;
  justify-content: center;
}

.navbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-pill--left {
  padding: 0;
}

.nav-pill--right {
  padding: 0;
}

.navbar-right .navbar-info {
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .navbar-right .navbar-info {
  border-right-color: rgba(0, 0, 0, 0.1);
}

.navbar-menu {
  display: flex;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 400;
  color: white;
  transition: color 0.4s ease;
  font-family: 'Fraunces', serif;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.site-logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-logo {
  max-height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}


.site-logo-light {
  display: block !important;
}

.site-logo-dark {
  display: none !important;
}

/* Scrolled state */
.site-header.scrolled .site-logo-light {
  display: none !important;
}

.site-header.scrolled .site-logo-dark {
  display: block !important;
}

.site-header.scrolled .navbar-nav a {
  color: var(--dark-color);
}

.site-header.scrolled .navbar-nav a:hover {
  color: rgba(26, 26, 26, 0.65) !important;
}

.site-header.scrolled .navbar-nav .sub-menu a:hover {
  color: #1a1a1a !important;
}

.site-header.scrolled .navbar-info,
.site-header.scrolled .phone-link {
  color: var(--dark-color) !important;
}

.site-header.scrolled .action-btn {
  color: var(--dark-color);
}

.navbar-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav li {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.navbar-nav > li > a {
  padding: 10px 15px;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: 'Figtree', sans-serif;
  color: white;
  position: relative;
  transition: opacity 0.3s ease, color 0.3s ease;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  display: inline-block;
}

.navbar-nav > li > a:hover {
  opacity: 0.8;
}

.navbar-nav .menu-item-has-children > a::after {
  content: '▾';
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

.navbar-nav .menu-item-has-children {
  /* No changes needed here, just ensuring it has position relative */
}

.navbar-nav .dropdown-panel {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  width: 580px;
  padding: 20px 30px;
  margin-top: 10px;
  z-index: 1001;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
  transition: all 0.3s ease;
  transform: translateY(10px);
  pointer-events: none;
}

/* Bridge the gap to maintain hover state */
.navbar-nav .dropdown-panel::before {
  content: '';
  position: absolute;
  top: -30px; /* Cover margin-top + extra area */
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
}

.navbar-nav .menu-item-has-children:hover > .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar-nav .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-nav .sub-menu li {
  display: block;
  margin: 0;
}

.navbar-nav .sub-menu a {
  color: #1a1a1a;
  font-size: 0.95rem;
  padding: 14px 0 2px;
  display: inline-block;
  font-family: 'Figtree', sans-serif;
  position: relative;
  opacity: 1;
}

.navbar-nav .sub-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #8b7355;
  transition: width 0.5s ease;
}

.navbar-nav .sub-menu a:hover::after {
  width: 100%;
}

/* Dropdown Image */

.dropdown-submenu-image-link {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
}

.dropdown-submenu-image {
  border-radius: 12px;
  overflow: hidden;
  height: 280px;
  position: relative;
  display: block;
}

.dropdown-submenu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.dropdown-submenu-image-link:hover .dropdown-submenu-image img {
  transform: scale(1.05);
}

.dropdown-cta-button {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 8px 20px;
  background-color: #8b7355;
  color: white;
  text-decoration: none;
  border-radius: 26px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Figtree', sans-serif;
  z-index: 10;
  white-space: nowrap;
  cursor: pointer;
}

.dropdown-submenu-image-link:hover .dropdown-cta-button {
  background-color: #6d5a47;
  transform: translateX(-50%) translateY(-2px);
}

.navbar-info {
  color: white;
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.phone-icon {
  width: 14px;
  height: 14px;
  transition: color 0.3s ease;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.action-btn:hover {
  opacity: 0.7;
}

.btn-book {
  background-color: white !important;
  color: var(--dark-color) !important;
  padding: 12px 28px !important;
  border-radius: 9999px !important;
  font-size: 0.85rem !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  font-family: 'Fraunces', serif;
  text-transform: none !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease !important;
  margin-left: 10px;
}

.btn-book:hover {
  transform: translateY(-1px);
}

.btn-book .arrow {
  margin-left: 8px;
  font-size: 1.2rem;
  line-height: 1;
}

.site-header.scrolled .btn-book {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(139, 115, 85, 0.25) !important;
}

.site-header.scrolled .btn-book:hover {
  background-color: #a57c48 !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow: hidden;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid #f0f0f0;
  min-height: 80px;
}

.mobile-menu-logo .site-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-close {
  background: #717171;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
  background: #1a1a1a;
}

.mobile-menu-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.mobile-menu-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.mobile-menu-pane {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: white;
  position: absolute;
  top: 0;
  left: 0;
}

.mobile-nav-list, .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list > li, .sub-menu > li {
  border-bottom: 1px solid #f0f0f0;
  width: 100%;
}

.mobile-nav-list li a, .sub-menu li a {
  display: block;
  padding: 18px 24px;
  color: #1a1a1a;
  font-family: 'Figtree', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  text-decoration: none;
  flex: 1;
  transition: color 0.3s ease;
}

.mobile-nav-list li a:hover, .sub-menu li a:hover {
  color: #8b7355;
}

.mobile-nav-list li, .sub-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submenu-toggle {
  background: none;
  border: none;
  padding: 18px 24px;
  color: #8b7355;
  cursor: pointer;
  border-left: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.menu-back-item {
  background: #fcfcfc;
  border-bottom: 1px solid #f0f0f0 !important;
}

.menu-back-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border: none;
  background: none;
  color: #1a1a1a;
  font-family: 'Figtree', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

/* Drill down animations */
.mobile-menu-overlay .sub-menu {
  position: fixed;
  top: 81px; /* Match header height */
  left: 0;
  width: 100%;
  height: calc(100% - 81px);
  background: white;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
}

.mobile-menu-overlay li.open-submenu > .sub-menu {
  transform: translateX(0);
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  padding: 0;
  transition: transform 0.3s ease;
  z-index: 20;
  position: relative;
}

.navbar-toggle span {
  width: 25px;
  height: 2px;
  background-color: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0 10px;
  }

  .nav-pill-wrapper {
    margin-top: 10px;
    padding: 4px 6px 4px 12px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    min-height: 50px;
  }

  .navbar-left, .navbar-info, .navbar-actions, .navbar-menu {
    display: none;
  }

  .navbar-brand {
    font-size: 1.1rem;
    flex: 1;
    display: flex;
    justify-content: flex-start;
  }

  .navbar-toggle {
    display: flex;
    margin-right: 5px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
  }

  .navbar-toggle span {
    width: 18px;
    height: 1.5px;
    background-color: white !important;
  }

  .navbar-toggle span:nth-child(2) {
    width: 12px;
    align-self: flex-end;
  }

  .site-header.scrolled .navbar-toggle {
    background: rgba(0, 0, 0, 0.05);
  }

  .site-header.scrolled .navbar-toggle span {
    background-color: black !important;
  }
}
