.sfr-section {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #d6dde8;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
}

.sfr-header h2 {
    margin: 0;
    color: #0b2b47;
}

.sfr-header p {
    margin-top: .35rem;
    color: #4b5f75;
}

.sfr-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: .6rem;
    margin: 1rem 0;
}

.sfr-filters input,
.sfr-filters select,
.sfr-filters button {
    border: 1px solid #bcc9d9;
    border-radius: 8px;
    padding: .55rem .65rem;
}

.sfr-filters button {
    background: #0b5ea6;
    color: #fff;
    border-color: #0b5ea6;
    font-weight: 600;
}

.sfr-table-wrap {
    overflow-x: auto;
}

.sfr-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.sfr-table th,
.sfr-table td {
    text-align: left;
    border-bottom: 1px solid #e0e8f2;
    padding: .6rem;
    vertical-align: top;
}

.sfr-clickable-row {
    cursor: pointer;
}

.sfr-clickable-row:hover,
.sfr-clickable-row:focus-visible {
    background: #f4f8fc;
}

.sfr-row-link {
    font-weight: 600;
    text-decoration: none;
}

.sfr-table th {
    color: #1f3d5a;
    font-size: .88rem;
}

.sfr-status {
    display: inline-block;
    background: #e6f2ff;
    color: #0b5ea6;
    border-radius: 999px;
    padding: .1rem .5rem;
    font-size: .8rem;
}

.sfr-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}

.sfr-card {
    border: 1px solid #dbe5f1;
    border-radius: 10px;
    padding: .8rem;
    background: #fff;
}

.sfr-card h3 {
    margin-top: 0;
}

.sfr-card-empty {
    color: #6e7c8e;
}

.sfr-pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.sfr-pagination a {
    border: 1px solid #c4d2e3;
    border-radius: 6px;
    padding: .25rem .5rem;
    text-decoration: none;
}

.sfr-pagination .is-current {
    background: #0b5ea6;
    color: #fff;
    border-color: #0b5ea6;
}

.sfr-detail-grid {
    display: grid;
    gap: .6rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 1rem;
}

.sfr-timeline,
.sfr-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .65rem;
}

.sfr-timeline li,
.sfr-event-list li {
    border-left: 3px solid #7ea8cf;
    padding: .3rem .65rem;
    background: #fff;
}

.sfr-timeline-date {
    font-size: .8rem;
    color: #4f6480;
    display: inline-block;
    margin-bottom: .2rem;
}

.sfr-aircraft-position-map {
    height: 300px;
    border: 1px solid #d6dde8;
    border-radius: 12px;
    overflow: hidden;
    margin: .75rem 0;
}

.sfr-current-position-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    color: #4b5f75;
}

/* Tracking indicator + tooltip (Leaflet) */
.sfr-tracking-indicator-host {
    position: relative;
}

.sfr-tracking-indicator-wrap {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 6;
}

.sfr-tracking-indicator {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.sfr-tracking-indicator--live {
    background: #16a34a;
    color: #fff;
}

.sfr-tracking-indicator--stale,
.sfr-tracking-indicator--no_icao24 {
    background: #dc2626;
    color: #fff;
}

.sfr-tracking-indicator__icon {
    width: 18px;
    height: 18px;
    display: block;
}

.sfr-tracking-tooltip {
    position: absolute;
    left: 0;
    bottom: 44px;
    width: 280px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    overflow: hidden;
    padding: 10px;
    display: none;
}

.sfr-tracking-indicator-wrap:hover .sfr-tracking-tooltip,
.sfr-tracking-indicator-wrap:focus-within .sfr-tracking-tooltip {
    display: block;
}

.sfr-tracking-tooltip-map {
    height: 160px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    overflow: hidden;
}

.sfr-tracking-tooltip-meta {
    margin: 10px 0 0;
    display: grid;
    gap: 6px;
    color: #334155;
}

.sfr-tracking-tooltip-meta div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sfr-tracking-tooltip-meta dt {
    font-weight: 650;
    color: #0b2b47;
}

.sfr-tracking-tooltip-meta dd {
    margin: 0;
    color: #334155;
}

.sfr-tracking-tooltip-text {
    margin: 0;
    color: #334155;
}

.sfr-community-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .5rem;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: rgba(30, 41, 59, 0.92);
    font-size: .78rem;
    font-weight: 700;
}

@media (max-width: 720px) {
    .sfr-section {
        padding: .75rem;
    }

    .sfr-table {
        min-width: 560px;
    }
}

/* Community suggestions modal */
.sfr-modal-lock {
    overflow: hidden;
}

.sfr-suggest-trigger {
    align-items: center;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    color: #0b2b47;
    display: inline-flex;
    font-weight: 650;
    gap: .5rem;
    padding: .45rem .85rem;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.96));
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.sfr-suggest-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
}

.sfr-suggest-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    background: radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.14), rgba(2, 6, 23, 0.72));
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.sfr-suggest-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sfr-suggest-modal {
    width: min(760px, 100%);
    max-height: min(86vh, 820px);
    overflow: auto;
    position: relative;
    outline: none;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.92));
    box-shadow: 0 40px 90px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(12px);
    transform: translateY(8px) scale(.99);
    transition: transform .16s ease;
}

.sfr-suggest-overlay.is-open .sfr-suggest-modal {
    transform: translateY(0) scale(1);
}

.sfr-suggest-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease;
}

.sfr-suggest-close:hover {
    transform: rotate(6deg);
    background: rgba(255, 255, 255, 1);
}

.sfr-suggest-header {
    padding: 22px 22px 8px;
}

.sfr-suggest-kicker {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(30, 58, 138, 0.72);
    font-weight: 750;
}

.sfr-suggest-header h2 {
    margin: 8px 0 8px;
    color: #0b2b47;
    font-size: 1.35rem;
}

.sfr-suggest-subtitle {
    margin: 0;
    color: rgba(30, 41, 59, 0.68);
}

.sfr-suggest-context {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sfr-suggest-context__registration {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.02em;
    color: rgba(11, 43, 71, 0.96);
}

.sfr-suggest-context__type {
    margin-top: 4px;
    color: rgba(30, 41, 59, 0.72);
    font-weight: 650;
}

.sfr-suggest-body {
    padding: 10px 22px 22px;
}

.sfr-suggest-section + .sfr-suggest-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.sfr-suggest-section__head h3 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.75);
}

.sfr-suggest-help {
    margin: 8px 0 0;
    color: rgba(30, 41, 59, 0.68);
    font-size: 13px;
}

.sfr-suggest-choice-grid {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sfr-suggest-choice {
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 252, 0.92));
    padding: 12px 12px;
    cursor: pointer;
    display: grid;
    gap: 4px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.06);
}

.sfr-suggest-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.10);
}

.sfr-suggest-choice.is-selected {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.12);
}

.sfr-suggest-choice__icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.10);
    color: rgba(37, 99, 235, 0.9);
    font-weight: 850;
}

.sfr-suggest-choice__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

.sfr-suggest-choice__title {
    font-weight: 850;
    color: rgba(11, 43, 71, 0.94);
}

.sfr-suggest-choice__desc {
    color: rgba(30, 41, 59, 0.68);
    font-size: 12.5px;
}

.sfr-suggest-pane {
    margin-top: 12px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

.sfr-suggest-pane.is-active {
    opacity: 1;
    transform: translateY(0);
}

.sfr-suggest-typeahead {
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.10);
    overflow: hidden;
}

.sfr-suggest-typeahead__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: rgba(15, 23, 42, 0.9);
}

.sfr-suggest-typeahead__item:hover {
    background: rgba(59, 130, 246, 0.06);
}

.sfr-suggest-typeahead__item img {
    width: 34px;
    height: 22px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(248, 250, 252, 1);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 3px 4px;
}

.sfr-suggest-typeahead__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
}

.sfr-suggest-disabled {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sfr-suggest-disabled__label {
    font-weight: 750;
    color: rgba(15, 23, 42, 0.75);
}

.sfr-suggest-disabled__btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(248, 250, 252, 0.9);
    padding: .45rem .75rem;
    color: rgba(15, 23, 42, 0.7);
}

.sfr-suggest-subsection {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.58);
}

.sfr-suggest-subsection__label {
    font-weight: 850;
    color: rgba(15, 23, 42, 0.78);
    margin-bottom: 10px;
}

.sfr-suggest-photo-drop {
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.55);
    padding: 14px;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.sfr-suggest-photo-drop:hover {
    transform: translateY(-1px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.08);
}

.sfr-suggest-photo-drop.is-dragover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.sfr-suggest-photo-drop__inner strong {
    display: block;
    color: rgba(15, 23, 42, 0.86);
}

.sfr-suggest-photo-drop__inner span {
    display: block;
    margin-top: 4px;
    color: rgba(30, 41, 59, 0.62);
    font-size: 12.5px;
}

.sfr-suggest-photo-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.sfr-suggest-photo-thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.85);
}

.sfr-suggest-photo-thumb img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: cover;
}

.sfr-suggest-photo-thumb button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-weight: 900;
    line-height: 1;
}

.sfr-suggest-photo-rights {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(15, 23, 42, 0.78);
    font-size: 12.5px;
    font-weight: 650;
}

.sfr-suggest-photo-rights input {
    margin-top: 3px;
}

.sfr-suggest-photo-rights.is-invalid span {
    color: rgba(185, 28, 28, 0.9);
}

.sfr-suggest-submit.is-full {
    width: 100%;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.1rem;
    font-size: 15px;
}

.sfr-suggest-submit-area {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.sfr-suggest-fineprint {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: rgba(30, 41, 59, 0.62);
}

.sfr-suggest-reveal {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

.sfr-suggest-reveal.is-active {
    opacity: 1;
    transform: translateY(0);
}

.sfr-suggest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sfr-suggest-field {
    display: block;
    margin-top: 12px;
}

.sfr-suggest-grid .sfr-suggest-field {
    margin-top: 0;
}

.sfr-suggest-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    color: rgba(15, 23, 42, 0.8);
    font-weight: 650;
}

.sfr-suggest-field input,
.sfr-suggest-field select,
.sfr-suggest-field textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.96);
    padding: .65rem .75rem;
    outline: none;
    transition: box-shadow .16s ease, border-color .16s ease;
}

.sfr-suggest-field textarea {
    resize: vertical;
}

.sfr-suggest-field input:focus,
.sfr-suggest-field select:focus,
.sfr-suggest-field textarea:focus {
    border-color: rgba(59, 130, 246, 0.65);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.sfr-suggest-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.sfr-suggest-submit,
.sfr-suggest-link {
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.55);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    padding: .65rem 1rem;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.sfr-suggest-submit:hover,
.sfr-suggest-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
}

.sfr-suggest-submit:disabled {
    opacity: .75;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.sfr-suggest-alert {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.88);
    margin: 6px 0 14px;
    color: rgba(15, 23, 42, 0.84);
}

.sfr-suggest-alert.is-success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(236, 253, 243, 0.85);
}

.sfr-suggest-alert.is-error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(255, 241, 240, 0.85);
}

.sfr-suggest-alert.is-info {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(239, 246, 255, 0.9);
}

.sfr-suggest-alert-body {
    margin-top: 6px;
    color: rgba(15, 23, 42, 0.7);
}

.sfr-suggest-alert-actions {
    margin-top: 10px;
}

@media (max-width: 720px) {
    .sfr-suggest-grid {
        grid-template-columns: 1fr;
    }

    .sfr-suggest-choice-grid {
        grid-template-columns: 1fr;
    }

    .sfr-suggest-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
