/* Language switcher (i18n-v001.js): a round glass button beside the toolbar capsule, opening a short list. */
#langSwitch{position:relative;display:flex}
.toolbar #langButton{display:grid;place-items:center;width:46px;height:46px;padding:0;border-radius:50%;
 background:var(--ui-bg);border:1px solid var(--ui-line);color:var(--ui-text);box-shadow:var(--ui-shadow);
 -webkit-backdrop-filter:var(--ui-blur);backdrop-filter:var(--ui-blur);font:600 11px/1 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:.08em;
 transition:background-color .15s ease,color .15s ease}
.toolbar #langButton[aria-expanded=true]{background:#fff;color:var(--ui-ink)}
#langMenu{position:absolute;top:calc(100% + 8px);right:0;z-index:6;min-width:160px;margin:0;padding:4px;list-style:none;border-radius:18px;
 background:var(--ui-bg-solid);border:1px solid var(--ui-line);box-shadow:var(--ui-shadow);-webkit-backdrop-filter:var(--ui-blur);backdrop-filter:var(--ui-blur)}
#langMenu[hidden]{display:none}
.toolbar #langMenu button{display:block;width:100%;padding:10px 14px;border:0;border-radius:14px;background:transparent;color:var(--ui-text);
 box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;font:500 13px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif;text-align:start}
.toolbar #langMenu button[aria-current=true]{background:#fff;color:var(--ui-ink)}
@media(hover:hover){.toolbar #langButton:not([aria-expanded=true]):hover,.toolbar #langMenu button:not([aria-current=true]):hover{background:rgba(255,255,255,.14);color:#fff;outline:0}}
@media(max-width:700px){.toolbar #langButton{width:40px;height:40px}}
[dir=rtl] #langMenu{right:auto;left:0}

/* Hebrew: the page mirrors. The header and dock follow the text direction by themselves; the controls and panels
   pinned to one side swap sides here (standalone page only: the embeds keep the layout of their host). */
html[dir=rtl] body:not(.home-embed):not(.page-embed) .toolbar{right:auto;left:24px}
html[dir=rtl] body:not(.home-embed):not(.page-embed) #floorNav{right:auto;left:24px}
html[dir=rtl] body:not(.home-embed):not(.page-embed) #floorUnits{right:auto;left:88px}
html[dir=rtl] body:not(.home-embed):not(.page-embed) #unitCard{right:auto;left:90px}
html[dir=rtl] body:not(.home-embed):not(.page-embed) #nearby{left:auto;right:24px}
html[dir=rtl] body:not(.home-embed):not(.page-embed) .status{left:auto;right:24px}
@media(max-width:700px){
 html[dir=rtl] body:not(.home-embed):not(.page-embed) .toolbar{left:12px}
 html[dir=rtl] body:not(.home-embed):not(.page-embed) #floorNav{left:10px}
 html[dir=rtl] body:not(.home-embed):not(.page-embed) #floorUnits{left:64px;right:12px}
 html[dir=rtl] body:not(.home-embed):not(.page-embed) #unitCard{left:16px;right:16px}
 html[dir=rtl] body:not(.home-embed):not(.page-embed) #nearby{right:12px}
 html[dir=rtl] body:not(.home-embed):not(.page-embed) .status{left:12px;right:12px}
}

/* The host page of an embed picks the language (?lang=), so the embeds carry no switcher. */
body.home-embed #langSwitch,body.page-embed #langSwitch{display:none}
