/* ============================================================
   AMSTERDAM DESKTOP HEADER - REFERENCE SCREENSHOT LAYOUT
   Desktop only. Mobile header remains managed by global.css.
============================================================ */

@media (min-width: 992px) {
  .site-header.premium-header {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #232029 !important;
    border-top: 2px solid #ef3e74 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  /* Top row: brand / banner / controls */
  .site-header.premium-header .premium-header-reference {
    width: 100% !important;
    max-width: none !important;
    min-height: 148px !important;
    margin: 0 !important;
    padding: 18px 16px 18px 34px !important;
    display: grid !important;
    grid-template-columns: minmax(350px, 420px) minmax(430px, 630px) minmax(560px, 1fr) !important;
    gap: 26px !important;
    align-items: center !important;
    background: #232029 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-reference .header-logo {
    width: auto !important;
    min-width: 0 !important;
    max-width: 420px !important;
    height: 108px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo-link {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo {
    width: 310px !important;
    max-width: 100% !important;
    max-height: 104px !important;
    height: auto !important;
    margin: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center !important;
  }

  /* Large ad placement mirrors reference header */
  .site-header.premium-header .premium-header-reference .header-ad {
    width: 100% !important;
    max-width: 630px !important;
    height: 106px !important;
    min-height: 106px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex: none !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    background: #17151d !important;
    box-shadow: none !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad a,
  .site-header.premium-header .premium-header-reference .header-ad img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border: 0 !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad img {
    object-fit: fill !important;
    object-position: center !important;
  }

  .site-header.premium-header .premium-header-actions {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    flex: 1 1 350px !important;
    width: auto !important;
    max-width: 350px !important;
    min-width: 250px !important;
    margin: 0 !important;
  }

  .site-header.premium-header .premium-header-actions .header-search form {
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
    position: relative !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"] {
    width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 22px !important;
    box-sizing: border-box !important;
    border: 1px solid #84354d !important;
    border-radius: 32px !important;
    outline: 0 !important;
    background: #17171f !important;
    color: #d9e4f6 !important;
    -webkit-text-fill-color: #d9e4f6 !important;
    box-shadow: none !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 60px !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"]::placeholder {
    color: #c6d3e8 !important;
    opacity: 1 !important;
  }

  .site-header.premium-header .premium-header-actions .header-search button {
    display: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    width: auto !important;
    min-width: 90px !important;
    height: 52px !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 1px solid #35384f !important;
    border-radius: 4px !important;
    background: #111827 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-register {
    min-width: 177px !important;
    border-color: #f33f5f !important;
    background: #f33f5f !important;
    color: #09090b !important;
    -webkit-text-fill-color: #09090b !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-contact {
    min-width: 112px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth:hover {
    border-color: #ef3e74 !important;
    background: #171d2d !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-register:hover {
    border-color: #ff5a78 !important;
    background: #ff5a78 !important;
    color: #09090b !important;
    -webkit-text-fill-color: #09090b !important;
  }

  /* Separate full-width navigation band */
  .site-header.premium-header .premium-header-nav-row {
    width: 100% !important;
    height: 79px !important;
    min-height: 79px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    background: #0f1828 !important;
    border-top: 2px solid rgba(235, 238, 244, .72) !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-nav-row .header-nav {
    width: 100% !important;
    max-width: 1220px !important;
    height: 77px !important;
    min-height: 77px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu,
  .site-header.premium-header .premium-header-nav-row .wx-primary-menu {
    width: auto !important;
    max-width: 100% !important;
    height: 77px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: visible !important;
    background: transparent !important;
    list-style: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    height: 77px !important;
    min-height: 77px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transform: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a::before,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a::after {
    content: none !important;
    display: none !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a:hover,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li.current-menu-item > a,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li.current_page_item > a {
    border: 0 !important;
    background: transparent !important;
    color: #f6c33d !important;
    -webkit-text-fill-color: #f6c33d !important;
    transform: none !important;
  }

  /* Hide the old desktop language switcher if a plugin injects it. */
  .site-header.premium-header .premium-header-reference .nav-lang-switch {
    display: none !important;
  }
}

/* Large laptop tuning */
@media (min-width: 992px) and (max-width: 1690px) {
  .site-header.premium-header .premium-header-reference {
    grid-template-columns: minmax(300px, 360px) minmax(390px, 540px) minmax(520px, 1fr) !important;
    gap: 18px !important;
    padding-left: 24px !important;
    padding-right: 14px !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo {
    width: 285px !important;
  }

  .site-header.premium-header .premium-header-actions {
    gap: 9px !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    max-width: 320px !important;
    min-width: 220px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth {
    gap: 7px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    min-width: 80px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-register {
    min-width: 148px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-contact {
    min-width: 96px !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    padding: 0 13px !important;
    font-size: 16px !important;
  }
}

/* Smaller desktop: preserve actions first, then hide banner */
@media (min-width: 992px) and (max-width: 1260px) {
  .site-header.premium-header .premium-header-reference {
    grid-template-columns: 285px minmax(0, 1fr) !important;
    min-height: 126px !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad {
    display: none !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    max-width: 360px !important;
  }

  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    padding: 0 9px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 991px) {
  .site-header.premium-header .premium-header-reference,
  .site-header.premium-header .premium-header-nav-row {
    display: none !important;
  }
}

/* ============================================================
   AMSTERDAM HEADER ALIGNMENT V2 - 2026-08-31
   Compact desktop top row: aligned logo, banner, search and actions.
============================================================ */
@media (min-width: 992px) {
  .site-header.premium-header .premium-header-reference {
    min-height: 116px !important;
    padding: 11px 22px 11px 28px !important;
    grid-template-columns: minmax(290px, 340px) minmax(430px, 520px) minmax(560px, 1fr) !important;
    gap: 22px !important;
    align-items: center !important;
  }

  .site-header.premium-header .premium-header-reference .header-logo {
    height: 92px !important;
    max-width: 340px !important;
    align-self: center !important;
    justify-self: start !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo-link {
    height: 92px !important;
    align-items: center !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo {
    width: 300px !important;
    max-height: 90px !important;
    object-position: left center !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad {
    width: 100% !important;
    max-width: 520px !important;
    height: 92px !important;
    min-height: 92px !important;
    align-self: center !important;
    justify-self: center !important;
    border-radius: 13px !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .site-header.premium-header .premium-header-actions {
    min-height: 92px !important;
    align-self: center !important;
    justify-self: stretch !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    flex: 1 1 300px !important;
    max-width: 330px !important;
    min-width: 235px !important;
    align-self: center !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"] {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
    padding: 0 20px !important;
    font-size: 18px !important;
    border-radius: 28px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth {
    height: 52px !important;
    min-height: 52px !important;
    align-items: stretch !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    height: 52px !important;
    min-height: 52px !important;
    align-self: stretch !important;
  }

  .site-header.premium-header .premium-header-nav-row {
    height: 66px !important;
    min-height: 66px !important;
  }

  .site-header.premium-header .premium-header-nav-row .header-nav,
  .site-header.premium-header .premium-header-nav-row .nav-menu,
  .site-header.premium-header .premium-header-nav-row .wx-primary-menu,
  .site-header.premium-header .premium-header-nav-row .nav-menu > li > a {
    height: 64px !important;
    min-height: 64px !important;
  }
}

@media (min-width: 992px) and (max-width: 1690px) {
  .site-header.premium-header .premium-header-reference {
    min-height: 108px !important;
    padding: 9px 16px 9px 22px !important;
    grid-template-columns: minmax(270px, 315px) minmax(390px, 465px) minmax(500px, 1fr) !important;
    gap: 16px !important;
  }

  .site-header.premium-header .premium-header-reference .header-logo,
  .site-header.premium-header .premium-header-reference .site-logo-link {
    height: 86px !important;
  }

  .site-header.premium-header .premium-header-reference .site-logo {
    width: 275px !important;
    max-height: 84px !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad {
    max-width: 465px !important;
    height: 82px !important;
    min-height: 82px !important;
  }

  .site-header.premium-header .premium-header-actions {
    min-height: 86px !important;
    gap: 8px !important;
  }

  .site-header.premium-header .premium-header-actions .header-search {
    max-width: 285px !important;
    min-width: 205px !important;
  }

  .site-header.premium-header .premium-header-actions .header-search input[type="search"] {
    height: 50px !important;
    min-height: 50px !important;
    line-height: 50px !important;
    font-size: 16px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth,
  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    height: 50px !important;
    min-height: 50px !important;
  }

  .site-header.premium-header .premium-header-actions .header-auth .btn-auth {
    padding: 0 12px !important;
  }
}

@media (min-width: 992px) and (max-width: 1260px) {
  .site-header.premium-header .premium-header-reference {
    min-height: 104px !important;
    grid-template-columns: 275px minmax(0, 1fr) !important;
  }

  .site-header.premium-header .premium-header-reference .header-ad {
    display: none !important;
  }
}
