/* Prepínač jazykov – vlajočky vpravo hore */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  z-index: 40;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.lang-switch__btn:hover {
  border-color: rgba(15, 23, 42, 0.28);
}

.lang-switch__flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.lang-switch__caret {
  font-size: 0.7rem;
  opacity: 0.7;
  line-height: 1;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 11.5rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.lang-switch__menu[hidden] {
  display: none !important;
}

.lang-switch__menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.lang-switch__menu button:hover,
.lang-switch__menu button.is-active {
  background: #f1f5f9;
}

.lang-switch__menu img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* Landing (tmavý nav) */
.landing-page .lang-switch__btn {
  background: rgba(15, 26, 24, 0.85);
  color: #f5fbf9;
  border-color: rgba(184, 214, 204, 0.28);
}

.landing-page .lang-switch__menu {
  background: #12201d;
  border-color: rgba(184, 214, 204, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.landing-page .lang-switch__menu button {
  color: #e8f2ef;
}

.landing-page .lang-switch__menu button:hover,
.landing-page .lang-switch__menu button.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-top__actions .lang-switch {
  margin-left: 0.15rem;
}

@media (max-width: 520px) {
  .lang-switch__code {
    display: none;
  }
}
