#algarve-app-chrome[hidden],#algarve-app-chrome [hidden]{display:none!important}
#algarve-app-chrome{font:500 14px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#163e48}
#algarve-app-chrome *{box-sizing:border-box}
#algarve-app-nav{position:fixed;inset:auto 0 0;z-index:1100;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;background:#fff;border-top:1px solid #dfe9e8;padding:6px max(5px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px));box-shadow:0 -4px 18px #163e4812;min-height:60px}
#algarve-app-nav a,#algarve-app-nav button{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:46px;padding:2px 1px;margin:0;border:0;border-radius:8px;background:transparent;color:#55737a;text-decoration:none;text-transform:none;text-align:center;font:650 clamp(9px,2.4vw,11px)/1.15 system-ui,sans-serif;cursor:pointer;box-shadow:none}
#algarve-app-nav a span,#algarve-app-nav button span{max-width:100%;overflow-wrap:anywhere;hyphens:auto}
#algarve-app-nav a[aria-current=page]{color:#d85221;background:#fff3ec}
#algarve-app-nav svg{width:23px;height:23px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
#algarve-app-nav .aas-back{position:absolute;bottom:calc(100% + 8px);left:max(10px,env(safe-area-inset-left,0px));width:42px;height:42px;min-height:42px;border:1px solid #dfe9e8;background:#fff;box-shadow:0 2px 10px #163e481a;border-radius:50%;color:#163e48}
html.algarve-app-shell-on{scroll-padding-bottom:var(--aas-height,80px)}
body.algarve-app-nav-enabled:not(.algarve-app-home){padding-bottom:var(--aas-height,80px)!important}
body.algarve-app-home .aa-main{padding-bottom:calc(var(--aas-height,80px) + 22px)}
/* Only the actual site footer, never a card footer or modal. JS marks matching site nodes. */
body.algarve-installed-app [data-algarve-app-hide-footer]{display:none!important}
#algarve-app-language{position:fixed;inset:auto 0 calc(var(--aas-height,80px) + 10px);margin:0 auto;width:min(440px,calc(100% - 24px));max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #dfe9e8;border-radius:18px;background:#fff;padding:16px;color:#163e48;box-shadow:0 16px 50px #102e4633;font:500 14px/1.4 system-ui,sans-serif}
#algarve-app-language::backdrop{background:#163e4866}
#algarve-app-language .aas-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:12px}
#algarve-app-language h2{margin:0;font:700 20px/1.2 system-ui,sans-serif;color:#163e48}
#algarve-app-language button{appearance:none;cursor:pointer;border:1px solid #dfe9e8;border-radius:9px;padding:9px;margin:0;color:#163e48;background:#fff;min-height:44px;font:600 14px/1.25 system-ui,sans-serif;text-transform:none;box-shadow:none}
#algarve-app-language .aas-dialog-head button{font-size:24px;width:44px;padding:0}
#algarve-app-language form{display:block;margin:0;padding:0}
#algarve-app-language .aas-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#algarve-app-language .aas-language-grid button{display:flex;align-items:center;justify-content:space-between;gap:5px;text-align:start;min-width:0;overflow-wrap:anywhere}
#algarve-app-language small{font-size:10px;color:#55737a;flex-shrink:0}
#algarve-app-language button[aria-current=true]{border-color:#197484;background:#e8f2f2}
#algarve-app-chrome :is(button,a):focus-visible{outline:2px solid #e65a27;outline-offset:2px}
/* APP_FOOTER_V31 */
/* Identical six-tab geometry on every page, isolated from page-specific rules. */
html body #algarve-app-chrome #algarve-app-nav {
  position:fixed!important; inset:auto 0 0 0!important;
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-template-rows:52px!important;align-items:stretch!important;gap:0!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  height:calc(65px + env(safe-area-inset-bottom,0px))!important;
  min-height:0!important;max-height:none!important;margin:0!important;
  padding:6px max(5px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(5px,env(safe-area-inset-left,0px))!important;
  box-sizing:border-box!important;border:0!important;border-top:1px solid #dfe9e8!important;
  border-radius:0!important;background:#fff!important;box-shadow:0 -4px 18px #163e4812!important;
  transform:none!important;direction:ltr!important;overflow:visible!important;
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
}
html body #algarve-app-chrome #algarve-app-nav > :is(a[data-app-tab],button[data-app-language]) {
  all:unset!important;box-sizing:border-box!important;display:flex!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  width:100%!important;min-width:0!important;max-width:none!important;height:52px!important;
  padding:2px 0!important;margin:0!important;border-radius:8px!important;
  color:#55737a!important;background:transparent!important;cursor:pointer!important;
  font:650 clamp(8px,2.45vw,10px)/1.15 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:center!important;letter-spacing:0!important;word-spacing:0!important;text-decoration:none!important;
}
html body #algarve-app-chrome #algarve-app-nav > :is(a[data-app-tab],button[data-app-language]) > span {
  all:unset!important;display:block!important;box-sizing:border-box!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  font:inherit!important;color:inherit!important;text-align:center!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;-webkit-hyphens:none!important;
  letter-spacing:0!important;
}
html body #algarve-app-chrome #algarve-app-nav > :is(a[data-app-tab],button[data-app-language]) > svg {
  display:block!important;width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important;
  max-width:23px!important;max-height:23px!important;flex:0 0 23px!important;margin:0!important;padding:0!important;
  color:inherit!important;fill:none!important;stroke:currentColor!important;stroke-width:1.75!important;
}
html body #algarve-app-chrome #algarve-app-nav > a[data-app-tab][aria-current=page]{color:#d85221!important;background:#fff3ec!important}
html body #algarve-app-chrome #algarve-app-nav > :is(a[data-app-tab],button[data-app-language]):focus-visible{outline:2px solid #e65a27!important;outline-offset:-2px!important}
