.smart-search-nav-btn {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff !important;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
}

.smart-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.42);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 7vh 16px 24px;
}

.smart-search-overlay.active {
    display: flex;
}

.smart-search-modal {
    width: min(860px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
    padding: 26px;
    position: relative;
}

.smart-search-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #153f3f;
    font-size: 24px;
    cursor: pointer;
}

.smart-search-head {
    padding-right: 42px;
}

.smart-search-kicker {
    display: inline-flex;
    color: #153f3f;
    background: #eef7f4;
    border: 1px solid #d7eee6;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.smart-search-head h2 {
    margin: 14px 0 8px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    color: #153f3f;
}

.smart-search-head p {
    margin: 0 0 18px;
    color: #64748b;
}

.smart-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #153f3f;
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
}

.smart-search-box input {
    width: 100%;
    border: 0;
    outline: none;
    font-size: 18px;
    font-family: Georgia, 'Times New Roman', serif;
    color: #0f172a;
}

.smart-search-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.smart-search-prompt {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #153f3f;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
}

.smart-search-prompt:hover {
    border-color: #d8a23a;
    background: #fff8e8;
}

.smart-search-answer {
    margin: 16px 0;
    background: #eef7f4;
    border-left: 4px solid #153f3f;
    border-radius: 16px;
    padding: 14px 16px;
    color: #153f3f;
    font-weight: 600;
}

.smart-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.smart-search-card {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.smart-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
    border-color: #d8a23a;
}

.smart-search-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.smart-search-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 22px;
}

.smart-search-card h3 {
    margin: 0 0 4px;
    color: #153f3f;
    font-size: 20px;
}

.smart-search-type {
    color: #d8a23a;
    font-weight: 700;
    font-size: 13px;
}

.smart-search-card p {
    margin: 10px 0 12px;
    color: #64748b;
    font-size: 14px;
}

.smart-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.smart-search-tag {
    font-size: 12px;
    color: #153f3f;
    background: #eef7f4;
    border-radius: 999px;
    padding: 4px 8px;
}

.smart-search-cta {
    color: #153f3f;
    font-weight: 700;
}

.smart-search-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 22px;
    color: #64748b;
    text-align: center;
}

.smart-search-fab {
    position: fixed;
    right: 22px;
    bottom: 96px;
    z-index: 9997;
    border: 0;
    background: #153f3f;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.20);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: Georgia, 'Times New Roman', serif;
}

@media (max-width: 760px) {
    .smart-search-modal {
        padding: 20px;
        border-radius: 20px;
    }
    .smart-search-results {
        grid-template-columns: 1fr;
    }
    .smart-search-fab {
        right: 14px;
        bottom: 86px;
        padding: 11px 13px;
    }
    .smart-search-fab strong {
        display: none;
    }
}
