/* Hide legacy footer when server-rendered unified footer is present. */
body > footer:not(#am-site-footer), footer.am61-footer:not(#am-site-footer){display:none!important}
/* AntalyaMate global footer – original responsive layout */
#am-site-footer.amf-footer{box-sizing:border-box;position:relative;clear:both;margin:0!important;padding:0!important;background:#f7f7f7!important;color:#222!important;border-top:1px solid #dedede!important;font:400 14px/1.5 Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif!important;box-shadow:none!important;min-height:0!important;display:block!important}
#am-site-footer .amf-shell{max-width:1200px;margin:auto;padding:40px 28px 20px}
#am-site-footer .amf-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;padding-bottom:44px}
#am-site-footer .amf-columns section{margin:0!important;padding:0!important;background:transparent!important;border:0!important;min-height:0}
#am-site-footer h2{font:700 15px/1.35 Inter,system-ui,sans-serif!important;color:#222!important;margin:0 0 18px!important;padding:0!important;text-transform:none!important;letter-spacing:0!important}
#am-site-footer ul{padding:0!important;margin:0!important;list-style:none!important;display:grid;gap:12px}
#am-site-footer li{margin:0!important;padding:0!important;list-style:none!important}
#am-site-footer a{color:#333!important;font-weight:400!important;line-height:1.55!important;text-decoration:none!important;font-size:14px!important}
#am-site-footer a:hover{text-decoration:underline!important;color:#111!important}
#am-site-footer .amf-bottom{border-top:1px solid #dedede;min-height:65px;padding-top:19px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
#am-site-footer .amf-legal,#am-site-footer .amf-settings{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
#am-site-footer .amf-legal{font-size:13px}
#am-site-footer .amf-legal a{font-size:13px!important}
#am-site-footer .amf-language{display:inline-flex;align-items:center;gap:7px;background:transparent!important;color:#222!important;border:0!important;border-radius:10px;padding:8px 10px;font:700 13px/1.4 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
#am-site-footer .amf-language:hover,#am-site-footer .amf-language:focus-visible{background:#eaeaea!important;outline:2px solid transparent}
#am-site-footer .amf-currency{font-weight:700;font-size:13px;white-space:nowrap}
#am-site-footer .amf-tagline{margin:13px 0 0!important;font-size:12px!important;color:#6b6b6b!important}
body.amf-open{overflow:hidden!important}
#am-lang-modal[hidden]{display:none!important}
#am-lang-modal{position:fixed!important;inset:0!important;z-index:2147482000!important;display:flex!important;align-items:center;justify-content:center;color:#222!important;font:400 14px/1.5 Inter,system-ui,sans-serif}
#am-lang-modal .amf-shade{position:absolute;inset:0;background:rgba(0,0,0,.55)}
#am-lang-modal .amf-dialog{position:relative;display:flex;flex-direction:column;background:#fff!important;border:0!important;border-radius:20px;box-shadow:0 18px 70px #0004;width:min(860px,calc(100% - 30px));max-height:min(86vh,850px);overflow:hidden;color:#222!important}
#am-lang-modal .amf-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 26px;border-bottom:1px solid #ececec;background:#fff!important}
#am-lang-modal h2{margin:0!important;padding:0!important;font-size:19px!important;font-weight:750!important;color:#222!important;letter-spacing:0!important}
#am-lang-modal h3{font-size:17px!important;font-weight:750!important;color:#222!important;margin:0 0 17px!important}
#am-lang-modal .amf-close{width:36px;height:36px;flex-shrink:0;cursor:pointer;border-radius:50%;border:0;background:#f1f1f1;color:#222;font-size:24px;line-height:1}
#am-lang-modal .amf-dialog-body{padding:24px 26px 32px;overflow:auto}
#am-lang-modal .amf-filter{border:1px solid #c9c9c9!important;border-radius:10px!important;background:#fff!important;color:#222!important;width:min(450px,100%);height:44px;padding:0 14px!important;font-size:14px!important;margin:0 0 20px!important;outline-offset:2px}
#am-lang-modal .amf-language-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#am-lang-modal .amf-language-grid button{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left;gap:3px;min-height:75px;padding:12px 18px;border:1px solid transparent!important;border-radius:10px!important;background:#fff!important;color:#222!important;cursor:pointer;overflow:hidden}
#am-lang-modal .amf-language-grid button:hover,#am-lang-modal .amf-language-grid button:focus-visible{border-color:#aaa!important;background:#fafafa!important}
#am-lang-modal .amf-language-grid button.is-selected{border-color:#222!important;background:#f7f7f7!important}
#am-lang-modal .amf-language-grid button[hidden]{display:none!important}
#am-lang-modal .amf-language-grid b{font-size:14px;font-weight:700;color:#222}
#am-lang-modal .amf-language-grid small{font-size:12px;color:#666}
#am-lang-modal .amf-check{position:absolute;right:14px;top:13px;font-size:17px;font-weight:800}
@media(max-width:720px){#am-site-footer .amf-shell{padding:32px 22px 24px}#am-site-footer .amf-columns{grid-template-columns:1fr;gap:0;padding:0}#am-site-footer .amf-columns section{padding:22px 0!important;border-bottom:1px solid #dedede!important}#am-site-footer .amf-columns section:first-child{padding-top:0!important}#am-site-footer .amf-columns section:last-child{border:0!important}#am-site-footer h2{margin-bottom:13px!important}#am-site-footer ul{gap:10px}#am-site-footer .amf-bottom{flex-direction:column;align-items:flex-start;gap:12px}#am-site-footer .amf-legal{gap:12px}#am-lang-modal .amf-dialog{width:100%;height:100%;max-height:100%;border-radius:0}#am-lang-modal .amf-dialog-header{padding:17px 19px}#am-lang-modal .amf-dialog-body{padding:21px 16px}#am-lang-modal .amf-language-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#am-lang-modal .amf-language-grid button{padding:11px 10px}}

#am-site-footer .amf-translation-status{font-size:12px!important;color:#6b4d19!important;margin:12px 0 0!important}

/* v1062 Safari modal safety: keep language controls above system bars */
@media(max-width:760px){
 html body #am-lang-modal.amf-modal{position:fixed!important;inset:0!important;z-index:2147483600!important;overflow:hidden!important;padding:0!important}
 html body #am-lang-modal .amf-dialog{display:flex!important;flex-direction:column!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;border-radius:0!important;overflow:hidden!important}
 html body #am-lang-modal .amf-dialog-body{flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))!important}
 html body #am-lang-modal .amf-dialog-header{flex-shrink:0!important}
 body.amf-open{overflow:hidden!important}
}
