/* ============================================
AIRPORTS HUB PAGE (/airports/)
============================================ */

.airports-hub {
max-width: 1100px;
margin: 0 auto;
padding: 0 20px 60px;
}

.airports-hub-hero {
text-align: center;
padding: 60px 20px 40px;
}
.airports-hub-hero h1 {
font-size: 2.5rem;
margin: 0 0 12px;
color: #1a1a2e;
}
.airports-hub-hero p {
font-size: 1.1rem;
color: #555;
max-width: 700px;
margin: 0 auto;
}

.airports-hub-search {
max-width: 600px;
margin: 0 auto 50px;
}
.airports-hub-search input {
width: 100%;
padding: 14px 20px;
font-size: 1rem;
border: 2px solid #e5e5e5;
border-radius: 10px;
transition: border-color 0.2s;
}
.airports-hub-search input:focus {
border-color: #0073aa;
outline: none;
}

.airports-hub-regions h2,
.airports-hub-popular h2 {
font-size: 1.8rem;
border-bottom: 2px solid #0073aa;
padding-bottom: 8px;
margin: 40px 0 20px;
}

.region-block {
margin-bottom: 30px;
}
.region-block h3 {
font-size: 1.3rem;
margin: 0 0 12px;
color: #1a1a2e;
}
.country-list {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 8px;
}
.country-list li a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
background: #f7f9fc;
border-radius: 6px;
text-decoration: none;
color: #333;
transition: background 0.2s;
}
.country-list li a:hover {
background: #eaf3fa;
color: #0073aa;
}
.country-list .count {
font-size: 0.85rem;
color: #888;
}

.popular-airports-list {
list-style: none;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 10px;
}
.popular-airports-list li a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 8px;
text-decoration: none;
color: #1a1a2e;
transition: all 0.2s;
}
.popular-airports-list li a:hover {
border-color: #0073aa;
background: #f0f8ff;
}
.iata-badge {
font-size: 0.75rem;
font-weight: 700;
background: #0073aa;
color: #fff;
padding: 3px 8px;
border-radius: 4px;
letter-spacing: 0.5px;
}

@media (max-width: 768px) {
.airports-hub-hero h1 { font-size: 1.8rem; }
.airports-hub-hero { padding: 30px 15px 20px; }
.country-list { grid-template-columns: 1fr 1fr; }
.popular-airports-list { grid-template-columns: 1fr; }
}

/* ============================================
BREADCRUMBS (для страницы хаба)
============================================ */
.airport-breadcrumbs {
max-width: 1100px;
margin: 20px auto 0;
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;
}

/* ============================================
TAXONOMY PAGES (country / region)
============================================ */

.tax-header {
max-width: 1100px;
margin: 30px auto 20px;
padding: 0 20px;
}
.tax-header h1 {
font-size: 2rem;
margin: 0 0 12px;
color: #1a1a2e;
}
.tax-description {
font-size: 1rem;
color: #555;
max-width: 800px;
}

.tax-airports-list {
max-width: 1100px;
margin: 0 auto 60px;
padding: 0 20px;
}
.tax-airports-list ul {
list-style: none;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 10px;
}
.tax-airports-list li a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: #fff;
border: 1px solid #e5e5e5;
border-radius: 8px;
text-decoration: none;
color: #1a1a2e;
transition: all 0.2s;
}
.tax-airports-list li a:hover {
border-color: #0073aa;
background: #f0f8ff;
}

@media (max-width: 768px) {
.tax-header h1 { font-size: 1.6rem; }
.tax-airports-list ul { grid-template-columns: 1fr; }
}

/* ============================================
   AIRLINES HUB PAGE (/airlines/)
   ============================================ */

.airlines-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.airlines-hub-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.airlines-hub-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 12px;
    color: #1a1a2e;
}
.airlines-hub-hero p {
    font-size: 1.1rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.airlines-hub-search {
    max-width: 600px;
    margin: 0 auto 50px;
}
.airlines-hub-search input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    transition: border-color 0.2s;
}
.airlines-hub-search input:focus {
    border-color: #0073aa;
    outline: none;
}

.airlines-hub-alliances h2,
.airlines-hub-popular h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

.alliances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.alliance-card {
    padding: 20px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s;
}
.alliance-card:hover {
    transform: translateY(-3px);
}
.alliance-card h3 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}
.alliance-count {
    font-size: 0.9rem;
    opacity: 0.9;
}

.popular-airlines-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.popular-airlines-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s;
}
.popular-airlines-list li a:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

/* ============================================
   SEARCH INPUT STYLES (для всех hub-страниц)
   ============================================ */

.airlines-hub-search,
.airports-hub-search,
.hub-search {
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
}

.airlines-hub-search input,
.airports-hub-search input,
.hub-search input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.4;
    color: #1a1a2e;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.airlines-hub-search input::placeholder,
.airports-hub-search input::placeholder,
.hub-search input::placeholder {
    color: #999;
    opacity: 1;
}

.airlines-hub-search input:focus,
.airports-hub-search input:focus,
.hub-search input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    outline: none;
}

/* Список авиакомпаний на странице альянса */
.tax-airlines-list {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.tax-airlines-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}
.tax-airlines-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.2s;
}
.tax-airlines-list li a:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}
.tax-airlines-list .airline-name {
    font-weight: 500;
}
.tax-airlines-list .iata-badge {
    font-size: 0.75rem;
    font-weight: 700;
    background: #0073aa;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Блок «Other Alliances» */
.other-alliances {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}
.other-alliances h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin: 0 0 20px;
}

/* ============================================
   ONLINE CHECK-IN (/online-check-in/)
   ============================================ */

.checkin-hub {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.checkin-hub-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.checkin-hub-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 16px;
    color: #1a1a2e;
}

.checkin-hub-hero p {
    font-size: 1.05rem;
    color: #555;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.checkin-hub-list h2,
.checkin-hub-info h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin: 40px 0 20px;
}

/* Сетка плиток авиакомпаний */
.checkin-airlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
}

.checkin-airline-item {
    display: flex;
}

.checkin-airline-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a2e;
    font-weight: 500;
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 56px;
}

.checkin-airline-item a:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.checkin-airline-logo {
    width: 60px;
    height: 28px;
    max-width: 60px;
    max-height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.checkin-airline-name {
    flex: 1;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.checkin-arrow {
    color: #0073aa;
    font-size: 1.1rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Инфо-блок */
.checkin-hub-info {
    margin-top: 50px;
}

.checkin-hub-info ol {
    padding-left: 24px;
    margin: 20px 0;
    line-height: 1.8;
    color: #444;
}

.checkin-hub-info li {
    margin-bottom: 8px;
}

.checkin-note {
    background: #fff8e6;
    border-left: 3px solid #ffb900;
    padding: 14px 18px;
    border-radius: 6px;
    color: #444;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .checkin-hub-hero h1 { font-size: 1.8rem; }
    .checkin-hub-hero { padding: 30px 15px 20px; }
    .checkin-airlines-grid {
        grid-template-columns: 1fr;
    }
    .checkin-airline-logo {
        width: 48px;
        height: 24px;
        max-width: 48px;
        max-height: 24px;
    }
    .checkin-airline-item a {
        gap: 10px;
        padding: 10px 14px;
    }
}

.checkin-subtitle {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 30px 0 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
    font-weight: 600;
}

.checkin-subtitle:first-of-type {
    margin-top: 20px;
}