/* The video layout of the map's rotating ad (CLUDABRA_MAP_AD_ORDER_2026-11-08.md, 8 Nov 2026; assets/map-ad-video.js).
   Only #mapAd.is-video is touched: a text entry (a sponsored club, a Cludabra text campaign) looks exactly as before.
   The card keeps the width it has today (330 px on a desktop; 152 px on a phone, as assets/mobile-refinements.css sets it);
   the clip sits full width on top at 16:9, then the kicker, one line of title and the call to action.
   THE MAP CONTROLS: a 16:9 clip at that width is taller than the room the controls left for the ad (187 px on a desktop,
   122 px on a phone, measured). The controls are raised once, for every entry (a video entry or not), so they never move
   when the ad changes and the card never covers them. (8 Nov, rotation: on a phone the arrow row adds 38 px, so there
   296 -> 336 px.) */
#mapAd .map-ad-video{display:none}
#mapAd.is-video{grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;padding:8px;min-height:0}
#mapAd.is-video .map-ad-art,#mapAd.is-video .map-ad-copy p,#mapAd.is-video #mapAdPass{display:none}
#mapAd.is-video .map-ad-video{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#111526}
#mapAd .map-ad-video video,#mapAd .map-ad-video img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:0;pointer-events:none}
#mapAd.is-video .map-ad-copy{padding:0 4px 2px}
#mapAd.is-video .map-ad-copy small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mapAd.is-video .map-ad-copy strong{display:block;margin:3px 0 0;overflow:hidden;font-size:14px;line-height:1.25;white-space:nowrap;text-overflow:ellipsis}
#mapAd.is-video .map-ad-cta{margin-top:4px}
@media(min-width:781px){
  .maplibregl-ctrl-bottom-right{bottom:267px!important}
}
@media(max-width:780px){
  #mapAd.is-video{gap:4px;padding:6px;text-align:center}
  #mapAd.is-video .map-ad-video{border-radius:10px}
  #mapAd.is-video .map-ad-copy{padding:0 2px}
  #mapAd.is-video .map-ad-copy strong{margin:0;font-size:10px;line-height:1.25}
  #mapAd.is-video .map-ad-cta{justify-content:center;margin-top:2px}
  .maplibregl-ctrl-bottom-right{bottom:calc(336px + env(safe-area-inset-bottom))!important}
}
/* (8 Nov 2026, MAP_AD_ROTATION_ORDER_2026-11-08.md) the arrows. The card is a group: one button over the whole card opens
   the ad (#mapAdOpen), and two buttons of their own, its siblings, step back and forth; they never open the ad.
   Desktop: the two arrows sit in the card's bottom-right corner, beside the call to action (which wraps to a second line
   before it would reach them); phone: a row of their own under the card's text, each 32 x 32. The clip, the label and the call to
   action are never under them. */
#mapAd{position:absolute}
#mapAd .map-ad-open{position:absolute;inset:0;z-index:1;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
#mapAd .map-ad-open:focus-visible{outline:3px solid var(--green);outline-offset:-3px}
#mapAd .map-ad-nav{position:absolute;z-index:2;right:8px;bottom:8px;display:flex;gap:4px}
#mapAd .map-ad-step{display:grid;width:24px;height:24px;place-items:center;margin:0;padding:0;border:1px solid #dfe7e1;border-radius:50%;background:#fff;color:#33463b;cursor:pointer;box-shadow:none}
#mapAd .map-ad-step:hover{background:#f1f6f2}
#mapAd .map-ad-step:focus-visible{outline:2px solid var(--green);outline-offset:1px}
#mapAd .map-ad-step svg{width:14px;height:14px}
#mapAd .map-ad-cta{max-width:calc(100% - 52px)}     /* a long call to action wraps before the arrows, never under them */
#mapAd .map-ad-cta #mapAdCta{min-width:0}
@media(max-width:780px){
  #mapAd .map-ad-nav{position:relative;right:auto;bottom:auto;grid-column:1/-1;justify-content:center;gap:18px;margin-top:2px}
  #mapAd .map-ad-step{width:32px;height:32px}
  #mapAd .map-ad-step svg{width:16px;height:16px}
  #mapAd .map-ad-cta{max-width:none}
}
@media(min-width:781px){
  #mapAd.is-video .map-ad-copy{padding-right:56px}     /* the arrows' corner: the label, the title and the call to action stop short of it */
}
