/* Native Search Styles - Based on Algolia InstantSearch styles */

.native-search-box {
    position: relative;
}

.native-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.native-search-loading {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Hit container styles */
.ais-Hits-item {
    transition: box-shadow 0.3s ease-in-out;
    position: relative;
}

.ais-Hits-item:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.hit-container {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
}

.hit-container:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.hit-page-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.hit-page-link:hover {
    text-decoration: none;
    color: inherit;
}

.hit-image-div {
    padding-right: 0;
}

.hit-image-div img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.hit-content-div {
    padding-left: 15px;
}

.hit-type {
    margin-bottom: 8px;
}

.hit-type .badge {
    font-size: 11px;
    padding: 4px 8px;
    background-color: #f0f0f0;
    color: #666;
}

.hit-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.4;
}

.hit-para {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

.result-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

/* Ensure body-wrap and footer z-index compatibility */
.body-wrap {
    z-index: 2;
}

.footer {
    z-index: 1;
}

/* Darken background when native search modal is open */
#nativeSearchModal.show {
    background-color: rgba(0, 0, 0, 0.5);
}

