/* =========================================================
   DESIGN TOKENS
========================================================= */

:root {

    --color-gp-green: #c5d000;
    --color-gp-blue: #3ea9e0;
    --color-gp-brown: #6D4E2F;

    /* Tag Pills */
    --tag-pill-bg: #c5d000;
    --tag-pill-bg-hover: #e5e7eb;
    --tag-pill-bg-active: #5e6300;

    --tag-pill-text: #111;
    --tag-pill-text-active: #fff;

    /* Category Pills */
    --category-pill-bg: #3ea9e0;
    --category-pill-bg-hover: #e5e7eb;
    --category-pill-bg-active: #215b79;

    --category-pill-text: #fff;
    --category-pill-text-hover: #000000;
    --category-pill-text-active: #fff;

    /* Generic */
    --color-border: #ddd;
    --color-border-main: #000000;
    --color-border-active: #111827;

    --color-panel-bg: #fafafa;

    --color-radius-bubble-bg: #111827;
    --color-radius-bubble-text: #fff;

    --radius-pill: 999px;
    --radius-panel: 16px;
}

/* =========================================================
   PARENT CONFIG
========================================================= */

.row.content-area {
    margin-top: 30;
    min-width: 0;
}

.search_jobs {
    min-width: 0;
}

/* =========================================================
   HIDDEN DEFAULT UI
========================================================= */

.search_categories {
    display: none !important;
}

.job_filters input[type="checkbox"] {
    display: none !important;
}

.astoundify-listing-labels {
    display: none !important;
}

.filter-label {
    display: none !important;
}

.reset {
    display: none !important;
}

/* =========================================================
   RADIUS FILTER
========================================================= */

.search-radius-wrapper {

    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 20px !important;
    margin-bottom: 10px !important;

    position: relative;
    z-index: 1;
}

.search-radius-label {

    order: 1;

    font-size: 14px;
}

.search-radius-slider {

    order: 2;

    width: 100%;
}

.search-radius-slider .noUi-target {
    width: 100%;
}

.noUi-handle {

    position: relative;

    overflow: visible;
}

.radius-bubble {

    position: absolute;
    top: -28px;
    left: 50%;

    padding: 3px 8px;

    border-radius: var(--radius-pill);

    background: var(--color-radius-bubble-bg);
    color: var(--color-radius-bubble-text);

    font-size: 12px;
    white-space: nowrap;

    transform: translateX(-50%);

    pointer-events: none;
}

/* =========================================================
   CATEGORY PILLS
========================================================= */

.custom-category-ui{
    display:flex;
    flex-wrap:wrap;

    align-items: center;
    justify-content: center;
    text-align: center;

    gap:10px;

    padding: 12px;
    margin-bottom: 12px;
}

.category-row {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    padding: 12px;
    margin-bottom: 12px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-panel);

    background: var(--color-panel-bg);
}

.category-main-pill,
.category-sub-pill {

    flex: 0 1 auto;

    max-width: 100%;
    padding: 6px 10px;
    
    border-radius: var(--radius-pill);

    white-space: nowrap;

    cursor: pointer;

    background: var(--category-pill-bg);
    color: var(--category-pill-text);
}

.category-main-pill.active,
.category-sub-pill.active {

    background: var(--category-pill-bg-active);
    color: var(--category-pill-text-active);
}

.category-main-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    position: relative;

    border: 3px solid var(--color-border-main);

    font-size: 20px;

    transition: all .2s ease;
}

@media (max-width: 768px) {
    .category-main-pill {
        font-size: 12px;
    }
}

.category-main-pill.active {

    border-color: var(--color-border-active);

    transform: scale(1.02);
}

.category-overlay-toggle.open {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
}

.category-overlay-toggle.open::after {
    content: "";
    width: 10px;
    height: 10px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg);
}

.category-overlay-toggle.closed {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translateY(-50%);

    min-width: 100%;
    min-height: 100%;
    cursor: pointer;

    z-index: 10;
}

.category-sub-pill {
    color: var(--category-pill-text);

    border: 1px solid var(--color-border);

    font-size: 14px;

    transition: 0.2s;
}

@media (max-width: 768px) {
    .category-sub-pill {
        font-size: 8px;
    }
}

.category-sub-pill.active {

    border-color: var(--color-border-active);
}

@media (hover: hover) and (pointer: fine) {
    .category-main-pill:hover {
        color: var(--category-pill-text-hover);

        background: var(--category-pill-bg-hover);
    }

    .category-overlay-toggle.open:hover {
        background: rgba(0, 0, 0, .08);
        border-radius: 8px;
    }

    .category-sub-pill:hover {
        color: var(--category-pill-text-hover);

        background: var(--category-pill-bg-hover);
    }
}

/* =========================================================
   TAG PILLS
========================================================= */

.tag-pill-wrapper {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}

.tag-pill {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);

    background: var(--tag-pill-bg);
    color: var(--tag-pill-text);

    cursor: pointer;
    user-select: none;

    transition: all 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tag-pill:hover {

        background: var(--tag-pill-bg-hover);
    }
}

.tag-pill.active {

    border-color: var(--tag-pill-bg-active);

    background: var(--tag-pill-bg-active);
    color: var(--tag-pill-text-active);
}

/* =========================================================
   RESET BUTTON
========================================================= */

.custom-reset-pill {
    margin-left:auto;
    padding: 8px 14px;
    border-radius: 999px;

    background: #111827;
    color: white;

    cursor: pointer;
    transition: 0.2s;
}

@media (hover: hover) and (pointer: fine) {
    .custom-reset-pill:hover {
        transform: translateY(-1px);
        background: #1f2937;
    }
}

/* =========================================================
   MAP POPUP - Badges / MAP MARKER
========================================================= */

.marker-einloesestelle i:before {
    color: var(--color-gp-blue) !important;
}

.marker-einloesestelle i:after {
    background-color: var(--color-gp-blue) !important;
}

.marker-einloesestelle:after {
    border-top-color: var(--color-gp-blue) !important;
}

.badge {
    position: absolute;
    z-index: 10;

    border-radius: 999px;
    padding: 5px 10px;

    font-weight: 600;

    box-shadow: 0 4px 10px rgba(0,0,0,.15);
    color: white;
}

.badge.pass {
    background: var(--color-gp-brown);
}

.badge.einloesestelle {
    background: var(--color-gp-blue);
}

.badge.pass.single_li {
    top: -8px;
    left: 0;
}

.badge.einloesestelle.single_li {
    right: 0;
    bottom: -8px;
}

.badge.pass.multiple_li {
    top: -18px;
    left: -6px;
}

.badge.einloesestelle.multiple_li {
    right: -6px;
    bottom: -18px;
}

.listing-einloesestelle,
.listing-pass {
    border: 0;
    border-radius: 10px;
    padding: 12px;
}

.listing-einloesestelle {
    border: 6px solid var(--color-gp-blue);
}

.listing-pass {
    border: 6px solid var(--color-gp-brown);
}

.listing-einloesestelle.listing-pass {
    border-top: 6px solid var(--color-gp-brown);
    border-left: 6px solid var(--color-gp-brown);

    border-right: 6px solid var(--color-gp-blue);
    border-bottom: 6px solid var(--color-gp-blue);
}