/* ===== SEARCH PAGE — VM palette (#1a3a5c / #2980b9 / #f0f5fa) ===== */

/* ── Search bar area ────────────────────────────────────────────────── */
.vm-search-bar-wrap {
    background: #f0f5fa;
    border-bottom: 1px solid #d6e6f5;
    padding: 28px 0 20px;
}

.vm-search-bar-wrap .tz-ser-sidebar {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

.vm-search-bar-wrap .search-widget form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #2980b9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(41,128,185,0.10);
}

.vm-search-bar-wrap .search-widget form input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 18px;
    font-size: 1rem;
    color: #1a3a5c;
    background: transparent;
}

.vm-search-bar-wrap .search-widget form button {
    background: #1a3a5c;
    color: #fff;
    border: none;
    padding: 0 22px;
    height: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.vm-search-bar-wrap .search-widget form button:hover {
    background: #2980b9;
}

/* ── Radio filter row ───────────────────────────────────────────────── */
.vm-filter-row {
    background: #fff;
    border: 1px solid #d6e6f5;
    border-radius: 8px;
    padding: 12px 18px;
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    box-shadow: 0 1px 6px rgba(26,58,92,0.06);
}

.vm-filter-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: #2d4a6a;
    margin-right: 20px;
    cursor: pointer;
}

.vm-filter-row label input[type="radio"] {
    accent-color: #2980b9;
    width: 15px;
    height: 15px;
}

.vm-filter-divider {
    width: 1px;
    background: #d6e6f5;
    margin: 0 10px;
    align-self: stretch;
}

/* ── Left sidebar ───────────────────────────────────────────────────── */
.vm-refine-sidebar .gallery-widget {
    background: #fff;
    border: 1px solid #d6e6f5;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(26,58,92,0.07);
    padding: 20px !important;
}

.vm-refine-sidebar .widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    background: #1a3a5c;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.vm-refine-sidebar .accordion-button {
    font-size: 0.875rem !important;
    font-weight: 600;
    color: #1a3a5c;
    background: #f0f5fa;
    /* leave room so the hover background doesn't cover the filter button */
    padding: 10px 90px 10px 14px;
}

.vm-refine-sidebar .accordion-header .refine-btn {
    z-index: 2;
}

.vm-refine-sidebar .accordion-button:hover {
    background: #e4eef8;
}

.vm-refine-sidebar .accordion-button:not(.collapsed) {
    background: #e4eef8;
    color: #1a3a5c;
    box-shadow: none;
}

.vm-refine-sidebar .accordion-button::after {
    filter: invert(17%) sepia(50%) saturate(600%) hue-rotate(185deg);
}

.vm-refine-sidebar .accordion-item {
    border: 1px solid #d6e6f5;
    border-radius: 6px !important;
    overflow: hidden;
}

.vm-refine-sidebar .accordion-body {
    padding: 10px 12px;
    background: #fff;
}

.vm-refine-sidebar .search-chekbox label {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #2d4a6a;
    padding: 4px 0;
    cursor: pointer;
    width: 100%;
}

.vm-refine-sidebar .search-chekbox label input[type="checkbox"] {
    accent-color: #2980b9;
    width: 14px;
    height: 14px;
}

.vm-refine-sidebar .search-chekbox label small {
    color: #2980b9;
    font-weight: 600;
    white-space: nowrap;
}

.vm-refine-sidebar .refine-btn .btn {
    color: #2980b9;
    border: 1px solid #2980b9;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.75rem;
}

.vm-refine-sidebar .refine-btn .btn:hover {
    background: #2980b9;
    color: #fff;
}

/* scrollbar cap */
.vm-refine-sidebar .scrollbar {
    max-height: 200px;
    overflow-y: auto;
}

/* ── Results header row (count + pagination top) ────────────────────── */
.vm-results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 14px;
    border-bottom: 2px solid #e4eef8;
    margin-bottom: 18px;
}

.vm-results-meta .vm-record-count {
    font-size: 0.875rem;
    color: #4a6080;
    font-weight: 500;
}

.vm-results-meta .vm-record-count strong {
    color: #1a3a5c;
}

/* ── Result cards ───────────────────────────────────────────────────── */
.vm-result-card {
    background: #fff;
    border: 1px solid #d6e6f5;
    border-left: 4px solid #2980b9;
    border-radius: 10px;
    padding: 18px 20px 14px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(26,58,92,0.06);
    transition: box-shadow 0.2s, border-left-color 0.2s;
}

.vm-result-card:hover {
    box-shadow: 0 6px 22px rgba(41,128,185,0.13);
    border-left-color: #1a3a5c;
}

.vm-result-card .vm-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 10px;
    line-height: 1.4;
}

.vm-result-card .vm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    margin-bottom: 12px;
}

.vm-result-card .vm-card-meta p {
    font-size: 0.82rem;
    color: #4a6080;
    margin: 0;
}

.vm-result-card .vm-card-meta p span {
    font-weight: 700;
    color: #1a3a5c;
}

.vm-card-docs-divider {
    border: none;
    border-top: 1px solid #e4eef8;
    margin: 10px 0 8px;
}

.vm-card-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vm-doc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0f5fa;
    border: 1px solid #c3d9ee;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    color: #1a3a5c;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
    white-space: normal;
    word-break: break-all;
}

.vm-doc-tag:hover {
    background: #2980b9;
    color: #fff;
    border-color: #2980b9;
    text-decoration: none;
}

.vm-doc-tag .vm-doc-label {
    background: #1a3a5c;
    color: #fff;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.vm-doc-tag:hover .vm-doc-label {
    background: #fff;
    color: #1a3a5c;
}

.vm-doc-icon-only {
    background: transparent;
    border: none;
    padding: 2px 4px;
    gap: 0;
    word-break: normal;
}

.vm-doc-icon-only:hover {
    background: transparent;
    border: none;
    opacity: 0.75;
}

.vm-doc-type-tag {
    gap: 6px;
    padding: 4px 10px 4px 8px;
    word-break: normal;
    white-space: nowrap;
}

.vm-doc-type-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: inherit;
}

.vm-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4eef8;
    color: #2980b9;
    border: 1px solid #c3d9ee;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.vm-download-btn:hover {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

/* ── Pagination ─────────────────────────────────────────────────────── */
.vm-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.vm-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #c3d9ee;
    color: #1a3a5c;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    background: #fff;
}

.vm-pagination a:hover,
.vm-pagination a.active {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

/* ── No results ─────────────────────────────────────────────────────── */
.vm-no-results {
    text-align: center;
    padding: 60px 0;
    color: #8aa4be;
}

.vm-no-results i {
    font-size: 3rem;
    margin-bottom: 14px;
    display: block;
}

.vm-no-results p {
    font-size: 1rem;
    color: #4a6080;
}

/* ── Sidebar overlay fix: ensure nav sidebar always covers filter buttons ── */
.xs-sidebar-group.info-group .xs-overlay {
    z-index: 9998 !important;
}

.xs-sidebar-widget {
    z-index: 9999 !important;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .vm-filter-divider { display: none; }
    .vm-results-meta { flex-direction: column; align-items: flex-start; }
    .vm-doc-tag { max-width: 100%; }
}
