/**
 * Voxel Intelligent Search - Search Results Styling
 * 
 * These styles are specifically for the search results page
 * and are designed to work with the Voxel theme.
 */

/* Base container styles */
.vis-search-results-container {
    margin: 0 auto;
    padding: 20px 0;
    max-width: 100%;
    width: 100%;
}

/* Voxel theme specific container styling */
.ts-container.vis-search-results-container {
    padding: 0;
    margin: 0 auto;
}

/* Make sure our content respects theme structure */
.content-area .vis-search-results-container,
.ts-content .vis-search-results-container {
    width: 100%;
}

/* Style the search results within the theme context */
.vis-search-results {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Fix content width and ensure proper spacing in Voxel theme */
.ts-template .vis-search-results,
.elementor .vis-search-results,
.voxel-template .vis-search-results {
    padding: 0 15px;
}

/* Ensure taxonomy terms display properly */
.vis-taxonomy-result {
    position: relative;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
}

/* Match Voxel's styling for taxonomy terms */
.ts-template .vis-taxonomy-result,
.voxel-template .vis-taxonomy-result {
    background-color: var(--box-background, #fff);
    border-radius: var(--box-radius, 5px);
    box-shadow: var(--box-shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Fallback for non-Voxel themes */
.vis-taxonomy-result:not(.ts-template):not(.voxel-template) {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Style check icons */
.vis-term-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: rgba(63, 189, 108, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--accent-color, #3fbd6c);
}

.vis-term-check-icon i,
.vis-term-check-icon svg {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vis-term-check-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Ensure term icons display properly across all formats */
.vis-taxonomy-grid .vis-term-check-icon,
.vis-taxonomy-grid.single-term .vis-term-check-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color-transparent, rgba(63, 189, 108, 0.1));
    border-radius: 50%;
}

.vis-taxonomy-grid .vis-term-check-icon i,
.vis-taxonomy-grid .vis-term-check-icon svg,
.vis-taxonomy-grid.single-term .vis-term-check-icon i,
.vis-taxonomy-grid.single-term .vis-term-check-icon svg {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* For Voxel theme styling */
.voxel-theme .vis-term-check-icon {
    background-color: var(--ts-accent-2, rgba(63, 189, 108, 0.1));
    color: var(--ts-accent, #3fbd6c);
}

/* Term content */
.vis-term-content {
    display: inline-block;
    vertical-align: middle;
}

.vis-fallback-term-template {
    display: flex;
    align-items: center;
}

/* Ensure the term template has the correct styles */
.vis-term-template {
    display: flex;
    align-items: center;
}

/* Term name styling */
.vis-term-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--title-color, #242429);
    margin-bottom: 3px;
}

.vis-term-name a {
    color: inherit;
    text-decoration: none;
}

.vis-term-name a:hover {
    color: var(--accent-color, #3fbd6c);
}

/* Term count */
.vis-term-count {
    font-size: 13px;
    color: var(--text-light, #70778b);
    opacity: 0.8;
}

/* Properly position elements within Voxel theme */
body.vis-search-results-page .ts-content {
    padding-top: var(--content-top-spacing, 0);
}

/* Search header styles */
.vis-search-results-header {
    margin-bottom: 30px;
}

.vis-search-results-title {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--title-color, #242429);
}

.vis-search-results-count {
    margin-bottom: 20px;
    color: var(--text-light, #70778b);
}

/* Search pagination styles */
.vis-pagination {
    margin: 30px 0;
    text-align: center;
}

.vis-pagination.ts-pagination .page-numbers {
    margin: 0 3px;
}

/* Result list */
.vis-search-results-list {
    margin-bottom: 30px;
}

/* When inside Voxel templates */
.ts-template-component .vis-search-results-container {
    padding: 0;
}

/* Voxel has its own row/column system we want to match */
.ts-template .vis-search-results-list.ts-row {
    margin-left: -10px;
    margin-right: -10px;
}

.ts-template .vis-result-item-wrapper {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Search form styles */
.vis-search-container.ts-form {
    max-width: 600px;
    margin: 20px auto;
}

.vis-search-form.ts-form-group {
    position: relative;
}

.vis-search-input.ts-filter {
    width: 100%;
    border-radius: var(--box-radius, 5px);
    padding: 12px 15px;
    font-size: 15px;
}

/* Empty states */
.vis-no-query,
.vis-no-results {
    padding: 20px;
    text-align: center;
    background-color: var(--box-background, #f9f9f9);
    border-radius: var(--box-radius, 5px);
}

/* Support for Voxel theme variable colors */
.vis-location-active {
    background-color: var(--accent-color, #4CAF50);
    color: var(--accent-text-color, white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 10px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .vis-search-results {
        padding: 0 10px;
    }
    
    .ts-template .vis-search-results-list.ts-row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .ts-template .vis-result-item-wrapper {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Search Results Page */
.vis-search-results-wrapper {
    margin-bottom: 40px;
}

.vis-search-header {
    margin-bottom: 30px;
}

.vis-search-header h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.vis-search-header p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

.vis-search-error,
.vis-no-results {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #ff6b6b;
}

/* Search Results List */
.vis-search-results-list {
    margin-bottom: 40px;
}

/* Term Results */
.vis-taxonomy-result {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.vis-taxonomy-result:hover {
    background-color: var(--accent-color-transparent, rgba(63, 189, 108, 0.1));
}

.vis-term-content {
    flex: 1;
}

.vis-term-name {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.vis-term-name a {
    color: #333;
    text-decoration: none;
}

.vis-term-name a:hover {
    color: #1e88e5;
    text-decoration: underline;
}

.vis-term-description {
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.vis-term-count {
    font-size: 13px;
    color: #777;
    margin-bottom: 5px;
}

.vis-term-score {
    font-size: 12px;
    color: #999;
}

/* Post Results */
.vis-post-result {
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.vis-post-result:hover {
    background-color: #f0f0f0;
}

.vis-post-info {
    display: flex;
    align-items: flex-start;
}

.vis-post-thumbnail {
    margin-right: 20px;
    max-width: 120px;
    flex-shrink: 0;
}

.vis-post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vis-post-content {
    flex: 1;
}

.vis-post-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 18px;
}

.vis-post-title a {
    color: #333;
    text-decoration: none;
}

.vis-post-title a:hover {
    color: #1e88e5;
    text-decoration: underline;
}

.vis-post-type {
    display: inline-block;
    font-size: 12px;
    color: #ffffff;
    background-color: #4e6c7b;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

.vis-post-excerpt {
    color: #555;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.vis-post-score {
    font-size: 12px;
    color: #999;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .vis-post-info {
        flex-direction: column;
    }
    
    .vis-post-thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
        max-width: 100%;
    }
}

/* Voxel Theme Integration */
.voxel-theme .vis-search-results-wrapper {
    /* Specific styling for Voxel theme */
    font-family: var(--vx-font-family, inherit);
}

.voxel-theme .vis-search-header h2 {
    color: var(--ts-heading-color, #333);
}

.voxel-theme .vis-taxonomy-result,
.voxel-theme .vis-post-result {
    background-color: var(--ts-box-3-bg, #f9f9f9);
    border-radius: var(--ts-border-radius-md, 5px);
}

.voxel-theme .vis-term-name a,
.voxel-theme .vis-post-title a {
    color: var(--ts-heading-color, #333);
}

.voxel-theme .vis-term-name a:hover,
.voxel-theme .vis-post-title a:hover {
    color: var(--ts-primary-color, #1e88e5);
}

/**
 * Horizontal scrollable taxonomy grid - updated design
 */
.vis-taxonomy-grid-container {
    position: relative;
    margin: 0 -10px 20px -10px;
}

/* Hide scrollbar completely while keeping functionality */
.vis-taxonomy-grid {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    margin: 0 -5px;
    padding-bottom: 5px;
}

/* Hide scrollbar in different browsers */
.vis-taxonomy-grid::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Navigation Arrows */
.vis-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
    visibility: hidden;
}

/* Left Arrow Positioning */
.vis-nav-left {
    left: 0;
}

/* Right Arrow Positioning */
.vis-nav-right {
    right: 0;
}

/* Arrow Hover Effect */
.vis-nav-arrow:hover {
    background-color: #f5f5f5;
}

/* SVG Icon Styling */
.vis-nav-arrow svg {
    color: #555;
}

/* Disabled Arrow State */
.vis-nav-arrow.vis-nav-disabled {
    opacity: 0.4;
    cursor: default;
}

/* Show arrows only when there's overflow */
.vis-taxonomy-grid-container.vis-has-overflow .vis-nav-arrow {
    opacity: 0.9;
    visibility: visible;
}

/* Hide arrows on smaller screens */
@media (max-width: 768px) {
    .vis-nav-arrow {
        display: none;
    }
}

/* Style for each taxonomy item in the grid - based on screenshot */
.vis-taxonomy-grid .vis-taxonomy-result {
    min-width: auto;
    flex: 0 0 auto;
    margin: 0 5px 10px;
    padding: 10px 15px;
}

.vis-taxonomy-grid .vis-taxonomy-result:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vis-taxonomy-grid .vis-term-content {
    display: inline-block;
    width: calc(100% - 36px);
    text-align: left;
    vertical-align: top;
}

.vis-taxonomy-grid .vis-term-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: normal;
}

.vis-taxonomy-grid .vis-term-count {
    font-size: 13px;
    opacity: 0.7;
    white-space: normal;
}

.vis-taxonomy-grid .vis-term-description,
.vis-taxonomy-grid .vis-term-score {
    display: none; /* Hide description and score in grid view to keep it compact */
}

/* Show taxonomy items in a grid only if there are multiple terms */
.vis-taxonomy-section-title {
    display: none;
}

/* Clear the float after the grid */
.vis-taxonomy-grid:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vis-taxonomy-grid .vis-taxonomy-result {
        min-width: 160px;
        max-width: 200px;
    }
    
    .vis-taxonomy-grid .vis-term-check-icon {
        width: 22px;
        height: 22px;
    }
    
    .vis-taxonomy-grid .vis-term-name {
        font-size: 14px;
    }
}

/* Voxel Theme Integration */
.voxel-theme .vis-taxonomy-grid .vis-taxonomy-result {
    background-color: var(--box-background, #fff);
    box-shadow: var(--box-shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.voxel-theme .vis-taxonomy-grid .vis-term-check-icon {
    color: var(--accent-color, #3fbd6c);
}

/* Posts section title */
.vis-posts-section-title {
    display: none;
}

/* Voxel theme compatibility */
.voxel-theme .vis-posts-section-title {
    color: var(--title-color, #242429);
}

/* Single taxonomy result (not in grid) */
.vis-taxonomy-result:not(.vis-taxonomy-grid .vis-taxonomy-result) {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid rgba(0,0,0,0.1);
}

.vis-taxonomy-result:not(.vis-taxonomy-grid .vis-taxonomy-result) .vis-term-info {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.vis-taxonomy-result:not(.vis-taxonomy-grid .vis-taxonomy-result) .vis-term-content {
    flex: 1;
}

/* Intelligent Search Results Widget Styles */

/* Container */
.vis-search-results-wrapper {
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.vis-search-header {
    margin-bottom: 25px;
}

.vis-search-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
}

.vis-result-count {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Section Titles */
.vis-taxonomy-section-title,
.vis-posts-section-title {
    display: none;
}

/* Results Layout */
.vis-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Post Results */
.vis-post-result {
    width: 100%;
    transition: all 0.3s ease;
}

.vis-post-info {
    display: flex;
    gap: 20px;
}

.vis-post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: auto;
}

.vis-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.vis-post-content {
    flex-grow: 1;
}

.vis-post-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vis-post-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.vis-post-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.vis-post-title a:hover {
    color: #0073aa;
}

.vis-post-distance-badge {
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vis-post-distance-badge i {
    font-size: 10px;
}

.vis-post-excerpt {
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.vis-post-score {
    font-size: 14px;
    color: #666;
}

/* Taxonomy Terms */
.vis-taxonomy-section {
    margin-bottom: 15px;
}

.vis-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.vis-taxonomy-result {
    width: 100%;
    transition: all 0.3s ease;
}

.vis-term-content {
    display: flex;
    flex-direction: column;
}

.vis-term-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.vis-term-name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    flex: 1;
}

.vis-term-name a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.vis-term-name a:hover {
    color: #0073aa;
}

.vis-term-distance-badge {
    background: #6b7280;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vis-term-distance-badge i {
    font-size: 10px;
}

.vis-term-count {
    font-size: 14px;
    color: #666;
}

.vis-term-description {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.vis-term-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #e6f3fa;
    border-radius: 50%;
    margin-right: 8px;
    color: #0073aa;
    /* Ensure inner icon scales correctly */
    line-height: 1;
}

/* Target potential Voxel/Elementor icon structures */
.vis-term-check-icon .elementor-icon,
.vis-term-check-icon .elementor-icon svg,
.vis-term-check-icon > svg {
    width: 60%; /* Adjust percentage as needed for scaling */
    height: 60%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.vis-term-check-icon .elementor-icon i {
    font-size: inherit; /* Inherit size from container */
}

/* No Results */
.vis-no-results {
    padding: 25px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.vis-search-error {
    padding: 15px;
    background-color: #fef8f8;
    border-radius: 5px;
    color: #c32;
    margin-top: 15px;
}

/* Pagination */
.vis-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.vis-pagination a,
.vis-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.vis-pagination .current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.vis-pagination a:hover {
    background-color: #f5f5f5;
    color: #0073aa;
}

.vis-pagination a::after,
.vis-pagination .current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #3f51b5);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    visibility: hidden;
}

.vis-pagination a:hover::after,
.vis-pagination .current::after {
    width: 80%;
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .vis-post-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .vis-post-thumbnail {
        width: 100%;
        max-width: 100%;
    }
    
    .vis-taxonomy-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .vis-search-header h1 {
        font-size: 24px;
        margin-left: 15px;
    }

    .vis-result-count {
        margin-left: 15px !important;
    }
    
    .vis-post-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .vis-taxonomy-grid {
        grid-template-columns: 1fr;
    }
}

/* Card style for single taxonomy terms */
.vis-taxonomy-result.vis-term-card-style {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.vis-taxonomy-result.vis-term-card-style:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.12);
}

.vis-taxonomy-result.vis-term-card-style .vis-term-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background-color: rgba(0, 115, 170, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: #0073aa;
}

.vis-taxonomy-result.vis-term-card-style .vis-term-check-icon i,
.vis-taxonomy-result.vis-term-card-style .vis-term-check-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.vis-taxonomy-result.vis-term-card-style .vis-term-content {
    display: flex;
    flex-direction: column;
}

.vis-taxonomy-result.vis-term-card-style .vis-term-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.vis-taxonomy-result.vis-term-card-style .vis-term-count {
    font-size: 13px;
    color: #757575;
}

/* Voxel Theme Integration */
.voxel-theme .vis-taxonomy-result.vis-term-card-style {
    background-color: var(--box-background, #fff);
    box-shadow: var(--box-shadow, 0 1px 3px rgba(0, 0, 0, 0.1));
}

.voxel-theme .vis-taxonomy-result.vis-term-card-style .vis-term-check-icon {
    background-color: var(--ts-shade-2, rgba(0, 115, 170, 0.1));
    color: var(--ts-primary, #0073aa);
}

.voxel-theme .vis-taxonomy-result.vis-term-card-style .vis-term-name a {
    color: var(--ts-heading-color, #1a1a1a);
}

.voxel-theme .vis-taxonomy-result.vis-term-card-style .vis-term-name a:hover {
    color: var(--ts-primary, #0073aa);
}

.voxel-theme .vis-taxonomy-result.vis-term-card-style .vis-term-count {
    color: var(--ts-text-2, #757575);
}

/* Target potential Voxel/Elementor icon structures */
.vis-taxonomy-result.vis-term-card-style .vis-term-check-icon .elementor-icon svg,
.vis-taxonomy-result.vis-term-card-style .vis-term-check-icon svg {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Consistent term styling for both single and multiple terms */
.vis-taxonomy-grid.single-term {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
    padding-bottom: 5px;
}

.vis-taxonomy-grid.single-term .vis-taxonomy-result {
    margin: 0 5px 10px;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .vis-taxonomy-grid,
    .vis-taxonomy-grid.single-term {
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .vis-taxonomy-grid .vis-taxonomy-result,
    .vis-taxonomy-grid.single-term .vis-taxonomy-result {
        flex: 0 0 calc(50% - 10px);
        margin: 0 5px 10px;
    }
}

@media (max-width: 480px) {
    .vis-taxonomy-grid .vis-taxonomy-result,
    .vis-taxonomy-grid.single-term .vis-taxonomy-result {
        flex: 0 0 calc(100% - 10px);
    }
}

/* Additional styling for term consistency */
.vis-taxonomy-result:hover {
    background-color: var(--accent-color-transparent, rgba(63, 189, 108, 0.1));
}

.vis-term-check-icon {
    background-color: var(--accent-color-transparent, rgba(63, 189, 108, 0.1));
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Remove duplicate/conflicting rules and ensure icon scales */
.vis-term-check-icon i,
.vis-term-check-icon svg {
    /* font-size: 16px; - Let parent control size */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%; /* Scale icon within the container */
    height: 60%;
    line-height: 1;
}

/* Voxel specific styles for icons - Target potential structures */
/* Handle different icon formats from Voxel theme */
.vis-term-check-icon .elementor-icon i,
.vis-term-check-icon i {
    /* font-size: 16px; Let parent control */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Line Awesome icons from Voxel */
.vis-term-check-icon .elementor-icon i.las,
.vis-term-check-icon i.las,
.vis-term-check-icon .elementor-icon i[class*="la-"],
.vis-term-check-icon i[class*="la-"] {
    font-size: 1.1em; /* Slightly larger for LineAwesome */
}

/* Font Awesome icons from Voxel */
.vis-term-check-icon .elementor-icon i.fa,
.vis-term-check-icon i.fa,
.vis-term-check-icon .elementor-icon i.fas,
.vis-term-check-icon i.fas,
.vis-term-check-icon .elementor-icon i.far,
.vis-term-check-icon i.far,
.vis-term-check-icon .elementor-icon i.fab,
.vis-term-check-icon i.fab,
.vis-term-check-icon .elementor-icon i[class*="fa-"],
.vis-term-check-icon i[class*="fa-"] {
    font-size: 0.9em; /* Slightly smaller for FontAwesome */
}

/* Material icons from Voxel */
.vis-term-check-icon .elementor-icon i.material-icons,
.vis-term-check-icon i.material-icons,
.vis-term-check-icon .elementor-icon i[class*="mi-"],
.vis-term-check-icon i[class*="mi-"] {
    font-size: 1.1em; /* Slightly larger for Material */
}

/* Common styling for all icon formats in grid views */
.vis-taxonomy-grid .vis-term-check-icon .elementor-icon i,
.vis-taxonomy-grid .vis-term-check-icon i,
.vis-taxonomy-grid.single-term .vis-term-check-icon .elementor-icon i,
.vis-taxonomy-grid.single-term .vis-term-check-icon i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure icon fills the elementor wrapper if present */
    height: 100%;
} 