/* Advanced search (above feed composer) */
.adv-search {
    position: relative;
    z-index: 20;
}

.adv-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

.adv-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 0 14px;
    min-width: 0;
}

.adv-search-icon {
    color: #9ca3af;
    font-size: 1rem;
    flex-shrink: 0;
}

.adv-search-input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 0.92rem;
    padding: 12px 0;
    background: transparent;
    color: #111827;
}

.adv-search-input::placeholder {
    color: #9ca3af;
}

.adv-search-divider {
    width: 1px;
    background: #ececec;
    margin: 10px 0;
    flex-shrink: 0;
}

.adv-search-type-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 8px 0 12px;
    flex-shrink: 0;
}

.adv-search-type {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    padding: 0 18px 0 0;
    cursor: pointer;
    outline: none;
    min-width: 72px;
}

.adv-search-type-caret {
    position: absolute;
    right: 10px;
    font-size: 0.7rem;
    color: #9ca3af;
    pointer-events: none;
}

.adv-search-btn {
    width: 48px;
    border: 0;
    background: #ff6b35;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.adv-search-btn:hover {
    background: #e85a28;
    color: #fff;
}

.adv-search-panel {
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ebe7df;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    padding: 14px 16px 12px;
}

.adv-search-panel[hidden] {
    display: none !important;
}

.adv-search-panel-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
}

.adv-search-panel-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.adv-search-by-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.adv-search-by-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 10px;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.adv-search-by-item i {
    width: 18px;
    text-align: center;
    color: #9ca3af;
}

.adv-search-by-item:hover,
.adv-search-by-item.active {
    background: #fff7ed;
    color: #ea580c;
}

.adv-search-by-item:hover i,
.adv-search-by-item.active i {
    color: #ea580c;
}

.adv-search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.adv-search-chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.adv-search-chip:hover {
    border-color: #fdba74;
    background: #fff7ed;
    color: #c2410c;
}

.adv-search-view-all-wrap {
    text-align: right;
    margin-top: 12px;
}

.adv-search-view-all {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ea580c;
    text-decoration: none;
}

.adv-search-view-all:hover {
    color: #c2410c;
    text-decoration: underline;
}

.adv-search-active {
    font-size: 0.82rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.adv-search-clear {
    font-weight: 700;
    color: #ea580c;
    text-decoration: none;
}

.adv-search-clear:hover {
    text-decoration: underline;
    color: #c2410c;
}

@media (max-width: 767.98px) {
    .adv-search-panel-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .adv-search-type {
        min-width: 58px;
        font-size: 0.8rem;
    }

    .adv-search-input {
        font-size: 0.86rem;
    }
}
