.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(26, 42, 58, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-content {
    width: min(90vw, 800px);
    text-align: center;
}

.search-title {
    margin: 0 0 40px;
    color: #fff;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    font-weight: 850;
}

.search-form {
    position: relative;
    padding-bottom: 16px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.92);
}

#searchInput {
    width: 100%;
    padding: 0 64px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: clamp(1.45rem, 4.6vw, 2.5rem);
    font-weight: 750;
    line-height: 1.35;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.34);
    font-weight: 450;
}

.search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-58%);
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.search-tags button {
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.25s ease;
}

.search-tags button:hover {
    border-color: var(--primary-orange, #E67E22);
    color: var(--primary-orange, #E67E22);
}

.search-close {
    position: absolute;
    top: 34px;
    right: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    opacity: 0.55;
    cursor: pointer;
    transition: 0.25s ease;
}

.search-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.search-page {
    padding: 180px 0 120px;
    background: #faf8f5;
}

.search-page-container {
    width: min(100% - 40px, 1080px);
    margin: 0 auto;
}

.search-page-header {
    margin-bottom: 54px;
    text-align: center;
}

.search-page-kicker {
    margin: 0 0 12px;
    color: var(--primary-orange, #E67E22);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

.search-page-title {
    margin: 0;
    color: #1a2a3a;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
}

.search-page-title strong {
    color: var(--primary-orange, #E67E22);
}

.search-result-section + .search-result-section {
    margin-top: 54px;
}

.search-result-heading {
    margin: 0 0 18px;
    color: #1a2a3a;
    font-size: 1.35rem;
    font-weight: 850;
}

.search-result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.search-result-card {
    display: block;
    padding: 26px;
    border: 1px solid #ece7df;
    border-radius: 22px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: 0.25s ease;
}

.search-result-card:hover {
    border-color: rgba(230, 126, 34, 0.46);
    box-shadow: 0 18px 42px rgba(26, 42, 58, 0.08);
    transform: translateY(-4px);
}

.search-result-category {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-orange, #E67E22);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.search-result-card h3 {
    margin: 0 0 10px;
    color: #1a2a3a;
    font-size: 1.18rem;
    font-weight: 850;
}

.search-result-card p {
    margin: 0;
    color: #5f6875;
    font-size: 0.95rem;
    line-height: 1.65;
}

.search-empty {
    padding: 48px 28px;
    border-radius: 26px;
    background: #fff;
    text-align: center;
}

.search-empty p {
    margin: 0 0 24px;
    color: #5f6875;
    font-size: 1rem;
}

.search-empty .search-tags button {
    border-color: rgba(26, 42, 58, 0.16);
    color: #5f6875;
}

@media (max-width: 768px) {
    .search-overlay {
        padding: 22px;
    }

    .search-close {
        top: 22px;
        right: 24px;
        font-size: 2.5rem;
    }

    .search-title {
        margin-bottom: 30px;
    }

    .search-result-grid {
        grid-template-columns: 1fr;
    }
}
