/* Accidental Gringo 24.9.7.9.1 focused visual and route polish */
html{scroll-padding-top:124px}

/* Header micro-alignment. */
.ag-nav-guides-link,.ag-nav-library-link{display:inline-flex!important;align-items:center!important;min-height:40px;line-height:1!important}

/* All new visual-guide cards use a shared, non-cropping portrait frame. */
body .ag24979-guide-grid,body .ag24978-guide-grid{align-items:stretch;grid-auto-rows:1fr}
body .ag24979-guide-card,body .ag24978-guide-card{height:100%;min-height:500px;align-self:stretch}
body .ag24979-guide-cover,body .ag24978-guide-cover{display:flex;align-items:flex-start;justify-content:center;height:100%;min-height:500px;background:linear-gradient(180deg,#eef5f4,#dfe9e9);overflow:hidden}
body .ag24979-guide-cover img,body .ag24978-guide-cover img{display:block!important;width:100%!important;height:100%!important;min-height:500px!important;max-height:none!important;object-fit:contain!important;object-position:top center!important;background:#e8efef}
body .ag24979-guide-copy,body .ag24978-guide-copy{display:flex!important;flex-direction:column!important;height:100%;min-width:0}
body .ag24979-guide-copy>p:not(.eyebrow),body .ag24978-guide-copy>p:not(.eyebrow){min-height:4.7em}
body .ag24979-guide-actions,body .ag24978-guide-actions{margin-top:auto!important;align-items:flex-end}
body .ag24979-guide-copy small,body .ag24978-guide-reviewed{margin-top:12px!important}

/* Make all older free guides visible without mixing them with premium products. */
.ag249791-existing-guides{padding:52px 0;background:#edf5f3;border-bottom:1px solid #c8dadd}
.ag249791-existing-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
.ag249791-existing-head h2{max-width:850px;margin:0 0 9px;color:#0b3543;font:700 clamp(2rem,4vw,3.5rem)/1 Georgia,serif}
.ag249791-existing-head p:not(.eyebrow){max-width:760px;color:#526d77}
.ag249791-existing-head>span{white-space:nowrap;border:1px solid #aac4c9;border-radius:999px;background:#fff;padding:10px 14px;color:#0b3543;font-weight:850}
.ag249791-existing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.ag249791-existing-card{display:flex;min-width:0;min-height:430px;flex-direction:column;overflow:hidden;border:1px solid #c5d7da;border-radius:20px;background:#fff;box-shadow:0 10px 28px rgba(11,53,67,.06)}
.ag249791-existing-cover{display:flex;height:190px;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(135deg,#0c4051,#217487);color:#fff;text-decoration:none}
.ag249791-existing-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.ag249791-existing-cover span{font:700 3rem/1 Georgia,serif}
.ag249791-existing-copy{display:flex;flex:1;flex-direction:column;padding:20px}
.ag249791-existing-copy h3{margin:0 0 9px;color:#0b3543;font-size:1.28rem;line-height:1.16}
.ag249791-existing-copy>p:not(.eyebrow){color:#526d77;line-height:1.52}
.ag249791-existing-meta{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 17px}
.ag249791-existing-meta span{border-radius:999px;background:#edf5f4;padding:7px 9px;color:#315662;font-size:.74rem;font-weight:800}
.ag249791-existing-copy>.button{align-self:flex-start;margin-top:auto}

/* Today: supplied branded hero, consistent cards and aligned actions. */
body .ag-today-hero-grid{grid-template-columns:minmax(310px,.78fr) minmax(520px,1.35fr)!important;gap:34px!important;align-items:center!important}
body .ag-today-hero-media{align-self:center!important;overflow:hidden!important;border-radius:24px!important;background:#07384b!important;box-shadow:0 18px 44px rgba(4,44,58,.18)!important}
body .ag-today-hero-media img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1600/667!important;object-fit:contain!important;object-position:center!important;background:#07384b!important}
body .ag-today-grid{align-items:stretch!important;grid-auto-rows:1fr}
body .ag-today-card{display:flex!important;height:100%!important;min-width:0!important;flex-direction:column!important;align-self:stretch!important;overflow:hidden}
body .ag-today-card>img,body .ag-today-card>.ag-today-card-placeholder{display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/10!important;object-fit:cover!important;object-position:center!important}
body .ag-today-card-body{display:flex!important;flex:1!important;min-width:0!important;flex-direction:column!important}
body .ag-today-card-body>p:not(.ag-today-why){min-height:3.3em}
body .ag-today-card-meta{margin-top:auto!important}
body .ag-today-card-actions{display:flex!important;align-items:stretch!important;gap:9px!important;margin-top:15px!important}
body .ag-today-card-actions button{display:inline-flex!important;min-height:44px!important;align-items:center!important;justify-content:center!important}

/* Permanent practical-detail pages need a clear entrance, not an abrupt card body. */
.ag249791-place-topbar{background:#07384b;border-bottom:3px solid #efbe3f;color:#fff}
.ag249791-place-topbar>.shell{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:13px;padding-bottom:13px}
.ag249791-place-topbar a{color:#fff!important;font-weight:800;text-decoration:none}

/* Repair missing intros on Destination Guides and Travel Guides. */
.ag249791-destination-hero{padding:52px 0;background:linear-gradient(130deg,#e5f3f0,#fbf8f0 60%,#f9e7a9);border-bottom:1px solid #c8dadd}
.ag249791-destination-hero>.shell{display:flex;align-items:end;justify-content:space-between;gap:30px}
.ag249791-destination-hero h1{max-width:860px;margin:7px 0 12px;color:#0b3543;font:700 clamp(2.8rem,6vw,5.1rem)/.95 Georgia,serif}
.ag249791-destination-hero p:not(.eyebrow){max-width:760px;color:#526d77;font-size:1.04rem;line-height:1.6}
.ag249791-guides-hero{padding:42px 0;background:linear-gradient(130deg,#e5f3f0,#fbf8f0 58%,#f9e7a9);border-bottom:1px solid #c8dadd}
.ag249791-guides-hero>.shell{display:grid;grid-template-columns:minmax(0,.8fr) minmax(520px,1.2fr);align-items:center;gap:34px}
.ag249791-guides-hero h1{margin:8px 0 12px;color:#0b3543;font:700 clamp(2.7rem,5vw,4.8rem)/.95 Georgia,serif}
.ag249791-guides-hero p:not(.eyebrow){color:#526d77;font-size:1.04rem;line-height:1.6}
.ag249791-guides-hero figure{margin:0;overflow:hidden;border-radius:22px;background:#07384b;box-shadow:0 18px 44px rgba(4,44,58,.18)}
.ag249791-guides-hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}

/* Destination-card media must align, including Akumal. */
body.ag249791-places-page .ag249791-destination-card{height:100%!important;overflow:hidden!important}
body.ag249791-places-page .ag249791-destination-card img{display:block!important;width:140px!important;height:126px!important;min-width:140px!important;max-width:140px!important;object-fit:cover!important;object-position:center!important}
body.ag249791-places-page .ag249791-destination-card.ag249791-akumal-card img{object-position:center 38%!important}

/* Legacy search call-to-action is no longer a public option. */
a.ag249791-practical-link{font-weight:850!important}

@media(max-width:1050px){
  body .ag-today-hero-grid,.ag249791-guides-hero>.shell{grid-template-columns:1fr!important}
  .ag249791-existing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ag249791-destination-hero>.shell{align-items:flex-start;flex-direction:column}
}
@media(max-width:700px){
  body .ag24979-guide-card,body .ag24978-guide-card{min-height:0!important;grid-template-columns:1fr!important}
  body .ag24979-guide-cover,body .ag24978-guide-cover{min-height:0!important;height:auto!important;max-height:500px!important}
  body .ag24979-guide-cover img,body .ag24978-guide-cover img{height:auto!important;min-height:0!important;max-height:500px!important;object-fit:contain!important}
  .ag249791-existing-grid{grid-template-columns:1fr}
  .ag249791-existing-head{align-items:flex-start;flex-direction:column}
  .ag249791-existing-card{min-height:0}
  .ag249791-place-topbar>.shell{align-items:flex-start;flex-direction:column}
  body .ag-today-card-body>p:not(.ag-today-why){min-height:0}
  .ag249791-guides-hero,.ag249791-destination-hero{padding:34px 0}
}


/* 24.9.7.9.7: equalize the four connected-planning finder cards identified at runtime. */
.ag249793-connected-grid{align-items:stretch!important;grid-auto-rows:1fr!important}
.ag249793-connected-card{display:flex!important;height:100%!important;min-width:0!important;flex-direction:column!important;overflow:hidden!important}
.ag249793-connected-card .ag249793-connected-media,.ag249793-connected-card>img,.ag249793-connected-card>a:first-child{display:block!important;width:100%!important;height:158px!important;min-height:158px!important;max-height:158px!important;overflow:hidden!important}
.ag249793-connected-card .ag249793-connected-media img,.ag249793-connected-card>a:first-child img,.ag249793-connected-card>img{display:block!important;width:100%!important;height:158px!important;object-fit:cover!important;object-position:center!important}
.ag249793-connected-card .ag249793-connected-action{margin-top:auto!important}
.ag24979-guide-library[data-guide-tier="free"],#ag-free-guide-library{position:relative!important}.ag24979-guide-library[data-guide-tier="free"]:before,#ag-free-guide-library:before{content:"FREE GUIDE LIBRARY";display:inline-flex;margin:0 0 12px;padding:7px 11px;border-radius:999px;background:#287b58;color:#fff;font-size:.72rem;font-weight:900;letter-spacing:.1em}
@media(max-width:700px){.ag249793-connected-card .ag249793-connected-media,.ag249793-connected-card>img,.ag249793-connected-card>a:first-child,.ag249793-connected-card .ag249793-connected-media img,.ag249793-connected-card>a:first-child img{height:170px!important;min-height:170px!important;max-height:170px!important}}

/* 24.9.7.9.7 — homepage and guide-library alignment. */
.ag249794-equal-grid{align-items:stretch!important;grid-auto-rows:1fr!important}
.ag249794-home-destination-card{position:relative!important;isolation:isolate!important;display:flex!important;min-height:360px!important;height:100%!important;flex-direction:column!important;justify-content:flex-end!important;overflow:hidden!important;background:#07384b!important}
.ag249794-home-destination-card:after{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(2,31,45,.04) 25%,rgba(3,39,53,.92) 100%);pointer-events:none}
.ag249794-home-destination-card>.ag249794-card-media{position:absolute!important;z-index:0!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;margin:0!important;overflow:hidden!important}
.ag249794-home-destination-card>.ag249794-card-media img,.ag249794-home-destination-card>img.ag249794-card-media{display:block!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
.ag249794-home-destination-card>.ag249794-card-copy,.ag249794-home-destination-card>h2,.ag249794-home-destination-card>h3,.ag249794-home-destination-card>p,.ag249794-home-destination-card>a:not(.ag249794-card-media){position:relative!important;z-index:2!important}
.ag249794-home-destination-card>.ag249794-card-copy{display:flex!important;min-height:160px!important;flex-direction:column!important;justify-content:flex-end!important;padding:18px!important;color:#fff!important}
.ag249794-home-destination-card>.ag249794-card-copy *{color:inherit!important}
.ag249794-home-destination-card.ag249794-akumal-card .ag249794-card-media img,.ag249794-home-destination-card.ag249794-akumal-card>img.ag249794-card-media{object-position:center 42%!important}

.ag249794-home-finder-card,.ag249794-signature-card{display:flex!important;min-width:0!important;height:100%!important;flex-direction:column!important;overflow:hidden!important}
.ag249794-home-finder-card>.ag249794-card-media,.ag249794-signature-card>.ag249794-card-media{display:block!important;width:100%!important;height:210px!important;min-height:210px!important;max-height:210px!important;overflow:hidden!important;margin:0!important}
.ag249794-home-finder-card>.ag249794-card-media img,.ag249794-home-finder-card>img.ag249794-card-media,.ag249794-signature-card>.ag249794-card-media img,.ag249794-signature-card>img.ag249794-card-media{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
.ag249794-home-finder-card>.ag249794-card-copy,.ag249794-signature-card>.ag249794-card-copy{display:flex!important;min-width:0!important;flex:1!important;flex-direction:column!important}
.ag249794-home-finder-card h2,.ag249794-home-finder-card h3{min-height:2.35em!important}
.ag249794-home-finder-card .ag249794-card-copy>p{min-height:3.7em!important}
.ag249794-signature-card h2,.ag249794-signature-card h3{min-height:2.6em!important}
.ag249794-signature-card .ag249794-card-copy>p{min-height:4.6em!important}
.ag249794-home-finder-card .ag249794-card-action,.ag249794-signature-card .ag249794-card-action{margin-top:auto!important;align-self:flex-start!important}

/* The public library must visibly contain all ten unique free collections. */
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-card{display:grid!important;grid-template-columns:minmax(210px,.72fr) minmax(0,1.28fr)!important;min-height:520px!important;height:100%!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover{height:100%!important;min-height:520px!important;max-height:none!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover img{width:100%!important;height:100%!important;min-height:520px!important;max-height:none!important;object-fit:contain!important;object-position:top center!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-copy{display:flex!important;height:100%!important;flex-direction:column!important;padding:28px!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-copy h3{min-height:2.35em!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-copy>p:not(.eyebrow){min-height:4.8em!important}
.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-actions{margin-top:auto!important}
@media(max-width:900px){
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-grid{grid-template-columns:1fr!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-card{grid-template-columns:minmax(180px,.55fr) minmax(0,1fr)!important;min-height:470px!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover,.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover img{min-height:470px!important}
}
@media(max-width:620px){
  .ag249794-home-destination-card{min-height:330px!important}
  .ag249794-home-finder-card>.ag249794-card-media,.ag249794-signature-card>.ag249794-card-media{height:185px!important;min-height:185px!important;max-height:185px!important}
  .ag249794-home-finder-card h2,.ag249794-home-finder-card h3,.ag249794-home-finder-card .ag249794-card-copy>p,.ag249794-signature-card h2,.ag249794-signature-card h3,.ag249794-signature-card .ag249794-card-copy>p{min-height:0!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-card{grid-template-columns:1fr!important;min-height:0!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover{height:auto!important;min-height:0!important;max-height:520px!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-cover img{height:auto!important;min-height:0!important;max-height:520px!important}
  .ag-fast-guides-route #ag-free-guide-library .ag24979-guide-copy h3,.ag-fast-guides-route #ag-free-guide-library .ag24979-guide-copy>p:not(.eyebrow){min-height:0!important}
}

/* 24.9.7.9.12 — homepage section spacing, sticky-header offset and media normalization. */
body.home main{overflow:visible!important}
body.home main section[id],body.home main [id]{scroll-margin-top:124px}
body.home .ag249794-equal-grid{gap:clamp(18px,2vw,24px)!important;align-items:stretch!important;grid-auto-rows:1fr!important;padding-top:14px!important;padding-bottom:28px!important;margin-top:0!important;margin-bottom:0!important;scroll-margin-top:124px}
body.home .ag249794-equal-grid>.ag249794-home-destination-card,body.home .ag249794-equal-grid>.ag249794-home-finder-card,body.home .ag249794-equal-grid>.ag249794-signature-card{margin:0!important;align-self:stretch!important}
body.home .ag249794-home-destination-card,body.home .ag249794-home-finder-card,body.home .ag249794-signature-card{border-radius:24px!important;box-sizing:border-box!important}

/* Handle cards whose media is wrapped differently, including Akumal. */
body.home .ag249794-home-destination-card .ag249794-card-media{position:absolute!important;z-index:0!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;overflow:hidden!important;border-radius:inherit!important}
body.home .ag249794-home-destination-card .ag249794-card-media img,body.home .ag249794-home-destination-card img.ag249794-card-media{display:block!important;width:100%!important;height:100%!important;min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
body.home .ag249794-home-destination-card.ag249794-akumal-card .ag249794-card-media img,body.home .ag249794-home-destination-card.ag249794-akumal-card img.ag249794-card-media{object-position:center 42%!important}
body.home .ag249794-home-destination-card>.ag249794-card-copy,body.home .ag249794-home-destination-card>h1,body.home .ag249794-home-destination-card>h2,body.home .ag249794-home-destination-card>h3,body.home .ag249794-home-destination-card>h4,body.home .ag249794-home-destination-card>p,body.home .ag249794-home-destination-card>.ag249794-card-action{position:relative!important;z-index:2!important}

/* Normalize finder image bands and keep copy/action padding consistent. */
body.home .ag249794-home-finder-card .ag249794-card-media,body.home .ag249794-signature-card .ag249794-card-media{display:block!important;width:100%!important;height:210px!important;min-height:210px!important;max-height:210px!important;margin:0!important;overflow:hidden!important;flex:0 0 210px!important}
body.home .ag249794-home-finder-card .ag249794-card-media img,body.home .ag249794-home-finder-card img.ag249794-card-media,body.home .ag249794-signature-card .ag249794-card-media img,body.home .ag249794-signature-card img.ag249794-card-media{display:block!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important}
body.home .ag249794-home-finder-card>.ag249794-card-copy,body.home .ag249794-signature-card>.ag249794-card-copy{box-sizing:border-box!important;padding-bottom:22px!important}

@media(max-width:900px){
  html{scroll-padding-top:108px}
  body.home main section[id],body.home main [id],body.home .ag249794-equal-grid{scroll-margin-top:108px}
  body.home .ag249794-equal-grid{gap:18px!important;padding-top:10px!important;padding-bottom:24px!important}
}
@media(max-width:620px){
  html{scroll-padding-top:92px}
  body.home main section[id],body.home main [id],body.home .ag249794-equal-grid{scroll-margin-top:92px}
  body.home .ag249794-equal-grid{gap:16px!important;padding-top:8px!important;padding-bottom:20px!important}
  body.home .ag249794-home-finder-card .ag249794-card-media,body.home .ag249794-signature-card .ag249794-card-media{height:185px!important;min-height:185px!important;max-height:185px!important;flex-basis:185px!important}
}



/* 24.9.7.9.13 — use the actual homepage markup and override no unrelated images. */
body.home .concierge-category-grid,
body.home .home-destination-rail-v1193{
  align-items:stretch!important;
  gap:clamp(18px,2vw,24px)!important;
}
body.home .concierge-category-grid>a{
  position:relative!important;
  min-height:350px!important;
  height:100%!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body.home .concierge-category-grid>a>img{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
}
body.home .concierge-category-grid>a:after{z-index:1!important}
body.home .concierge-category-grid>a>div{z-index:2!important}
body.home .home-destination-rail-v1193>a{
  position:relative!important;
  min-height:420px!important;
  height:100%!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
body.home .home-destination-rail-v1193>a>img{
  position:absolute!important;
  inset:0!important;
  z-index:-2!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  object-position:center!important;
}
body.home .home-destination-rail-v1193>a[href*="/akumal/"]>img{
  object-position:center 48%!important;
}
body.home .v106-category-section,
body.home .home-destination-showcase-v1193{
  scroll-margin-top:124px!important;
}
body.home .v106-category-section>.shell,
body.home .home-destination-showcase-v1193>.shell{
  padding-top:2px!important;
  padding-bottom:2px!important;
}
@media(max-width:1180px){
  body.home .home-destination-rail-v1193>a{min-height:390px!important}
}
@media(max-width:800px){
  body.home .concierge-category-grid>a{min-height:390px!important}
  body.home .home-destination-rail-v1193>a{min-height:390px!important;height:390px!important}
}
