/* ============================================
GLOBAL HUBS (/departures/, /arrivals/)
============================================ */

.departures-hub,
.arrivals-hub {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px 60px;
}

.hub-hero {
text-align: center;
padding: 60px 20px 30px;
}

.hub-hero h1 {
font-size: 2.5rem;
margin: 0 0 12px;
color: #1a1a2e;
}

.hub-subtitle {
font-size: 1.1rem;
color: #555;
max-width: 700px;
margin: 0 auto;
}

.hub-search {
max-width: 600px;
margin: 0 auto 50px;
}

.hub-search input {
width: 100%;
padding: 14px 20px;
font-size: 1rem;
border: 2px solid #e5e5e5;
border-radius: 10px;
transition: border-color 0.2s;
}

.hub-search input:focus {
border-color: #0073aa;
outline: none;
}

.hub-airports-list h2 {
font-size: 1.8rem;
border-bottom: 2px solid #0073aa;
padding-bottom: 8px;
margin: 40px 0 20px;
}

.airport-board-list {
list-style: none;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 10px;
}

.board-link {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 18px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 8px;
text-decoration: none;
color: #1a1a2e;
transition: all 0.2s;
}

.board-link:hover {
border-color: #0073aa;
background: #f0f8ff;
}

.airport-iata {
font-size: 0.75rem;
font-weight: 700;
background: #0073aa;
color: #fff;
padding: 3px 8px;
border-radius: 4px;
letter-spacing: 0.5px;
}

.airport-title {
flex: 1;
margin-left: 12px;
font-weight: 500;
}

.arrow {
color: #0073aa;
font-size: 1.2rem;
}

@media (max-width: 768px) {
.hub-hero h1 { font-size: 1.8rem; }
.airport-board-list { grid-template-columns: 1fr; }
}

/* ============================================
ЖИВОЙ ПОИСК АЭРОПОРТОВ
============================================ */

.airport-search-results {
display: none;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: #fff;
border: 1px solid #e5e5e5;
border-top: none;
border-radius: 0 0 10px 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
max-height: 400px;
overflow-y: auto;
z-index: 9999;
margin-top: -2px;
}

.airport-search-results.active {
display: block;
}

.airport-search-item {
display: flex;
align-items: center;
padding: 12px 16px;
text-decoration: none;
color: #1a1a2e;
border-bottom: 1px solid #f0f0f0;
transition: background 0.15s;
}

.airport-search-item:last-child {
border-bottom: none;
}

.airport-search-item:hover,
.airport-search-item.active {
background: #f0f8ff;
}

.airport-search-item .iata-badge {
font-size: 0.75rem;
font-weight: 700;
background: #0073aa;
color: #fff;
padding: 3px 8px;
border-radius: 4px;
letter-spacing: 0.5px;
flex-shrink: 0;
margin-right: 12px; /* ← явный отступ справа */
}

.airport-search-item .search-title {
flex: 1;
font-weight: 500;
font-size: 0.95rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin-right: 10px; /* ← отступ от страны */
}

.airport-search-item .search-country {
font-size: 0.8rem;
color: #888;
flex-shrink: 0;
text-align: right;
}

.search-loading,
.search-empty {
padding: 15px 20px;
color: #888;
font-size: 0.9rem;
text-align: center;
}

/* На мобильных — чуть больше отступы для тапа */
@media (max-width: 768px) {
.airport-search-item {
padding: 14px 16px;
}
.airport-search-item .search-title {
font-size: 0.9rem;
}
}

