/* Блок «Адреса» (inc/addresses.php): список площадок с подсказкой входа и маршрутом + живая Яндекс Карта (js/addresses.js).
   Каталог /quests/, главная, каталог лаунжей (залы — чипсами .ls). Рецепты сайта §3–5: внутренности карты — content-box, обрезка углов на iOS — translateZ(0), балун — свои стили. */
.ad-g { display: flex; gap: 20px; height: 420px; }
.ad-locs-w { position: relative; width: 500px; flex-shrink: 0; border-radius: 24px; overflow: hidden; }
.ad-locs { height: 100%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding-bottom: 70px; border-radius: 24px; scrollbar-width: thin; scrollbar-color: #C9CCD6 transparent; }
.ad-locs::-webkit-scrollbar { width: 8px; }
.ad-locs::-webkit-scrollbar-thumb { background: #C9CCD6; border-radius: 8px; }
.ad-locs-w::after { content: ''; position: absolute; left: 0; right: 8px; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(180deg, rgba(242,242,242,0) 0%, var(--bg) 90%); transition: opacity .3s; }
.ad-locs-w.end::after, .ad-locs-w.end .ad-hint { opacity: 0; }
.ad-hint { position: absolute; left: 50%; bottom: 14px; z-index: 1; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); pointer-events: none; transition: opacity .3s; }
.ad-loc { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 20px; background: #FFFFFF; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, background .2s; }
.ad-loc:hover { box-shadow: inset 0 0 0 2px #F3DE9D; }
.ad-loc.on { background: #FFFBEC; box-shadow: inset 0 0 0 2px var(--y); }
.ad-loc .nm { display: flex; align-items: center; gap: 10px; }
.ad-loc .nm i { width: 28px; height: 28px; border-radius: 50%; background: var(--y); color: var(--ink); font-size: 14px; font-weight: 700; font-style: normal; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ad-loc .nm b { font-size: 17px; font-weight: 700; }
.ad-loc .tm, .ad-loc .qs, .ad-loc .rt, .ad-loc .ls { margin-left: 38px; }
.ad-loc .tm { font-size: 13px; color: var(--muted); }
.ad-loc .hn { margin-left: 38px; align-self: flex-start; padding: 5px 10px; border-radius: 10px; background: #FDEFC2; color: #7A5A00; font-size: 13px; line-height: 1.35; }
.ad-loc .qs { font-size: 13px; line-height: 1.4; }
.ad-loc .qs > span { color: var(--muted); }
.ad-loc .qs a { color: var(--ink); }
.ad-loc .ls { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-loc .ls a { padding: 5px 11px; border-radius: 20px; background: #FDF3D2; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.ad-loc .ls a:hover { background: var(--y); }
.ad-loc .rt { align-self: flex-start; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ad-map { position: relative; flex-grow: 1; border-radius: 24px; overflow: hidden; background: #E9E6DF; transform: translateZ(0); will-change: transform; }
.ad-map * { box-sizing: content-box; }
.ad-map > .ad-map-st { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-sizing: border-box; }
.ad-map [class*="-balloon__layout"], .ad-map [class*="-balloon__content"] { border-radius: 16px !important; }
.ad-map [class*="-balloon__layout"] { box-shadow: 0 12px 30px rgba(47,50,63,0.22) !important; border: 0 !important; }
.ad-map [class*="-balloon__content"] { font-family: var(--sans) !important; font-weight: 400 !important; font-size: 14px !important; line-height: 1.45 !important; color: var(--ink) !important; padding: 14px 16px 13px !important; }
.ad-map [class*="-balloon__content"] b { font-weight: 700 !important; font-size: 15px !important; }
.ad-map [class*="-balloon__tail"] { display: none !important; }
.ad-all { display: none; }
@media (max-width: 1100px) {
  .ad-locs-w { width: 400px; }
}
@media (max-width: 899px) {
  .ad .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ad-g { flex-direction: column-reverse; height: auto; gap: 16px; }
  .ad-locs-w { width: auto; overflow: visible; border-radius: 0; }
  .ad-locs { height: auto; overflow: visible; padding: 0; }
  .ad-locs-w::after, .ad-hint { display: none; }
  .ad-locs.short .ad-loc:nth-child(n+3) { display: none; }
  .ad-loc { padding: 14px; gap: 6px; }
  .ad-loc .nm b { font-size: 15px; }
  .ad-map { height: 240px; flex-grow: 0; border-radius: 22px; }
  .ad-all { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 40px; background: #FFFFFF; color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; }
  .ad-all[hidden] { display: none; }
}
