[x-cloak] { display:none !important; }
        .search-shell {
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }
        .search-shell-ai,
        .search-shell-manual {
            border-color: #bfdbfe;
            background: #eff6ff;
            box-shadow: 0 12px 32px rgba(37, 99, 235, .055);
        }
        .search-badge-ai {
            background: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, .16);
        }
        .search-counter-card {
            border-color: #bfdbfe;
            box-shadow: 0 6px 18px rgba(37, 99, 235, .06);
        }
        .search-form-ai {
            border-color: #dbeafe;
            background: rgba(255,255,255,.72);
        }

        .ai-search-progress-shell {
            background:
                radial-gradient(circle at 10% 0%, rgba(37,99,235,.08), transparent 34%),
                rgba(255,255,255,.88);
        }

        .ai-search-progress-card {
            display: flex;
            align-items: center;
            gap: 1rem;
            min-width: 0;
            border: 1px solid #bfdbfe;
            border-radius: 1.25rem;
            background: #ffffff;
            padding: 1rem;
            box-shadow: 0 10px 28px rgba(37,99,235,.08);
        }

        .ai-search-progress-icon {
            position: relative;
            display: flex;
            height: 4rem;
            width: 4rem;
            flex: 0 0 4rem;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid #bfdbfe;
            border-radius: 1rem;
            background: linear-gradient(145deg, #eff6ff, #dbeafe);
            color: #1d4ed8;
        }

        .ai-search-progress-icon svg {
            fill: none;
            stroke: currentColor;
            stroke-width: 2.2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .ai-search-progress-scan {
            position: absolute;
            left: .55rem;
            right: .55rem;
            top: .7rem;
            height: 2px;
            border-radius: 999px;
            background: #2563eb;
            box-shadow: 0 0 12px rgba(37,99,235,.55);
            animation: ai-search-scan 1.55s ease-in-out infinite;
        }

        .ai-search-progress-value {
            font-size: 1.65rem;
            line-height: 1;
            font-weight: 900;
            letter-spacing: -.04em;
            color: #1d4ed8;
            font-variant-numeric: tabular-nums;
        }

        .ai-search-progress-track {
            position: relative;
            height: .65rem;
            overflow: hidden;
            border-radius: 999px;
            background: #e2e8f0;
        }

        .ai-search-progress-fill {
            position: absolute;
            inset: 0 auto 0 0;
            width: 0%;
            border-radius: inherit;
            background: linear-gradient(90deg, #2563eb, #4f46e5);
            transition: width .28s ease;
        }

        .ai-search-progress-fill::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient(
                100deg,
                transparent 15%,
                rgba(255,255,255,.45) 45%,
                transparent 70%
            );
            transform: translateX(-100%);
            animation: ai-search-shimmer 1.4s linear infinite;
        }

        .ai-search-progress-dot {
            display: inline-block;
            height: .5rem;
            width: .5rem;
            border-radius: 999px;
            background: #22c55e;
            box-shadow: 0 0 0 4px rgba(34,197,94,.12);
            animation: ai-search-dot 1.2s ease-in-out infinite;
        }

        @keyframes ai-search-scan {
            0%, 100% { transform: translateY(0); opacity: .6; }
            50% { transform: translateY(2.6rem); opacity: 1; }
        }

        @keyframes ai-search-shimmer {
            to { transform: translateX(100%); }
        }

        @keyframes ai-search-dot {
            0%, 100% { transform: scale(.85); opacity: .65; }
            50% { transform: scale(1); opacity: 1; }
        }

        @media (prefers-reduced-motion: reduce) {
            .ai-search-progress-scan,
            .ai-search-progress-fill::after,
            .ai-search-progress-dot {
                animation: none !important;
            }
        }

        @media (max-width: 639px) {
            .ai-search-progress-card {
                align-items: flex-start;
            }

            .ai-search-progress-icon {
                height: 3.25rem;
                width: 3.25rem;
                flex-basis: 3.25rem;
            }

            .ai-search-progress-value {
                font-size: 1.4rem;
            }
        }
        .search-main-input {
            color: #172033;
            background: rgba(255,255,255,.94);
            box-shadow: 0 2px 7px rgba(30,41,59,.04), inset 0 1px 1px rgba(15,23,42,.025);
        }
        .search-main-input::placeholder {
            color: #7c879b;
            font-weight: 600;
        }
        .search-main-input-ai {
            border-color: #cbd5ff;
            padding-left: 1.25rem;
        }
        .search-main-input-ai:hover { border-color: #a5b4fc; }
        .search-main-input-ai:focus {
            border-color: #6366f1;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(99,102,241,.11), 0 4px 16px rgba(79,70,229,.06);
        }
        .search-main-input-manual { border-color: #bfdbfe; }
        .search-main-input-manual:hover { border-color: #93c5fd; }
        .search-main-input-manual:focus {
            border-color: #2563eb;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(37,99,235,.10), 0 4px 16px rgba(37,99,235,.05);
        }
        .search-enter-hint {
            border-color: #e0e3f7;
            color: #777f9d;
        }
        .search-primary-button {
            box-shadow: 0 7px 18px rgba(67,56,202,.18);
        }
        .search-primary-button-ai,
        .search-primary-button-manual {
            background: #2563eb;
            box-shadow: 0 7px 18px rgba(37,99,235,.16);
        }
        .search-primary-button-ai:hover,
        .search-primary-button-manual:hover {
            background: #1d4ed8;
            transform: translateY(-1px);
        }
        .search-secondary-button {
            border-color: #bfdbfe;
            color: #334155;
        }
        .search-secondary-button:hover {
            border-color: #93c5fd;
            background: #eff6ff;
            color: #1d4ed8;
        }
        .search-manual-icon {
            background: #dbeafe;
            color: #2563eb;
        }
        .search-filters-panel {
            border-top: none;
            border-color: #dbeafe;
            background: #eff6ff;
        }


        /* Rucni filteri: ucitaj pre forme (bez promene njihovog dizajna). */
        .filter-toolbar {
            display: flex;
            flex-wrap: nowrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            border-top: none;
            padding-top: 1rem;
        }

        .filter-toolbar-scroll {
            display: flex;
            min-width: 0;
            flex: 1 1 auto;
            flex-wrap: wrap;
            align-items: center;
            gap: .6rem;
            overflow: visible;
            padding: .15rem .1rem .35rem;
        }

        .filter-toolbar-button,
        .filter-toolbar-reset {
            display: inline-flex;
            min-height: 2.65rem;
            flex: 0 0 auto;
            align-items: center;
            justify-content: center;
            gap: .55rem;
            border: 1px solid #dbe2ee;
            border-radius: .85rem;
            background: rgba(255,255,255,.93);
            padding: .65rem .9rem;
            color: #334155;
            font-size: .8125rem;
            line-height: 1rem;
            font-weight: 800;
            box-shadow: 0 2px 7px rgba(30,41,59,.035);
            transition: .18s ease;
            white-space: nowrap;
        }

        .filter-toolbar-button:hover {
            border-color: #93c5fd;
            background: #f8fbff;
            color: #1d4ed8;
            transform: translateY(-1px);
        }

        .filter-toolbar-button.is-active,
        .filter-toolbar-button.is-open {
            border-color: #93c5fd;
            background: #dbeafe;
            color: #1d4ed8;
            box-shadow: 0 0 0 3px rgba(37,99,235,.07);
        }

        .filter-panel-grid-single {
            display: block !important;
            max-width: 760px;
        }

        .search-filters-panel {
            cursor: default;
        }

        .filter-panel-grid-single > .filter-box {
            width: 100%;
        }

        .filter-toolbar-count {
            display: inline-flex;
            min-width: 1.25rem;
            height: 1.25rem;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: #2563eb;
            padding: 0 .35rem;
            color: #fff;
            font-size: .65rem;
            font-weight: 900;
        }

        .filter-toolbar-chevron {
            color: #64748b;
            font-size: .85rem;
            transition: transform .18s ease;
        }

        .filter-toolbar-reset {
            border-color: transparent;
            background: transparent;
            color: #2563eb;
            box-shadow: none;
        }

        .filter-toolbar-reset:hover {
            background: #eff6ff;
            color: #1d4ed8;
        }

        .filter-toolbar-sort {
            display: flex;
            flex: 0 0 auto;
            align-items: center;
            gap: .65rem;
            padding-top: .15rem;
            color: #64748b;
            font-size: .8125rem;
            font-weight: 700;
        }

        .filter-toolbar-sort select {
            min-height: 2.65rem;
            border: 1px solid #dbe2ee;
            border-radius: .85rem;
            background: #fff;
            padding: .55rem 2.25rem .55rem .85rem;
            color: #0f172a;
            font-size: .8125rem;
            font-weight: 700;
            box-shadow: 0 2px 7px rgba(30,41,59,.035);
        }

        .filter-toolbar-sort select:focus {
            border-color: #60a5fa;
            outline: none;
            box-shadow: 0 0 0 3px rgba(37,99,235,.10);
        }

        @media (max-width: 900px) {
            .filter-toolbar-sort label {
                display: none;
            }
        }


        /* Responsive: prevent toolbar and sort control from competing for width. */
        @media (max-width: 1024px) {
            .filter-toolbar { flex-wrap: wrap; }
            .filter-toolbar-scroll { flex: 1 1 100%; }
            .filter-toolbar-sort { margin-left: auto; max-width: 100%; }
        }
        @media (max-width: 639px) {
            .filter-toolbar-scroll { gap: .45rem; }
            .filter-toolbar-button { white-space: normal; text-align: center; }
            .filter-toolbar-sort { width: 100%; justify-content: space-between; }
            .filter-toolbar-sort select { min-width: 0; max-width: 100%; }
        }

        .filter-pill {
            display: inline-flex;
            align-items: center;
            gap: .375rem;
            border: 1px solid rgb(191 219 254);
            border-radius: 9999px;
            background: rgb(239 246 255);
            padding: .4rem .8rem;
            font-size: .75rem;
            line-height: 1rem;
            font-weight: 700;
            color: rgb(30 64 175);
            transition: .2s;
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
        }

        .filter-pill:hover { background: rgb(219 234 254); }

        button.filter-pill {
            border-style: solid;
            appearance: none;
            cursor: pointer;
        }

        .filter-box {
            position: relative;
            border: 1px solid rgb(226 232 240);
            border-radius: 1rem;
            background: white;
            overflow: hidden;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

        .filter-box[open] {
            overflow: visible;
            z-index: 50;
            border-color: rgb(147 197 253);
            box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
        }

        .filter-box:has([data-citizenship-results]:not(.hidden)),
        .filter-box:has([data-location-results]:not(.hidden)) {
            z-index: 200;
        }

        [data-citizenship-results],
        [data-location-results] {
            z-index: 9999 !important;
        }

        .filter-summary {
            display: flex;
            cursor: pointer;
            list-style: none;
            align-items: center;
            justify-content: space-between;
            padding: .8rem 1rem;
            font-size: .875rem;
            font-weight: 700;
            color: rgb(30 41 59);
        }

        .filter-summary::-webkit-details-marker { display: none; }
        .filter-box[open] .filter-summary span { transform: rotate(180deg); }
        .filter-summary span { color: rgb(148 163 184); transition: transform .2s; }

        .filter-content {
            border-top: 1px solid rgb(241 245 249);
            padding: .85rem 1rem 1rem;
        }

        .filter-input {
            width: 100%;
            border-radius: .75rem;
            border-color: rgb(203 213 225);
            padding: .625rem .75rem;
            font-size: .875rem;
        }



        /* IT Zadruga: ivice filtera bez artefakata na zaobljenim uglovima. */
        /* Continuous outline around the entire form, including expanded filters. */
        #partner-filters {
            border: 0 !important;
            border-radius: 28px !important;
            background: #eff6ff !important;
            /* Outline remains visible above the expanded panel background. */
            outline: 1px solid #bfdbfe !important;
            outline-offset: 0 !important;
            box-shadow: 0 12px 32px rgba(37, 99, 235, .055) !important;
            overflow: visible !important;
        }

        #partner-filters .search-filters-panel {
            background: #eff6ff !important;
            border-top: 0 !important;
            border-bottom-left-radius: 28px;
            border-bottom-right-radius: 28px;
        }

        #partner-filters .filter-toolbar-button,
        #partner-filters .filter-toolbar-sort select {
            border: 1px solid transparent !important;
            box-shadow: inset 0 0 0 1px #dbe2ee;
        }

        #partner-filters .filter-toolbar-button:hover {
            box-shadow: inset 0 0 0 1px #93c5fd;
        }

        #partner-filters .filter-toolbar-button.is-active,
        #partner-filters .filter-toolbar-button.is-open {
            box-shadow: inset 0 0 0 1px #93c5fd,
                        0 0 0 3px rgba(37, 99, 235, .07);
        }

        #partner-filters .filter-toolbar-sort select:focus {
            box-shadow: inset 0 0 0 1px #60a5fa,
                        0 0 0 3px rgba(37, 99, 235, .10);
        }

        /* Oznake usluga i tehnologija: transparentna stvarna ivica,
           plavi okvir iscrtan iznutra bez Firefox artefakata. */
        html body span.partner-card-list-chip,
        html body .partner-card-list-chips > span.partner-card-list-chip {
            border: 1px solid transparent !important;
            border-color: transparent !important;
            border-radius: 8px !important;
            box-shadow: inset 0 0 0 1px #93c5fd !important;
            background-clip: padding-box !important;
        }

        html body span.partner-card-list-chip::before,
        html body span.partner-card-list-chip::after {
            content: none !important;
            display: none !important;
        }
