/**
 * Custom styles for Relevanssi Live Ajax Search
 * Complete replacement for the plugin's default styles
 */

/* Main results container */
.relevanssi-live-search-results {
    position: absolute !important;
    z-index: 9999 !important;
    /* width: 100% !important; */
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    margin-top: 2px !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Make the search result titles larger */
.relevanssi-live-search-result p {
    font-size: 1.2em !important; /* Larger font size */
    font-weight: 600 !important; /* Make it bold */
    color: #03B674 !important; /* Brand green color */
    padding: 1em !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(30, 30, 30, 0.1) !important;
}

.rlv-has-spinner {
	border-color: #03B674;
	border-right-color: transparent;
}

.rlv-has-spinner::after {
	background-color: #03B674;
}

/* Hover effect for search results */
.relevanssi-live-search-result:hover,
.relevanssi-live-search-result--focused {
    background-color: #f5f5f5 !important;
    cursor: pointer !important;
}

/* Improve the links in search results */
.relevanssi-live-search-result a {
    color: #03B674 !important; /* Link color */
    text-decoration: none !important;
    display: block !important;
    padding: 0.5em 0 !important;
}

/* Last result item (remove bottom border) */
.relevanssi-live-search-result:last-of-type p {
    border-bottom: none !important;
}

/* Screen reader text */
.relevanssi-live-search-instructions {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

/* Status message styling */
.relevanssi-live-search-result-status p {
    font-size: 0.8em !important;
    padding: 0.5em 1em !important;
    margin: 0 !important;
    color: #666 !important;
    background-color: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
}

.relevanssi-live-search-no-results {
    font-size: 1.0em !important;
    padding: 0.5em 1em !important;
    margin: 0 !important;
    color: #666 !important;
    background-color: #f8f8f8 !important;
    border-bottom: 1px solid #eee !important;
}

.relevanssi-live-search-didyoumean {
    font-size: 0.9em !important;
    padding: 0.5em 1em !important;
    margin: 0 !important;
    color: black !important;
    background-color: #fff !important;
    border-bottom: 1px solid #eee !important;
}

/* Result link */
.search-result-link {
    display: flex;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.search-result-thumbnail {
    flex: 0 0 60px;
    margin-right: 15px;
}

.search-result-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
}

/* Content area */
.search-result-content {
    flex: 1;
}

/* Title */
.search-result-title {
    margin: 0 0 5px;
    font-size: 15px; 
    font-weight: 600;
    /* color: #222; */
    color: #03B674;
}

/* Location */
.search-result-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.search-result-location i {
    margin-right: 5px;
    color: #999;
}

/* Excerpt */
.search-result-excerpt {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* Footer */
.search-results-footer {
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-top: 1px solid #eee;
    text-align: center;
}

.view-all-results {
    display: inline-block;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}

.view-all-results:hover {
    text-decoration: underline;
}

/* No results */
.no-results {
    padding: 20px 15px;
    text-align: center;
    color: #666;
}

/* Ensure the search input has proper styling */
.relevanssi-live-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

