/* SHEFA search card — keyword bar + advanced filter grid (no gradients) */

.shefa-search-card {
    --shefa-search-accent: #5b8c51;
    --shefa-search-accent-hover: #4a7342;
    --shefa-search-pill-bg: #eceef2;
    --shefa-search-pill-text: #5c6470;
    --shefa-search-label: #9aa3af;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.35rem;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    background: #fff;
    border: 1px solid #e8ecef;
}

.shefa-search-card__hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.85rem 1.35rem;
    background: #f4f6f8;
    border-bottom: 1px solid #e8ecef;
}

.shefa-search-card__hero-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.65rem 0;
    outline: none;
}

.shefa-search-card__hero-input::placeholder {
    color: #8b95a5;
}

.shefa-search-card__hero-btn {
    flex-shrink: 0;
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 50%;
    background: var(--shefa-search-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shefa-search-card__hero-btn:hover {
    background: var(--shefa-search-accent-hover);
}

.shefa-search-card__body {
    padding: 1.35rem 1.5rem 1.25rem;
}

.shefa-search-card__label {
    margin: 0 0 1rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shefa-search-label);
}

.shefa-search-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.shefa-search-card__grid--secondary {
    margin-top: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shefa-search-card__pill,
.shefa-search-card__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--shefa-search-pill-bg);
    color: var(--shefa-search-pill-text);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.72rem 2.35rem 0.72rem 1.15rem;
    line-height: 1.2;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b95a5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.shefa-search-card__pill {
    background-image: none;
    padding-right: 1.15rem;
    cursor: text;
}

.shefa-search-card__pill::placeholder {
    color: var(--shefa-search-pill-text);
    opacity: 1;
}

.shefa-search-card__pill:focus,
.shefa-search-card__select:focus {
    box-shadow: 0 0 0 2px rgba(91, 140, 81, 0.35);
}

.shefa-search-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
    padding-top: 0.25rem;
}

.shefa-search-card__count {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--shefa-search-label);
    white-space: nowrap;
}

.shefa-search-card__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.shefa-search-card__reset {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shefa-search-label);
    text-decoration: none;
    cursor: pointer;
}

.shefa-search-card__reset:hover {
    color: #6b7280;
}

.shefa-search-card__submit {
    border: 0;
    border-radius: 999px;
    padding: 0.72rem 1.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--shefa-search-accent);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(91, 140, 81, 0.25);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.shefa-search-card__submit:hover {
    background: var(--shefa-search-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(91, 140, 81, 0.3);
}

@media (max-width: 767.98px) {
    .shefa-search-card__grid {
        grid-template-columns: 1fr;
    }

    .shefa-search-card__grid--secondary {
        grid-template-columns: 1fr;
    }

    .shefa-search-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .shefa-search-card__actions {
        justify-content: space-between;
    }

    .shefa-search-card__submit {
        flex: 1;
        text-align: center;
    }
}

[data-shefa-theme="dark"] .shefa-search-card {
    background: #1e2430;
    border-color: #2d3748;
    --shefa-search-pill-bg: #2a3140;
    --shefa-search-pill-text: #c5cdd8;
    --shefa-search-label: #8b95a5;
}

[data-shefa-theme="dark"] .shefa-search-card__hero {
    background: #252b38;
    border-bottom-color: #2d3748;
}

[data-shefa-theme="dark"] .shefa-search-card__hero-input {
    color: #e8edf2;
}

[data-shefa-theme="dark"] .shefa-search-card__hero-input::placeholder {
    color: #8b95a5;
}
