/* ============================================
AIRPORT PAGES (single-airport.php)
============================================ */

/* --- Hero-секция --- */
.airport-hero {
background: #1a1a2e;
color: #fff;
padding: 60px 20px;
text-align: center;
}
.airport-hero h1 {
font-size: 2.5rem;
margin: 0 0 10px;
line-height: 1.2;
}
.airport-codes {
font-size: 1.1rem;
opacity: 0.85;
margin: 0;
}

/* --- Sticky-навигация по якорям --- */
.airport-anchor-nav {
position: sticky;
top: 0;
background: #fff;
border-bottom: 1px solid #e5e5e5;
padding: 15px 20px;
display: flex;
gap: 20px;
overflow-x: auto;
z-index: 100;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.airport-anchor-nav a {
text-decoration: none;
color: #333;
font-weight: 600;
white-space: nowrap;
transition: color 0.2s;
}
.airport-anchor-nav a:hover {
color: #0073aa;
}

/* --- Секции --- */
.airport-section {
max-width: 900px;
margin: 40px auto;
padding: 0 20px;
scroll-margin-top: 80px;
}
.airport-section h2 {
font-size: 1.8rem;
margin-bottom: 20px;
border-bottom: 2px solid #0073aa;
padding-bottom: 8px;
}

/* --- Блок статистики --- */
.stat-block {
background: #f7f9fc;
padding: 15px 20px;
border-radius: 8px;
margin: 15px 0;
}

/* --- Кнопки табло --- */
.board-links {
display: flex;
gap: 15px;
margin-top: 20px;
flex-wrap: wrap;
}
.board-links .button {
display: inline-block;
background: #0073aa;
color: #fff;
padding: 12px 24px;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s;
}
.board-links .button:hover {
background: #005a87;
}

/* --- FAQ (details/summary) --- */
.airport-section details {
background: #f7f9fc;
padding: 15px 20px;
border-radius: 8px;
margin-bottom: 10px;
cursor: pointer;
}
.airport-section summary {
font-weight: 600;
color: #1a1a2e;
}
.airport-section summary::marker {
color: #0073aa;
}
.airport-section details p {
margin: 10px 0 0;
color: #555;
}

/* --- Связанные аэропорты --- */
.related-list {
list-style: none;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
}
.related-list li a {
display: block;
padding: 12px 15px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 6px;
text-decoration: none;
color: #0073aa;
font-weight: 600;
transition: all 0.2s;
}
.related-list li a:hover {
border-color: #0073aa;
background: #f0f8ff;
}

/* --- Мобильная адаптация --- */
@media (max-width: 768px) {
.airport-hero h1 {
font-size: 1.8rem;
}
.airport-anchor-nav {
gap: 15px;
padding: 12px 15px;
}
.airport-section {
margin: 25px auto;
}
.board-links .button {
width: 100%;
text-align: center;
}
}

/* ============================================
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;
}

.airport-map-embed {
margin: 20px 0;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
background: #f0f0f0;
}
.airport-map-embed iframe {
display: block;
width: 100% !important;
height: 400px !important;
border: 0;
max-width: 100%;
}

@media (max-width: 768px) {
.airport-map-embed iframe {
height: 300px !important;
}
}

/* Hero CTA */
.hero-cta {
display: flex;
gap: 15px;
justify-content: center;
margin-top: 25px;
flex-wrap: wrap;
}

/* Кнопки партнёрки — оранжевые */
.button-affiliate {
display: inline-flex;
align-items: center;
gap: 8px;
background: #ff6b35;
color: #fff !important;
padding: 14px 28px;
border-radius: 8px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s, transform 0.15s;
margin-top: 15px;
}
.button-affiliate:hover {
background: #e55a2a;
transform: translateY(-1px);
}

/* Информация и контакты */
.airport-info-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 15px;
margin-top: 20px;
}
.info-item {
background: #f7f9fc;
padding: 15px 20px;
border-radius: 8px;
border-left: 3px solid #0073aa;
}
.info-item strong {
display: block;
margin-bottom: 5px;
color: #1a1a2e;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.info-item span,
.info-item a {
color: #555;
word-break: break-word;
}
.info-item a {
color: #0073aa;
text-decoration: none;
}
.info-item a:hover {
text-decoration: underline;
}

/* Destinations */
.destinations-content {
line-height: 1.7;
color: #444;
}

@media (max-width: 768px) {
.hero-cta { flex-direction: column; }
.hero-cta .button { width: 100%; text-align: center; }
.button-affiliate { width: 100%; justify-content: center; }
}

.terminals-content {
line-height: 1.7;
color: #444;
margin-bottom: 20px;
}
.terminals-content p {
margin: 0 0 15px;
}
.terminals-content ul {
margin: 15px 0;
padding-left: 25px;
}
.terminals-content li {
margin-bottom: 8px;
}

/* Нумерованный список в тексте */
.terminals-content ol {
padding-left: 25px;
margin: 15px 0;
}
.terminals-content ol li {
margin-bottom: 10px;
line-height: 1.6;
}
.terminals-content ul {
padding-left: 25px;
margin: 15px 0;
}
.terminals-content ul li {
margin-bottom: 8px;
line-height: 1.6;
}

/* Таблица терминалов */
.terminals-table-wrap {
margin: 20px 0 25px;
overflow-x: auto;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.terminals-table {
width: 100%;
border-collapse: collapse;
background: #fff;
min-width: 600px;
}
.terminals-table thead {
background: #1a1a2e;
color: #fff;
}
.terminals-table th {
padding: 14px 18px;
text-align: left;
font-weight: 600;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.terminals-table td {
padding: 14px 18px;
border-bottom: 1px solid #eee;
color: #444;
vertical-align: top;
line-height: 1.5;
}
.terminals-table tbody tr:last-child td {
border-bottom: none;
}
.terminals-table tbody tr:hover {
background: #f7f9fc;
}
.terminals-table td strong {
color: #1a1a2e;
}

@media (max-width: 768px) {
.terminals-table th,
.terminals-table td {
padding: 10px 12px;
font-size: 0.9rem;
}
}

.terminals-content ul {
list-style-type: disc !important;
list-style-position: outside !important;
padding-left: 25px !important;
margin: 15px 0 !important;
}
.terminals-content ul > li {
display: list-item !important;
list-style-type: disc !important;
margin-bottom: 10px !important;
padding-left: 5px !important;
line-height: 1.6 !important;
}
.terminals-content ul > li::marker {
color: #0073aa !important;
font-size: 1.1em !important;
}


/* ============================================
UNIFIED TEXT STYLES FOR AIRPORT SECTIONS
============================================ */

/* Базовый текст во всех секциях аэропорта */
.airport-section p,
.airport-section li,
.airport-section {
font-family: inherit;
font-size: 1rem;
font-weight: 400;
line-height: 1.7;
color: #444;
}

/* Отступы между параграфами */
.airport-section > p,
.airport-section > div > p,
.airport-content > p,
.destinations-content > p,
.terminals-content > p {
margin: 0 0 18px;
}

/* Убираем отступ у последнего параграфа */
.airport-section > p:last-child,
.airport-section > div > p:last-child,
.airport-content > p:last-child,
.destinations-content > p:last-child,
.terminals-content > p:last-child {
margin-bottom: 0;
}

/* Обёртка для the_content() в Overview — чтобы выровнять с другими блоками */
.airport-content {
font-size: 1rem;
line-height: 1.7;
color: #444;
}
.airport-content h3,
.airport-content h4 {
color: #1a1a2e;
margin: 25px 0 15px;
}
.airport-content ul,
.airport-content ol {
margin: 15px 0;
padding-left: 25px;
}
.airport-content li {
margin-bottom: 8px;
line-height: 1.6;
}

/* Заголовки в других блоках — единый стиль */
.destinations-content h3,
.terminals-content h3 {
font-size: 1.2rem;
color: #1a1a2e;
margin: 20px 0 12px;
}

/* Ссылки в текстовых блоках */
.airport-section a {
color: #0073aa;
text-decoration: none;
}
.airport-section a:hover {
color: #005a87;
text-decoration: underline;
}

/* Не перебиваем кнопки-ссылки */
.airport-section a.button,
.airport-section a.button-affiliate {
color: #fff;
text-decoration: none;
}

/* ============================================
TRANSPORTATION BLOCK
============================================ */

.transport-content {
font-size: 1rem;
line-height: 1.7;
color: #444;
margin-bottom: 25px;
}

.transport-content h3 {
font-size: 1.2rem;
color: #1a1a2e;
margin: 25px 0 12px;
padding-left: 12px;
border-left: 3px solid #0073aa;
}

.transport-content h3:first-child {
margin-top: 0;
}

.transport-content p {
margin: 0 0 15px;
}

.transport-content ul {
list-style-type: disc !important;
list-style-position: outside !important;
padding-left: 25px !important;
margin: 15px 0 !important;
}

.transport-content ul li {
display: list-item !important;
margin-bottom: 8px;
line-height: 1.6;
}

.transport-content strong {
color: #1a1a2e;
}

/* Кнопки в транспортном блоке */
.transport-cta {
display: flex;
gap: 15px;
flex-wrap: wrap;
margin-top: 20px;
}

.transport-cta .button,
.transport-cta .button-affiliate {
margin-top: 0;
}

@media (max-width: 768px) {
.transport-cta {
flex-direction: column;
}
.transport-cta .button,
.transport-cta .button-affiliate {
width: 100%;
justify-content: center;
text-align: center;
}
}

/* ============================================
FAQ ACCORDION
============================================ */

.faq-accordion {
display: flex;
flex-direction: column;
gap: 10px;
}

.faq-accordion details {
background: #f7f9fc;
border-radius: 8px;
border-left: 3px solid #0073aa;
padding: 0;
overflow: hidden;
transition: background 0.2s;
}

.faq-accordion details[open] {
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-accordion summary {
padding: 15px 20px;
font-weight: 600;
color: #1a1a2e;
cursor: pointer;
list-style: none;
position: relative;
padding-right: 40px;
transition: color 0.2s;
}

.faq-accordion summary::-webkit-details-marker {
display: none;
}

.faq-accordion summary::after {
content: '+';
position: absolute;
right: 20px;
top: 50%;
transform: translateY(-50%);
font-size: 1.4rem;
font-weight: 400;
color: #0073aa;
transition: transform 0.2s;
}

.faq-accordion details[open] summary::after {
content: '−';
}

.faq-accordion summary:hover {
color: #0073aa;
}

.faq-answer {
padding: 0 20px 18px;
color: #555;
line-height: 1.7;
font-size: 0.98rem;
}

@media (max-width: 768px) {
.faq-accordion summary {
padding: 12px 15px;
padding-right: 35px;
font-size: 0.95rem;
}
.faq-answer {
padding: 0 15px 15px;
}
}

/* ============================================
ПАРТНЁРСКИЕ КНОПКИ НА МОБИЛЬНЫХ — МЯГКИЙ ФИКС
============================================ */

@media (max-width: 480px) {

/* Кнопки партнёрки не выходят за пределы экрана */
.button-affiliate {
max-width: 100%;
box-sizing: border-box;
white-space: normal;
word-wrap: break-word;
padding: 12px 16px;
font-size: 0.9rem;
line-height: 1.3;
}

/* Контейнеры кнопок не растягивают дочерние элементы */
.transport-cta,
.board-links {
max-width: 100%;
box-sizing: border-box;
}
}

/* Ссылки IATA в тексте */
.iata-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}

.iata-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Не перебиваем стили внутри блоков ACF */
.board-info-section .iata-link,
.airline-section .iata-link {
    color: #0073aa;
}

.aviasales-app-landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}
.app-hero {
    text-align: center;
    margin-bottom: 40px;
}
.app-features {
    background: #f7f9fc;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.app-features ul {
    list-style: none;
    padding: 0;
}
.app-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}
.app-features li::before {
    content: "✈️";
    position: absolute;
    left: 0;
}
.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.app-note {
    font-size: 0.9rem;
    color: #666;
}