/**
 * Flight detail page — route, aircraft, similar-flight, and footer cards.
 */

.fp-panel {
    margin-top: 10px;
    padding: 1.125rem 1.125rem;
    border: 1px solid var(--fp-separator);
    border-radius: var(--fp-card-radius);
    background: var(--fp-surface);
}

.fp-panel--cta {
    background: var(--fp-accent-soft);
    border-color: rgba(47, 111, 237, 0.18);
}

.fp-panel__title {
    margin: 0 0 0.875rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fp-label);
}

.fp-panel__copy {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--fp-label);
}

.fp-panel__copy a {
    color: var(--fp-accent-text);
    font-weight: 500;
    text-decoration: none;
}

.fp-panel__copy a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.fp-route__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.875rem 0.75rem;
    border-radius: 0;
    background: var(--fp-fill);
    border: 1px solid var(--fp-separator);
}

.fp-route__endpoint {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.fp-route__endpoint--arrival {
    text-align: right;
    align-items: flex-end;
}

.fp-route__code {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fp-accent-text);
}

.fp-route__city {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--fp-text);
}

.fp-route__airport {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--fp-label);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.fp-route__connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0 0.25rem;
}

.fp-route__connector::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 1px;
    background: var(--fp-separator);
}

.fp-route__stat {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--fp-label);
    white-space: nowrap;
}

.fp-route__departure {
    margin: 0.75rem 0 0;
    font-size: 0.8125rem;
    color: var(--fp-label);
}

.fp-route__departure strong {
    color: var(--fp-text);
    font-weight: 500;
}

.fp-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.fp-spec {
    margin: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0;
    background: var(--fp-fill);
    border: 1px solid var(--fp-separator);
}

.fp-spec__label {
    margin: 0 0 0.1875rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fp-label);
}

.fp-spec__value {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fp-text);
    line-height: 1.35;
}

.fp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.625rem;
    padding: 0.5rem 1.25rem;
    border-radius: 0;
    font-family: var(--fp-font);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.fp-btn--primary {
    background: var(--fp-cta);
    color: var(--fp-cta-ink);
    border: none;
}

.fp-btn--primary:hover {
    background: color-mix(in srgb, var(--fp-cta) 88%, #000);
    color: var(--fp-cta-ink);
    text-decoration: none;
}

.fp-btn--secondary {
    background: transparent;
    color: var(--fp-text);
    border: 1px solid var(--fp-separator);
}

.fp-btn--secondary:hover {
    background: var(--fp-fill);
    color: var(--fp-text);
    text-decoration: none;
}
