/* ============================================
   Search page
   ============================================ */

.search-page {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 120px 140px 120px;
    box-sizing: border-box;
    color: #2f2f2f;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-header {
    display: flex;
    align-items: baseline;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.search-title {
    font-size: 42px;
    font-weight: 700;
    color: #3b3b3b;
}

.search-query {
    font-size: 28px;
    font-weight: 600;
    color: #1c2e57;
}

.search-count {
    font-size: 18px;
    color: #6f6f6f;
}

.search-results {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 18px 28px 18px;
    margin-right: -18px;
}

.search-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.search-thumb {
    width: 100%;
    height: 160px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    background: #e8e8e8;
}

.search-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-section {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
}

.search-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #2f2f2f;
}

.search-snippet {
    font-size: 15px;
    color: #6b6b6b;
    line-height: 1.4;
}

.search-highlight {
    background: #fff2a8;
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.search-empty {
    display: none;
    margin-top: 40px;
    font-size: 18px;
    color: #8a8a8a;
}

.search-empty.is-visible {
    display: block;
}

.search-back {
    display: inline-block;
    margin-top: 50px;
}
