/* Søge-overlay */
.sm-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 16px;
    overflow-y: auto;
}
.sm-search-overlay.is-open { display: flex; }
.sm-search-overlay__panel {
    background: #fff;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
}
.sm-search-overlay__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #eee;
}
.sm-search-overlay__header svg { color: #888; flex-shrink: 0; }
.sm-search-overlay__input {
    flex: 1;
    border: 0;
    outline: 0;
    font-size: 17px;
    padding: 6px 0;
    background: transparent;
    color: #222;
    font-family: inherit;
}
.sm-search-overlay__close {
    appearance: none;
    border: 0;
    background: #f0f0f0;
    color: #555;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}
.sm-search-overlay__close:hover { background: #e0e0e0; }
.sm-search-overlay__body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.sm-search-empty, .sm-search-loading, .sm-search-error {
    padding: 32px 18px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.sm-search-group {
    padding: 6px 0 10px;
}
.sm-search-group__label {
    padding: 8px 18px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    font-weight: 600;
}
.sm-search-result {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #222;
    border-left: 3px solid transparent;
}
.sm-search-result:hover, .sm-search-result.is-active {
    background: #f6f8fb;
    border-left-color: #3858e9;
}
.sm-search-result__title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    line-height: 1.3;
}
.sm-search-result__excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sm-search-result__excerpt mark {
    background: #fff5b1;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}
.sm-search-overlay__footer {
    padding: 10px 18px;
    border-top: 1px solid #eee;
    text-align: center;
}
.sm-search-overlay__all {
    color: #3858e9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.sm-search-overlay__all:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .sm-search-overlay { padding: 0; }
    .sm-search-overlay__panel {
        max-width: none;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* Resultatside */
.sm-search-results-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}
.sm-search-results-page h1 {
    margin-bottom: 24px;
    font-size: 28px;
}
.sm-search-results-page .sm-search-group { padding: 0 0 32px; }
.sm-search-results-page .sm-search-group__label {
    padding: 0 0 8px;
    font-size: 13px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.sm-search-results-page .sm-search-result {
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid #f0f0f0;
}
.sm-search-results-page .sm-search-result:hover { background: transparent; }
.sm-search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.sm-search-form-page {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}
.sm-search-form-page input[type="search"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}
.sm-search-form-page button {
    padding: 0 20px;
    border: 0;
    background: #3858e9;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
