/* Accidental Gringo canonical public shell — 2026-09-18
 * Single owner for public header, language controls and mobile navigation.
 * Page-specific styles must not redefine these .ag-shell-* selectors.
 */
:root{
  --ag-shell-navy:#062b43;
  --ag-shell-navy-2:#0b4658;
  --ag-shell-ink:#073b50;
  --ag-shell-white:#fff;
  --ag-shell-gold:#f5c55b;
  --ag-shell-line:rgba(255,255,255,.14);
  --ag-shell-width:min(1420px,calc(100% - 32px));
}
.ag-shell-skip{position:fixed;left:12px;top:10px;z-index:10050;transform:translateY(-160%);padding:10px 14px;border-radius:10px;background:#fff;color:var(--ag-shell-ink);font-weight:800;text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.ag-shell-skip:focus{transform:none}
.ag-shell-header{position:sticky;top:0;z-index:9000;background:var(--ag-shell-navy);color:#fff;border-bottom:1px solid var(--ag-shell-line)}
.ag-shell-inner{position:relative;width:var(--ag-shell-width);min-height:82px;margin-inline:auto;display:flex;align-items:center;gap:20px}
.ag-shell-brand{display:inline-flex;align-items:center;flex:0 0 auto;text-decoration:none;line-height:0}
.ag-shell-brand picture{display:block}
.ag-shell-brand img{display:block;width:250px;height:58px;object-fit:contain;object-position:left center}
.ag-shell-primary{margin-left:auto;display:flex;align-items:center;gap:20px}
.ag-shell-primary>a{color:#f6fbfc;text-decoration:none;font-size:.92rem;font-weight:800}
.ag-shell-primary>a:hover,.ag-shell-primary>a:focus-visible{color:var(--ag-shell-gold)}
.ag-shell-primary .ag-shell-plan{padding:10px 16px;border-radius:999px;background:var(--ag-shell-gold);color:#092f45}
.ag-shell-header .ag-shell-language{display:inline-flex!important;align-items:center!important;gap:2px!important;padding:3px!important;border:1px solid #cbd9dc!important;border-radius:999px!important;background:#fff!important;white-space:nowrap!important;box-shadow:none!important}
html body .ag-shell-header .ag-shell-language>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:62px!important;width:auto!important;min-height:40px!important;height:40px!important;margin:0!important;padding:5px 8px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#315660!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:.78rem!important;font-weight:900!important;line-height:1!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;transform:none!important}
html body .ag-shell-header .ag-shell-language>button.is-active,
html body .ag-shell-header .ag-shell-language>button[aria-pressed="true"]{background:var(--ag-shell-navy-2)!important;color:#fff!important}
html body .ag-shell-header .ag-shell-menu{display:none;place-items:center;flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;padding:0!important;border:1px solid #b9cdd1!important;border-radius:50%!important;background:#fff!important;color:var(--ag-shell-ink)!important;box-shadow:none!important;text-shadow:none!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;transform:none!important}
.ag-shell-menu-bars{display:grid;gap:5px;width:24px}
.ag-shell-menu-bars>span{display:block;width:24px;height:3px;border-radius:999px;background:currentColor}
@media(max-width:1220px){
  :root{--ag-shell-width:calc(100% - 24px)}
  .ag-shell-inner{min-height:78px;gap:8px}
  .ag-shell-brand{margin-right:auto}
  .ag-shell-brand img{width:56px;height:56px;max-width:56px;max-height:56px}
  .ag-shell-primary{display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;margin:0;padding:12px;flex-direction:column;align-items:stretch;gap:4px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:var(--ag-shell-navy);box-shadow:0 24px 58px rgba(3,26,38,.32)}
  .ag-shell-primary.is-open{display:flex}
  .ag-shell-primary>a{display:block;padding:12px 13px;border-radius:10px}
  .ag-shell-primary>a:hover,.ag-shell-primary>a:focus-visible{background:rgba(255,255,255,.08);color:#fff}
  .ag-shell-primary .ag-shell-plan{background:var(--ag-shell-gold);color:#092f45}
  .ag-shell-language{margin-left:auto}
  html body .ag-shell-header .ag-shell-menu{display:grid!important}
  body.ag-shell-menu-open{overflow:hidden}
}
@media(max-width:640px){
  :root{--ag-shell-width:calc(100% - 20px)}
  .ag-shell-inner{min-height:76px;gap:7px}
  .ag-shell-brand img{width:54px;height:54px;max-width:54px;max-height:54px}
  .ag-shell-language button{min-width:58px;min-height:40px;padding:5px 7px}
  .ag-shell-menu{flex-basis:48px;width:48px;height:48px;min-width:48px}
  .ag-shell-primary{top:calc(100% + 7px)}
}
.ag-shell-footer{background:#294f78;color:#fff;padding:42px 18px 24px}
.ag-shell-footer .shell{width:min(1180px,100%);margin-inline:auto}
.ag-shell-footer .footer-grid{display:grid;grid-template-columns:minmax(240px,1.25fr) repeat(4,minmax(140px,.72fr));gap:24px}
.ag-shell-footer section{display:grid;align-content:start;gap:9px}
.ag-shell-footer h2{margin:0 0 6px;color:#d9e6ef;font:800 1rem/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.ag-shell-footer a{color:#fff;text-decoration:none;font-weight:700}
.ag-shell-footer a:hover,.ag-shell-footer a:focus-visible{color:#f6c96b}
.ag-shell-footer .footer-logo{display:block;max-width:235px;margin-bottom:10px}
.ag-shell-footer .footer-logo img{display:block;width:100%;height:auto}
.ag-shell-footer .footer-brand-column p{margin:0;color:#e5eef5;line-height:1.55}
.ag-shell-footer .footer-discovery-line{display:block;margin-top:8px;color:#fff}
.ag-shell-footer .footer-mobile-nav{display:none}
.ag-shell-footer .footer-bottom{display:flex;justify-content:space-between;gap:22px;margin-top:30px;padding-top:20px;border-top:1px solid rgba(255,255,255,.18);color:#d4e1ec;font-size:.85rem;line-height:1.45}
@media(max-width:900px){
  .ag-shell-footer .footer-grid{grid-template-columns:1fr 1fr}
  .ag-shell-footer .footer-brand-column{grid-column:1/-1}
}
@media(max-width:620px){
  .ag-shell-footer{padding:30px 14px calc(20px + env(safe-area-inset-bottom))}
  .ag-shell-footer .footer-grid{grid-template-columns:1fr;gap:0}
  .ag-shell-footer .footer-brand-column{grid-column:auto}
  .ag-shell-footer .footer-grid>section:not(.footer-brand-column){display:none}
  .ag-shell-footer .footer-logo{max-width:205px;margin-bottom:8px}
  .ag-shell-footer .footer-brand-column p{font-size:.95rem;line-height:1.45}
  .ag-shell-footer .footer-discovery-line{font-size:.95rem;line-height:1.4}
  .ag-shell-footer .footer-mobile-nav{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.18)}
  .ag-shell-footer .footer-mobile-nav a{font-size:.9rem;font-weight:800}
  .ag-shell-footer .footer-bottom{display:grid;gap:8px;margin-top:18px;padding-top:16px;font-size:.78rem}
}
@media(prefers-reduced-motion:reduce){.ag-shell-header *{transition:none!important;animation:none!important}}

/* Nightlife card image fallback for draft preview.
   It disappears automatically when the PHP renderer supplies the real img. */
.agn26-decision-grid article:not(:has(.agn26-area-photo))::before{
  content:"";display:block;width:100%;aspect-ratio:16/9;margin:0 0 14px;
  border-radius:14px;background-position:center;background-size:cover;background-repeat:no-repeat
}
.agn26-decision-grid article:nth-child(1):not(:has(.agn26-area-photo))::before{background-image:url("https://theaccidentalgringo.com/wp-content/uploads/2026/09/Cancun-Hotel-Zone-Caribbean-—-Fernando-Garcia-Unsplash-1024x767.jpg")}
.agn26-decision-grid article:nth-child(2):not(:has(.agn26-area-photo))::before{background-image:url("https://theaccidentalgringo.com/wp-content/uploads/2026/09/Playa-del-Carmen-evening-768x568.jpg")}
.agn26-decision-grid article:nth-child(3):not(:has(.agn26-area-photo))::before{background-image:url("https://theaccidentalgringo.com/wp-content/uploads/2026/07/tulum-beach-restaurant-sunset-1024x640.jpg")}
.agn26-decision-grid article:nth-child(4):not(:has(.agn26-area-photo))::before{background-image:url("https://theaccidentalgringo.com/wp-content/uploads/2026/09/Puerto-Morelos-coast-—-Josh-Withers-Unsplash-768x432.jpg")}
.agn26-decision-grid article:nth-child(5):not(:has(.agn26-area-photo))::before{background-image:url("https://pub-64b5761983c443f39a457a99794b6246.r2.dev/images/cozumel/ag_91322291-5081-4224-81b7-8ca3ccde2297.webp")}
