#ad-strip[hidden], .ad-slot[hidden] { display: none; }
#ad-strip {
  --creative-height: 50px;
  display: grid; grid-template-columns: var(--panel-width) minmax(0,1fr);
  flex: none; gap: var(--s5); padding: 0 clamp(16px,2vw,36px) var(--s2);
}
.ad-slot { min-width: 0; text-align: center; padding: 6px 8px 10px; border-top: var(--hair); }
.ad-slot[data-placement="map"] { grid-column: 2; grid-row: 1; }
.ad-slot:not([data-placement="map"]) { grid-column: 1; grid-row: 1; }
.ad-slot small { display: block; color: var(--secondary); font-size: 10px; line-height: 14px; margin-bottom: 3px; }
.ad-space { max-width: 970px; margin: auto; height: var(--creative-height); }
.ad-space:not(:empty):not(:has(ins)) { display: grid; place-items: center; background: var(--card); color: var(--secondary); font-size: 13px; border-radius: var(--r1); }
.ad-space .adsbygoogle { display: block; width: 100%; height: var(--creative-height); }
@media (min-width: 1040px) and (min-height: 700px) {
  .ad-slot[data-placement="map"] { --creative-height: 90px; }
}
@media (max-width: 920px) {
  #ad-strip { gap: 12px; padding-inline: 12px; }
}
@media (max-width:700px), (max-width:960px) and (max-height:500px) and (pointer:coarse) {
  #root { --ad-band: 87px; }
  #ad-strip {
    display: block; position: absolute; inset: auto 0 var(--map-bottom); height: var(--ad-band);
    background: var(--bar); padding: 0 var(--sheet-right) 0 var(--sheet-edge);
  }
  #ad-strip .ad-slot { padding: 7px 0 12px; }
  #root:has(> #ad-strip:not([hidden])) .workbench { bottom: calc(var(--map-bottom) + var(--ad-band)); }
  #root:has(> #ad-strip:not([hidden])) :is(.desk,.map-block),
  #root:has(> #ad-strip:not([hidden])) .workbench::after { --map-bottom: 0px; }
}
