/* The map ad: one card shape for every entry (MAP_AD_CLUB_BANNER_ORDER_2026-11-08.md, 8 Nov 2026; assets/map-ad-banner.js).
   Every entry has the video entry's shape (assets/map-ad-video.css): the card keeps its width (330 px on a desktop, 152 px
   on a phone), a 16:9 banner on top (a loop, a club's cover photo, a club's colour with its logo, or a Cludabra campaign),
   then the label, the title, the 420Pass chip of a club that sells passes, the call to action and the arrows. The text
   block has ONE height for every entry, so the card has one height, nothing jumps and the map controls never move.
   (9 Nov 2026, MAP_AD_FULLBLEED_ORDER_2026-11-09.md) every banner is filled edge to edge: a chosen photo (cover, with the
   logo badge) or the logo fill (the logo cut to its own box, centred at up to 78% of the banner's height and 80% of its
   width, on its own edge colour). The Cludabra still uses the logo fill too.
   The long summary is not on the card. The 420Pass chip's size on the card is in pass-badge.css (the badge is defined there only). The label "Sponsored · ..." stays on every entry. */
#mapAd,#mapAd.is-video{grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;padding:8px;min-height:0}
#mapAd .map-ad-art,#mapAd .map-ad-copy p{display:none}
#mapAd .map-ad-banner{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:14px;background:#edf3ef;container-type:size}
#mapAd.is-video .map-ad-banner{display:none}
/* (9 Nov 2026, addendum 1) a loop's box before its clip or poster may be fetched: the purple gradient, the same 16:9 size */
#mapAd.is-video .map-ad-video{background:linear-gradient(150deg,#5130a5,#17102b)}
#mapAd .map-ad-banner img{display:block;border:0;pointer-events:none;-webkit-user-drag:none}
#mapAd .map-ad-banner img:not([src]){visibility:hidden}
/* a club's cover photo: fills the banner, cropped, never stretched */
#mapAd .map-ad-banner .map-ad-banner-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* its logo: a round badge on the bottom-left corner, the whole logo inside, on white */
#mapAd .map-ad-banner-badge{position:absolute;left:8px;bottom:8px;display:block;width:44px;height:44px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.28);box-sizing:border-box}
#mapAd .map-ad-banner-badge .map-ad-banner-logo{width:100%;height:100%;padding:3px;object-fit:contain;box-sizing:border-box;background:#fff}
/* the logo fill: the frame has the logo box's proportions (--r = its width / height) and is as large as fits 80% of the
   banner's width and 78% of its height (container units of the banner); the picture inside is scaled and shifted inline
   so that exactly the box shows. A browser without container units keeps the frame at 80% wide, at most 78% high. */
#mapAd .map-ad-banner-fill{position:absolute;top:50%;left:50%;display:block;overflow:hidden;transform:translate(-50%,-50%);aspect-ratio:var(--r,1);width:80%;max-height:78%;width:min(80cqw,calc(78cqh * var(--r,1)))}
#mapAd .map-ad-banner-fill .map-ad-banner-logo{position:absolute;max-width:none;max-height:none}
/* (9 Nov 2026, follow-up) a near-white logo on the light grey banner: its frame is multiplied onto the banner, so the logo's
   own white ground takes the grey (the frame, not the picture: the frame's transform makes it its own group) */
#mapAd .map-ad-banner.is-light .map-ad-banner-fill{mix-blend-mode:multiply}
/* a logo the server could not read: whole, contain, in the same 80% x 78% */
#mapAd .map-ad-banner-fill.is-whole{width:80%;height:78%;aspect-ratio:auto;max-height:none}
#mapAd .map-ad-banner-fill.is-whole .map-ad-banner-logo{position:static;width:100%;height:100%;object-fit:contain}
/* the text block: one height for every entry */
#mapAd .map-ad-copy{display:flex;flex-direction:column;justify-content:flex-start;height:74px;min-width:0;padding:0 4px 2px;overflow:hidden;box-sizing:border-box}
#mapAd .map-ad-copy small{flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#mapAd .map-ad-copy strong{flex:none;display:block;margin:3px 0 0;overflow:hidden;font-size:14px;line-height:1.25;white-space:nowrap;text-overflow:ellipsis}
#mapAd.is-campaign .map-ad-copy strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal}
#mapAd .map-ad-cta{flex:none;margin-top:4px}
@media(min-width:781px){
  #mapAd .map-ad-copy{padding-right:56px}     /* the arrows' corner */
  .maplibregl-ctrl-bottom-right{bottom:302px!important}
}
@media(max-width:780px){
  #mapAd,#mapAd.is-video{gap:4px;padding:6px;text-align:center}
  #mapAd .map-ad-banner{border-radius:10px}
  #mapAd .map-ad-banner-badge{left:5px;bottom:5px;width:28px;height:28px;border-width:1.5px}
  #mapAd .map-ad-banner-badge .map-ad-banner-logo{padding:2px}
  #mapAd .map-ad-copy{height:46px;padding:0 2px;align-items:center}
  #mapAd .map-ad-copy small{max-width:100%}
  #mapAd .map-ad-copy strong{max-width:100%;margin:1px 0 0;font-size:10px;line-height:1.25}
  #mapAd .map-ad-cta{justify-content:center;margin-top:2px}
  .maplibregl-ctrl-bottom-right{bottom:calc(352px + env(safe-area-inset-bottom))!important}
}
