/* TravelNet Airline – Frontend Block Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* ─── WRAPPER ─── */
.wp-block-travelnet-airline,
.tna-block-wrap {
    font-family: 'DM Sans', sans-serif;
}

/* ─── CARD MODE ─── */
.tna-airline-card {
    display: inline-flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #e8eef8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(10,22,40,.08);
    transition: box-shadow .2s, transform .2s;
    max-width: 360px;
}
.tna-airline-card:hover {
    box-shadow: 0 6px 24px rgba(10,22,40,.14);
    transform: translateY(-2px);
}
.tna-airline-card .tna-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 20px 16px;
    background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 100%);
    color: #fff;
}
.tna-airline-card .tna-card-header img {
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 6px;
    max-height: 52px;
}
.tna-airline-card .tna-no-logo-box {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}
.tna-airline-card .tna-card-title h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.tna-airline-card .tna-codes { display: flex; gap: 6px; flex-wrap: wrap; }
.tna-iata-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,.2);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}
.tna-icao-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.8);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
}
.tna-airline-card .tna-card-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tna-airline-card .tna-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #444;
}
.tna-airline-card .tna-card-row a {
    color: #1a56db;
    text-decoration: none;
    word-break: break-all;
}
.tna-airline-card .tna-card-row a:hover { text-decoration: underline; }

/* ─── INLINE MODE ─── */
.tna-airline-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid #e8eef8;
    border-radius: 8px;
    background: #f8f9ff;
    vertical-align: middle;
}
.tna-airline-inline img {
    object-fit: contain;
    max-height: 32px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #eee;
    padding: 2px;
}
.tna-airline-inline .tna-airline-name-text {
    font-weight: 600;
    font-size: 14px;
    color: #0a1628;
}
.tna-airline-inline .tna-iata-badge {
    background: #e8f0fe;
    color: #1a56db;
}

/* ─── LOGO ONLY MODE ─── */
.tna-airline-logo-only img {
    display: block;
    object-fit: contain;
}

/* ─── NAME ONLY MODE ─── */
.tna-airline-name-only .tna-airline-name-text {
    font-weight: 700;
    color: #0a1628;
}

/* ─── FULL TABLE MODE ─── */
.tna-airline-table-wrap { overflow-x: auto; }
.tna-airline-table-wrap img {
    display: block;
    object-fit: contain;
    margin-bottom: 12px;
}
.tna-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tna-info-table th,
.tna-info-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.tna-info-table th {
    width: 120px;
    font-weight: 600;
    color: #666;
    background: #f8f9ff;
}
.tna-info-table td { color: #0a1628; }
.tna-info-table tr:last-child th,
.tna-info-table tr:last-child td { border-bottom: none; }

/* ─── SEARCH/BROWSE MODE ─── */
.tna-airline-search-block {
    background: #f8f9ff;
    border: 2px solid #e8eef8;
    border-radius: 12px;
    padding: 20px;
}
.tna-search-input-wrap { display: flex; gap: 10px; margin-bottom: 16px; }
.tna-search-input-wrap input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #dde;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
}
.tna-search-input-wrap input:focus { border-color: #0a1628; outline: none; }
.tna-airline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.tna-airline-grid-item {
    background: #fff;
    border: 2px solid #e8eef8;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.tna-airline-grid-item:hover {
    border-color: #0a1628;
    box-shadow: 0 2px 8px rgba(10,22,40,.1);
}
.tna-airline-grid-item img {
    width: 48px;
    height: 32px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
    background: #f9f9f9;
    flex-shrink: 0;
}
.tna-airline-grid-item .tna-no-logo-sm {
    width: 48px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tna-airline-grid-item .tna-item-info .tna-item-name { font-size: 13px; font-weight: 600; color: #0a1628; }
.tna-airline-grid-item .tna-item-info .tna-item-iata { font-size: 11px; color: #888; }
.tna-search-no-results { text-align: center; padding: 20px; color: #888; font-size: 14px; }

/* ─── EDITOR ONLY ─── */
.tna-block-placeholder {
    background: #f8f9ff;
    border: 2px dashed #c5d5f5;
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    color: #666;
}
.tna-block-placeholder-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.tna-block-loading { padding: 20px; display: flex; align-items: center; gap: 10px; color: #555; }
.tna-block-error { padding: 14px; background: #fde8e8; border-radius: 8px; color: #c0392b; }

/* Editor card preview */
.tna-block-preview.tna-mode-card {
    background: #fff;
    border: 2px solid #e8eef8;
    border-radius: 12px;
    overflow: hidden;
    max-width: 360px;
}
.tna-block-preview.tna-mode-card .tna-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: linear-gradient(135deg, #0a1628, #1e3a5f);
}
.tna-block-preview.tna-mode-card .tna-card-header img {
    max-width: 100px;
    max-height: 46px;
    object-fit: contain;
    background: #fff;
    border-radius: 5px;
    padding: 4px;
}
.tna-block-preview.tna-mode-card .tna-card-title h3 { margin: 0 0 5px; font-size: 16px; color: #fff; }
.tna-block-preview.tna-mode-card .tna-card-body { padding: 14px 18px; }
.tna-block-preview.tna-mode-card .tna-card-row { display: flex; gap: 8px; font-size: 13px; color: #444; margin-bottom: 6px; }
.tna-block-preview.tna-mode-inline { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f8f9ff; border-radius: 8px; }
.tna-block-preview.tna-mode-inline img { max-height: 34px; object-fit: contain; }
.tna-block-preview.tna-mode-inline .tna-airline-name-text { font-weight: 600; color: #0a1628; }
.tna-block-preview.tna-mode-table img { max-height: 50px; margin-bottom: 12px; }
.tna-block-preview.tna-mode-table .tna-info-table th { width: 100px; }

/* ─── GROUP SHORTCODES ─── */
.tna-group-wrap { margin: 1.5em 0; }
.tna-group-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eef8;
}

/* Grid layout */
.tna-layout-grid .tna-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.tna-layout-grid .tna-group-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 2px solid #e8eef8;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.tna-layout-grid .tna-group-item:hover {
    border-color: #0a1628;
    box-shadow: 0 3px 12px rgba(10,22,40,.1);
}

/* List layout */
.tna-layout-list .tna-group-items { display: flex; flex-direction: column; gap: 8px; }
.tna-layout-list .tna-group-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #f8f9ff;
    border-left: 4px solid #0a1628;
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    transition: background .15s;
}
.tna-layout-list .tna-group-item:hover { background: #e8f0fe; }

/* Logos layout – compact */
.tna-layout-logos .tna-group-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tna-layout-logos .tna-group-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-radius: 8px;
    text-decoration: none;
    transition: box-shadow .15s;
}
.tna-layout-logos .tna-group-item:hover { box-shadow: 0 2px 10px rgba(10,22,40,.12); }
.tna-layout-logos .tna-group-info { text-align: center; }

/* Shared item sub-elements */
.tna-group-logo { flex-shrink: 0; }
.tna-group-logo img { display: block; object-fit: contain; max-height: 36px; }
.tna-group-no-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 18px;
    color: #bbb;
}
.tna-group-name    { display: block; font-size: 13px; font-weight: 600; color: #0a1628; line-height: 1.3; }
.tna-group-iata    { display: inline-block; margin-top: 3px; padding: 1px 6px; background: #e8f0fe; color: #1a56db; border-radius: 4px; font-size: 11px; font-weight: 700; }
.tna-group-country { display: block; font-size: 11px; color: #888; margin-top: 2px; }

a.tna-group-item .tna-group-name { color: #0a1628; }


/* ─── ALPHABETICAL AZ SHORTCODE ─── */

/* Fælles wrapper */
.tna-az-wrap, .tnap-az-wrap {
    font-family: "DM Sans", sans-serif;
    margin: 1.5em 0;
}
.tna-az-main-heading, .tnap-az-main-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0a1628;
    margin: 0 0 18px;
}

/* Letter nav */
.tna-az-nav, .tnap-az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8f9ff;
    border: 2px solid #e8eef8;
    border-radius: 10px;
}
.tna-az-letter, .tnap-az-letter {
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 2px solid #dde5f5;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.tna-az-letter:hover, .tnap-az-letter:hover {
    border-color: #0a1628;
    background: #e8f0fe;
    color: #0a1628;
}
.tna-az-letter.active, .tnap-az-letter.active {
    background: #0a1628;
    border-color: #0a1628;
    color: #fff;
}

/* Controls bar */
.tna-az-controls, .tnap-az-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}
.tna-az-count, .tnap-az-count {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.tna-az-toggle, .tnap-az-toggle {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 3px;
}
.tna-az-view-btn, .tnap-az-view-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    cursor: pointer;
    transition: all .15s;
}
.tna-az-view-btn.active, .tnap-az-view-btn.active {
    background: #fff;
    color: #0a1628;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.tna-az-view-btn:hover, .tnap-az-view-btn:hover { color: #0a1628; }

/* Letter heading */
.tna-az-section, .tnap-az-section { display: none; }
.tna-az-section.active, .tnap-az-section.active { display: block; }

.tna-az-letter-heading, .tnap-az-letter-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0a1628;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0a1628;
    display: inline-block;
    min-width: 44px;
    text-align: center;
    line-height: 1;
}

/* LIST view */
.tna-az-list, .tnap-az-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tna-az-list .tna-az-item,
.tnap-az-list .tnap-az-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8eef8;
    border-left: 4px solid #0a1628;
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    color: inherit;
    transition: background .15s, border-color .15s;
}
.tna-az-list a.tna-az-item:hover,
.tnap-az-list a.tnap-az-item:hover {
    background: #f0f5ff;
    border-left-color: #1a5dbf;
}

/* GRID view */
.tna-az-grid, .tnap-az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.tna-az-grid .tna-az-item,
.tnap-az-grid .tnap-az-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 2px solid #e8eef8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tna-az-grid a.tna-az-item:hover,
.tnap-az-grid a.tnap-az-item:hover {
    border-color: #0a1628;
    box-shadow: 0 4px 14px rgba(10,22,40,.1);
    transform: translateY(-2px);
}

/* Item internals */
.tna-az-item-logo, .tnap-az-item-logo {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tna-az-item-logo img, .tnap-az-item-logo img {
    display: block;
    object-fit: contain;
    max-height: 38px;
}
.tna-az-no-logo, .tnap-az-no-logo {
    font-size: 22px;
    color: #ccc;
}
.tna-az-item-info, .tnap-az-item-info {
    flex: 1;
    min-width: 0;
}
.tna-az-item-name, .tnap-az-item-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a1628;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tna-az-item-iata, .tnap-az-item-iata {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 7px;
    background: #e8f0fe;
    color: #1a5dbf;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
}
.tna-az-item-meta, .tnap-az-item-meta {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Airport-specific accent colour override */
.tnap-az-wrap .tnap-az-letter.active { background: #0e2340; border-color: #0e2340; }
.tnap-az-wrap .tnap-az-letter-heading { color: #0e2340; border-bottom-color: #0e2340; }
.tnap-az-list .tnap-az-item { border-left-color: #0e2340; }
.tnap-az-list a.tnap-az-item:hover { border-left-color: #1a6ddb; background: #f0f7ff; }
.tnap-az-grid a.tnap-az-item:hover { border-color: #0e2340; }

@media (max-width: 600px) {
    .tna-az-grid, .tnap-az-grid { grid-template-columns: 1fr 1fr; }
    .tna-az-nav, .tnap-az-nav { gap: 3px; padding: 8px 10px; }
    .tna-az-letter, .tnap-az-letter { min-width: 28px; height: 28px; font-size: 12px; }
}


/* ═══════════════════════════════════════════════
   AIRLINE INFO CARD – v2.1 Polish
   #51B1CB  #A0CF58  #255A6D  #6CAE5A
═══════════════════════════════════════════════ */
.tna-info-card {
    --tn-blue:   #51B1CB;
    --tn-green:  #A0CF58;
    --tn-dark:   #255A6D;
    --tn-green2: #6CAE5A;
    --tn-light:  #f0f8fb;
    --tn-border: #d0eaf2;
    display: block;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(37,90,109,.14), 0 2px 8px rgba(37,90,109,.06);
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .3s, transform .3s;
    max-width: 780px;
}
a.tna-info-card:hover { box-shadow: 0 16px 56px rgba(37,90,109,.22); transform: translateY(-3px); }

/* HEADER */
.tna-ic-header {
    display: flex;
    align-items: stretch;
    background: linear-gradient(140deg, #255A6D 0%, #2d7a96 50%, #51B1CB 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 170px;
}
.tna-ic-header::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 260px; height: 260px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
    pointer-events: none;
}
.tna-ic-header::after {
    content: '';
    position: absolute;
    bottom: -80px; left: 25%;
    width: 320px; height: 320px;
    background: rgba(160,207,88,.07);
    border-radius: 50%;
    pointer-events: none;
}
.tna-ic-logo {
    flex-shrink: 0;
    width: 190px;
    background: rgba(0,0,0,.12);
    border-right: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 22px;
    position: relative;
    z-index: 1;
}
.tna-ic-logo img {
    display: block;
    object-fit: contain;
    background-color:#fff;
    max-height: 84px;
    max-width: 146px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,.2));
}
.tna-ic-logo-icon { font-size: 54px; opacity: .6; }
.tna-ic-title {
    flex: 1;
    min-width: 0;
    padding: 30px 30px 26px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}
.tna-ic-name,
.tna-ic-header .tna-ic-name {
    font-size: 28px;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 8px;
    line-height: 1.1;
    letter-spacing: -.4px;
    text-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.tna-ic-tagline {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.82);
    margin: 0 0 18px;
}
.tna-ic-codes { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
.tna-ic-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.tna-ic-badge-iata .tna-ic-badge-icao { background: #A0CF58; color: #1a3a20; box-shadow: 0 2px 8px rgba(160,207,88,.45); }
/*.tna-ic-badge-icao { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }*/

/* PERFORATION */
.tna-ic-perforation {
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    position: relative;
    height: 30px;
}
.tna-ic-perforation::before,
.tna-ic-perforation::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    background: #efefef;
    border-radius: 50%;
    top: 50%; transform: translateY(-50%);
    border: 1px solid #ddd;
}
.tna-ic-perforation::before { left: -9px; }
.tna-ic-perforation::after  { right: -9px; }
.tna-ic-perf-line { flex: 1; border: none; border-top: 2px dashed #c8e5f0; }
.tna-ic-perf-plane { font-size: 15px; margin: 0 14px; color: #51B1CB; flex-shrink: 0; }

/* BODY */
.tna-ic-body { padding: 4px 0 28px; }

/* PILLS */
.tna-ic-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 26px 4px;
}
.tna-ic-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--tn-light);
    border: 1.5px solid var(--tn-border);
    border-radius: 12px;
    text-decoration: none !important;
    color: #1a2e35;
    transition: border-color .15s, background .15s, transform .15s;
}
.tna-ic-pill:hover { border-color: var(--tn-blue); background: #dff0f8; transform: translateY(-1px); }
.tna-ic-pill-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.tna-ic-pill-label { font-size: 10px; font-weight: 700; color: var(--tn-dark); text-transform: uppercase; letter-spacing: .07em; display: block; }
.tna-ic-pill-value { font-size: 14px; font-weight: 600; color: #1a2e35; display: block; text-decoration: none !important; }
a.tna-ic-pill .tna-ic-pill-value { color: var(--tn-blue); }
a.tna-ic-pill:hover .tna-ic-pill-value { color: var(--tn-dark); }

/* ROUTES */
.tna-ic-routes { padding: 24px 26px 0; }
.tna-ic-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--tn-dark);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tna-ic-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #A0CF58, rgba(160,207,88,.1));
    border-radius: 2px;
}
.tna-ic-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    padding-bottom: 4px;
}
.tna-ic-route-item {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1.5px solid var(--tn-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.tna-ic-route-item:hover {
    border-color: var(--tn-blue);
    box-shadow: 0 3px 12px rgba(81,177,203,.15);
    transform: translateY(-1px);
}
.tna-ic-route-codes {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 12px;
    background: var(--tn-light);
    border-right: 1.5px solid var(--tn-border);
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.tna-ic-ap { font-size: 14px; font-weight: 800; color: var(--tn-dark); letter-spacing: .04em; }
.tna-ic-time {
    font-size: 10px;
    font-weight: 700;
    color: #1a3a20;
    background: #A0CF58;
    padding: 2px 5px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.tna-ic-arrow { color: var(--tn-blue); font-size: 11px; flex-shrink: 0; }
.tna-ic-route-cities {
    font-size: 12px;
    font-weight: 500;
    color: #5a8a9a;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640px) {
    .tna-ic-header { flex-direction: column; min-height: auto; }
    .tna-ic-logo { width: 100%; min-height: 110px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
    .tna-ic-title { padding: 22px 20px 20px; }
    .tna-ic-name, .tna-ic-header .tna-ic-name { font-size: 22px; }
    .tna-ic-pills { padding: 16px 16px 4px; gap: 8px; }
    .tna-ic-routes { padding: 20px 16px 0; }
    .tna-ic-route-grid { grid-template-columns: 1fr; }
    .tna-ic-body { padding: 4px 0 20px; }
}

/* Editor info card preview */
.tna-ic-editor-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #51B1CB;
    font-family: 'DM Sans', sans-serif;
    max-width: 500px;
}
.tna-ic-ep-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #255A6D, #51B1CB);
}
.tna-ic-ep-body {
    padding: 14px 20px;
    background: #e8f6fb;
}

/* Friendly "not found" notice in editor */
.tna-block-notice,
.tnap-block-notice {
    background: #f0f8fb;
    border: 2px dashed #51B1CB;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    color: #255A6D;
}
.tna-block-notice strong,
.tnap-block-notice strong {
    font-size: 16px;
    font-weight: 700;
    display: block;
}

    --tn-blue:       #51B1CB;
    --tn-green:      #A0CF58;
    --tn-dark:       #255A6D;
    --tn-mid-green:  #6CAE5A;
    --tn-light-blue: #e8f6fb;
    --tn-light-green:#f0f8e8;
    --tn-border:     #d0eaf2;

    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(37,90,109,.13);
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .25s;
    max-width: 760px;
    border: 1.5px solid var(--tn-border);
}
a.tna-info-card:hover {
    box-shadow: 0 10px 36px rgba(37,90,109,.2);
    transform: translateY(-3px);
    border-color: var(--tn-blue);
}

/* ── HEADER ── */
.tna-ic-header {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 58px);
    min-height: 214px;
    padding: clamp(26px, 5vw, 44px) clamp(28px, 6vw, 56px) 34px;
    background:
        radial-gradient(circle at 89% 25%, rgba(255,255,255,.12) 0 0, transparent 126px),
        linear-gradient(135deg, #255A6D 0%, #317c92 54%, #51B1CB 100%);
    color: #fff;
    position: relative;
    isolation: isolate;
}
.tna-ic-header::after {
    display: none;
}
.tna-ic-logo {
    flex-shrink: 0;
    width: 100%;
    min-height: 74px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}
.tna-ic-logo img { display: block; object-fit: contain; max-width: 100%; max-height: 68px; }
.tna-ic-title {
    min-width: 0;
    flex: initial;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    position: relative;
    z-index: 1;
}
.tna-ic-name,
.tna-ic-header .tna-ic-name {
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    color: #fff !important;
    margin: 0;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
    text-decoration: none !important;
}
.tna-info-card,
.tna-info-card:hover,
.tna-info-card .tna-ic-header,
.tna-info-card .tna-ic-header * {
    text-decoration: none !important;
}
.tna-ic-tagline {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-decoration: none !important;
}
.tna-ic-codes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tna-ic-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    white-space: nowrap;
}
.tna-ic-badge-iata { background: #A0CF58; color: #1a3a20; box-shadow: 0 8px 18px rgba(160,207,88,.26); }
.tna-ic-badge-icao { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.36); }

/* ── BODY ── */
.tna-ic-body { padding: 0 28px 26px; }

/* ── DL info list ── */
.tna-ic-dl {
    display: flex;
    flex-direction: column;
    margin: 20px 0 0;
    border: 1.5px solid var(--tn-border);
    border-radius: 10px;
    overflow: hidden;
}
.tna-ic-dl-row {
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #e8f4f8;
}
.tna-ic-dl-row:last-child { border-bottom: none; }
.tna-ic-dl-row dt {
    width: 160px;
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #255A6D;
    background: var(--tn-light-blue);
    border-right: 1.5px solid var(--tn-border);
}
.tna-ic-dl-row dd {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    color: #1a2e35;
    margin: 0;
}
.tna-ic-dl-row dd a { color: #51B1CB; text-decoration: none; font-weight: 600; }
.tna-ic-dl-row dd a:hover { color: #255A6D; text-decoration: underline; }

/* ── ROUTES ── */
.tna-ic-routes { margin-top: 24px; }
.tna-ic-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #255A6D;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #A0CF58;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tna-ic-route-list { display: flex; flex-direction: column; gap: 5px; }
.tna-ic-route-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 13px;
    background: var(--tn-light-blue);
    border: 1.5px solid var(--tn-border);
    border-left: 3px solid var(--tn-blue);
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    transition: background .12s, border-color .12s;
}
a.tna-ic-route-item:hover {
    background: #d8eef7;
    border-color: var(--tn-blue);
    border-left-color: var(--tn-mid-green);
}
.tna-ic-route-codes { display: flex; align-items: center; gap: 5px; }
.tna-ic-ap { font-size: 14px; font-weight: 800; color: #255A6D; letter-spacing: .02em; }
.tna-ic-time {
    font-size: 11px;
    font-weight: 700;
    color: #255A6D;
    background: #A0CF58;
    padding: 1px 6px;
    border-radius: 3px;
    font-variant-numeric: tabular-nums;
}
.tna-ic-arrow { color: #51B1CB; font-size: 15px; }
.tna-ic-route-cities { font-size: 12px; color: #5a8a9a; margin-left: auto; }

@media (max-width: 600px) {
    .tna-ic-header { grid-template-columns: 1fr; gap: 18px; min-height: auto; padding: 22px 20px 28px; }
    .tna-ic-logo { max-width: 220px; min-height: 66px; justify-self: start; }
    .tna-ic-body { padding: 0 16px 20px; }
    .tna-ic-dl-row dt { width: 110px; font-size: 12px; }
    .tna-ic-name { font-size: 24px; }
}

/* Editor info card preview */
.tna-ic-editor-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #51B1CB;
    font-family: 'DM Sans', sans-serif;
    max-width: 500px;
}
.tna-ic-ep-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #255A6D, #51B1CB);
}
.tna-ic-ep-body {
    padding: 14px 20px;
    background: #e8f6fb;
}

/* Friendly "not found" notice in editor (replaces red error box) */
.tna-block-notice,
.tnap-block-notice {
    background: #f5faff;
    border: 2px dashed #51B1CB;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    font-family: "DM Sans", sans-serif;
    color: #255A6D;
}
.tna-block-notice strong,
.tnap-block-notice strong {
    font-size: 16px;
    font-weight: 700;
    display: block;
}


/* ─── AUTO-GENERATED PAGES layout ─── */
.tna-auto-page,
.tnap-auto-page,
.tnr-auto-page {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px 60px;
    font-family: "DM Sans", sans-serif;
}

.tnr-auto-related {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.tnr-auto-section {}

.tnr-auto-heading {
    font-size: 16px;
    font-weight: 700;
    color: #255A6D;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #A0CF58;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Make info cards full-width on auto pages */
.tna-auto-page .tna-info-card,
.tnap-auto-page .tnap-info-card,
.tnr-auto-page .tna-info-card,
.tnr-auto-page .tnap-info-card {
    max-width: 100%;
}

.tnr-auto-section .tna-info-card,
.tnr-auto-section .tnap-info-card {
    max-width: 100%;
}

/* "Se siden" link in admin */
.tna-hint a, .tnap-hint a, .tnr-hint a {
    color: #51B1CB;
    font-weight: 600;
}
