/* ── afisha.css — надстройка над constructor.css для страницы афиши ──
   Базовый визуал (topbar, поиск, .pin-лента, коробка, модалка) полностью
   наследуется из constructor.css. Здесь — только то, чего нет у конструктора:
   переключатель города msk/spb. ── */

/* ── выбор города — дропдаун (в шапке на десктопе, в тулбаре на мобайле) ── */
.af-city-dd{position:relative}
.af-city-cur{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 14px;border:1.5px solid var(--bd);border-radius:var(--r-pill);background:var(--bg);font-family:var(--fb);font-size:14px;font-weight:600;color:var(--tx);cursor:pointer;transition:border-color .15s}
.af-city-cur:hover{border-color:var(--cp)}
.af-city-cur > svg:first-child{color:var(--cp);flex-shrink:0}
.af-city-chev{color:var(--tx2);flex-shrink:0}
.af-city-name{white-space:nowrap}
.af-city-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:95;min-width:210px;background:#fff;border-radius:14px;box-shadow:var(--sh-deep,0 18px 44px rgba(26,18,72,.20));padding:6px;display:flex;flex-direction:column;gap:2px}
.af-city-menu[hidden]{display:none}
.af-city-menu button{display:flex;align-items:center;height:44px;padding:0 14px;border:0;background:transparent;border-radius:10px;font-family:var(--fb);font-size:14px;font-weight:600;color:var(--tx);text-align:left;cursor:pointer;transition:background .12s}
.af-city-menu button:hover{background:var(--bg-s)}
.af-city-menu button.on{background:var(--cs-lt);color:var(--cs-deep)}
.af-city-dd--header{margin-right:6px}
.af-city-dd--mobile{display:none}

/* detail-страница афиши: ссылка на источник KudaGo (лицензия dofollow) */
.modal-source{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-family:var(--fb);font-size:14px;font-weight:600;color:var(--cp-text);text-decoration:none}
.modal-source:hover{text-decoration:underline}
.modal-source-note{margin-top:8px;font-size:12px;color:var(--tx2);letter-spacing:.02em}

/* ════════ ФИЛЬТР ПО ДАТАМ (Ticketland-стиль) ════════ */
:root{--af-we:#E5395A}
.af-toolbar{padding:8px 16px 0}
.af-toolbar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 2px 12px;min-height:28px}
.af-count{font-family:var(--fd);font-weight:600;font-size:18px;color:var(--tx)}
.af-count:empty{display:none}

/* лента дней */
.af-datebar{position:relative;display:flex;align-items:center;gap:10px}
.af-cal-btn{flex-shrink:0;width:52px;height:52px;border-radius:14px;border:1.5px solid var(--bd);background:var(--bg);color:var(--tx);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s,background .15s}
.af-cal-btn:hover{border-color:var(--cp);color:var(--cp)}
.af-strip{flex:1;min-width:0;display:flex;align-items:flex-start;gap:4px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none;-ms-overflow-style:none;padding-bottom:2px}
.af-strip::-webkit-scrollbar{display:none}
.af-strip-mon{flex-shrink:0;align-self:stretch;display:flex;align-items:center;padding:0 8px 0 6px;font-family:var(--fb);font-size:12px;font-weight:600;color:var(--tx2);white-space:nowrap}
.af-day{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:46px;padding:8px 6px;border:0;background:transparent;border-radius:12px;cursor:pointer;font-family:var(--fb);transition:background .14s,color .14s}
.af-day b{font-size:18px;font-weight:700;line-height:1.1;color:var(--tx)}
.af-day span{font-size:11px;font-weight:500;color:var(--tx2)}
.af-day.we b,.af-day.we span{color:var(--af-we)}
.af-day:hover{background:var(--bg-s)}
.af-day.on{background:var(--cs-deep)}
.af-day.on b,.af-day.on span{color:#fff}
.af-strip-next{flex-shrink:0;width:40px;height:52px;border-radius:12px;border:1.5px solid var(--bd);background:var(--bg);color:var(--tx);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color .15s,color .15s}
.af-strip-next:hover{border-color:var(--cp);color:var(--cp)}

/* календарь-поповер */
.af-cal{position:absolute;top:calc(100% + 8px);left:0;z-index:90;width:min(720px,calc(100vw - 32px));background:#fff;border-radius:20px;box-shadow:var(--sh-deep,0 24px 60px rgba(26,18,72,.22));padding:22px 24px}
.af-cal[hidden]{display:none}
.af-cal-head{display:grid;grid-template-columns:auto 1fr 1fr auto;align-items:center;gap:8px;margin-bottom:14px}
.af-cal-mtitle{text-align:center;font-family:var(--fd);font-weight:700;font-size:18px;color:var(--tx)}
.af-cal-nav{width:38px;height:38px;border-radius:50%;border:0;background:var(--bg-s);color:var(--tx);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}
.af-cal-nav:hover{background:var(--cs-lt)}
.af-cal-grids{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.af-cal-wd{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:6px}
.af-wd{text-align:center;font-size:12px;font-weight:600;color:var(--tx2);text-transform:uppercase}
.af-cal-days{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0}
.af-cell{height:40px;display:flex;align-items:center;justify-content:center;font-family:var(--fb);font-size:15px;color:var(--tx);border:0;background:transparent;border-radius:10px}
.af-cell.empty{pointer-events:none}
.af-cell.we{color:var(--af-we)}
.af-cell.past{color:#C8C8C8;pointer-events:none}
button.af-cell{cursor:pointer;transition:background .12s}
button.af-cell:hover{background:var(--bg-s)}
.af-cell.rng{background:var(--cs-lt);border-radius:0}
.af-cell.on{background:var(--cs-deep);color:#fff;border-radius:10px}
.af-cell.on.we{color:#fff}
.af-cal-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--bd)}
.af-cal-range{display:flex;gap:24px;font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--tx2)}
.af-cal-range b{display:block;margin-top:3px;font-family:var(--fd);font-size:15px;font-weight:600;letter-spacing:0;color:var(--tx);text-transform:none}
.af-cal-btns{display:flex;gap:10px}
.af-cal-reset,.af-cal-apply{height:48px;padding:0 28px;border-radius:var(--r-pill);font-family:var(--fb);font-size:15px;font-weight:600;cursor:pointer;border:0;transition:background .15s,transform .1s}
.af-cal-reset{background:var(--bg-s);color:var(--tx2)}
.af-cal-reset:hover{background:#ECE9E4}
.af-cal-apply{background:var(--cp);color:#fff}
.af-cal-apply:hover{background:var(--cp-dk)}

/* остальные фильтры — раскрываются после выбора даты */
.af-filters{max-height:0;overflow:visible;opacity:0;visibility:hidden;transition:max-height .35s var(--ease),opacity .3s,visibility .35s}
.af-filters.open{max-height:none;opacity:1;visibility:visible}
.af-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px 0}
.af-active{display:flex;align-items:center;gap:8px}
.af-active:empty{display:none}
.af-chip{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 16px;border:0;border-radius:var(--r-pill);font-family:var(--fb);font-size:14px;font-weight:600;cursor:pointer;background:var(--cs-deep);color:#fff;transition:background .15s}
.af-chip:hover{background:var(--cs)}
.af-chip-x{padding:0;width:42px;justify-content:center;font-size:20px}
/* дропдаун цены */
.af-price-dd{position:relative;margin-left:auto}
.af-price-cur{display:inline-flex;align-items:center;gap:7px;height:42px;padding:0 16px;border:1.5px solid var(--bd);border-radius:var(--r-pill);background:var(--bg);font-family:var(--fb);font-size:14px;font-weight:600;color:var(--tx2);cursor:pointer;transition:border-color .15s,color .15s}
.af-price-cur:hover{border-color:var(--cp);color:var(--tx)}
.af-price-cur > svg:first-child{flex-shrink:0}
.af-price-dd.on .af-price-cur{background:var(--cp-lt);border-color:var(--cp);color:var(--cp-text)}
.af-price-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:95;min-width:200px;background:#fff;border-radius:14px;box-shadow:var(--sh-deep,0 18px 44px rgba(26,18,72,.20));padding:6px;display:flex;flex-direction:column;gap:2px}
.af-price-menu[hidden]{display:none}
.af-opt{display:flex;align-items:center;height:42px;padding:0 14px;border:0;background:transparent;border-radius:10px;font-family:var(--fb);font-size:14px;font-weight:600;color:var(--tx);text-align:left;cursor:pointer;transition:background .12s}
.af-opt:hover{background:var(--bg-s)}
.af-opt.on{background:var(--cp-lt);color:var(--cp-text)}

@media (max-width:760px){
  .af-cal-grids{grid-template-columns:1fr;gap:18px}
  .af-cal-grid:nth-child(2){display:none}
  .af-cal-head{grid-template-columns:auto 1fr auto}
  .af-cal-mtitle:nth-of-type(2){display:none}
  .af-cal-foot{flex-direction:column;align-items:stretch}
  .af-cal-btns{justify-content:space-between}
  .af-cal-reset,.af-cal-apply{flex:1}
}
@media (max-width:640px){
  .af-toolbar{padding:6px 12px 0}
  .af-cal-btn{width:46px;height:46px}
  .af-day{min-width:42px}
}
