/* Globální vyhledávání */

.search-index-page {
    --search-green: var(--fl-green-primary);
    --search-green-soft: #ecfdf5;
    --search-ink: #0f172a;
    --search-muted: #64748b;
    --search-line: #e2e8f0;
    padding: 56px 0 72px;
    background:
        radial-gradient(circle at top right, rgba(0, 155, 58, 0.08), transparent 34%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 80px);
}

.search-index-page:has(.page-bottom-ad--full) {
    padding-bottom: 1.25rem;
}

.search-index-shell {
    max-width: 980px;
    margin: 0 auto;
}

.search-index-hero {
    background: #fff;
    border: 1px solid var(--search-line);
    border-radius: 24px;
    padding: 28px 28px 24px;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.28);
}

.search-index-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    color: var(--search-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-index-title {
    margin: 0;
    color: var(--search-ink);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.search-index-lead {
    margin: 0.75rem 0 0;
    color: var(--search-muted);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 42rem;
}

.search-index-form {
    margin-top: 1.35rem;
}

.search-index-form .input-group {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.search-index-form .input-group:focus-within {
    border-color: rgba(0, 155, 58, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 155, 58, 0.12);
}

.search-index-form .form-control {
    min-height: 58px;
    border: 0;
    padding: 0.85rem 1.1rem;
    font-size: 1.05rem;
    box-shadow: none;
}

.search-index-form .form-control:focus {
    box-shadow: none;
}

.search-index-form .btn-search-submit {
    min-height: 58px;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(135deg, var(--fl-green-primary), var(--fl-green-dark));
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

.search-index-form .btn-search-submit:hover {
    background: var(--fl-green-dark);
}

.search-index-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.85rem;
    color: var(--search-muted);
    font-size: 0.92rem;
}

.search-index-meta-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--search-green-soft);
    color: #166534;
    font-weight: 700;
}

.search-index-empty {
    margin-top: 1.5rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--search-muted);
}

.search-index-empty-title {
    color: var(--search-ink);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.search-index-section {
    margin-top: 1.35rem;
    background: #fff;
    border: 1px solid var(--search-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 36px -28px rgba(15, 23, 42, 0.28);
}

.search-index-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(180deg, #f0fdf4, #f8fafc);
    border-bottom: 1px solid #dcfce7;
}

.search-index-section-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-index-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.78rem;
    font-weight: 800;
}

.search-index-conn {
    padding: 1.15rem 1.25rem;
    margin: 10px;
    border: 1px solid #e4ece7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 10px -8px rgba(24, 54, 36, 0.2);
    transition: background-color 0.18s ease;
}

.search-index-conn:last-child {
    border-bottom: 1px solid #e4ece7;
}

.search-index-conn:hover {
    background: #f4faf6;
    border-color: #b7d9c3;
}

.search-index-conn-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}

.search-index-conn-time {
    flex: 0 0 auto;
    width: 4.5rem;
    color: #163e27;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    padding-top: 0.15rem;
}

.search-index-conn-body {
    flex: 1 1 auto;
    min-width: 0;
}

.search-index-conn-route {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
    color: var(--search-ink);
    font-size: clamp(0.98rem, 1.8vw, 1.12rem);
    font-weight: 800;
    line-height: 1.35;
}

.search-index-conn-route--single {
    display: block;
    overflow-wrap: anywhere;
}

.search-index-conn-city {
    min-width: 0;
    overflow-wrap: anywhere;
}

.search-index-conn-city--dest {
    color: #14532d;
}

.search-index-conn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    background: var(--search-green-soft);
    color: #059669;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.search-index-conn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.search-index-conn-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

.search-index-conn-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid #edf2f7;
    padding-left: 5.5rem;
}

.search-index-conn-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--search-line);
    background: #fff;
}

.search-index-conn-logo img {
    height: 1.75rem;
    max-width: 7.5rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.search-index-conn-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    background: #173e2b;
    color: #fff;
    white-space: nowrap;
}

.search-index-conn-platform-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.92;
}

.search-index-conn-platform-num {
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.search-index-conn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.search-index-conn-pdf:hover {
    background: #fef2f2;
    color: #991b1b;
}

.search-index-link {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #edf2f7;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.search-index-link:last-child {
    border-bottom: 0;
}

.search-index-link:hover {
    background: #f8fafc;
    color: inherit;
}

.search-index-link-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.search-index-link-icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    flex-shrink: 0;
}

.search-index-link-title {
    color: var(--search-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.search-index-link-sub {
    margin-top: 0.2rem;
    color: var(--search-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 767px) {
    .search-index-page {
        padding: 36px 0 48px;
    }

    .search-index-hero {
        padding: 1.25rem 1rem 1rem;
        border-radius: 18px;
    }

    .search-index-form .form-control,
    .search-index-form .btn-search-submit {
        min-height: 52px;
    }

    .search-index-conn {
        padding: 1rem;
    }

    .search-index-conn-actions {
        padding-left: 0;
    }

    .search-index-conn-time {
        width: 3.75rem;
    }
}
