/**
 * IWF Omni Search — Styles
 */

/* ─── Portable Search Bar (any page) ─── */
.iwf-search-bar {
    display: flex;
    align-items: stretch;
    gap: 5px;
    max-width: 600px;
    margin: auto;
    text-align:center;
}

.iwf-search-bar-input {
    flex: 1;
    padding: 7px 20px !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: #000;
    background-color: #fff;
    border: 2px solid #AEA8A5;
    border-right: none;
    border-radius: 40px 0 0 40px;
    outline: none;
    min-width: 0;
    min-height: 40px;
    max-width: 360px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.iwf-search-bar-input:focus {
    border-color: #000;
}

.iwf-search-bar-input::placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-bar-input::-webkit-input-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-bar-input::-moz-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-bar-input:-ms-input-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-bar-button {
    padding: 0 24px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background-color: #ECBC09;
    border: 2px solid #ECBC09;
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    white-space: nowrap;
    min-height: 40px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.iwf-search-bar-button:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* ─── Search Results Page Container ─── */
.iwf-search-container {
    max-width: 1290px;
    margin: 30px auto;
}

/* ─── Search Results Page Input ─── */
.iwf-search-form {
    position: relative;
    max-width: 640px;
    margin: auto;
}

.iwf-search-input-wrap {
    position: relative;
}

.iwf-search-input {
    width: 100%;
    padding: 0 20px 0 52px;
    font-size: 16px;
    font-weight: 400;
    line-height: 32px;
    color: #000;
    background-color: #fff;
    border: 2px solid #AEA8A5;
    border-radius: 40px;
    outline: none;
    min-height: 40px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.iwf-search-input:focus {
    border-color: #000;
}

.iwf-search-input::placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-input::-webkit-input-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-input::-moz-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-input:-ms-input-placeholder {
    color: #000;
    font-weight: 700;
    opacity: 1;
}

.iwf-search-icon {
    position: absolute;
    top: 50%;
    left: auto;
    right: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #231F20;
    pointer-events: none;
    transition: color 0.2s;
}

.iwf-search-input:focus ~ .iwf-search-icon {
    color: #000;
}

/* ─── Loader ─── */
.iwf-search-loader {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.iwf-search-spinner {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #AEA8A5;
    border-top-color: #ECBC09;
    border-radius: 50%;
    animation: iwf-spin 0.6s linear infinite;
}

@keyframes iwf-spin {
    to { transform: rotate(360deg); }
}

.iwf-search-results {
    margin: 60px auto;
}
/* ─── Results Container ─── */
.iwf-search-results-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ─── Result Section ─── */
.iwf-search-section {
    margin-bottom:30px;
}

.iwf-search-section-title {
    color: #231F20;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #EDECE3;
}

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

/* ─── Result Item ─── */
.iwf-search-item {
    padding: 0;
    /*border-bottom: 1px solid #AEA8A5;*/
}

.iwf-search-item:last-child {
    border-bottom: none;
}

.iwf-search-item a {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 30px;
    text-decoration: none;
    color: #332F21;
    border-radius: 10px;
    transition: background 0.15s;
}

.iwf-search-item a:hover {
    color: #332F21;
    background: #FFFFFF;
    text-decoration: none !important;
    /*border-right: 2px solid #231F20;*/
}

/* Exhibitor logo in results */
.iwf-search-item-logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.iwf-search-item-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Content */
.iwf-search-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    max-width: 900px;
}

.iwf-search-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #332F21;
    line-height: 1.3;
}

.iwf-search-item a:hover .iwf-search-item-title {
    /*color: #ECBC09;*/
    color:inherit;
    text-decoration: none;
}

.iwf-search-item-booth {
    font-size: 16px;
    font-weight: 600;
    color: #332F21;
    margin-bottom: 10px;
}

.iwf-search-item-desc {
    font-size: 16px;
    color: #332F21;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iwf-search-item a:hover .iwf-search-item-booth, .iwf-search-item a:hover .iwf-search-item-desc {
    color:inherit;
    text-decoration: none;
}


/* ─── No Results ─── */
.iwf-search-no-results {
    text-align: center;
    padding: 0 20px;
    color: #231F20;
}

.iwf-search-no-results p {
    margin: 0 0 8px;
    font-weight: 700;
    font-size:22px;
}

.iwf-search-no-results strong {
    font-weight: 800;
}

.iwf-search-suggestion, p.iwf-search-suggestion {
    font-size: 16px;
    color: #332F21;
    font-weight: 400;
}

.iwf-search-suggestion a {
    color: #ECBC09;
    font-weight: 700;
    text-decoration: underline;
}

.iwf-search-suggestion a:hover {
    color: #000;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
    .iwf-search-form {
        margin-top: -15px;
    }

    .iwf-search-bar {
        max-width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .iwf-search-input {
        padding-left: 44px;
        font-size: 15px;
        width:100%;
    }

    .iwf-search-bar-button {
        width:100%;
    }

    .iwf-search-icon {
        left: auto;
        right: 20px;
    }

    .iwf-search-item a {
        padding: 12px 8px;
    }

    .iwf-search-item-logo {
        width: 40px;
        height: 40px;
    }

    .iwf-search-results {
        margin: 60px auto 0 auto;
    }
}
