/* BIG Semantic Directory Search — front end */

/* Directory cards stay hidden until the search shows them (no flash of every listing on load). */
#bigDirectoryResults .elementor-post:not(.big-ss-show) {
    display: none !important;
}

/* Masonry: the search re-lays out the visible cards itself (see
   relayoutMasonry in the script); cards align to the top of their row. */
#bigDirectoryResults .elementor-posts-container {
    align-items: start;
}
.big-ss {
    padding: 0rem 0;
    font-family: 'Poppins', sans-serif;
}
.big-ss .big-ss-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.big-ss-highlight {
    background: #ffe38a;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
.big-ss-badge {
    display: inline-block;
    margin: 6px 0;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    background: #eef3f8;
    color: #44607a;
    border: 1px solid #d5e0ea;
    border-radius: 12px;
}

/* Semantic matches get the brand maroon so they read as "understood", not "keyword" */
.big-ss-badge.is-semantic {
    background: #fdf4f6;
    color: #9A052F;
    border-color: #e6d2d9;
}
.big-ss .big-ss-pending {
    color: #888;
    font-style: italic;
}
.big-ss .big-ss-input {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    overflow: hidden;
    background: white;
}
.big-ss .big-ss-input input {
    flex: 1;
    padding: 24px 16px;
    border: none;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    height: 70px;
}
.big-ss .big-ss-input input::placeholder {
    color: #999;
}
.big-ss .big-ss-input input:focus {
    outline: none;
}
.big-ss .big-ss-btn {
    padding: 12px 28px;
    background: #222;
    color: white;
    border: none;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    height: 70px;
}
.big-ss .big-ss-btn:hover {
    background: #444;
}
.big-ss .big-ss-category {
    display: flex;
    flex-direction: column;
    min-width: 220px;
}
.big-ss .big-ss-category select {
    box-sizing: border-box;
    width: 100%;
    height: 70px;
    padding: 0 52px 0 16px;
    border: 1px solid #ddd;
    font-size: 18px;
    line-height: 1.4;
    font-family: 'Poppins', sans-serif;
    color: inherit;
    cursor: pointer;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 14px 9px;
}
.big-ss .big-ss-category select::-ms-expand {
    display: none;
}
.big-ss .big-ss-category select option,
.big-ss .big-ss-category select optgroup {
    font-size: 16px;
    color: #222;
    background: #fff;
}
.big-ss .big-ss-pill {
    display: none;
    align-items: center;
    gap: 10px;
    margin: -1.25rem 0 1.25rem;
    padding: 8px 8px 8px 16px;
    border: 1px solid #e6d2d9;
    background: #fdf4f6;
    color: #5c2030;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.3;
}
.big-ss .big-ss-pill .big-ss-pill-name {
    font-weight: 600;
    color: #9A052F;
}
.big-ss .big-ss-pill-clear {
    border: none;
    background: transparent;
    color: #9A052F;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
}
.big-ss .big-ss-pill-clear:hover {
    background: rgba(154, 5, 47, .1);
}
.big-ss .big-ss-category select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.big-ss .big-ss-info {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #666;
    margin-top: 1rem;
}
.big-ss .big-ss-info strong {
    color: #222;
}
.big-ss .big-ss-clear {
    margin-left: 12px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}
.big-ss .big-ss-clear:hover {
    background: #eee;
    border-color: #999;
}

@media (max-width: 768px) {
    .big-ss .big-ss-bar {
        flex-direction: column;
        gap: 12px;
    }
.big-ss .big-ss-input,
.big-ss .big-ss-category {
        min-width: 100%;
        width: 100%;
    }
.big-ss .big-ss-btn {
        width: auto;
        height: 70px;
        flex-shrink: 0;
    }
}

/* No dark-mode overrides: the BIG site is always light, so the search box
   stays light even when a visitor's device is in dark mode. */

.big-ss .big-ss-original {
    color: #9A052F;
    text-decoration: underline;
}

/* type="search" enables the browser's spellcheck underline; hide the native clear "x" so the box looks unchanged */
.big-ss .big-ss-input input[type="search"]::-webkit-search-cancel-button,
.big-ss .big-ss-input input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.big-ss .big-ss-input input[type="search"] { -webkit-appearance: none; appearance: none; }
