.locale-switch { position: relative; display: inline-block; font-family: inherit; }
.locale-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #111; border: none;
  padding: 8px 12px; border-radius: 999px; cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.locale-btn:hover { background: rgba(0, 0, 0, 0.05); }
.locale-current-flag { font-size: 24px; line-height: 1; }
.dropdown-arrow { 
  display: flex; align-items: center; 
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.locale-switch.open .dropdown-arrow {
  transform: rotate(180deg);
}
.locale-menu {
  display: none; position: absolute; right: 0; top: 110%;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  min-width: 160px; box-shadow: 0 10px 20px rgba(0,0,0,.08); z-index: 999;
  overflow: hidden;
}
.locale-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; text-decoration: none; font-size: 14px; color: #111;
  transition: background 0.15s ease;
}
.locale-menu a:first-child {
  border-radius: 10px 10px 0 0;
}
.locale-menu a:last-child {
  border-radius: 0 0 10px 10px;
}
.locale-menu a:hover { 
  background: #f3f4f6; 
}
.locale-menu a.active { 
  background: #e5e7eb; 
  font-weight: 600; 
}
.flag { font-size: 20px; }
.label { white-space: nowrap; }
.locale-switch.open .locale-menu { display: block; }
/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}