/* ==================== SEARCH ICON & POPOVER ==================== */

.fs-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fs-search-trigger {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 4px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    min-height: 0 !important;
}

.fs-search-trigger:hover,
.fs-search-trigger:focus,
.fs-search-trigger:active {
    opacity: 0.7;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Popover */
.fs-search-popover {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 2px 16px 2px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 280px;
}

.fs-search-popover.fs-popover-open {
    display: block;
}

.fs-popover-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fs-popover-input {
    flex: 1;
    border: none !important;
    background: #DFF1EC !important;
    border-radius: 50px !important;
    padding: 10px 16px !important;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
}

.fs-popover-input::placeholder {
    color: #ACACAC;
}

.fs-popover-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 97, 64, 0.2);
}

.fs-popover-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: none !important;
    background: #006140 !important;
    border-radius: 50% !important;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
    transition: background 0.2s;
}

.fs-popover-submit:hover {
    background: #004d33 !important;
}

.fs-popover-submit svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ==================== PESQUISA PAGE ==================== */

.fs-pesquisa-page {
    padding-top: 110px;
    padding-bottom: 60px;
    font-family: 'Roboto', sans-serif;
}

.fs-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.fs-breadcrumb {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 24px;
}

.fs-breadcrumb-link {
    color: #006140;
    text-decoration: none;
    font-weight: 400;
}

.fs-breadcrumb-link:hover {
    text-decoration: underline;
}

.fs-breadcrumb-sep {
    color: #ACACAC;
    margin: 0 8px;
}

.fs-breadcrumb-current {
    color: #006140;
    font-family: 'Inter', 'Roboto', sans-serif;
    font-weight: 600;
}

/* Search Hero */
.fs-search-hero {
    margin-bottom: 40px;
}

.fs-hero-form {
    max-width: 600px;
}

.fs-hero-input-wrapper {
    display: flex;
    align-items: center;
    background: #DFF1EC;
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    gap: 8px;
}

.fs-hero-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
    outline: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
}

.fs-hero-input::placeholder {
    color: #ACACAC;
}

.fs-hero-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border: none !important;
    background: #006140 !important;
    border-radius: 50% !important;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 !important;
    transition: background 0.2s;
}

.fs-hero-submit:hover {
    background: #004d33 !important;
}

.fs-hero-submit svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Results */
.fs-results-section {
    margin-top: 16px;
}

.fs-results-info {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
}

.fs-results-info strong {
    color: #006140;
}

.fs-results-count {
    color: #ACACAC;
    font-size: 14px;
}

/* Results Grid */
.fs-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.fs-result-card {
    display: block;
    background: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 2px 24px 2px 24px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.fs-result-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #006140;
}

.fs-result-card-header {
    margin-bottom: 8px;
}

.fs-result-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #E87817;
    background: #FDF2E1;
    padding: 2px 10px;
    border-radius: 9px 0 9px 0;
}

.fs-result-title {
    font-size: 18px;
    font-weight: 600;
    color: #006140;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.fs-result-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Highlight */
.fs-highlight {
    background: #B8DB7D;
    color: #006140;
    padding: 1px 2px;
    border-radius: 2px;
}

/* No Results */
.fs-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

.fs-no-results strong {
    color: #006140;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .fs-pesquisa-page {
        padding-top: 92px;
    }

    .fs-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fs-search-popover {
        min-width: 240px;
    }

    .fs-result-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .fs-search-popover {
        min-width: 200px;
        right: -10px;
    }
}
