:root {
    --jankx-search-primary: #006EB7;
    --jankx-search-secondary: #2c3e50;
    --jankx-search-accent: #fbc02d;
    --jankx-search-text: #444;
    --jankx-search-text-muted: #777;
    --jankx-search-border: #e0e0e0;
    --jankx-search-bg: #ffffff;
    --jankx-search-radius: 2px;
    --jankx-search-gap: 30px;
}

/* Base Hub Layout */
.jankx-search-hub {
    display: flex;
    gap: 40px;
    font-family: "Open Sans", sans-serif;
    color: var(--jankx-search-text);
    padding: 20px 0;
}

.search-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.search-main {
    flex-grow: 1;
}

/* Sidebar Box (Card style) */
.filter-group {
    background: var(--jankx-search-bg);
    border: 2px solid var(--jankx-search-border);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: var(--jankx-search-radius);
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--jankx-secondary);
    border-bottom: none;
    padding-bottom: 0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 12px;
}

/* Custom Large Checkbox */
.filter-list label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--jankx-search-text);
    font-weight: 400;
}

.filter-list label.disabled,
.filter-list label.disabled input {
    cursor: not-allowed;
}


.filter-list .filter-title {
    color: #1F333D;
}

.filter-list .term-label-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1F333D;
}

.filter-list input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 0;
}

.filter-list input[type="checkbox"]:checked {
    background-color: var(--jankx-search-primary);
    border-color: var(--jankx-search-primary);
}

.filter-list input[type="checkbox"]:checked::after {
    content: '\2713';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
}

/* Search Bar Styling */
.jankx-search-keyword {
    margin-bottom: 20px;
}

.search-bar-wrapper {
    display: flex;
    gap: 0;
    height: 48px;
    background: transparent;
    border: none;
}

.search-bar-wrapper .search-input {
    flex-grow: 1;
    border: 2px solid #ddd !important;
    border-right: none !important;
    padding: 0 15px !important;
    font-size: 1rem;
    outline: none;
    height: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    border-radius: 0;
}

.search-bar-wrapper .search-btn {
    background-color: var(--jankx-search-primary);
    color: white;
    border: 2px solid var(--jankx-search-primary);
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
}

.search-bar-wrapper .search-btn:hover {
    background-color: #0050a0;
    border-color: #0050a0;
}

.search-bar-wrapper .search-btn i {
    font-size: 1.25rem;
}

/* Sorting Section */
.jankx-search-sorter {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-size: 1rem;
    height: 48px;
}

.jankx-search-sorter span {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.jankx-search-sorter .sort-select {
    height: 48px !important;
    padding: 0 35px 0 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 0 !important;
    background-color: white !important;
    cursor: pointer;
    font-weight: 500;
    margin: 0 !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/* Result Items */
.jankx-result-preset-default .result-item {
    display: flex;
    gap: 25px;
    padding: 30px 0;
    border-bottom: none;
}

/* Featured Badges */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dcff28;
    color: #006eb7;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-image {
    width: 260px;
    height: 180px;
    background: #f8f9fa;
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex-grow: 1;
}

.result-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--jankx-search-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.result-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.result-title a {
    color: var(--jankx-search-primary);
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Featured Gallery Layout */
.jankx-featured-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid #eee;
}

.featured-item {
    display: flex;
    flex-direction: column;
}

.featured-item .result-image {
    width: 100%;
    height: 240px;
    margin-bottom: 15px;
}

.featured-item .result-title {
    font-size: 1.5rem;
}

/* Filters Skeleton */
.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: jankx-shimmer 1.5s infinite;
    border-radius: 2px;
    height: 14px;
    margin-bottom: 12px;
}

.jankx-search-results-container ul.links.page-numbers li {
    margin-top: 8px;
}

.blue-bg {
    background: #7db5da;
    background: linear-gradient(180deg, rgba(125, 181, 218, 1) 0%, rgba(125, 181, 218, 0) 100%);
    min-height: 100px;
}

.jankx-search-selected-filters {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.active-filters-label {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
}

.selected-filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selected-filter-item {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 4px 15px;
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.selected-filter-item .remove-filter {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1rem;
    margin-left: 8px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.selected-filter-item .remove-filter:hover {
    color: #cc0000;
}

.clear-all-wrapper {
    text-align: left;
}

.clear-all-filters-btn {
    background: none;
    border: none;
    color: #6370b5;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    font-weight: 500;
    text-transform: none;
}

.clear-all-filters-btn:hover {
    text-decoration: none;
}