/* RoomView header + mobile nav — BlueGlass (use with new header HTML) */
:root {
  --primary: #2d84fe;
  --dark: #0b1220;
  --border: #e5e7eb;
}

/* HEADER — BlueGlass */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #2d84fe;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}

.header-inner .cta-button {
  justify-self: end;
}

.header .brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header .brand a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.header .brand img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.header .brand-tagline {
  display: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-self: start;
  margin-left: 48px;
}

.nav-wrap .nav-link {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, border-bottom-color 0.2s;
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.nav-wrap .nav-link:hover {
  opacity: 1;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.nav-wrap .nav-link.active {
  opacity: 1;
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 700;
}

.nav-wrap .nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-wrap .nav-dropdown-toggle:hover {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.nav-wrap .nav-dropdown-toggle.active {
  opacity: 1;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  font-weight: 700;
}

.nav-wrap .nav-dropdown-toggle svg {
  width: 14px;
  height: 14px;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: none;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  z-index: 120;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 60px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-dropdown-link:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.header .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #2d84fe;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header .cta-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.header .cta-button svg {
  width: 18px;
  height: 18px;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #ffffff;
  color: #2d84fe;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hamburger:hover {
  background: #f8fafc;
  color: #2d84fe;
}

.hamburger svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #f7f8fa;
  padding: 60px 24px 32px;
  z-index: 99999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--dark);
  font-size: 22px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:hover {
  background: #e2e8f0;
}

.mobile-nav a:not(.mobile-cta) {
  display: block;
  padding: 12px 16px 12px 20px;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  font-size: 18px;
  border-left: 4px solid transparent;
  margin-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:not(.mobile-cta):hover {
  background: rgba(0, 0, 0, 0.06);
  color: #000;
}

.mobile-nav a:not(.mobile-cta).active {
  background: #e2e8f0;
  color: #2d84fe;
  font-weight: 600;
  border-left-color: #2d84fe;
}

.mobile-nav .mobile-cta {
  margin-top: 12px;
  display: block;
  text-align: center;
  padding: 14px 16px;
  background: #2d84fe;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
}

.mobile-nav .mobile-cta:hover {
  background: #2563eb;
  color: #fff !important;
}

.trust-strip {
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 5px;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

@media (max-width: 900px) {
  .nav-wrap {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header .cta-button {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .trust-strip {
    display: none;
  }

  .mobile-nav .mobile-cta {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 52px;
    padding: 12px 16px;
  }

  .header .brand img {
    height: 48px;
  }

  .hamburger {
    width: 42px;
    height: 42px;
  }

  .hamburger svg {
    width: 22px;
    height: 22px;
  }
}
