/* ============================================================
   Search Results Page — search.php
   Add to assets/css/theme.css or create assets/css/search.css
   ============================================================ */

/* Section wrapper */
.search_results_sec {
    padding: 60px 0 80px;
}

/* ── Search Again Bar ──────────────────────────────────────── */
.search_again_wrap {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search_again_wrap:focus-within {
    border-color: var(--golden-color, #b8960c);
}

.search_again_wrap input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 22px;
    font-size: 15px;
    background: transparent;
}

.search_again_wrap button {
    background: var(--golden-color, #b8960c);
    border: none;
    padding: 14px 24px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search_again_wrap button:hover {
    background: #9a7a0a;
}

/* ── Result Cards ──────────────────────────────────────────── */
.search_result_card {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #fff;
}

.search_result_card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

/* Thumbnail */
.search_result_img {
    overflow: hidden;
    height: 200px;
    background: #f5f5f5;
}

.search_result_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search_result_card:hover .search_result_img img {
    transform: scale(1.05);
}

/* Placeholder icon when no thumbnail */
.search_result_img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.search_result_img--placeholder a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.search_result_img--placeholder i {
    font-size: 48px;
    color: var(--golden-color, #b8960c);
    opacity: 0.5;
}

/* Card body */
.search_result_body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Post type badge */
.search_type_badge {
    display: inline-block;
    background: var(--golden-color, #b8960c);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Title */
.search_result_body h4 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.search_result_body h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search_result_body h4 a:hover {
    color: var(--golden-color, #b8960c);
}

/* Meta */
.search_meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.search_meta span {
    margin-right: 12px;
}

.search_meta i {
    margin-right: 4px;
    color: var(--golden-color, #b8960c);
}

/* Excerpt */
.search_result_body p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

/* Read More link — matches theme .readmore style */
.search_result_body .readmore {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: var(--golden-color, #b8960c);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.search_result_body .readmore:hover {
    gap: 10px;
}

.search_result_body .readmore::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
}

/* ── No Results State ──────────────────────────────────────── */
.search_no_results {
    padding: 60px 30px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
}

.search_no_results > i {
    font-size: 60px;
    color: var(--golden-color, #b8960c);
    opacity: 0.4;
    display: block;
    margin-bottom: 20px;
}

.search_no_results h4 {
    margin-bottom: 12px;
    font-size: 22px;
}

.search_no_results p {
    color: #777;
    margin-bottom: 0;
}

/* ── Pagination ────────────────────────────────────────────── */
.search_results_sec .page-numbers {
    display: inline-block;
    padding: 9px 16px;
    margin: 0 3px;
    border: 2px solid #e0e0e0;
    color: inherit;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search_results_sec .page-numbers.current,
.search_results_sec .page-numbers:hover {
    background: var(--golden-color, #b8960c);
    color: #fff;
    border-color: var(--golden-color, #b8960c);
}

/* ── Inner Banner override for search page ─────────────────── */
.search-results .inner-banner-txt h2 {
    /* Auto-set by inner-banner.php via get_queried_object fallback */
}

/* ── Responsive ────────────────────────────────────────────── */
@media ( max-width: 991px ) {
    .search_result_img {
        height: 180px;
    }
}

@media ( max-width: 767px ) {
    .search_results_sec {
        padding: 40px 0 60px;
    }

    .search_again_wrap {
        border-radius: 8px;
    }

    .search_result_img {
        height: 160px;
    }

    .search_result_body {
        padding: 18px;
    }
}
