/* SPORTPASS GLOBAL: two functional, square-edged controls for the EXISTING header. */
:root {
  --sp-navy: #0A1F44;
  --sp-navy-light: #19365e;
  --sp-slate: #a9c3df;
  --sp-border: rgba(194, 217, 239, .32);
}
.sp-intl-switcher { display: inline-flex; align-items: center; gap: 6px; direction: inherit; }
.sp-intl-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--sp-border); border-radius: 4px;
  color: #fff; background: var(--sp-navy); font-weight: 600; font-size: 13px; line-height: 1.2; font-family: inherit;
  cursor: pointer; white-space: nowrap; letter-spacing: .02em;
}
.sp-intl-trigger:hover, .sp-intl-trigger:focus-visible,
.sp-intl-tab:focus-visible, .sp-intl-option:focus-visible {
  outline: 2px solid #bcd6ef; outline-offset: 2px;
}
.sp-intl-trigger:hover { background: var(--sp-navy-light); }
.sp-intl-trigger-currency { min-width: 61px; }
.sp-intl-globe { font: 700 21px/1 sans-serif; opacity: .92; }
.sp-intl-backdrop { position: fixed; inset: 0; z-index: 2147483644; background: rgba(1,8,19,.25); }
.sp-intl-panel {
  position: fixed; z-index: 2147483645; top: var(--sp-panel-top, 72px); right: max(16px,env(safe-area-inset-right));
  width: min(500px, calc(100vw - 32px)); max-height: min(70vh, 630px); overflow: auto;
  background: #0b2348; border: 1px solid var(--sp-border); color: #fff;
  border-radius: 5px; box-shadow: 0 20px 56px rgba(0,0,0,.42);
  padding: 14px; overscroll-behavior: contain;
}
.sp-intl-panel[dir="rtl"] { right: auto; left: max(16px,env(safe-area-inset-left)); }
.sp-intl-heading { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 6px; margin-bottom: 12px; }
.sp-intl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sp-intl-tab, .sp-intl-close {
  background: transparent; color: #d9e9f6; border: 1px solid var(--sp-border);
  padding: 10px 9px; min-height: 40px; border-radius: 3px; font-weight: 600; font-size: 13px; line-height: 1.2; font-family: inherit;
  cursor: pointer;
}
.sp-intl-tab[aria-selected="true"] { background: #234871; border-color: #8bb4d9; color: white; }
.sp-intl-close { font-size: 23px; line-height: 14px; }
.sp-intl-close:focus-visible { outline: 2px solid #bcd6ef; outline-offset: 2px; }
.sp-intl-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.sp-intl-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 10px; width: 100%; text-align: start;
  border: 1px solid rgba(149,184,216,.26); border-radius: 3px;
  color: #f6faff; background: #132e53; font-weight: 500; font-size: 13px; line-height: 1.3; font-family: inherit;
  text-decoration: none; cursor: pointer;
}
.sp-intl-option:hover, .sp-intl-option.is-selected,
.sp-intl-option[aria-current="page"] { background: #264d78; border-color: #8bb4d9; }
.sp-intl-option.is-unavailable { opacity: .42; cursor: not-allowed; }
.sp-intl-option-code { color: #b6cee2; font: 600 11px/1.1 ui-sans-serif,system-ui; }
.sp-intl-option-name { min-width: 0; overflow-wrap: break-word; }
.sp-intl-note { color: #c2d8e7; font-weight: 400; font-size: 12px; line-height: 1.5; font-family: inherit; padding: 10px 3px 0; margin: 0; }
.sp-intl-backdrop[hidden], .sp-intl-panel[hidden], .sp-intl-note[hidden] { display: none !important; }
@media (max-width: 640px) {
  .sp-intl-switcher { gap: 4px; }
  .sp-intl-trigger { padding: 0 10px; min-height: 42px; }
  .sp-intl-backdrop { background: rgba(0,0,0,.58); }
  .sp-intl-panel, .sp-intl-panel[dir="rtl"] {
    top: auto !important; bottom: 0; left: 0; right: 0;
    width: 100%; box-sizing: border-box; max-height: 85dvh; overflow: auto;
    border-bottom: none; border-radius: 10px 10px 0 0;
    padding: 16px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));
  }
  .sp-intl-options { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .sp-intl-trigger, .sp-intl-option { transition: background-color .14s ease, border-color .14s ease; }
}

/* Integration with the existing shared header; no alternative navigation. */
[data-sportpass-intl-mount] { flex: 0 0 auto; }
.header .nav { gap: 18px; }
.header .logo { flex-basis: 200px; }
.header .brand-logo { width: 200px; }
.header .nav nav { gap: 18px; }
.sp-intl-trigger, .sp-intl-tab, .sp-intl-option, .sp-intl-close { min-height: 44px; border-radius: 0; }
.sp-intl-panel { box-sizing: border-box; color: #fff; }
.sp-intl-fallback { position: relative; color: white; }
.sp-intl-fallback[hidden] { display: none !important; }
.sp-intl-fallback summary { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid var(--sp-border); cursor: pointer; font-size: 13px; list-style: none; }
.sp-intl-fallback summary::-webkit-details-marker { display: none; }
.sp-intl-fallback-options { position: absolute; inset-inline-end: 0; top: 100%; width: 220px; max-height: 65vh; overflow: auto; background: #0A1F44; border: 1px solid var(--sp-border); padding: 8px; z-index: 10; }
.sp-intl-fallback-options a { display: block; padding: 12px; color: #fff; min-height: 44px; }
.event-description { max-width: 80ch; }
@media (min-width: 1101px) { .header .nav #navigation { margin-inline-start: auto; } }
@media (max-width: 1100px) {
  .header .nav { position: static; height: auto; min-height: 86px; gap: 12px; padding-block: 12px; }
  .header .menu-toggle { display: block; min-height: 44px; margin-left: 0; margin-inline-start: auto; padding: 10px 12px; }
  .header .nav #navigation { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; align-items: stretch; padding: 16px 20px; background: #0A1F44; }
  .header .nav #navigation.open { display: flex; }
  .header .nav #navigation a { padding: 10px; min-height: 44px; font-size: 15px; }
  .header .nav .small { display: none; }
}
@media (max-width: 640px) {
  .header .nav { flex-wrap: wrap; row-gap: 6px; padding-block: 8px; }
  .header .logo { flex-basis: 164px; }
  .header .brand-logo { width: 164px; }
  [data-sportpass-intl-mount] { display: flex; flex-basis: 100%; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--sp-border); }
  .sp-intl-panel, .sp-intl-panel[dir="rtl"] { border-radius: 0; max-height: 85vh; max-height: 85dvh; }
}
