.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter:  blur(8px);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  /*box-shadow: var(--shadow-header);*/
}

.embedded .app-header {
  display: none !important;
}

.header-content {
  width: min(var(--width-content-lg), var(--width-content-max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

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

.logo-mark {
  height: 38px;
  width: 38px;
}

.logo-text {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: font-size: 20px;
  color: var(--color-header-text);
  letter-spacing: var(--letter-spacing-tight);
  text-transform: uppercase;
}

.primary-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  color: var(--color-header-text);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  padding: 0px 0px;
  font-size: 18px;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-link:hover {
  /*background:  rgba(255, 255, 255, 0.2);*/
  /*text-decoration: underline;*/
  border-bottom: 2px solid;
  border-radius: 0;
  /*color: #295e9b;*/

}


.nav-link.slim {
  padding: 4px 6px;
  font-weight: 600;
}

.user-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  /* box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08); */
}

.account-btn:hover {
  /*background:  rgba(255, 255, 255, 0.2);*/
  /*color: #295e9b;*/
}

.avatar-circle {
  width: 35px;
  height: 35px;
  border-radius: var(--radius-full);
  background:  rgba(120, 250, 231, 0.507);
  color: var(--color-button-label);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-extrabold);
  font-size: 20px;
  letter-spacing: var(--letter-spacing-normal);
}

.account-label { 
  font-size: var(--font-size-sm); 
  color: var(--color-button-label);
}
.chevron { font-size: var(--font-size-lg); color:  rgb(255, 255, 255); }
.app-header .account-wrapper .chevron {
  /* Override bottom-sheet chevron arrow borders in explore view */
  border: none;
  width: auto;
  height: auto;
  display: inline;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--color-surface);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  z-index: var(--z-dropdown);
  padding: var(--space-sm) 0;
}

.account-dropdown.hidden { display: none; }

.account-dropdown-header {
  padding: 10px 14px;
  border-bottom: var(--border-thin) solid var(--color-border);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  font-size: var(--font-size-sm);
}
.account-dropdown-header .user-email {
  color: var(--color-ink);
}

.account-dropdown-item {
  display: block;
  padding: 10px 14px;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: background var(--transition-base), color var(--transition-base);
}

.account-dropdown-item:hover {
  background: var(--color-background-hover);
  color: var(--color-primary);
}

.account-wrapper {
  position: relative;
}

/* Global modal for account/auth/reservations */
.hidden { display: none !important; }

.global-modal {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.global-modal-shell {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  width: min(960px, 96vw);
  height: min(90vh, 820px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.global-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #eef2f7;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.global-modal-close:hover {
  background: #e0e7f1;
}

#globalModalFrame {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}

/* Mode indicator */
/* Push map content below header */
body {
  padding-top: var(--header-height);
}

/* Hamburger Menu Styles */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 280px;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter:  blur(8px);  
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 20px 0;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer .nav-link {
  display: block;
  width: 100%;
  padding: 16px 24px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0;
  transition: background 150ms ease;
}

.nav-drawer .nav-link:hover {
  background: #eef2f7;
}



/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.active {
  display: block;
}

#accountMenuMobile {
  display: none;
}

.nav-drawer-divider {
  height: 1px;
  background: #e3e8ef;
  margin: 10px 24px;
}

@media (max-width: 768px) {
  .header-content {
    flex-wrap: nowrap; /* Prevent wrapping with hamburger */
    gap: 10px;
  }
  
  /* Hide desktop navigation on mobile */
  .primary-nav {
    display: none;
  }
  
  /* Show hamburger button on mobile */
  .hamburger-btn {
    display: flex;
    position: fixed;
    top: 13px;
    right: 20px;
    z-index: 1001; /* Ensures it's above other floating elements */
    /*display: block; /* Make sure it's visible on mobile */
  }
  
  #accountMenuDesktop {
    display: none;
  }

  #accountMenuMobile {
    display: block;
  }

  #accountMenuMobile .account-btn {
    display: flex;
    width: 100%;
    padding: 16px 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    justify-content: space-between;
  }

  #accountMenuMobile .account-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: unset;
  }

  #accountMenuMobile .account-dropdown-item {
    padding-left: 48px;
  }
  
  /* Item 1: Touch Target - Navigation Links (in drawer) */
  .nav-drawer .nav-link {
    padding: 16px 24px;
    min-height: 44px;
  }
  
  /* Item 4: Touch Target - Account Button */
  .account-btn {
    padding: 12px 16px;
    min-height: 44px;
  }
}
