/* ================================================================
   ABODE MLS SEARCH — Global Styles
   Search bar shortcode + shared utilities
   ================================================================ */

/* ── Search Bar Shortcode ── */
.abode-mls-searchbar {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.abode-mls-searchbar__form {
    margin: 0;
    padding: 0;
}

.abode-mls-searchbar__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.abode-mls-searchbar__input-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.abode-mls-searchbar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
    pointer-events: none;
}

.abode-mls-searchbar__input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-family: inherit;
    color: #2a2a2a;
    transition: border-color 0.2s;
}

.abode-mls-searchbar__input:focus {
    outline: none;
    border-color: #d1c292;
}

.abode-mls-searchbar__input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.abode-mls-searchbar__filters {
    display: flex;
    gap: 8px;
}

.abode-mls-searchbar__select {
    padding: 14px 36px 14px 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-family: inherit;
    color: #2a2a2a;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.abode-mls-searchbar__btn {
    padding: 14px 28px;
    background: #d1c292;
    color: #004274;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.abode-mls-searchbar__btn:hover {
    background: #c4b37f;
    transform: translateY(-1px);
}

/* ── Hero Style (on dark backgrounds) ── */
.abode-mls-searchbar--hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.abode-mls-searchbar--hero .abode-mls-searchbar__row {
    background: rgba(0, 66, 116, 0.6);
    backdrop-filter: blur(12px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Inline Style (on light backgrounds) ── */
.abode-mls-searchbar--inline .abode-mls-searchbar__input {
    border-color: #ddd;
}

.abode-mls-searchbar--inline .abode-mls-searchbar__select {
    border-color: #ddd;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .abode-mls-searchbar__row {
        flex-direction: column;
    }
    .abode-mls-searchbar__input-wrap {
        min-width: 100%;
    }
    .abode-mls-searchbar__filters {
        width: 100%;
    }
    .abode-mls-searchbar__select {
        flex: 1;
    }
    .abode-mls-searchbar__btn {
        width: 100%;
    }
}
