.cf-page .cf-section {
    margin-bottom: 16px;
}

.cf-kpi-row {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.cf-logo-wrap {
    width: 72px;
    height: 72px;
}

.cf-country-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.cf-flag-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-title-flag {
    font-size: 48px;
    border-radius: 4px;
    line-height: 1;
}

.cf-hero-banner {
    flex: 0 1 260px;
    min-height: 100px;
}

.cf-banner-logo {
    max-height: 96px;
}

.cf-emoji {
    font-family: var(--font, 'Open Sans', sans-serif);
    font-size: 18px;
}

.cf-guest-notice {
    background: var(--stripe);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12px;
}

.cf-guest-notice a {
    font-weight: 700;
}

.cf-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cf-inline-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cf-search-input,
.cf-sort-select {
    padding: 6px 10px;
    border: 1px solid var(--border-dark, var(--border));
    border-radius: 3px;
    font-size: 12px;
    font-family: var(--font);
    background: var(--white);
    color: var(--heading);
}

.cf-search-input {
    min-width: 160px;
}

.cf-sort-select {
    font-weight: 600;
    cursor: pointer;
}

.cf-empty,
.cf-empty-block {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.cf-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: var(--panel-head, var(--stripe));
}

.cf-page-info {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.cf-pg-controls {
    display: flex;
    gap: 8px;
}

/* Shared airline + airport card grids */
.cf-entity-grid-wrap {
    padding: 16px 15px 12px;
}

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

.cf-entity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    padding: 0 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

.cf-entity-card:hover {
    border-color: var(--link);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
    text-decoration: none;
}

.cf-entity-card-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
    padding: 12px 14px;
    background: var(--stripe, #f8f9fb);
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

html[data-theme="dark"] .cf-entity-card-icon-wrap {
    background: #1a2030;
}

.cf-entity-card-icon {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
}

.cf-entity-card-fallback {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--link);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-entity-card-name {
    display: block;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cf-airports-section .cf-panel-head .sub {
    font-weight: 600;
}

/* Waypoints map */
.cf-waypoints-map {
    height: min(520px, 62vh);
    min-height: 320px;
    width: 100%;
    background: var(--body-bg, #f0f2f5);
}

.cf-wp-map-hint {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.cf-wp-footer {
    margin-top: 0;
}

.leaflet-tooltip.cf-wp-tooltip {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 3px;
}

/* Sightings table (unchanged) */
.cf-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cf-table .th-center {
    text-align: center;
}

.cf-table .th-right {
    text-align: right;
}

.cf-mono {
    font-family: ui-monospace, monospace;
    font-size: 12px;
}

.cf-cs {
    font-weight: 700;
    color: var(--heading);
}

.cf-muted {
    color: var(--text-muted);
    font-size: 12px;
}

.cf-route {
    font-size: 12px;
}

.cf-empty {
    padding: 24px 16px;
}

@media (max-width: 640px) {
    .cf-inline-search {
        width: 100%;
    }
    .cf-search-input {
        flex: 1;
        min-width: 0;
    }
    .cf-entity-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    .cf-waypoints-map {
        min-height: 280px;
    }
}
