/* ==========================================================
   Search pages (event-professionals, category, keyword, city):
   compact search bar + "Refine your search" chips.
   Loaded on every front-end template (EN/DE/NL).
   ========================================================== */

:root {
    --ews-teal: #19CBC7;
    --ews-teal-dark: #0E9F9C;
    --ews-ink: #1F2A37;
    --ews-muted: #6B7785;
    --ews-line: #DCE5E8;
    --ews-field: #F9FBFC;
}

/* ---------- Search card ---------- */
.search_banner .main-1 {
    padding: 16px 18px;
    border-radius: 18px;
}
.search_banner .main-1 > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 10px;
}
.search_banner .main-1 > .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
}

.search_banner .main-1 input[type="search"],
.search_banner .main-1 input[type="text"],
.search_banner .main-1 select {
    height: 46px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.3;
    color: var(--ews-ink);
    background-color: var(--ews-field);
    border: 1px solid var(--ews-line) !important;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.search_banner .main-1 input::placeholder {
    color: #8A96A3;
    font-weight: 500;
    opacity: 1;
}
.search_banner .main-1 input[type="search"]:focus,
.search_banner .main-1 input[type="text"]:focus,
.search_banner .main-1 select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--ews-teal) !important;
    box-shadow: 0 0 0 3px rgba(25, 203, 199, .15);
}

.search_banner .main-1 input[type="submit"] {
    height: 46px !important;
    width: 100%;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px;
    border: 0 !important;
    letter-spacing: .01em;
}

/* Professional service picker (select-pure) */
.search_banner .main-1 .select-pure__select {
    min-height: 46px;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #8A96A3;
    background: var(--ews-field);
    border: 1px solid var(--ews-line);
    border-radius: 10px;
    box-shadow: none;
}
.search_banner .main-1 .select-pure__select--opened {
    background: #fff;
    border-color: var(--ews-teal);
    box-shadow: 0 0 0 3px rgba(25, 203, 199, .15);
}
.search_banner .main-1 .select-pure__label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 4px 0 4px 26px;
    background-color: transparent;
    background-position: 0 center;
    background-size: 18px auto;
    line-height: 1.3;
}
.search_banner .main-1 .select-pure__select {
    padding-left: 12px;
}
/* Nothing selected yet: the placeholder is a bare text node next to the empty
   label, so shrink the label to its icon and keep the text on one line. */
.search_banner .main-1 .select-pure__label:empty {
    flex: 0 0 auto;
    width: 18px;
    height: 20px;
    margin-right: 10px;
    padding: 0;
    background-position: center;
}
.search_banner .main-1 .select-pure__select:has(> .select-pure__label:empty) {
    height: 46px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8A96A3;
}
.search_banner .main-1 .select-pure__select--opened:has(> .select-pure__label:empty) { overflow: visible; }
.search_banner .main-1 .select-pure__selected-label {
    margin: 0;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--ews-teal-dark);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
}
.search_banner .main-1 .select-pure__selected-label:last-of-type { margin-right: 0; }
.search_banner .main-1 .select-pure__selected-label i { margin-left: 6px; font-size: 11px; }
.search_banner .main-1 .select-pure__options { border-radius: 10px; font-size: 14px; }

/* ---------- Refine your search ---------- */
.subcategory-search-box {
    margin: 6px 0 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #E6EDEF;
    border-radius: 16px;
    box-shadow: 0 10px 26px -20px rgba(31, 42, 55, .35);
    overflow: visible;
}
.subcategory-search-box > span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ews-ink);
}
.subcategory-search-box > span::before {
    content: "\f1de"; /* sliders */
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: var(--ews-teal-dark);
}
.subcategory-search-box > p:empty,
.subcategory-search-box > .py-1 { display: none; }

.subcategory-search-box .list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.subcategory-search-box .list-inline > li {
    display: block;
    flex: 0 0 auto;
    width: auto !important; /* main.css makes .list-inline li full width */
    margin: 0;
    padding: 0;
}
.subcategory-search-box > span small {
    font-size: 14px;
    font-weight: 500;
    color: var(--ews-muted);
}
.subcategory-search-box .checkcontainer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #374151 !important;
    background: #fff;
    border: 1px solid #CFE3E5;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.subcategory-search-box .checkcontainer:hover {
    border-color: var(--ews-teal);
    background: #F2FBFB;
}
.subcategory-search-box .checkcontainer input[type="checkbox"] {
    position: static;
    opacity: 1;
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--ews-teal-dark);
    cursor: pointer;
}
.subcategory-search-box .checkcontainer .checkmark { display: none; }
.subcategory-search-box .checkcontainer:has(input:checked) {
    background: var(--ews-teal-dark);
    border-color: var(--ews-teal-dark);
    color: #fff !important;
}
.subcategory-search-box .checkcontainer:has(input:checked) input[type="checkbox"] { accent-color: #fff; }

/* "Only show freelancers" */
.sectionsearch-1 .main-2 #freelancers {
    width: 16px;
    height: 16px;
    margin: 0 6px 0 2px;
    vertical-align: -3px;
    accent-color: var(--ews-teal-dark);
    cursor: pointer;
}
.sectionsearch-1 .main-2 label[for="freelancers"] {
    font-size: 14px;
    font-weight: 600;
    color: var(--ews-ink) !important;
    cursor: pointer;
}

@media (max-width: 767px) {
    .search_banner .main-1 { padding: 12px; }
    .subcategory-search-box { padding: 14px; }
    .subcategory-search-box .checkcontainer { font-size: 13px; padding: 6px 12px; }
}

/* ---------- Sort dropdown ("Default" / "Ranking" ...) ---------- */
.sectionsearch-1 .select-drop {
    display: inline-block;
    position: relative;
}
.sectionsearch-1 .select-drop select {
    height: 42px;
    min-width: 200px;
    padding: 0 40px 0 14px !important;
    font-size: 14px;
    font-weight: 600;
    color: var(--ews-ink);
    background: #fff;
    border: 1px solid var(--ews-line) !important;
    border-radius: 10px !important;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.sectionsearch-1 .select-drop select:focus {
    outline: none;
    border-color: var(--ews-teal) !important;
    box-shadow: 0 0 0 3px rgba(25, 203, 199, .15);
}
.sectionsearch-1 .select-drop:after {
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
    padding: 0 12px;
    background: transparent;
    font-size: 14px;
    color: var(--ews-muted);
    pointer-events: none;
}
