/* css/m2-airport.css — страница аэропорта /airports/<код>/ (airports/airport-m2.php).
   Каркас — как у посадочных (m2-direction.css), оформление текста — m2-blog.css (плашки, таблицы, FAQ); здесь свои блоки:
   карточка «коротко об аэропорте» (.m2-ap-facts) и расписание по городам (.m2-ap-sched).
   Ссылки — оранжевые и подчёркнутые (правило сайта 17.11.2026, эталон — страница «город — город»). */

/* Коротко об аэропорте: полоса цифр + список «название — значение» в одной карточке */
.m2-ap-info { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin: 4px 0 26px; overflow: hidden; }
.m2-ap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fff7f4; }
.m2-ap-stat { padding: 16px 18px; line-height: 1.25; }
.m2-ap-stat + .m2-ap-stat { border-left: 1px solid var(--line); }
.m2-ap-stat b { display: block; font-size: 30px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.m2-ap-stat span { display: block; margin-top: 4px; font-size: 14px; color: #45566b; }
.m2-ap-dl { margin: 0; padding: 4px 18px; }
.m2-ap-dl > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.m2-ap-dl > div:last-child { border-bottom: 0; }
.m2-ap-dl dt { color: var(--muted); font-size: 15px; }
.m2-ap-dl dd { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; overflow-wrap: anywhere; }
.m2-ap-dl a { text-decoration: underline; }
@media (max-width: 600px) {
   .m2-ap-stat { padding: 12px; }
   .m2-ap-stat b { font-size: 24px; }
   .m2-ap-stat span { font-size: 12.5px; }
   .m2-ap-dl { padding: 2px 14px; }
   .m2-ap-dl > div { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
   .m2-ap-dl dt { font-size: 13px; }
}

/* Расписание по городам: строка-город (summary) раскрывается в таблицу рейсов */
.m2-ap-sched { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 24px; background: #fff; }
.m2-ap-sched-head, .m2-ap-city > summary { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr minmax(0, 2.4fr) 1.1fr 22px; gap: 10px; align-items: center; padding: 11px 14px; }
.m2-ap-sched-head { background: #f2f5fa; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.m2-ap-city { border-top: 1px solid var(--line); }
.m2-ap-city > summary { cursor: pointer; list-style: none; font-size: 15px; }
.m2-ap-city > summary::-webkit-details-marker { display: none; }
.m2-ap-city > summary:hover { background: #fbfcfe; }
.m2-ap-city[open] > summary { background: #fff7f4; }
.m2-ap-city[open] > summary .m2-faq-chev { transform: rotate(225deg) translateY(-3px); }
.m2-ap-city-name { font-weight: 700; color: var(--ink); }
.m2-ap-city-ap, .m2-ap-muted { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.m2-ap-city-n { font-weight: 700; }
.m2-ap-city-al { color: #45566b; font-size: 14px; }
.m2-ap-city-pr { font-weight: 700; color: var(--brand); white-space: nowrap; }
.m2-ap-city .m2-blog-table { margin: 0; padding: 4px 14px 0; }
/* Рейсы внутри города: ровные колонки (фиксированная раскладка), дни — точки и подпись в одну строку */
.m2-blog-text .m2-ap-city table { font-size: 14.5px; table-layout: fixed; min-width: 640px; }
.m2-blog-text .m2-ap-city th, .m2-blog-text .m2-ap-city td { padding: 8px 10px; vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.m2-blog-text .m2-ap-city thead th { background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.m2-ap-city th:nth-child(1) { width: 10%; } .m2-ap-city th:nth-child(2) { width: 17%; } .m2-ap-city th:nth-child(3) { width: 8%; }
.m2-ap-city th:nth-child(4) { width: 12%; } .m2-ap-city th:nth-child(5) { width: 12%; } .m2-ap-city th:nth-child(6) { width: 27%; } .m2-ap-city th:nth-child(7) { width: 14%; }
.m2-ap-city td:nth-child(6), .m2-ap-city td:nth-child(7) { white-space: nowrap; }
.m2-ap-city td:nth-child(7) { color: var(--muted); font-size: 13.5px; }
.m2-ap-next { font-size: 11.5px; font-weight: 700; color: var(--brand); vertical-align: super; margin-left: 1px; }
.m2-ap-city tbody tr:last-child td { border-bottom: 0; }
.m2 .m2-blog-text .m2-ap-city-link { margin: 6px 14px 16px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.m2-ap-dots { display: inline-flex; gap: 2px; vertical-align: middle; margin-right: 4px; }
.m2-ap-dots span { width: 6px; height: 6px; border-radius: 50%; background: #dfe5ee; }
.m2-ap-dots span.on { background: var(--brand); }
.m2-ap-wd { font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) {
   .m2-ap-sched-head { display: none; }
   .m2-ap-city > summary { grid-template-columns: minmax(0, 1fr) auto 22px; row-gap: 2px; }
   .m2-ap-city-name { grid-column: 1; grid-row: 1; }
   .m2-ap-city-pr { grid-column: 2; grid-row: 1; }
   .m2-ap-city > summary .m2-faq-chev { grid-column: 3; grid-row: 1 / span 2; }
   .m2-ap-city-n { grid-column: 1 / span 2; grid-row: 2; font-weight: 500; font-size: 13px; color: var(--muted); }
   .m2-ap-city-n::after { content: ' рейсов в неделю'; }
   .m2-ap-city-al { grid-column: 1 / span 2; grid-row: 3; font-size: 13px; }
}
.m2-ap-city td:first-child, .m2-ap-city td:nth-child(3), .m2-ap-city td:nth-child(4), .m2-ap-city td:nth-child(5) { white-space: nowrap; }
/* Заголовок «Прилёт в Бангкок» короче: город — в строке-городе выше */

/* ── Табло [ap-board]: «Вылет / Прилёт» → города-чипы → компактные строки рейсов ── */
.m2-ap-board { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 24px; }
.m2-ap-tabs { display: inline-flex; background: #f2f5fa; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.m2-ap-tabs button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font: inherit; font-size: 15.5px; font-weight: 700; color: var(--ink); cursor: pointer; }
.m2-ap-tabs button span { font-weight: 500; font-size: 13px; color: var(--muted); }
.m2-ap-tabs button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(255, 90, 60, .25); }
.m2-ap-tabs button.on span { color: rgba(255, 255, 255, .85); }
.m2 .m2-blog-text .m2-ap-dir-ttl { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.m2-ap-board.js .m2-ap-dir-ttl { display: none; }
.m2-ap-chips { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 0 12px; }
.m2-ap-chips::-webkit-scrollbar { display: none; }
.m2-ap-chips button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.m2-ap-chips button span { margin-left: 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: #f2f5fa; border-radius: 999px; padding: 1px 7px; }
.m2-ap-chips button:hover { border-color: var(--brand); }
.m2-ap-chips button.on { border-color: var(--brand); background: #fff3ef; color: var(--brand-dark); }
.m2-ap-chips button.on span { background: var(--brand); color: #fff; }
.m2-ap-board:not(.js) .m2-ap-chips { display: none; }   /* без JS всё видно подряд — чипы не нужны */
.m2-ap-board.js .m2-ap-dir:not(.on), .m2-ap-board.js .m2-ap-panel:not(.on) { display: none; }
.m2-ap-board:not(.js) .m2-ap-dir + .m2-ap-dir { margin-top: 18px; }
.m2-ap-board:not(.js) .m2-ap-panel + .m2-ap-panel { margin-top: 14px; }
.m2-ap-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 4px 2px 8px; }
.m2-ap-panel-head b { font-size: 17px; color: var(--ink); }
.m2-ap-panel-head > span { font-size: 14px; color: var(--muted); }
.m2 .m2-blog-text .m2-ap-price { margin-left: auto; font-weight: 800; font-size: 15.5px; color: var(--brand); text-decoration: underline; white-space: nowrap; }
.m2 .m2-blog-text .m2-ap-fls { list-style: none; margin: 0; padding: 0; }
.m2 .m2-blog-text .m2-ap-fl { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px 150px; gap: 12px; align-items: center; margin: 0; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.m2-ap-panel:not(.all) .m2-ap-fl.more { display: none; }
.m2-ap-board:not(.js) .m2-ap-fl.more { display: grid; }
.m2-ap-board:not(.js) .m2-ap-more { display: none; }
.m2-ap-fl-time { white-space: nowrap; color: #45566b; }
.m2-ap-fl-time b { font-size: 18px; font-weight: 800; color: var(--ink); }
.m2-ap-fl-time i { font-style: normal; color: var(--muted); margin: 0 2px; }
.m2-ap-fl-time small, .m2-ap-fl-al small, .m2-ap-fl-days small { font-size: 12.5px; color: var(--muted); }
.m2-ap-fl-al { display: flex; align-items: center; gap: 10px; min-width: 0; }
.m2-ap-fl-al > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.m2-ap-fl-al b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-ap-fl-al small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-ap-logo { position: relative; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #eef2f8; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #45566b; }
.m2-ap-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; margin: 0; border-radius: 0; }
.m2-ap-fl-dur { white-space: nowrap; color: #45566b; font-size: 14px; }
.m2-ap-fl-days { display: flex; flex-direction: column; gap: 3px; }
.m2-ap-fl-days small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2-ap-more { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px dashed #d5dde8; border-radius: 12px; background: #fbfcfe; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--brand); cursor: pointer; }
.m2-ap-more:hover { border-color: var(--brand); }
@media (max-width: 700px) {
   .m2-ap-board { padding: 12px; border-radius: 16px; }
   .m2-ap-tabs { display: flex; }
   .m2-ap-tabs button { flex: 1; padding: 9px 8px; font-size: 14.5px; }
   .m2 .m2-blog-text .m2-ap-fl { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time dur" "al days" "after after"; gap: 6px 10px; }
   .m2-ap-fl-time { grid-area: time; } .m2-ap-fl-dur { grid-area: dur; text-align: right; }
   .m2-ap-fl-al { grid-area: al; } .m2-ap-fl-days { grid-area: days; align-items: flex-end; }
   .m2 .m2-blog-text .m2-ap-price { margin-left: 0; }
}

/* [ap-plan] «Сразу из аэропорта — прилетайте до …» */

/* «Ближайшие» рейсы: разделитель «Завтра» и подпись */
.m2 .m2-blog-text .m2-ap-day { list-style: none; margin: 0; padding: 10px 2px 4px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.m2 .m2-blog-text .m2-ap-near-foot { margin: 8px 2px 0; font-size: 13.5px; color: var(--muted); }
.m2-ap-board:not(.js) .m2-ap-near-foot { display: none; }

/* Каркас посадочной (19.11.2026): текст аэропорта в секциях m2-dir-main, а не в колонке статьи блога.
   Кегль и заголовки — как у блоков страницы «город — город» (m2-direction.css), а не крупный кегль статьи. */
.m2-ap-page .m2-ap-text { font-size: 16px; line-height: 1.65; }
.m2-ap-page .m2-ap-text > h2:first-child { margin-top: 0; }
.m2-ap-page .m2-ap-text h2 { font-size: 24px; margin: 0 0 12px; scroll-margin-top: 16px; }
.m2-ap-page .m2-ap-text h3 { font-size: 19px; margin: 22px 0 10px; }
.m2-ap-page .m2-dir-sec + .m2-dir-sec { padding-top: 18px; }
@media (max-width: 640px) { .m2-ap-page .m2-ap-text h2 { font-size: 20px; } .m2-ap-page .m2-ap-text { font-size: 15.5px; } }

/* [ap-live] — онлайн-табло на сегодня (живые статусы DOA, units/tfic.php). Вкладки — те же .m2-ap-tabs. */
.m2-ap-live { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin: 0 0 24px; }
.m2-ap-live-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.m2-ap-live-head b { font-size: 17px; font-weight: 800; color: var(--ink); }
.m2-ap-live-head span { font-size: 13px; color: var(--muted); }
/* Пульсирующая зелёная точка «в реальном времени» перед строкой времени (19.11.2026, просьба Евгения) */
.m2-ap-live-dot { position: relative; display: inline-block; width: 8px; height: 8px; margin: 0 8px 1px 1px; border-radius: 50%; background: #22a654; vertical-align: middle; }
.m2-ap-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22a654; animation: m2-ap-live-pulse 1.8s ease-out infinite; }
@keyframes m2-ap-live-pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m2-ap-live-dot::after { animation: none; } }
.m2-ap-live.js .m2-ap-dir:not(.on) { display: none; }
.m2-ap-live:not(.js) .m2-ap-dir + .m2-ap-dir { margin-top: 18px; }
.m2 .m2-blog-text ul.m2-ap-lvs { list-style: none; margin: 0; padding: 0; }
.m2 .m2-blog-text .m2-ap-lv { display: grid; grid-template-columns: 64px minmax(0, 1fr) 210px; gap: 12px; align-items: center; margin: 0; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.m2 .m2-blog-text .m2-ap-lv::before { content: none; }
.m2-ap-live.js .m2-ap-dir:not(.all) .m2-ap-lv.past { display: none; }
.m2-ap-lv.past { opacity: .6; }
.m2-ap-fl-al b small.m2-ap-lv-code { display: inline; font-size: 12px; font-weight: 600; color: var(--muted); }
.m2-ap-lv-time b { font-size: 18px; font-weight: 800; color: var(--ink); }
.m2-ap-lv-time b.moved { text-decoration: line-through; color: var(--muted); font-weight: 700; }
.m2-ap-lv-st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.m2-ap-lv-st small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.m2-ap-st { font-style: normal; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2f8; color: #45566b; white-space: nowrap; }
.m2-ap-st.st-ok   { background: #e6f6ec; color: #1f7a3d; }
.m2-ap-st.st-go   { background: #e7f3fb; color: #1b6c99; }
.m2-ap-st.st-warn { background: #fff1e0; color: #b45a00; }
.m2-ap-st.st-bad  { background: #fde8e6; color: #c0352b; }
.m2-ap-live-past { display: block; width: 100%; margin: 0 0 6px; padding: 8px; border: 1px dashed var(--line); border-radius: 12px; background: transparent; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.m2-ap-live:not(.js) .m2-ap-live-past { display: none; }
.m2 .m2-blog-text .m2-ap-live-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) {
   .m2-ap-live { padding: 12px; border-radius: 16px; }
   .m2 .m2-blog-text .m2-ap-lv { grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: "time al" ". st"; gap: 4px 10px; }
   .m2-ap-lv-time { grid-area: time; } .m2-ap-lv .m2-ap-fl-al { grid-area: al; } .m2-ap-lv-st { grid-area: st; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
   .m2-ap-lv-time b { font-size: 16px; }
}
/* Дата снимка недельного расписания над табло (ревью 19.11.2026: старый снимок выглядел как живое табло) */
.m2 .m2-blog-text .m2-ap-snap { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }

/* [ap-lounges] — бизнес-залы и по каким картам пройти (airports/airport-m2.php → ap_lounges_html) */
.m2-ap-lounges td:nth-child(2), .m2-ap-lounges td:nth-child(3),
.m2-ap-lounges th:nth-child(2), .m2-ap-lounges th:nth-child(3) { text-align: center; white-space: nowrap; }
.m2-ap-yes { font-weight: 700; color: #1a8f3c; }
.m2-ap-no { color: var(--muted); }
.m2-ap-lounge-note { font-size: 14px; color: var(--muted); }
.m2-ap-lounges-box.js .m2-ap-lz:not(.on), .m2-ap-lounges-box.js .m2-ap-dir-ttl { display: none; }
.m2-ap-lounges-box:not(.js) .m2-ap-lz + .m2-ap-lz { margin-top: 18px; }
.m2-ap-rate { font-size: 13px; color: var(--muted); }
.m2-ap-rate b { color: var(--ink); font-weight: 700; }
