/* Visual polish: compact header + language dropdown */
.client-screen {
  padding-top: 10px;
}

.client-hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  min-height: 238px;
  padding: clamp(18px, 3vw, 26px);
}

.client-hero::before {
  background:
    linear-gradient(90deg, rgba(3, 43, 66, 0.94) 0%, rgba(3, 43, 66, 0.7) 48%, rgba(3, 43, 66, 0.2) 100%),
    linear-gradient(180deg, rgba(3, 43, 66, 0.08), rgba(3, 43, 66, 0.36));
}

.hero-copy {
  align-self: end;
  display: grid;
  gap: 8px;
  max-width: 720px;
}

.hero-copy p,
.hero-copy span {
  margin: 0;
}

.hero-copy h1 {
  max-width: 760px;
  text-wrap: balance;
}

.access-countdown {
  max-width: 100%;
  justify-self: start;
}

.language-select-panel {
  display: grid;
  gap: 7px;
  margin: 12px 0 10px;
  padding: 13px 14px;
  border: 1px solid rgba(6, 59, 90, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(6, 59, 90, 0.08);
  backdrop-filter: blur(16px);
}

.language-select-panel label {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.language-select-panel > span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.language-select-control {
  position: relative;
}

.language-select-control::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  content: "";
  pointer-events: none;
  transform: translateY(-64%) rotate(45deg);
}

.language-select-control select {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(6, 59, 90, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 250, 0.98));
  color: var(--foreground);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 900;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.language-select-control select:focus {
  border-color: rgba(11, 90, 149, 0.54);
  box-shadow: 0 0 0 4px rgba(11, 90, 149, 0.12);
}

@media (min-width: 760px) {
  .language-select-panel {
    grid-template-columns: 170px minmax(220px, 360px) 1fr;
    align-items: center;
    gap: 14px;
  }

  .language-select-panel > span {
    font-size: 0.88rem;
  }
}

@media (max-width: 520px) {
  .client-screen {
    padding-top: 8px;
  }

  .client-hero {
    gap: 13px;
    min-height: 204px;
    padding: 14px;
    border-radius: 18px;
  }

  .brand-row {
    max-width: 100%;
  }

  .brand-row span {
    max-width: 170px;
    font-size: 0.62rem;
    line-height: 1.12;
  }

  .hero-copy {
    gap: 6px;
  }

  .hero-copy p {
    font-size: 0.68rem;
  }

  .hero-copy h1 {
    max-width: 10.5em;
    font-size: 1.82rem;
    line-height: 1.05;
  }

  .hero-copy span {
    max-width: 20em;
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .access-countdown {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .language-select-panel {
    margin: 10px 0 8px;
    padding: 11px;
    border-radius: 16px;
  }

  .language-select-control select {
    min-height: 48px;
    font-size: 0.96rem;
  }

  .map-panel {
    margin-top: 8px;
  }
}

/* Mobile v2: keep content below the phone status area and prevent map header overlaps. */
@media (max-width: 520px) {
  .screen,
  .client-screen {
    padding-top: max(18px, calc(env(safe-area-inset-top, 0px) + 14px));
  }

  .client-hero {
    min-height: 224px;
    padding: 18px 14px 14px;
    gap: 14px;
    border-radius: 18px;
  }

  .brand-row {
    align-self: start;
    width: min(100%, 300px);
    min-height: 44px;
    padding: 6px 11px;
  }

  .brand-row img {
    flex: 0 0 auto;
    width: 54px;
    height: 28px;
  }

  .brand-row span {
    max-width: none;
    color: rgba(6, 59, 90, 0.82);
    font-size: 0.61rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    align-self: center;
    gap: 7px;
  }

  .hero-copy p {
    font-size: 0.68rem;
  }

  .hero-copy h1 {
    max-width: 9.8em;
    font-size: clamp(1.72rem, 9vw, 2.12rem);
    line-height: 1.04;
  }

  .hero-copy span {
    max-width: 22em;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .access-countdown {
    padding: 8px 11px;
    font-size: 0.7rem;
    line-height: 1.15;
  }

  .language-select-panel {
    margin-top: 10px;
  }

  .map-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .map-header .eyebrow {
    margin-bottom: 3px;
  }

  .map-header h2 {
    max-width: 100%;
    font-size: 1.36rem;
    line-height: 1.1;
  }

  .map-click-hint {
    justify-self: start;
    max-width: 100%;
    padding: 7px 10px;
    font-size: 0.72rem;
    line-height: 1.18;
    white-space: normal;
  }

  .mobile-scroll-cue.map-scroll-cue {
    display: inline-flex;
    margin: 9px 0 4px;
    padding: 7px 10px;
    max-width: calc(100vw - 42px);
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .client-map-panel {
    padding: 12px 10px 10px;
  }

  .main-cruise-map {
    margin-top: 6px;
  }
}

@media (max-width: 520px) {
  .map-click-hint {
    display: none;
  }
}
