/* Modern Polylang language switcher */
.fishing-lang {
  position: relative;
  z-index: 80;
  font-family: inherit;
}

.fishing-lang summary {
  list-style: none;
}

.fishing-lang summary::-webkit-details-marker {
  display: none;
}

.fishing-lang__trigger {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: .35rem .65rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.fishing-lang__trigger:hover,
.fishing-lang[open] .fishing-lang__trigger {
  border-color: hsl(var(--primary) / .28);
  background: hsl(var(--muted));
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.fishing-lang__globe,
.fishing-lang__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
}

.fishing-lang__code {
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
}

.fishing-lang__name {
  display: none;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1;
  color: hsl(var(--muted-foreground));
}

.fishing-lang__chevron {
  transition: transform .18s ease;
}

.fishing-lang[open] .fishing-lang__chevron {
  transform: rotate(180deg);
}

.fishing-lang__menu {
  position: absolute;
  top: calc(100% + .55rem);
  right: 0;
  min-width: 11.5rem;
  padding: .45rem;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  background: hsl(var(--background));
  box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
}

.fishing-lang__option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border-radius: .75rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.fishing-lang__option:hover,
.fishing-lang__option.is-active {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}

.fishing-lang__option-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.65rem;
  border-radius: 999px;
  background: hsl(var(--primary) / .08);
  color: hsl(var(--primary));
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.fishing-lang__option-name {
  font-size: .9rem;
  font-weight: 700;
}

.fishing-lang--mobile {
  margin-bottom: 1rem;
}

.fishing-lang--mobile .fishing-lang__trigger {
  width: 100%;
  min-height: 3rem;
  justify-content: space-between;
  padding: .65rem .85rem;
  border-radius: 1rem;
  background: hsl(var(--muted));
}

.fishing-lang--mobile .fishing-lang__name {
  display: inline-flex;
  margin-right: auto;
}

.fishing-lang--mobile .fishing-lang__menu {
  position: static;
  min-width: 0;
  margin-top: .5rem;
  box-shadow: none;
  background: hsl(var(--card));
}

@media (min-width: 1180px) {
  .fishing-lang--desktop .fishing-lang__name {
    display: inline-flex;
  }
}

@media (max-width: 1023px) {
  .fishing-lang--desktop {
    display: none;
  }
}
