/* App-only language switcher placement (tr/en/ru; the ZIP has no language control). No ZIP header item may move because of
   it: ≥576px the list item leaves the template's navbar-right flow, so the ul keeps its template box and "Hesabım" / "Ücretsiz
   İlan Ver" keep their x, and it sits right after that box with the spacing it had in the flow (the last item's 15px margin +
   .75rem, app.css); ≤339px the compact row beside the hamburger would squeeze the logo (320px: 146.75 → 142.53px wide), so
   the drawer's language row is the only one there. */
@media(min-width:576px){.header .navbar-right{position:relative}.header .navbar-right>.sc-lang-item{position:absolute;top:0;bottom:0;left:100%;display:flex;align-items:center;margin:0}}
/* The home header is full width with only navbar-right, flush right (1440px: its box ends 52px from the viewport edge), so
   there the switcher takes the free space on the left of "Hesabım" instead, 15px away like the template's item spacing. */
@media(min-width:576px){.home .header .navbar-right>.sc-lang-item{left:auto;right:100%;padding-left:0;padding-right:15px}}
@media(max-width:339px){.header .sc-lang-compact{display:none}}

.header .sc-lang-menu > .sc-lang {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 172px;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid #eee1d8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(64, 39, 24, .16);
}

.header .sc-lang-menu > .sc-lang li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.header .sc-lang-menu > .sc-lang a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #45413e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.header .sc-lang-menu > .sc-lang a:hover,
.header .sc-lang-menu > .sc-lang a:focus-visible,
.header .sc-lang-menu > .sc-lang a.active {
  background: #f4f6f8;
  color: #b84d14;
}

.header .sc-lang-menu > .sc-lang a.active {
  font-weight: 700;
}

/* Footer language selector keeps the same language links and return paths. */
.sc-footer-language{margin-top:54px;width:100%;max-width:220px}
.sc-footer-language .sc-lang-menu{position:relative}
.sc-footer-language summary{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:52px;padding:8px 36px 8px 12px;border:1px solid #dfe4e8;border-radius:7px;background:#fff;cursor:pointer;list-style:none;transition:border-color .15s,box-shadow .15s}
.sc-footer-language summary::-webkit-details-marker{display:none}
.sc-footer-language summary:hover,.sc-footer-language summary:focus-visible,.sc-footer-language details[open] summary{border-color:#e5854c;box-shadow:0 3px 12px rgba(36,48,58,.08)}
.sc-footer-language-label{color:#84909a;font-size:10px;line-height:1.2}
.sc-footer-language-current{color:#354451;font-size:13px;font-weight:600;line-height:1.4}
.sc-footer-language summary i{position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#77848d}
.sc-footer-language .sc-lang{position:absolute;z-index:30;bottom:calc(100% + 6px);left:0;right:0;display:flex;flex-direction:column;gap:2px;margin:0;padding:6px;list-style:none;border:1px solid #e1e5e9;border-radius:9px;background:#fff;box-shadow:0 10px 28px rgba(31,45,55,.15)}
.sc-footer-language .sc-lang li{display:block;margin:0;padding:0}
.sc-footer-language .sc-lang a{display:block;padding:9px 11px;border-radius:7px;color:#45413e;font-size:13px;text-decoration:none}
.sc-footer-language .sc-lang a:hover,.sc-footer-language .sc-lang a:focus-visible,.sc-footer-language .sc-lang a.active{background:#f4f6f8;color:#b84d14}
.sc-footer-language .sc-lang a.active{font-weight:700}
.footer .sc-footer-language .sc-lang-menu>.sc-lang{top:calc(100% + 6px);bottom:auto;left:0;right:0;min-width:0;margin:0;padding:6px;border-radius:9px}
.footer .sc-footer-language .sc-lang>li{margin:0;padding:0;list-style:none}
.footer .sc-footer-language .sc-lang>li::before,.footer .sc-footer-language .sc-lang>li::after{content:none}
.footer .sc-footer-language .sc-lang>li>a{display:block;margin:0;padding:9px 11px;border-radius:7px;line-height:1.4;color:#45413e;text-decoration:none}
.footer .sc-footer-language .sc-lang>li>a:hover,.footer .sc-footer-language .sc-lang>li>a:focus-visible,.footer .sc-footer-language .sc-lang>li>a.active{background:#f4f6f8;color:#b84d14}
.footer .sc-footer-language .sc-lang-menu[open]>summary .fa-angle-down{transform:translateY(-50%) rotate(180deg)}
.sc-footer-language-current{display:flex;align-items:center;gap:8px}.sc-footer-language .sc-language-flag{display:inline-block;flex:0 0 24px;width:24px;height:16px;object-fit:cover;border:1px solid rgba(38,52,65,.12);border-radius:2px;vertical-align:middle}.footer .sc-footer-language .sc-lang>li>a{display:flex;align-items:center;gap:9px}
