/* ---------- Base Styles ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

body {
  background-color: #FAFAFA;
  color: #2b2b2b;
}

/* ---------- Navbar Container ---------- */
.nav-header-section {
  padding-top: 40px;
  padding-bottom: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: rgba(250, 250, 250, 0);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  will-change: padding, background-color, box-shadow;
  /* Note: Do NOT use transform here - it breaks position:fixed for sidebar */
}

.nav-header-section.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: rgba(250, 250, 250, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar {
  background: #FAFAFA;
  border: 1px solid #f3d9e2;
  border-radius: 40px;
  padding: 12px;
  margin-bottom: 14px;
  /* margin: 15px auto; */
  /* max-width: 1000px; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.3s ease, margin 0.3s ease, border-radius 0.3s ease, max-width 0.3s ease;
  /* box-shadow: 0 1px 4px rgba(243, 21, 89, 0.1); */
}

.nav-header-section.scrolled .navbar {
  padding: 8px 12px;
  margin-bottom: 0;
  border-radius: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Logo Section ---------- */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  width: 94px;
  transition: width 0.3s ease;
}

.nav-header-section.scrolled .logo img {
  width: 70px;
}

.logo span {
  font-size: 18px;
  font-weight: 500;
  color: #f31559;
}

/* ---------- Desktop Menu ---------- */
.menu {
  position: relative;
  right: -52px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu a {
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 500;
  color: #75213e !important;
  -webkit-tap-highlight-color: transparent;
}

.menu a:link,
.menu a:visited,
.menu a:hover,
.menu a:active,
.menu a:focus {
  color: #75213e !important;
  text-decoration: none !important;
  background: transparent !important;
}

/* Only highlight the active PAGE (current route), not clicked state */
.menu a.active,
.menu a.active:link,
.menu a.active:visited,
.menu a.active:hover,
.menu a.active:active,
.menu a.active:focus {
  font-weight: 600;
  color: #e50050 !important;
  background: transparent !important;
}

/* Remove focus outline/highlight on click */
.navbar .menu a:focus,
.navbar .menu a:active,
.navbar .menu a:focus:active,
.menu a:focus,
.menu a:active,
.menu a:focus:active {
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-color: transparent !important;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none !important;
}

/* Prevent any highlight on the menu container */
.menu:focus,
.menu:active,
.menu:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Only show focus ring for keyboard navigation */
.menu a:focus-visible {
  outline: 2px solid #e50050 !important;
  outline-offset: 2px;
  border-radius: 4px;
}

.plus {
  color: #e50050;
  font-size: 22px;
  font-weight: 400;
  margin: 0 4px;
}

/* ---------- CTA Button ---------- */
.cta-btn {
  text-decoration: none;
  background: #e50050;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 19px 25px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
  display: flex;
  gap: 8px;
  letter-spacing: 0.5px;
}

.nav-header-section.scrolled .cta-btn {
  padding: 14px 20px;
  font-size: 12px;
}

.cta-btn:hover {
  background: #d8144f;
}

.cta-btn:focus {
  outline: none;
}

.cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Mobile Menu Icon ---------- */
.menu-icon {
  display: none;
  background: #f31559;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- Sidebar (Mobile Menu) ---------- */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100vh;
  background: rgba(229, 0, 80, 0.958);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 50px;
  transition: 0.4s ease-in-out;
  z-index: 99;
  padding: 30px;
}

.sidebar.active {
  right: 0;
}

.sidebar a {
  color: white;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar .cta-btn {
  background: white;
  color: #f31559;
  margin-top: 20px;
}

.close-btn {
  display: flex;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  color: #f31559;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 18px;
  cursor: pointer;
}

/* ---------- Header Login Button ---------- */
.login-header-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid #e50050;
  border-radius: 30px;
  padding: 10px 20px;
  color: #e50050;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, font-size 0.3s ease;
  margin-left: 10px;
}

.nav-header-section.scrolled .login-header-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* Ensure consistent styling for link and visited states */
a.login-header-btn,
a.login-header-btn:link,
a.login-header-btn:visited {
  background: transparent;
  color: #e50050;
  text-decoration: none;
}

.login-header-btn:hover,
a.login-header-btn:hover {
  background: #e50050;
  color: white;
}

.login-header-btn:focus,
a.login-header-btn:focus {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

/* Active state: maintain hover appearance to prevent flicker */
.login-header-btn:active,
a.login-header-btn:active,
.login-header-btn:active:hover,
a.login-header-btn:active:hover {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  background: #e50050 !important;
  color: white !important;
  transition: none !important;
}

.login-header-btn:active img,
a.login-header-btn:active img {
  filter: brightness(0) invert(1);
}

.login-header-btn:focus-visible,
a.login-header-btn:focus-visible {
  outline: 2px solid #e50050 !important;
  outline-offset: 2px;
}

.login-header-btn:hover img {
  filter: brightness(0) invert(1);
}

.login-header-btn img {
  transition: filter 0.3s ease;
}

/* ---------- Profile Dropdown ---------- */
.profile-dropdown-container {
  position: relative;
  display: inline-block;
  margin-left: 5px;
}

.profile-icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon-btn img {
  transition: transform 0.2s ease;
}

.profile-icon-btn:hover img {
  transform: scale(1.1);
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border: 1px solid #f3d9e2;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #75213e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #fff6f8;
  color: #e50050;
}

.dropdown-item.logout-item {
  border-top: 1px solid #f3d9e2;
}

.dropdown-item span {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-header-section {
    padding-top: 15px;
  }

  .nav-header-section.scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-header-section.scrolled .navbar {
    padding: 8px 10px;
  }

  .menu,
  .cta-btn {
    display: none;
  }

  .menu-icon {
    display: flex;
  }

  .logo img {
    /* height: 36px; */
    width: 60px;
  }

  .nav-header-section.scrolled .logo img {
    width: 50px;
  }

  .nav-header-section.scrolled .login-header-btn {
    padding: 6px 12px;
  }

  .mobile-sidebar-button {
    position: relative;
    top: 60px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 56px;
    color: #e50050 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    border: none;
    display: flex;
    gap: 7px;
  }

  .search-outer-layout .search-outer-box {
    padding: 25px 25px 1px 25px;
  }

  .search-outer-layout .search-outer-title {
    line-height: 30px;
    font-size: 23px;
  }

  .search-outer-layout .search-outer-subtitle {
    color: rgb(255 255 255);
    width: initial;
    font-size: 18px;
    line-height: 16px;
  }

}

/* ---------- White Label Mode (Service Provider Pages) ---------- */
/* Logo + login button only, no navigation - keeps users focused on booking */
.navbar-white-label {
  justify-content: space-between;
}

.navbar-white-label .logo {
  margin: 0;
}

.navbar-white-label .logo img {
  width: 70px;
}

.white-label-auth {
  display: flex;
  align-items: center;
}

.white-label-auth .login-header-btn {
  margin-left: 0;
}

/* Hide menu toggle on mobile in white-label mode */
body.white-label-mode .menu-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .navbar-white-label .logo img {
    width: 55px;
  }

  .login-header-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .login-header-btn span {
    display: none;
  }

  .login-header-btn img {
    width: 20px !important;
  }
}