/* ============================================
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;
}
}