/* ============================================================
   Frenet Agency Search — Frontend Styles
   ============================================================ */

.frenet-search-wrapper {
    position: relative;
}

/* Input — matches JetSmartFilters style exactly */
.frenet-search-wrapper .jet-search-filter__input {
    width: 100%;
    box-sizing: border-box;
    padding: 17px 15px 17px 45px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    border-radius: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 14px center !important;
    background-size: 18px !important;
}

/* Focus — purple border like JetSmartFilters */
.frenet-search-wrapper .jet-search-filter__input:focus {
    border-color: #6b4fbb !important;
    outline: none;
}

/* Clear button — hidden by default, shown via JS */
.frenet-search-wrapper .frenet-search-input-clear {
    cursor: pointer;
}

/* Hide the native JetSmartFilters clear button — we use our own */
.frenet-search-wrapper .jet-search-filter__input-clear {
    display: none !important;
}

/* Dropdown */
.frenet-search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    max-height: 320px;
    overflow-y: auto;
}

.frenet-hidden { display: none !important; }

.frenet-search-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f1;
    transition: background .12s;
    font-family: 'Inter', sans-serif;
}

.frenet-search-suggestion:last-child { border-bottom: none; }
.frenet-search-suggestion:hover { background: #f6f4ff; }

.frenet-suggestion-city {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1d;
}

.frenet-suggestion-state {
    font-size: 12px;
    color: #888;
    background: #f0f0f1;
    padding: 2px 8px;
    border-radius: 20px;
}

.frenet-search-no-results,
.frenet-search-loading {
    padding: 14px 16px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #888;
    text-align: center;
}
