/* ============================================
   BOARD PAGES (Departures / Arrivals)
   ============================================ */

/* --- Общая обёртка страницы --- */
.board-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* --- Header --- */
.board-header {
    max-width: 900px;
    margin: 40px auto 30px;
    padding: 0 20px;
    text-align: center;
}

.board-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #1a1a2e;
}

.board-airport {
    margin: 0 0 10px;
    font-size: 1rem;
}

.board-airport a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.board-airport a:hover {
    color: #005a87;
    text-decoration: underline;
}

.board-type-label {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-type-label strong {
    color: #1a1a2e;
}

/* --- Content (обёртка iframe) --- */
.board-content {
    max-width: 1100px;
    margin: 0 auto 0;
    padding: 0 20px;
}

/* --- Виджет Avionio --- */
.avionio-widget {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.avionio-frame {
    display: block;
    width: 100%;
    min-height: 500px;
    border: 0;
    background: #fff;
}

/* --- Footer (кнопки переключения и перехода на хаб) --- */
.board-footer {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.board-footer .button {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
}

.board-footer .button:hover {
    background: #005a87;
    transform: translateY(-1px);
    color: #fff;
}

/* Кнопка-обводка для ссылки на глобальный хаб */
.board-footer .button-outline {
    display: inline-block;
    background: transparent;
    color: #0073aa;
    padding: 12px 26px;
    border: 2px solid #0073aa;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
}

.board-footer .button-outline:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-1px);
}

/* Мобильная версия — кнопки в столбик */
@media (max-width: 480px) {
    .board-footer {
        flex-direction: column;
        gap: 10px;
    }
    .board-footer .button,
    .board-footer .button-outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* --- Сообщение об ошибке (если аэропорт не выбран) --- */
.board-error {
    padding: 40px 20px;
    background: #fff4f4;
    border: 1px solid #f5c2c2;
    border-radius: 8px;
    color: #8a1f1f;
    text-align: center;
    font-weight: 500;
}

/* --- Адаптация под мобильные --- */
@media (max-width: 768px) {
    .board-header {
        margin: 20px auto 20px;
    }
    .board-header h1 {
        font-size: 1.6rem;
    }
    .board-content {
        padding: 0 12px;
    }
    .avionio-frame {
        min-height: 400px;
    }
    .board-footer {
        padding: 0 12px;
    }
    .board-footer .button {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* --- Планшеты --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .board-header h1 {
        font-size: 1.9rem;
    }
}


/* ============================================
   BREADCRUMBS
   ============================================ */
.airport-breadcrumbs {
    max-width: 900px;
    margin: 20px auto 10px;
    padding: 0 20px;
    font-size: 0.9rem;
}
.airport-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.airport-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    color: #666;
}
.airport-breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 6px;
    color: #bbb;
    font-size: 1.1rem;
}
.airport-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s;
}
.airport-breadcrumbs a:hover {
    color: #005a87;
    text-decoration: underline;
}
.airport-breadcrumbs [itemprop="name"] {
    color: #1a1a2e;
    font-weight: 500;
}
.airport-breadcrumbs li:last-child [itemprop="name"] {
    color: #666;
    font-weight: 400;
}

/* ============================================
   BOARD INFO SECTION (автоконтент)
   ============================================ */

.board-intro {
    max-width: 900px;
    margin: 0 auto 25px;
    padding: 0 20px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.board-intro p {
    margin: 0;
}

.board-info-section {
    max-width: 900px;
    margin: 40px auto 50px;
    padding: 0 20px;
}

.board-info-section h2 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
}

.board-info-section h2:first-child {
    margin-top: 0;
}

.board-info-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0 0 15px;
}

/* ============================================
   СПИСКИ НА СТРАНИЦАХ ТАБЛО (единый стиль с аэропортами)
   ============================================ */

/* Маркированные списки */
.board-info-section ul {
    list-style-type: disc !important;
    list-style-position: outside !important;
    padding-left: 25px !important;
    margin: 15px 0 20px !important;
}

.board-info-section ul > li {
    display: list-item !important;
    list-style-type: disc !important;
    margin-bottom: 10px !important;
    padding-left: 5px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.board-info-section ul > li::marker {
    color: #0073aa !important;
    font-size: 1em !important;
}

/* Нумерованные списки */
.board-info-section ol {
    list-style-type: decimal !important;
    list-style-position: outside !important;
    padding-left: 25px !important;
    margin: 15px 0 20px !important;
}

.board-info-section ol > li {
    display: list-item !important;
    list-style-type: decimal !important;
    margin-bottom: 10px !important;
    padding-left: 5px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.board-info-section ol > li::marker {
    color: #0073aa !important;
    font-weight: 600 !important;
}

/* Убираем отступ у последнего элемента */
.board-info-section ul > li:last-child,
.board-info-section ol > li:last-child {
    margin-bottom: 0 !important;
}

/* Списки внутри текстовых ACF-блоков (terminals, transportation) */
.board-terminals-text ul,
.board-transport-text ul,
.board-terminals-text ol,
.board-transport-text ol {
    list-style-position: outside !important;
    padding-left: 25px !important;
    margin: 15px 0 !important;
}

.board-terminals-text ul,
.board-transport-text ul {
    list-style-type: disc !important;
}

.board-terminals-text ol,
.board-transport-text ol {
    list-style-type: decimal !important;
}

.board-terminals-text li,
.board-transport-text li {
    display: list-item !important;
    margin-bottom: 8px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.board-terminals-text li::marker,
.board-transport-text li::marker {
    color: #0073aa !important;
}

.board-info-section strong {
    color: #1a1a2e;
}

.board-link-inline {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}
.board-link-inline:hover {
    text-decoration: underline;
}

.board-terminals-text,
.board-transport-text {
    background: #f7f9fc;
    padding: 20px 25px;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
    margin: 20px 0;
}

.board-terminals-text p:last-child,
.board-transport-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CTA-КНОПКИ (перенесены сразу после табло)
   ============================================ */

.board-info-cta {
    max-width: 900px;
    margin: 30px auto 30px;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.board-info-cta .button,
.board-info-cta .button-affiliate {
    display: inline-block;
}

/* ============================================
   FAQ
   ============================================ */

.board-faq {
    max-width: 900px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.board-faq h2 {
    font-size: 1.6rem;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0073aa;
}

.board-faq details {
    background: #f7f9fc;
    border-radius: 8px;
    border-left: 3px solid #0073aa;
    margin-bottom: 10px;
    padding: 0;
    overflow: hidden;
}

.board-faq details[open] {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.board-faq summary {
    padding: 15px 20px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 45px;
    transition: color 0.2s;
}

.board-faq summary::-webkit-details-marker { display: none; }

.board-faq summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: #0073aa;
    transition: transform 0.2s;
}

.board-faq details[open] summary::after { content: '−'; }
.board-faq summary:hover { color: #0073aa; }

.board-faq p {
    padding: 0 20px 18px;
    margin: 0;
    color: #555;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .board-info-section h2 { font-size: 1.3rem; }
    .board-faq h2 { font-size: 1.3rem; }
    .board-info-cta {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        margin: 25px auto 25px;
    }
    .board-info-cta .button,
    .board-info-cta .button-affiliate {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* ============================================
   ЖЁСТКОЕ ВЫРАВНИВАНИЕ СПИСКОВ
   ============================================ */

.board-info-section,
.board-info-section p,
.board-info-section li {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #444;
}

.board-info-section ul,
.board-info-section ol {
    list-style-position: outside !important;
    padding-left: 25px !important;
    margin: 15px 0 20px !important;
}

.board-info-section ul {
    list-style-type: disc !important;
}

.board-info-section ol {
    list-style-type: decimal !important;
}

.board-info-section ul > li,
.board-info-section ol > li {
    display: list-item !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 10px !important;
    padding-left: 5px !important;
}

.board-info-section ul > li::marker {
    color: #0073aa !important;
    font-size: 1em !important;
    font-weight: 400 !important;
}

.board-info-section ol > li::marker {
    color: #0073aa !important;
    font-size: 1em !important;
    font-weight: 600 !important;
}

/* Убираем возможные наследования жирности от strong внутри li */
.board-info-section li strong {
    font-weight: 600;
    color: #1a1a2e;
}

/* Списки внутри ACF-блоков — те же параметры */
.board-terminals-text ul,
.board-transport-text ul,
.board-terminals-text ol,
.board-transport-text ol {
    list-style-position: outside !important;
    padding-left: 25px !important;
    margin: 15px 0 !important;
}

.board-terminals-text ul,
.board-transport-text ul {
    list-style-type: disc !important;
}

.board-terminals-text ol,
.board-transport-text ol {
    list-style-type: decimal !important;
}

.board-terminals-text li,
.board-transport-text li {
    display: list-item !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: #444 !important;
    margin-bottom: 8px !important;
}

.board-terminals-text li::marker,
.board-transport-text li::marker {
    color: #0073aa !important;
}

/* ============================================
   CTA: Расписание рейсов на странице табло
   (копия стиля кнопки из airline.css)
   ============================================ */

.board-schedule-cta {
    text-align: center;
    margin: 20px 0 25px;
}

.board-schedule-cta .button-affiliate-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;                 
    background: #ff6b35;
    color: #fff !important;
    padding: 14px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    box-sizing: border-box;
}

.board-schedule-cta .button-affiliate-hero:hover {
    background: #e55a2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .board-schedule-cta .button-affiliate-hero {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 0.92rem;
        text-align: center;
    }
}