/**
 * tsw-custom-listing 
 * Version 1.1.4
 */

.cbutton-primary {
    display: inline-block;
    padding: 3px 8px;
    background-color: seashell;
    color: black;
    border-radius: 4px;
	border: 2px solid #ddd;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
a.cbutton-primary:hover{
	opacity: .7;
	background-color: floralwhite;
}

a.cbutton-primary {
    color: black;
    font-family: inherit;
    font-size: 2em;
	text-shadow: 0 1px 1px #fff;
}
.dbutton-primary {
background-color:#03ad11;
border-radius: 4px;
padding: 1px 3px;
color: #ffffff;
}
.listing-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Evenly spaces multiple listing cards vertically */
    width: 100%;
    border-top: thin solid #ffffaa;
}

/* Base Mobile Layout (Stacked First) */
.listing-card {
    display: flex;
    flex-direction: column; /* Stacks image directly on top of content */
    width: 100%;
    background-color: #1e2530; /* Your dark layout box background */
    border: 1px solid #2a3444;
    border-radius: 8px;
    overflow: hidden; /* Keeps image corners rounded neatly inside the card */
}

.listing-image-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #141a24; /* Dark contrast accent space for the logo image */
    padding: 1.5rem;
}

.listing-image-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 120px; /* Prevents logos from scaling too massive on mobile layout screens */
}

.listing-content-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Desktop Responsive Layout Layer (768px and up) */
@media (min-width: 768px) {
    .listing-card {
        flex-direction: row; /* Flips layout to side-by-side horizontal row split */
        align-items: stretch; /* Stretches both left and right blocks to uniform equal heights */
    }

    .listing-image-wrapper {
        width: 250px; /* Strict fixed-width column configuration for the desktop logo area */
        flex-shrink: 0; /* Prevents content blocks on the right from compressing the left column image space */
        border-right: 1px solid #2a3444; /* Clean divider line to replace mobile separation rules */
    }
}
/* Data Entry Registry Short-Lists */
.short-list-home {
    position: relative;
}

.webpopulous-short-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.webpopulous-short-list .listing-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background-color: #1e2530;
    border: 1px solid #2a3444;
    border-radius: 6px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.webpopulous-short-list .listing-item:hover {
    transform: translateX(4px);
    border-color: #3b82f6;
}

.webpopulous-short-list .listing-title {
    color: #f3f4f6;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.webpopulous-short-list .listing-title:hover {
    color: #3b82f6;
}

.webpopulous-short-list .listing-cost-badge {
    font-size: 0.813rem;
    font-family: monospace;
    background-color: #16a34a66;
    color: #ffffff;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: -0.02em;
    width:70%;
}

.no-listings-found {
    color: #9ca3af;
    font-style: italic;
    padding: 1rem;
    border: 1px dashed #374151;
    border-radius: 6px;
}

/* Master Data Matrix Comparison Engine Tables */
.matrix-table-wrapper {
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
    box-sizing: border-box;
}

.matrix-table-wrapper table,
.matrix-specs-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background-color: #161B22;
    color: #F0F6FC;
    font-family: 'Inter', 'Roboto', sans-serif;
    border: 1px solid #30363D;
    border-radius: 6px;
    overflow: hidden;
}

.matrix-table-wrapper table thead tr th,
.matrix-specs-table-wrapper table thead tr th {
    color: lightgreen;
}
/* Sidebar Directory Layout System */
.webpopulous-category-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Dynamic layout row spacing */
    width: 100%;
}

.webpopulous-category-sidebar-list .category-item {
    border-bottom: 1px solid #2a3444; /* Dark layout separator line */
    padding-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

.webpopulous-category-sidebar-list .category-item:hover {
    transform: translateX(4px); /* Clean subtle interactive slide mechanics */
}

.webpopulous-category-sidebar-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #f3f4f6;
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
}

.webpopulous-category-sidebar-list .category-link:hover {
    color: #3b82f6; /* High contrast system blue accent highlight */
}

.webpopulous-category-sidebar-list .category-count {
    font-size: 0.813rem;
    font-family: monospace;
    background-color: #374151;
    color: #9ca3af;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
}
.webpopulous-pagination {
    margin: 2.5rem 0;
    text-align: center;
}
.webpopulous-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #2a3444;
    border-radius: 6px;
    background-color: #1e2530;
    overflow: hidden;
}
.webpopulous-pagination ul.page-numbers li {
    border-right: 1px solid #2a3444;
    margin: 0;
}
.webpopulous-pagination ul.page-numbers li:last-child {
    border-right: none;
}
.webpopulous-pagination ul.page-numbers a, 
.webpopulous-pagination ul.page-numbers span {
    display: block;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.95rem;
}
.webpopulous-pagination ul.page-numbers span.current {
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
}
.webpopulous-pagination ul.page-numbers a:hover {
    background-color: #2a3444;
    color: #ffffff;
}
/* in listing css */

.post-card__thumbnail img{
    object-fit:contain!important;
}
.entry-content img{
    object-fit:scale-down;
}
	/* Tree Architecture Wrappers */
.canvas-container {
    background-color: #0f172a; /* Deep layout slate block */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #1e293b;
    margin-bottom: 3rem;
}

.tree-level {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    margin-bottom: 2rem;
}

.tree-level:last-child {
    margin-bottom: 0;
}

.tree-level h3 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.node-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Interactive Control Nodes */
.node-btn {
    background-color: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.node-btn:hover {
    background-color: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.node-btn.active {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.node-btn.dimmed {
    opacity: 0.35;
    filter: grayscale(60%);
}

/* Responsive Vendor Layout Grid */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    transition: all 0.4s ease-in-out;
}

.vendor-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Display State Transitions */
.hidden-card {
    display: none !important;
}

.visible-card {
    display: flex !important;
    animation: fadeInUp 0.35s ease-out forwards;
}

/* Card Elements & Action Row Styling */
.vendor-card h2 {
    color: #f8fafc;
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.card-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.card-action {
    margin-top: auto; /* Forces action layer to track base coordinate boundary perfectly */
    padding-top: 1.25rem;
    border-top: 1px solid #334155;
}

.vendor-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0284c7;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.vendor-visit-btn:hover {
    background-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Animation Keys */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Discovery Reset Action Core Alignment */
.discovery-reset-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1rem;
}

.reset-action-trigger {
    background: none;
    border: none;
    color: #64748b; /* Soft slate color to look non-intrusive */
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-action-trigger svg {
    transition: transform 0.4s ease;
}

/* Reset Micro-Interactions */
.reset-action-trigger:hover {
    color: #ef4444; /* Snaps to a clear alert-red style indicating clean-out actions */
    background-color: rgba(239, 68, 68, 0.08);
}

.reset-action-trigger:hover svg {
    transform: rotate(-180deg); /* Mechanical spinning wheel effect */
}

.reset-action-trigger:active {
    transform: scale(0.97); /* Slight physical feedback on depress link actions */
}

.webpopulous-filter-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    background-color: #1e2530;
    padding: 1rem;
    border: 1px solid #2a3444;
    border-radius: 8px;
    margin-bottom: 2rem;
    width: 100%;
}

.webpopulous-filter-toolbar input[type="text"],
.webpopulous-filter-toolbar select {
    background-color: #141a24;
    color: #ffffff;
    border: 1px solid #2a3444;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: inherit;
    flex: 1;
    min-width: 200px;
}

.webpopulous-filter-toolbar input[type="text"]:focus,
.webpopulous-filter-toolbar select:focus {
    border-color: #58A6FF;
    outline: none;
}

.webpopulous-filter-toolbar .search-cta {
    font-size: 1rem !important;
    padding: 0.5rem 1.25rem !important;
    white-space: nowrap;
    background-color: #03ad11;
   /* color: #141a24; 
    border: none !important;
    background-color:#03ad11; */
border-radius: 4px;
padding: 1px 3px;
color: #ffffff!important;
text-shadow: 0 1px 1px #666;
}

.post-type-archive-listing header.pb-8.mb-8.border-b{
    display: none;
}
.post-type-archive-listing header.pb-8:after{
    content: "RESULTS: ";
    position: relative;
    bottom: 1em;
    color: #aff
}
/* Custom match badge text next to the title - Only used if REST search */
.listing-card.is-true-match {
    border: 1px solid #58A6FF !important; /* Highlights with your theme's vibrant blue */
    background-color: #1f293a !important;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.15);
    opacity: 1;
    transform: scale(1.02);
    transition: all 0.3s ease;
}


.match-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    background-color: #16a34a; /* Monetary green */
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Non-matching baseline results sit softly below without cluttering the eyes */
.listing-card.is-faded-fill {
    opacity: 0.2; /* Softly dims the card background and text */
    border: 1px solid #2a3444;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

/* Bring the card back to full clarity if a user explicitly hovers over it */
.listing-card.is-faded-fill:hover {
    opacity: 0.35;
    filter: grayscale(0%);
}