/* ============================================================
   search.css — Trang kết quả tìm kiếm (/tim-kiem/)
   Palette: navy #0a2d6e | blue #0d5db5 | cyan #29b6f6 | red #e53935
   ============================================================ */

/* ── Reset site-main padding trên trang search ───────────── */
.site-main:has(.rtm-search-page),
body:has(.rtm-search-page) .site-main {
    padding-top: 0 !important;
}

/* ── Page wrapper ────────────────────────────────────────── */
.rtm-search-page {
    background: #f0f7ff;
    min-height: 80vh;
    padding: 20px 0 56px;
}

/* ── Search bar — ẩn vì header đã có search rồi ─────────── */








/* Search button — RED */



/* ── Header: summary + clear ─────────────────────────────── */
.rtm-search-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.rtm-search-page__summary {
    font-size: 14px;
    color: #5a6a8a;
    line-height: 1.6;
}

.rtm-search-page__summary strong {
    color: #0a2d6e;
    font-weight: 700;
}

.rtm-search-page__clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #fdecea;
    color: #e53935;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #f9baba;
    transition: background 0.15s, transform 0.15s;
    white-space: nowrap;
}

.rtm-search-page__clear:hover {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
    transform: translateY(-1px);
}

/* ── Filter tabs ─────────────────────────────────────────── */
.rtm-search-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.rtm-search-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #5a6a8a;
    background: #fff;
    border: 1.5px solid #c5d8f0;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.rtm-search-filter:hover {
    border-color: #29b6f6;
    color: #0d5db5;
    background: #f0f9ff;
}

.rtm-search-filter.is-active {
    background: #0d5db5;
    color: #fff;
    border-color: #0d5db5;
    box-shadow: 0 3px 10px rgba(13, 93, 181, 0.25);
}

/* ── Results list ────────────────────────────────────────── */
.rtm-search-page__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Empty state ─────────────────────────────────────────── */
.rtm-search-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #c5d8f0;
    box-shadow: 0 4px 16px rgba(13, 93, 181, 0.06);
    gap: 12px;
}

.rtm-search-page__empty-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 4px;
}

.rtm-search-page__empty h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0a2d6e;
}

.rtm-search-page__empty p {
    margin: 0;
    font-size: 14px;
    color: #5a6a8a;
    line-height: 1.7;
    max-width: 360px;
}

.rtm-search-page__empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border-radius: 12px;
    background: #e53935;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.3);
    transition: background 0.2s, transform 0.2s;
}

.rtm-search-page__empty-btn:hover {
    background: #c62828;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Pagination ──────────────────────────────────────────── */
.rtm-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #c5d8f0;
    flex-wrap: wrap;
}

.rtm-pagination__info {
    font-size: 13px;
    color: #5a6a8a;
}

.rtm-pagination__info strong {
    color: #0a2d6e;
    font-weight: 700;
}

.rtm-pagination__nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rtm-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #c5d8f0;
    background: #fff;
    color: #0d5db5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-height: auto !important;
}

.rtm-pagination__btn:hover {
    background: #e8f4fd;
    border-color: #0d5db5;
    color: #0d5db5;
}

.rtm-pagination__btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
    color: #9ca3af;
}

.rtm-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rtm-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #c5d8f0;
    background: #fff;
    color: #0d5db5;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    min-height: auto !important;
    padding: 0 !important;
}

.rtm-pagination__page:hover {
    background: #e8f4fd;
    border-color: #0d5db5;
}

.rtm-pagination__page.is-current {
    background: #0d5db5;
    border-color: #0d5db5;
    color: #fff;
}

.rtm-pagination__dots {
    color: #9ca3af;
    font-size: 13px;
    padding: 0 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .rtm-pagination { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rtm-pagination__nav { flex-wrap: wrap; }
    .rtm-search-page__empty { padding: 40px 20px; }
    .rtm-search-page__empty h2 { font-size: 18px; }
}