/**
 * Professional marketplace header — utility strip + main bar (Vitara tokens).
 */

@media (min-width: 960px) {
  :root {
    --header-h: 99px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

/* —— Top utility strip (Booking.com pattern) —— */
.header-utility {
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted, #f8fafc);
  font-size: 0.75rem;
}
.header-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 1rem;
}
.header-utility__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(22rem, 55vw);
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.header-utility__location:hover {
  color: var(--primary);
}
.header-utility__location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-pin-svg {
  flex-shrink: 0;
  color: var(--primary);
}
.header-utility__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.header-utility__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.header-utility__links a:hover {
  color: var(--primary);
  text-decoration: none;
}
.header-utility__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* —— Main bar —— */
.header-main__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 64px;
  min-width: 0;
}
.header-main__nav {
  flex: 1 1 auto;
  min-width: 0;
}
.header-main__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}
.header-main__cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Nav links — text style, underline active (not pill boxes) */
.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.15rem;
}
.nav-link,
.nav-desktop a.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.nav-link:hover,
.nav-desktop a.nav-link:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav-link.is-active,
.nav-desktop a.nav-link.is-active {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 0 var(--primary);
  border-radius: 0;
  background: transparent;
}
.nav-link--quiet {
  color: var(--text-muted);
  font-weight: 600;
}
.nav-link--sos {
  color: var(--accent-dark, #e69500);
}
.nav-link--sos.is-active {
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 0 var(--accent);
}

.nav-more { position: relative; }
.nav-more__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  z-index: 130;
}
.nav-more__menu a {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav-more__menu a:hover {
  background: var(--primary-pale);
  color: var(--primary-deep);
  text-decoration: none;
}

.account-menu { position: relative; }
.account-menu__trigger {
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 11rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  z-index: 130;
}
.account-menu__panel a {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.account-menu__panel a:hover {
  background: var(--primary-pale);
  color: var(--primary-deep);
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
}

@media (max-width: 959px) {
  .hide-mobile { display: none !important; }
  .header-main__inner {
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 58px;
  }
}

/* Scroll compact */
.site-header.is-scrolled .header-utility {
  display: none;
}
.site-header.is-scrolled .header-main__inner {
  min-height: 56px;
}

.brand-logo--header {
  max-height: 40px;
  max-width: min(155px, 42vw);
}

.mobile-nav__geo {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-deep);
}
