/* =========================================================
   Site header
   ========================================================= */

.tt-header {
  position: sticky; top: var(--tt-admin-bar); z-index: 100;
  background: rgba(11, 18, 32, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  -webkit-backdrop-filter: blur(var(--tt-glass-blur)) saturate(170%);
  backdrop-filter: blur(var(--tt-glass-blur)) saturate(170%);
  color: #fff;
  transition: background-color .3s;
}
/* Over a dark hero (body class tt-hero-page) the header is lighter glass until you scroll. */
.tt-hero-page .tt-header { background: rgba(11, 18, 32, .55); }
.tt-header.is-scrolled, .tt-hero-page .tt-header.is-scrolled { background: rgba(11, 18, 32, .86); }
.tt-header.is-menu-open, .tt-hero-page .tt-header.is-menu-open { background: rgba(11, 18, 32, .97); }
/* Pages whose first section is a dark hero can pull it up under the glass header. */
.tt-under-header { margin-top: calc(var(--tt-header-h) * -1); padding-top: var(--tt-header-h); }
.tt-section.tt-under-header { padding-top: calc(var(--tt-header-h) + clamp(72px, 8vw, 112px)); }

.tt-header__bar { display: flex; align-items: center; gap: 28px; height: var(--tt-header-h); }
.tt-logo { display: flex; align-items: center; flex: none; color: #fff; }
.tt-logo img { display: block; height: 36px; width: auto; }
.tt-logo__text { font-family: var(--tt-font-display); font-size: 1.3rem; font-weight: 600; }

/* Primary navigation */
.tt-nav { display: flex; align-items: center; }
.tt-nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tt-nav__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--tt-on-dark); font-size: .875rem; font-weight: 500; white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.tt-site .tt-nav__link:hover, .tt-site .tt-nav__link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.tt-nav__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tt-c, #F4F1EA); flex: none; }

.tt-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tt-only-compact { display: none !important; }

/* Cities dropdown */
.tt-cities { position: relative; }
.tt-cities__toggle svg { transition: transform .3s var(--tt-ease); }
.tt-cities__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.tt-cities__panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: 320px; padding: 10px; border-radius: 22px;
  animation: tt-drop .35s var(--tt-ease) both;
}
.tt-cities__panel[hidden] { display: none; }
.tt-cities__panel ul { margin: 0; padding: 0; list-style: none; }
.tt-cities__link {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px;
  border-radius: 14px; color: #fff; font-size: .9375rem; font-weight: 500;
  transition: background-color .2s;
}
.tt-site .tt-cities__link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tt-cities__link .tt-nav__dot { width: 9px; height: 9px; }
.tt-cities__all { margin-top: 6px; padding: 12px 14px 6px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.tt-site .tt-cities__all a { color: var(--tt-on-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Mobile menu */
.tt-mnav { padding: 8px 0 24px; border-top: 1px solid rgba(255, 255, 255, .08); animation: tt-drop .45s var(--tt-ease) both; }
.tt-mnav[hidden] { display: none; }
.tt-mnav ul { margin: 0; padding: 0; list-style: none; }
.tt-mnav .tt-nav__link {
  display: flex; min-height: 52px; padding: 0 4px; border-radius: 0; font-size: 1.0625rem; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.tt-mnav .tt-nav__dot { width: 10px; height: 10px; }
.tt-mnav__label { display: block; margin: 20px 4px 4px; font-size: var(--tt-fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-on-dark); }

/* Search overlay */
.tt-search {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center;
  padding: calc(110px + var(--tt-admin-bar)) 20px 20px;
  background: rgba(6, 10, 20, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: tt-fade .3s ease both;
}
.tt-search[hidden] { display: none; }
.tt-search__panel { width: min(720px, 100%); border-radius: var(--tt-radius-l); padding: 28px; animation: tt-drop .45s var(--tt-ease) both; }
.tt-search__label { display: block; margin-bottom: 12px; font-size: var(--tt-fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tt-on-dark); }
.tt-search__field { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.tt-search__field input[type="search"] {
  flex: 1; min-width: 0; padding: 0; background: transparent; border: 0; outline: 0; box-shadow: none; color: #fff;
  font: 500 1.5rem/1.3 var(--tt-font-display);
}
.tt-search__field input::placeholder { color: rgba(255, 255, 255, .55); }
.tt-search__field input::-webkit-search-cancel-button { display: none; }
.tt-search__hint { margin: 18px 0 6px; font-size: .8125rem; color: var(--tt-on-dark); }
.tt-search__results { margin: 0; padding: 0; list-style: none; }
.tt-search__results a {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-radius: 12px; color: #fff; font-size: 1rem;
  transition: background-color .2s;
}
.tt-site .tt-search__results a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tt-search__all { margin-top: 10px; }
.tt-search__empty { margin: 12px 6px; color: var(--tt-on-dark); }

/* Responsive */
@media (max-width: 1180px) {
  .tt-nav--primary { display: none; }
  .tt-only-compact { display: inline-grid !important; }
  .tt-hide-compact { display: none !important; }
}
@media (max-width: 767px) {
  .tt-header__bar { gap: 12px; }
  .tt-logo img { height: 28px; }
  .tt-search__panel { padding: 20px; }
  .tt-search__field input[type="search"] { font-size: 1.25rem; }
}
