/* ============================================================
   AllAirlines — Design System "Golden Horizon"
   Light premium aviation theme: warm ivory base, midnight navy
   ink, champagne-gold accent, serif display headings.
   ============================================================ */

:root {
    /* Palette: ivory + midnight navy + champagne gold */
    --bg: #F7F5F0;
    --surface: #FFFFFF;
    --ink: #16283C;
    --ink-2: #3C4C60;
    --muted: #7C8494;
    --line: #E9E4D9;
    --line-strong: #D9D2C3;

    --brand: #0F3557;
    --brand-deep: #0A2540;
    --brand-tint: #E7EEF5;
    --brand-wash: #F3F7FA;
    --sky: #5B87A8;

    --accent: #B08D42;
    --accent-deep: #8F7134;
    --accent-tint: #F2E9D8;
    --accent-wash: #FAF5EA;

    /* Light premium panel (replaces the old dark indigo panel) */
    --panel: #FDFCF8;

    --ok: #2E7D4F;
    --danger: #B4423A;

    /* Legacy aliases */
    --primary: var(--brand);
    --primary-dark: var(--brand-deep);
    --secondary: var(--brand-deep);
    --light: var(--brand-wash);
    --dark: var(--ink);
    --gray: var(--muted);
    --white: #FFFFFF;
    --red: var(--danger);

    /* Geometry — calmer radii for a premium feel */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-xs: 7px;
    --border-radius: var(--radius-sm);

    /* Elevation — warm, soft */
    --shadow: 0 1px 2px rgba(60, 48, 22, .05);
    --shadow-md: 0 12px 32px rgba(60, 48, 22, .09);
    --shadow-lg: 0 26px 64px rgba(60, 48, 22, .13);

    --header-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--ink);
}

h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

::selection { background: var(--accent-tint); color: var(--accent-deep); }

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main { padding-bottom: 72px; }

a {
    text-decoration: none;
    color: var(--brand);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

a:hover { color: var(--accent-deep); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-deep);
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 53, 87, .28);
}

.btn-outline {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--surface);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
    background: var(--accent-wash);
}

.btn-block { display: flex; width: 100%; }

.btn-small { padding: 8px 16px; font-size: 13px; }

/* ---------- Header ---------- */

.header {
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-h);
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img { height: 38px; }

.logo-text {
    font-size: 19px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo:hover .logo-text { color: var(--accent-deep); }

/* ---------- Navigation ---------- */

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
}

.main-nav a {
    color: var(--ink-2);
    font-weight: 600;
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.main-nav a i {
    color: var(--accent);
    font-size: 12px;
    opacity: .9;
}

.main-nav a:hover {
    color: var(--brand-deep);
    background: var(--accent-wash);
}

.header-actions { display: none; }
.mobile-actions { display: none; }

/* Burger — visible only when a menu exists */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--ink);
    transition: all .3s ease;
    transform-origin: center;
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding: 18px 0 0; }

.breadcrumbs ul {
    display: flex;
    list-style: none;
    gap: 8px;
    font-size: 13px;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-deep); }

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 8px;
    color: var(--line-strong);
}

.breadcrumbs .current {
    color: var(--ink-2);
    font-weight: 500;
}

/* ---------- Hero (home, search) ---------- */

/* Light sky panel with a hairline gold frame — replaces the dark indigo panel */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -120px, rgba(91, 135, 168, .14), transparent 70%),
        linear-gradient(180deg, #EEF3F6 0%, #FBF9F4 78%, #FDFCF8 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 54px 40px 44px;
    margin-top: 20px;
    text-align: center;
    color: var(--ink);
    box-shadow: var(--shadow);
}

/* Champagne hairline along the top edge */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, #D9BC77 50%, var(--accent) 70%, transparent);
    opacity: .8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--surface);
    border: 1px solid var(--accent-tint);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 5vw, 3.15rem);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    color: var(--ink);
}

.hero-sub {
    font-size: 16px;
    color: var(--ink-2);
    max-width: 560px;
    margin: 0 auto 8px;
}

.hero-compact { padding: 40px 32px 32px; }
.hero-compact h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }

/* ---------- Search ---------- */

/* White search card floating on the light panel */
.filters-section {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.airline-search { width: 100%; }

.search-wrapper {
    display: flex;
    width: 100%;
    height: 56px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 5px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.search-wrapper:focus-within {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--accent-tint);
}

.airline-search-input {
    flex: 1;
    min-width: 0;
    padding: 0 12px 0 22px;
    border: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: transparent;
    outline: none;
}

.airline-search-input::placeholder { color: #A8AEB9; }

.airline-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 26px;
    border: none;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

.airline-search-button:hover {
    background: var(--brand-deep);
    box-shadow: 0 8px 20px rgba(15, 53, 87, .3);
}

/* ---------- Airline catalogue ---------- */

.airlines-listing { padding-top: 8px; }

.listing-header { margin-bottom: 24px; }

.airlines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 14px;
}

.airline-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 14px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Spotlight follows the cursor (JS sets --mx/--my) */
.airline-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(176, 141, 66, .09), transparent 65%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.airline-card:hover::after { opacity: 1; }

.airline-card:hover {
    transform: translateY(-3px);
    border-color: #D9C89E;
    box-shadow: var(--shadow-md);
}

.airline-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.airline-logo {
    flex: 0 0 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.airline-logo img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.airline-info { min-width: 0; }

.airline-info h3 {
    font-size: 14.5px;
    line-height: 1.35;
    margin-bottom: 3px;
}

.airline-info h3 a { color: var(--ink); }
.airline-info h3 a:hover { color: var(--accent-deep); }

.airline-country,
.airline-card .meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
}

.airline-country i,
.airline-card .meta i {
    color: var(--sky);
    font-size: 11px;
}

.airline-card .meta { display: flex; gap: 14px; flex-wrap: wrap; }

.airline-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    color: var(--accent-deep);
    font-size: 12px;
}

.phone-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Search autocomplete ---------- */

.airline-search { position: relative; }

.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 500;
    text-align: left;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    font-size: 14px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.suggest-item:last-child { border-bottom: none; }

.suggest-item:hover {
    background: var(--accent-wash);
    color: var(--ink);
}

.suggest-name { font-weight: 600; }

.suggest-iata {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--accent-deep);
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    border-radius: 5px;
    padding: 2px 6px;
}

.suggest-country {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- Related airlines (sidebar) ---------- */

.related-list {
    list-style: none;
    margin: 0 0 12px;
}

.related-list li { border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: none; }

.related-list a {
    display: block;
    padding: 8px 2px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink-2);
}

.related-list a:hover { color: var(--accent-deep); }

.related-all {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
}

/* ---------- FAQ accordion (details/summary in text blocks) ---------- */

.text-block details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.text-block details summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 44px 14px 18px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    position: relative;
    transition: background .2s ease;
}

.text-block details summary::-webkit-details-marker { display: none; }

.text-block details summary::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    color: var(--accent-deep);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
}

.text-block details[open] summary { background: var(--accent-wash); }
.text-block details[open] summary::after { content: '−'; }

.text-block details > div,
.text-block details > p {
    padding: 12px 18px 16px;
    margin: 0;
}

/* ---------- Row listing (home / search) ---------- */

.airlines-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.airline-row {
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px 22px;
}

.airline-row .airline-logo {
    flex: 0 0 56px;
    height: 56px;
    border-radius: 14px;
    color: var(--line-strong);
    font-size: 18px;
}

.airline-row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.airline-row-main h3 {
    font-size: 15.5px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.airline-row-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.airline-hub {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.airline-hub i {
    color: var(--sky);
    font-size: 11px;
}

.airline-row-stats {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
}

.row-stat {
    min-width: 86px;
    padding: 7px 14px 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.row-stat-value {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.row-stat-code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    letter-spacing: .05em;
    color: var(--accent-deep);
}

.row-stat-label {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    white-space: nowrap;
}

.airline-row .airline-actions {
    margin: 0;
    padding: 0;
    border-top: none;
    flex: 0 0 auto;
}

@media (max-width: 1080px) {
    .airline-row-stats .row-stat:nth-child(3) { display: none; }
}

@media (max-width: 900px) {
    .airline-hub { display: none; }
    .airline-row-stats .row-stat:nth-child(2) { display: none; }
}

@media (max-width: 700px) {
    .airline-row { flex-wrap: wrap; gap: 12px 14px; padding: 14px 16px; }
    .airline-row .airline-logo { flex-basis: 46px; height: 46px; }
    .airline-row-main { flex-basis: calc(100% - 130px); }
    .airline-row-main h3 { white-space: normal; }
    .airline-row-stats { width: 100%; }
    .airline-row-stats .row-stat { display: block; flex: 1; }
    .airline-row .airline-actions { margin-left: auto; }
}

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 600;
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.pagination a.active,
.pagination .active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    pointer-events: none;
}

/* ---------- Empty search state ---------- */

.empty-state {
    text-align: center;
    padding: 56px 20px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-wash);
    color: var(--accent-deep);
    font-size: 20px;
}

.empty-state p {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.empty-state span { font-size: 13.5px; }

/* ---------- Company page ---------- */

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
    padding-top: 20px;
}

/* Light premium panel — same family as the home hero */
.company-hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    background:
        radial-gradient(620px 300px at 88% -80px, rgba(91, 135, 168, .13), transparent 70%),
        linear-gradient(180deg, #EEF3F6 0%, #FBF9F4 82%, #FDFCF8 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px 30px 26px;
    margin-bottom: 28px;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.company-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, #D9BC77 50%, var(--accent) 70%, transparent);
    opacity: .8;
    z-index: 1;
}

.company-hero h1 { color: var(--ink); }

/* Hero head: airline logo card next to the title */
.hero-head {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-head-main { min-width: 0; flex: 1; }

.hero-logo-card {
    flex: 0 0 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.hero-logo-card img {
    max-width: 66px;
    max-height: 66px;
    object-fit: contain;
}

/* Giant IATA code — background watermark */
.hero-ghost-code {
    position: absolute;
    right: 14px;
    top: -22px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 132px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
    color: var(--brand);
    opacity: .05;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.company-hero > *:not(.hero-ghost-code) { position: relative; z-index: 1; }

/* Stat tiles */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 20px 0 6px;
}

.stat-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px 12px;
    transition: border-color .2s ease, transform .2s ease;
}

.stat-tile:hover {
    border-color: #D9C89E;
    transform: translateY(-2px);
}

/* Tiles float on the light panel */
.company-hero .stat-tile {
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(60, 48, 22, .08);
}

.company-hero .stat-tiles { margin-bottom: 2px; }

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-value-code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 18px;
    padding-top: 3px;
    display: block;
    color: var(--accent-deep);
}

.stat-label {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
}

.company-hero h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    margin-bottom: 6px;
}

.company-second-name {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 2px;
}

.company-logo-wrap {
    text-align: center;
    margin-bottom: 18px;
}

.company-logo {
    max-height: 90px;
    max-width: 100%;
}

/* Content sections */

.content-main section { margin-bottom: 44px; }

/* Numbered sections — editorial premium pattern */
.content-main { counter-reset: sec; }

.content-main > section > h2 {
    counter-increment: sec;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.content-main > section > h2 i { display: none; }

.content-main > section > h2::before {
    content: counter(sec, decimal-leading-zero);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.content-main > section > h2::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--line);
    margin-left: 6px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-text p {
    margin-bottom: 14px;
    color: var(--ink-2);
    line-height: 1.75;
}

.about-details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 20px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-item:last-child { border-bottom: none; }

/* Dot leader between label and value */
.detail-item::after {
    content: '';
    order: 2;
    flex: 1;
    border-bottom: 1px dotted var(--line-strong);
    margin: 0 8px;
    transform: translateY(-3px);
}

.detail-label { order: 1; }
.detail-value { order: 3; }

.detail-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

/* Anchor menu (JS-generated) */

#menu-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.menu-card {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    box-shadow: none;
    transition: all .2s ease;
}

.menu-card:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
    background: var(--accent-wash);
    transform: none;
    box-shadow: none;
}

/* Fleet */

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.aircraft-card {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    box-shadow: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.aircraft-card::before {
    content: '\2708';
    font-size: 13px;
    color: var(--accent-deep);
    background: var(--accent-wash);
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.aircraft-card:hover {
    border-color: #D9C89E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Text blocks (CKEditor) */

.text-block {
    line-height: 1.8;
    font-size: 15px;
    color: var(--ink-2);
}

.text-block p { margin-bottom: 16px; }

.text-block h2, .text-block h3 { margin: 28px 0 14px; color: var(--ink); }

.text-block img {
    width: 100%;
    border-radius: var(--radius-sm);
}

.text-block ul {
    list-style: none;
    margin: 14px 0;
    padding-left: 4px;
}

.text-block li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 26px;
}

.text-block ul li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.text-block ol {
    list-style: none;
    margin: 14px 0;
    padding-left: 4px;
    counter-reset: text-ol;
}

.text-block ol li {
    counter-increment: text-ol;
    padding-left: 34px;
}

.text-block ol li::before {
    content: counter(text-ol);
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.text-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.text-block th, .text-block td {
    padding: 10px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.text-block th {
    background: var(--accent-wash);
    color: var(--ink);
    font-weight: 600;
}

blockquote {
    position: relative;
    background: var(--accent-wash);
    border-left: 3px solid var(--accent);
    padding: 18px 22px 18px 58px;
    margin: 24px 0;
    font-style: italic;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--ink-2);
}

blockquote::before {
    content: '\00AB';
    position: absolute;
    left: 14px;
    top: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: normal;
    font-size: 54px;
    line-height: 1.2;
    color: var(--accent);
    opacity: .4;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-deep);
}

.image-block { margin: 24px 0; max-width: 50%; }
.image-block.left { float: left; margin-right: 28px; }
.image-block.right { float: right; margin-left: 28px; }

.image-caption {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 8px;
}

.full-width-image { margin: 32px 0; }
.full-width-image img { width: 100%; border-radius: var(--radius-sm); }

/* Highlighted block */

.add-block {
    position: relative;
    overflow: hidden;
    margin: 4px 0 28px;
    padding: 20px 24px;
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    line-height: 1.7;
}

.add-block::after {
    content: '\2708';
    position: absolute;
    right: -4px;
    bottom: -22px;
    font-size: 78px;
    line-height: 1;
    color: var(--accent);
    opacity: .08;
    transform: rotate(-18deg);
    pointer-events: none;
}

.add-block a { text-decoration: underline; text-underline-offset: 3px; }

.h2-section {
    margin: 16px 0;
    padding: 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: none;
}

/* Contact / info card */

/* Cream "boarding document" panel with a gold spine — light premium */
.airline-info-card {
    background: var(--panel) radial-gradient(640px at 92% -30%, rgba(176, 141, 66, .07), transparent 70%);
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    border-left: 3px solid var(--accent);
    margin: 8px 0 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.airline-info-header {
    padding: 20px 26px 15px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

.airline-info-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.airline-info-content { padding: 20px 26px 24px; }

.info-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 14px;
}

.info-columns { display: flex; margin-top: 16px; gap: 32px; }
.info-col { flex: 1; }

.info-label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    min-width: 120px;
    display: inline-block;
    padding-top: 2px;
}

.info-label a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.info-label a:hover { color: var(--brand-deep); }

.info-value { color: var(--ink); flex: 1; font-weight: 500; }

.info-value a { color: var(--brand); }
.info-value a:hover { color: var(--accent-deep); }

/* ---------- Check-in infographic (UI mockups) ---------- */

.checkin-flow {
    margin: 4px 0 36px;
    padding: 24px 24px 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.checkin-flow-head h2 {
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.checkin-steps {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.checkin-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.checkin-step-num {
    position: absolute;
    top: -10px;
    left: -6px;
    z-index: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.checkin-arrow {
    align-self: center;
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
}

/* Mock browser window */
.mock-screen {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    flex: 1;
}

.mock-bar {
    display: flex;
    gap: 4px;
    padding: 7px 10px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.mock-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line-strong);
}

.mock-bar span:first-child { background: #D9A0A0; }
.mock-bar span:nth-child(2) { background: #D9C89E; }
.mock-bar span:nth-child(3) { background: #A8C4A2; }

.mock-body { padding: 12px 14px 14px; }

.mock-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 9px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mock-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 9px;
    margin-bottom: 7px;
}

.mock-field b {
    color: var(--ink);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 10.5px;
    letter-spacing: .04em;
}

.mock-btn {
    text-align: center;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 6px;
    padding: 7px 0;
    margin-top: 3px;
}

/* Seat map */
.mock-seats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.mock-seats i {
    aspect-ratio: 1;
    border-radius: 3px;
    background: var(--brand-tint);
    border: 1px solid #C7D6E4;
}

.mock-seats i.tk {
    background: var(--line);
    border-color: var(--line-strong);
}

.mock-seats i.sel {
    background: var(--accent);
    border-color: var(--accent-deep);
}

/* Boarding pass screen */
.mock-pass-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-2);
    border-bottom: 1px dashed var(--line-strong);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mock-seatno {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    color: var(--accent-deep);
    font-weight: 700;
}

.mock-qr {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    background:
        repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px),
        repeating-linear-gradient(0deg, var(--ink) 0 3px, transparent 3px 6px);
    opacity: .75;
    border-radius: 3px;
}

.checkin-step-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-2);
    text-align: center;
    padding: 0 4px;
}

/* Official check-in screenshot */
.checkin-shot {
    margin: 0 0 36px;
}

.checkin-shot img {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.checkin-shot figcaption {
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .checkin-steps { flex-direction: column; gap: 16px; }
    .checkin-arrow { transform: rotate(90deg); }
    .mock-screen { max-width: 320px; margin: 0 auto; width: 100%; }
    .checkin-step-num { left: 8px; }
}

/* ---------- Offices ---------- */

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.office-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.office-card:hover {
    border-color: #D9C89E;
    box-shadow: var(--shadow-md);
}

.office-hq {
    border-left: 3px solid var(--accent);
    background: var(--panel);
}

.office-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.office-city {
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
}

.office-country {
    font-size: 12.5px;
    color: var(--muted);
}

.office-badge {
    margin-left: auto;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent-deep);
    background: var(--accent-tint);
    border-radius: 5px;
    padding: 3px 8px;
}

.office-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    margin-bottom: 6px;
    line-height: 1.5;
}

.office-row i {
    color: var(--sky);
    font-size: 11px;
    margin-top: 4px;
    flex-shrink: 0;
}

.office-note {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--muted);
    font-style: italic;
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: sticky;                                  /* pure CSS: no JS toggling, no jumps */
    top: calc(var(--header-h) + 20px);
    align-self: start;
    /* JS lowers `top` when the sidebar is taller than the viewport: it scrolls with the page
       until its bottom edge is visible, then sticks (no inner scrollbar) */
}

.sidebar-widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: none;
}

.sidebar-widget + .sidebar-widget { margin-top: 16px; }

/* Fact-sheet widget reuses the dot-leader rows */
.profile-widget .detail-item { padding: 10px 0; }
.profile-widget .detail-item:first-of-type { padding-top: 0; }
.profile-widget .detail-value { font-size: 13px; }

/* Full-width intro text on the profile page */
.about-lead p {
    font-size: 15.5px;
    line-height: 1.8;
}

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 15px;
}

.sidebar-widget h3 i {
    color: var(--accent-deep);
    background: var(--accent-tint);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13.5px;
    color: var(--ink-2);
}

.contact-item i {
    color: var(--sky);
    background: var(--brand-wash);
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
}

.contact-item a { word-break: break-all; font-weight: 500; }

.widget { margin: 0 0 28px; }
.index-widget { margin: 24px 0 8px; }
.widget2 { margin: 16px 0 0; }

/* ---------- Latest flights ---------- */

.company-info-block h2 { margin: 16px 0; }

.flights-container {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
}

/* Live flights iframe (flightera widget, client-side) */
.flights-frame-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.flights-frame {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

/* Boarding-pass style flight card */
.flight-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    box-shadow: none;
    padding: 18px;
    width: calc(50% - 7px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
    line-height: 1.2;
    overflow: hidden;
}

.flight-card:hover {
    border-color: #D9C89E;
    box-shadow: var(--shadow-md);
}

.flight-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--line-strong);
    padding: 0 18px 11px;
    margin: 0 -18px;
}

/* Tear-line perforation */
.flight-header::before,
.flight-header::after {
    content: '';
    position: absolute;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--line);
}

.flight-header::before { left: -7px; }
.flight-header::after { right: -7px; }

.flight-number {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .02em;
    color: var(--ink);
}

.airline-name { font-size: 12.5px; color: var(--muted); }

.flight-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.flight-route::before {
    content: '';
    order: 2;
    flex: 1;
    border-top: 1px dashed var(--line-strong);
}

.flight-airport {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
}

.flight-airport:first-child { order: 1; }
.flight-airport:last-child { order: 3; }

.times {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
}

.flight-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--ok);
}

/* Barcode — boarding-pass detail */
.flight-status::before {
    content: '';
    height: 15px;
    flex: 0 0 58px;
    background: repeating-linear-gradient(90deg,
        var(--ink) 0 1px, transparent 1px 3px,
        var(--ink) 3px 5px, transparent 5px 6px,
        var(--ink) 6px 7px, transparent 7px 10px);
    opacity: .22;
}

.flight-status.delayed { color: var(--danger); }

.flight-time-scheduled { opacity: .55; margin-right: 4px; }
.flights-empty { margin: 0; font-size: 13.5px; color: var(--muted); }
.flights-frame-wrap { width: 100%; }

/* ---------- Gallery ---------- */

.airline-gallery { margin: 24px 0 0; }

/* Editorial mosaic: first photo large */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16/9;
    background: var(--accent-wash);
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item:first-child:nth-last-child(-n+2) {
    grid-row: span 1;
    aspect-ratio: 16/9;
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s ease;
}

.gallery-item:hover .gallery-thumbnail { transform: scale(1.04); }

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(22, 26, 32, .93);
    overflow: auto;
    opacity: 0;
    transition: opacity .3s;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 60px auto 20px;
    border-radius: var(--radius-sm);
    animation: zoom .3s;
}

@keyframes zoom {
    from { transform: scale(.95); opacity: .5; }
    to { transform: scale(1); opacity: 1; }
}

.modal-caption {
    color: rgba(255, 255, 255, .8);
    text-align: center;
    padding: 8px 0;
    max-width: 80%;
    margin: 0 auto;
    font-size: 13px;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 26px;
    color: rgba(255, 255, 255, .8);
    font-size: 36px;
    font-weight: 400;
    cursor: pointer;
    transition: color .2s;
    line-height: 1;
}

.modal-close:hover { color: #fff; }

/* ---------- Footer ---------- */

/* Light footer with a champagne top rule */
.footer {
    background: #F2EEE4;
    border-top: 1px solid var(--line-strong);
    position: relative;
    color: var(--ink-2);
    padding: 52px 0 24px;
    margin-top: 72px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 30%, #D9BC77 50%, var(--accent) 70%, transparent);
    opacity: .75;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.footer-logo { height: 32px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 24px;
    margin-bottom: 36px;
}

.footer-grid a,
.footer a {
    color: var(--muted);
    font-size: 13px;
}

.footer-grid a:hover,
.footer a:hover { color: var(--accent-deep); }

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--line-strong);
    font-size: 12.5px;
    color: var(--muted);
}

.footer-links { margin-top: 6px; }
.footer-links a { color: var(--ink-2); font-weight: 500; }

.static-page { padding-top: 20px; }
.static-page h1 { margin-bottom: 18px; }
.static-page h2 { margin: 24px 0 10px; font-size: 1.1rem; }

.footer-app { margin-bottom: 16px; }
.footer-app-label { margin-bottom: 6px; }
.footer-app img { height: 44px; }

/* ---------- Back-to-top button ---------- */

.scroll-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }

.scroll-to-top:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- 404 ---------- */

.error-page {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 80px 32px 64px;
    margin: 32px auto 0;
    max-width: 720px;
    background:
        radial-gradient(560px 260px at 80% -60px, rgba(91, 135, 168, .13), transparent 70%),
        linear-gradient(180deg, #EEF3F6 0%, #FBF9F4 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--ink);
}

.error-page::before {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 54%;
    border-top: 1.5px dashed var(--line-strong);
    transform: rotate(-6deg);
    pointer-events: none;
}

.error-page::after {
    content: '\2708';
    position: absolute;
    right: 34px;
    top: 44%;
    font-size: 26px;
    color: var(--accent);
    transform: rotate(-6deg);
    pointer-events: none;
}

.error-code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 92px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    color: rgba(22, 40, 60, .12);
    margin-bottom: 12px;
}

.error-page h1 { margin-bottom: 10px; color: var(--ink); }

.error-page p { color: var(--ink-2); margin-bottom: 28px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 992px) {
    .header-actions { display: none; }

    .header-inner:has(.nav-list) .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: 88%;
        max-width: 360px;
        height: calc(100vh - var(--header-h));
        background: var(--surface);
        border-left: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transition: right .35s cubic-bezier(.4, 0, .2, 1);
        padding: 24px 16px;
        overflow-y: auto;
        z-index: 1000;
    }

    .main-nav.active { right: 0; }

    .nav-list { flex-direction: column; gap: 4px; }

    .nav-list a {
        display: flex;
        padding: 13px 16px;
        border-radius: var(--radius-sm);
        color: var(--ink);
        font-size: 14.5px;
    }

    .nav-list a:hover { background: var(--accent-wash); color: var(--brand-deep); }

    .menu-toggle.active .bar1 { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar2 { opacity: 0; }
    .menu-toggle.active .bar3 { transform: translateY(-9px) rotate(-45deg); }

    /* Lock scrolling on the root element: overflow on body would break the sticky header */
    html.menu-open { overflow: hidden; }
    /* No backdrop-filter on mobile: it would make the header the containing block of the fixed menu */
    .header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #FFFFFF; }

    .sidebar { position: static !important; }

}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .content-main, .sidebar { min-width: 0; max-width: 100%; }
    .about-content { grid-template-columns: 1fr; }
    .flight-card { width: 100%; }
    .hero { padding: 44px 0 32px; }

    .image-block {
        float: none !important;
        max-width: 100%;
        margin: 20px 0 !important;
    }

    .info-row { flex-direction: column; gap: 2px; }
    .info-label { min-width: auto; }
    .info-columns { flex-direction: column; gap: 12px; }

    .scroll-to-top {
        width: 42px;
        height: 42px;
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 576px) {
    .logo-text { font-size: 16px; }
    .logo-img { height: 32px; }

    .main-nav { width: 100%; max-width: 100%; }

    .airlines-grid { grid-template-columns: 1fr; }

    .hero h1 { font-size: 1.7rem; }
    .hero-sub { font-size: 14.5px; }

    .search-wrapper { height: 52px; }
    .airline-search-input { padding-left: 16px; font-size: 14px; }
    .airline-search-button { padding: 0 18px; }
    .airline-search-button span { display: none; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/9; }

    .modal-content { max-width: 100%; max-height: 60vh; margin-top: 50px; }
    .modal-close { font-size: 30px; top: 14px; right: 18px; }

    .error-code { font-size: 64px; }

    .hero-ghost-code { font-size: 76px; top: -12px; right: 8px; }
    .company-hero { padding: 22px 18px 20px; border-radius: 16px; }
    .hero-head { gap: 14px; align-items: flex-start; }
    .hero-logo-card { flex-basis: 60px; height: 60px; border-radius: 13px; }
    .hero-logo-card img { max-width: 42px; max-height: 42px; }
    .hero { padding: 40px 20px 32px; border-radius: 18px; }
    .stat-tiles { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 19px; }
    .stat-value-code { font-size: 15px; }
    .fleet-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .content-main > section > h2::after { display: none; }
}

/* ============================================================
   Premium layer: interactions and brand details
   ============================================================ */

/* Reading progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 1200;
    pointer-events: none;
}

/* Header shadow appears on scroll */
.header { transition: box-shadow .25s ease; }
.header.scrolled { box-shadow: 0 8px 28px rgba(60, 48, 22, .08); }

/* Active nav item (JS matches URL) */
.main-nav a.active {
    background: var(--accent-tint);
    color: var(--brand-deep);
}

/* Pulsing dot in the hero badge */
.pulse-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: .6;
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(.45); opacity: .65; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Hero decor: dashed flight route with a moving plane (SMIL) */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-path-line {
    stroke: rgba(176, 141, 66, .38);
    stroke-width: 1.5;
    stroke-dasharray: 2 9;
    stroke-linecap: round;
    fill: none;
}

.hero-path-dot { fill: rgba(176, 141, 66, .5); }

.hero-plane-glyph { fill: var(--brand); opacity: .8; }

/* Feature strip under the search */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 22px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.hero-features span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-features i {
    color: var(--accent-deep);
    font-size: 11px;
}

/* IATA code on the card — aviation detail */
.airline-code {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--accent-deep);
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    border-radius: 6px;
    padding: 3px 7px;
    z-index: 1;
}

.airline-card .airline-card-body { padding-right: 40px; }

/* Arrow in the card button */
.btn-small .btn-arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.airline-card:hover .btn-small .btn-arrow { transform: translateX(3px); }

/* Meta chips in the company hero */
.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 20px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2);
}

.meta-chip i {
    color: var(--sky);
    font-size: 11px;
}

/* Chips on the light panel */
.company-hero .meta-chip {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow);
}

.company-hero .meta-chip i { color: var(--accent-deep); }

.meta-chip-code {
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    letter-spacing: .06em;
    font-size: 12px;
}

/* Active anchor pill (scrollspy) */
.menu-card.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Plane flies along the flight-card route on hover */
.flight-route { position: relative; }

.flight-route::after {
    content: '\2708';
    position: absolute;
    left: 0;
    top: 50%;
    font-size: 13px;
    line-height: 1;
    color: var(--accent-deep);
    transform: translate(-6px, -58%);
    opacity: 0;
    transition: left 1.1s cubic-bezier(.45, 0, .35, 1), opacity .25s ease;
    pointer-events: none;
}

.flight-card:hover .flight-route::after {
    left: calc(100% - 8px);
    opacity: 1;
}

/* Reveal on scroll (enabled only with JS) */
/* Reveal-on-scroll removed on purpose: content must be visible without scrolling */
body.js-anim .reveal { opacity: 1; transform: none; }

body.js-anim .reveal.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 576px) {
    .hero-features { gap: 8px 16px; font-size: 12px; }
    .company-meta { gap: 6px; }
    .meta-chip { padding: 5px 11px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .hero-plane { display: none; }
    body.js-anim .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   SEO / navigation layer (2026-09): inline SVG icons, hubs,
   section cards, routes, breadcrumbs, social links
   ============================================================ */

/* Inline SVG icons (replace Font Awesome) */
.icon {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.15em;
    flex-shrink: 0;
}

.main-nav a .icon { color: var(--accent); font-size: 13px; opacity: .9; }
.airline-country .icon, .airline-hub .icon, .meta-chip .icon, .office-row .icon { color: var(--sky); font-size: 12px; }
.company-hero .meta-chip .icon, .hero-features .icon { color: var(--accent-deep); font-size: 12px; }
.office-row .icon { margin-top: 4px; }
.airline-logo .icon { font-size: 20px; color: var(--sky); }
.phone-link .icon { font-size: 15px; }
.empty-state-icon .icon { font-size: 24px; color: var(--sky); }
.content-main > section > h2 .icon { display: none; }
.lang-current .icon { font-size: 13px; }

.sidebar-widget h3 .icon {
    color: var(--accent-deep);
    background: var(--accent-tint);
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 9px;
    font-size: 30px;
    stroke-width: 2.2;
}

.contact-item .icon {
    color: var(--sky);
    background: var(--brand-wash);
    width: 26px;
    height: 26px;
    padding: 6px;
    border-radius: 8px;
    font-size: 26px;
}

/* Breadcrumbs (ordered list) */
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumbs li { display: inline-flex; align-items: center; }

/* Links inside profile / info rows */
.detail-value a, .info-value a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.detail-value a:hover, .info-value a:hover { color: var(--accent-deep); border-color: var(--accent); }

/* Aircraft chips are links now */
a.aircraft-card { color: inherit; text-decoration: none; }
a.aircraft-card:hover { color: var(--brand-deep); }

/* Tags in listing rows */
.airline-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-wash);
    border: 1px solid var(--accent-tint);
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
}

/* Chips row (hub pages, 404) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: border-color .2s ease, color .2s ease;
}

.chip:hover { border-color: var(--accent); color: var(--brand-deep); }

/* Hub intro */
.hub-intro {
    max-width: 860px;
    margin: 0 auto 26px;
    padding: 22px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.hub-intro p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* Home blocks */
.home-block { margin: 34px 0 10px; }

.home-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.home-block-head h2 { margin: 0; font-size: 24px; }
.home-block-head p { margin: 0; color: var(--muted); font-size: 14px; }

.popular-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.popular-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.popular-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.popular-logo { grid-row: 1 / span 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand-wash); overflow: hidden; }
.popular-logo img { width: 40px; height: 40px; object-fit: contain; }
.popular-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.popular-meta { font-size: 12px; color: var(--muted); }

.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.hub-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .2s ease, background .2s ease;
}

.hub-card:hover { border-color: var(--accent); background: var(--surface); }
.hub-card .icon { font-size: 22px; color: var(--accent-deep); stroke-width: 1.8; }
.hub-card-name { font-weight: 600; font-size: 14px; }
.hub-card-count { font-size: 12px; color: var(--muted); }
.hub-card-alliance .icon { color: var(--brand); }

/* Section preview cards (airline main page) */
.section-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.section-card {
    display: grid;
    grid-template-columns: 38px 1fr 18px;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.section-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.section-card-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-tint); color: var(--accent-deep); font-size: 18px; }
.section-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.section-card-title { font-weight: 700; font-size: 14.5px; }
.section-card-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.section-card-arrow { margin-top: 10px; color: var(--line-strong); font-size: 16px; }
.section-card:hover .section-card-arrow { color: var(--accent-deep); }

/* "More about X" cross-links at the bottom of section pages */
.also-section { margin-top: 28px; }
.also-section h2 { font-size: 20px; margin: 0 0 14px; }

.also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.also-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .2s ease, background .2s ease;
}

.also-card:hover { border-color: var(--accent); background: var(--surface); }
.also-icon { color: var(--accent-deep); font-size: 18px; }
.also-title { font-weight: 600; font-size: 14px; }
.also-text { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Popular routes with prices (tickets page) */
.routes-section { margin: 0 0 28px; }
.routes-note { margin: -6px 0 14px; font-size: 13px; color: var(--muted); }

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.route-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.route-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.route-cities { font-weight: 600; font-size: 14px; }
.route-meta { font-size: 12px; color: var(--muted); }
.route-price { margin-top: 4px; font-weight: 700; color: var(--accent-deep); font-size: 15px; }

/* Social links */
.social-links { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: inline-flex; align-items: center; gap: 6px; border: 0 !important; }
.contact-item.social-links a .icon { margin: 0; }

/* 404 */
.error-popular { margin: 22px auto 26px; max-width: 720px; }
.error-popular h2 { font-size: 18px; margin: 0 0 10px; }
.error-popular .chip-row { justify-content: center; }
.error-page .filters-section { max-width: 640px; margin: 18px auto; }

/* Reserve space for third-party widgets to avoid layout shift */
.widget:has(script) { min-height: 120px; }
.index-widget:has(script) { min-height: 160px; }
.widget2:has(script) { min-height: 250px; }

@media (max-width: 1100px) {
    .popular-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .section-cards, .also-grid, .routes-grid { grid-template-columns: 1fr 1fr; }
    .popular-grid { grid-template-columns: repeat(3, 1fr); }
    .hub-grid { grid-template-columns: repeat(3, 1fr); }
    .home-block-head h2 { font-size: 20px; }
}

@media (max-width: 576px) {
    .section-cards, .also-grid, .routes-grid { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr 1fr; }
    .hub-grid { grid-template-columns: 1fr 1fr; }
    .hub-intro { padding: 16px 18px; }
}

/* Countries index */
.countries-block .home-block-head h2 a { color: inherit; text-decoration: none; }
.countries-block .home-block-head h2 a:hover { color: var(--accent-deep); }
.countries-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 16px; }
.countries-list a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.countries-list a:hover { background: var(--surface); color: var(--brand-deep); }
.countries-list a span { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .countries-list { grid-template-columns: repeat(2, 1fr); } }

/* Structured rules tables, quick answer, comparisons */
.rules-section { margin: 0 0 26px; }
.quick-answer { position: relative; padding: 16px 18px 16px 22px; margin: 0 0 14px; background: var(--accent-wash); border: 1px solid var(--accent-tint); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); }
.quick-answer-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 4px; }
.quick-answer p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rules-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 14px; }
.rules-table th, .rules-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rules-table thead th { background: var(--panel); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rules-table tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.rules-table tr:last-child th, .rules-table tr:last-child td { border-bottom: 0; }
.rules-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.compare-section { margin: 0 0 26px; }
.compare-section h2 { font-size: 20px; margin: 0 0 12px; }
.compare-page { max-width: none; margin: 0; }
.compare-hero .hero-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.compare-heads { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 18px 0; }
.compare-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.compare-head img { width: 48px; height: 48px; object-fit: contain; }
.compare-head-name { font-weight: 700; font-size: 16px; }
.compare-head-meta { font-size: 12px; color: var(--muted); }
.compare-vs { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--accent-deep); }
.compare-table thead th { text-align: center; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.compare-table td { text-align: center; width: 33%; }
.compare-table td.winner { background: #EDF6EF; font-weight: 600; color: var(--ok); }
.compare-table .na { color: var(--line-strong); }
.compare-verdict { margin: 24px 0; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-verdict h2 { font-size: 18px; margin: 0 0 10px; }
.compare-verdict ul { margin: 0; padding-left: 18px; }
.compare-verdict li { margin: 6px 0; line-height: 1.55; }
.compare-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.compare-links h3 { font-size: 15px; margin: 0 0 8px; }
.compare-more { margin: 20px 0; }
.compare-more h2 { font-size: 18px; margin: 0 0 10px; }
@media (max-width: 640px) {
    .compare-heads { grid-template-columns: 1fr; }
    .compare-vs { text-align: center; }
    .compare-links { grid-template-columns: 1fr; }
    .rules-table tbody th { width: 40%; }
}

/* ---------- UX pass 2 ---------- */
/* Flags */
.flag { width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; margin-right: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.flag-lg { width: 32px; height: 24px; margin-right: 12px; vertical-align: -3px; border-radius: 3px; }
.meta-chip .flag, .airline-country .flag { margin-right: 4px; }

/* Plane sits on the dashed line between the airports, never over the names */
.flight-route::after {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    opacity: 1;
    padding: 0 4px;
    background: var(--surface);
    transition: none;
}
.flight-card:hover .flight-route::after { left: 50%; opacity: 1; }

/* Compact section cards on the airline page: one row, equal widths, no gaps */
.section-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}
.section-card {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    min-width: 0;
}
.section-card-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.section-card-title { font-size: 14px; }
.section-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
}
.section-card-arrow { display: none; }

/* "More about" cards: clamp to two clean lines */
.also-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hub pages: intro panel spacing */
.hub-intro { max-width: none; margin: 22px 0 26px; }
.hub-intro p:last-of-type { margin-bottom: 0; }
.hub-intro p + p { margin-top: 10px; }
.hub-intro .chip-row { margin-top: 16px; }
.hero-compact h1 { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }

/* Widgets: consistent spacing everywhere */
.widget-search { margin: 22px 0 26px; }
.content-main .widget-search { margin: 0 0 28px; }
.widget-calendar { margin: 16px 0 0; }
.chip-row-lg .chip { padding: 8px 15px; font-size: 14px; }

/* Compare page top spacing */
.compare-page { padding-top: 20px; }
.compare-page .widget-search { margin: 18px 0 8px; }

/* Gallery: uniform tiles, no holes */
.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery-item, .gallery-item:first-child, .gallery-item:first-child:nth-last-child(-n+2) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
}
.gallery-item:only-child { grid-column: span 2; }

/* Airline hero: cover photo from the gallery */
.company-hero.has-cover { min-height: 220px; }
.company-hero > div.hero-cover {
    position: absolute;
    z-index: 0;
    top: 0; right: 0; bottom: 0;
    width: 38%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%);
    mask-image: linear-gradient(90deg, transparent 0, #000 45%);
    opacity: .9;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.company-hero.has-cover .hero-ghost-code { display: none; }
.company-hero .hero-head, .company-hero .stat-tiles { position: relative; z-index: 1; }

@media (max-width: 768px) {
    .hero-cover { display: none; }
    .section-cards { grid-template-columns: 1fr 1fr; }
    .section-card { flex-basis: 45%; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* UX pass 2b */
.compare-head .flag { width: 20px; height: 15px; margin-right: 4px; }
.also-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.also-card { flex: 1 1 150px; min-width: 0; }
.also-text { -webkit-line-clamp: 3; }
@media (max-width: 640px) { .also-card { flex-basis: 45%; } }

/* Clickable phones / emails inside texts and tables */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 9px 1px 7px;
    margin: 0;
    border-radius: 999px;
    background: var(--brand-wash);
    border: 1px solid var(--brand-tint);
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.contact-link .icon { font-size: 12px; color: var(--sky); }
.contact-link:hover { background: var(--brand-tint); border-color: var(--sky); color: var(--brand-deep); }
.contact-link:hover .icon { color: var(--brand-deep); }
.info-value a[href^="tel:"], .info-value a[href^="mailto:"], .compare-table a[href^="tel:"], .office-row a[href^="tel:"], .office-row a[href^="mailto:"] {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--sky);
    text-underline-offset: 3px;
    border: 0;
}
.route-partner { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--muted); }

/* Route pages */
.route-hero .stat-value { font-size: 20px; }
.price-table td, .price-table th { white-space: nowrap; }
.price-table .btn-small { padding: 4px 10px; font-size: 12px; }
.faq-section details { margin: 8px 0; }
#route-pages { margin: 0 0 26px; }
#route-pages h2 { font-size: 20px; margin: 0 0 12px; }
.home-routes { grid-template-columns: repeat(4, 1fr); }
.home-routes .route-cities { font-size: 15px; }
@media (max-width: 900px) { .home-routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-routes { grid-template-columns: 1fr; } }

/* Live data: punctuality, airport board, weather */
.punctuality { margin: 0 0 26px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.punctuality-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.punctuality-head h2 { margin: 0; font-size: 20px; }
.punctuality-period { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.punctuality-tiles .stat-tile { background: var(--surface); }
.stat-good { color: var(--ok); }
.stat-bad { color: var(--danger); }
.board-table .status-ok { color: var(--ok); font-weight: 600; }
.board-table .status-late { color: var(--danger); font-weight: 600; }
.weather-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -8px 0 22px; }
.weather-card { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); font-size: 13px; }
.weather-city { font-weight: 600; color: var(--ink); }
.weather-temp { font-weight: 700; color: var(--brand); font-size: 15px; }
.weather-label { color: var(--muted); }
.weather-note { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.climate-cell { white-space: nowrap; color: var(--ink-2); }

/* Airport board spacing, mobile polish */
#departures { margin-top: 26px; }
#departures h2 { margin: 0 0 12px; }
.board-table a { color: var(--brand); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.board-table a:hover { color: var(--accent-deep); border-color: var(--accent); }
@media (max-width: 992px) {
    /* clip, not hidden: hidden would turn body into a scroll container and break the sticky header */
    html, body { overflow-x: clip; }
    .main-nav:not(.active) { visibility: hidden; }
    .main-nav.active { visibility: visible; }
}
@media (max-width: 576px) {
    .stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-tile { width: auto; min-width: 0; }
    .route-hero .stat-value { font-size: 17px; }
    .route-hero h1, .company-hero h1 { font-size: 1.45rem; }
    .weather-row { gap: 6px; margin-top: -4px; }
    .weather-card { font-size: 12px; padding: 6px 11px; }
    .weather-note { display: none; }
}

/* Own price calendar in the sidebar */
.prices-widget h3 { margin-bottom: 4px; }
.prices-sub { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.prices-list { list-style: none; margin: 0; padding: 0; }
.prices-list li + li { border-top: 1px solid var(--line); }
.prices-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px; color: var(--ink); text-decoration: none; border-radius: 6px; transition: background .15s ease; }
.prices-list a:hover { background: var(--brand-wash); }
.prices-label { font-size: 13.5px; font-weight: 500; display: flex; flex-direction: column; }
.prices-label small { font-size: 11px; color: var(--muted); font-weight: 400; }
.prices-value { font-weight: 700; font-size: 14px; color: var(--brand); white-space: nowrap; }
.prices-value.prices-best { color: var(--ok); }
.prices-widget .related-all { margin-top: 8px; }
.prices-note { margin: 10px 0 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
