/*
Theme Name: avas Child
Theme URI: https://avas.live/
Template: avas
Author: theme-x
Author URI: https://theme-x.org/
Description: Multi-Purpose Elementor WordPress Theme.
Version: 6.8.4.4.2.3

*/


.wp-block-social-links .wp-block-social-link.wp-social-link {
    background-color: transparent !important;
}
/* Shortcode Grid Layout Fix */
.auction-shortcode-wrapper .auction-loop-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Force 3 columns on larger screens for shortcodes */
@media (min-width: 1200px) {
    .auction-shortcode-wrapper .auction-loop-container.grid-view {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 2 columns on medium screens for shortcodes */
@media (min-width: 768px) and (max-width: 1199px) {
    .auction-shortcode-wrapper .auction-loop-container.grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 column on small screens for shortcodes */
@media (max-width: 767px) {
    .auction-shortcode-wrapper .auction-loop-container.grid-view {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure shortcode wrapper doesn't constrain width */
.auction-shortcode-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* Main Container Styles */
.auction-container {
    width: 80%;
    margin: 50px auto 20px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}



/* Single Auction Header Styles */
.auction-header {
    display: flex;
    align-items: center;
    gap: 40px;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    background: #f8f8f8;
}

.auction-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auction-closed-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
}

.content-section {
    flex: 1.2;
    padding: 25px 30px;
}

.auction-id {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.auction-title {
    color: #373a43;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: underline;
}

.auction-subtitle {
    color: #7a7a7a;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.description-section {
    margin-bottom: 25px;
}

.description-label {
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 16px;
}

.description-text {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.auction-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.detail-group {
    flex: 1;
    min-width: 200px;
}

.detail-group h4 {
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.detail-group p {
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #1c4d82;
    color: white;
}

.btn-primary:hover {
    background: #1e3f73;
}

.btn-secondary {
    background: #1c4d82;
    color: white;
}

.btn-secondary:hover {
    background: #1e3f73;
}

.bottom-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding: 20px 30px;
    background: #fafafa;
}

.category-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-text {
    color: #666;
    font-size: 14px;
}

.category-text strong {
    color: #333;
}

.social-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-text {
    color: #666;
    font-size: 14px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.8;
    color: #ffffff !important;
}

.facebook { background: #4267B2; }
.twitter { background: #1DA1F2; }
.linkedin { background: #0077B5; }
.pinterest { background: #BD081C; }
.email { background: #34495E; }
.print { background: #FF6900; }
.more { background: #FF6900; }

/* Tab System */
.tabs-container {
    width: 80%;
    margin: 0 auto 20px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-button:hover {
    color: #373a43;
    background: #e9ecef;
}

.tab-button.active {
    color: #373a43;
    border-bottom-color: #373a43;
    background: white;
}

.tab-content {
    padding: 30px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Sub Tab System */
.subtab-navigation {
    display: flex;
    background: #e9ecef;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
    overflow-x: auto;
}

.subtab-button {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.subtab-button:hover {
    color: #373a43;
    background: #d6d8db;
}

.subtab-button.active {
    color: #373a43;
    border-bottom-color: #373a43;
    background: white;
}

.subtab-content {
    min-height: 300px;
}

.subtab-pane {
    display: none;
}

.subtab-pane.active {
    display: block;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Details Styles */
.details-section {
    margin-bottom: 30px;
}

.details-section h3 {
    color: #373a43;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #373a43;
    padding-bottom: 5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.preview-info h4 {
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.preview-info p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Documents Styles */
.documents-list {
    list-style: none;
    padding: 0;
}

.documents-list li {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.document-link {
    color: #373a43;
    text-decoration: none;
    font-weight: 600;
}

.document-link:hover {
    text-decoration: underline;
}

/* Links Styles */
.links-list {
    list-style: none;
    padding: 0;
}

.links-list li {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-name {
    font-weight: 600;
    color: #333;
}

.link-url {
    color: #373a43;
    text-decoration: none;
}

.link-url:hover {
    text-decoration: underline;
}

/* Terms Content */
.terms-content {
    line-height: 1.8;
    color: #555;
}

.terms-content h4 {
    color: #333;
    margin: 20px 0 10px 0;
}

/* Search Results Header */
.search-results-header {
    background: #1c4d82;
    color: white;
    padding: 30px;
    margin-bottom: 0;
}

.search-results-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.search-results-count {
    font-size: 16px;
    opacity: 0.9;
}

/* Alternative Search Results Header (for no results page) */
.search-results-header.white-style {
    background: white;
    color: #373a43;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-results-header.white-style .search-results-title {
    color: #373a43;
}

.search-results-header.white-style .search-results-count {
    color: #666;
}

/* No Search Results Styles */
.no-search-results {
    background: white;
    padding: 60px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.no-results-content h2 {
    color: #373a43;
    font-size: 24px;
    margin-bottom: 15px;
}

.no-results-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-suggestions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-bottom: 30px;
    text-align: left;
}

.search-suggestions h3 {
    color: #373a43;
    font-size: 18px;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-suggestions li:last-child {
    border-bottom: none;
}

.search-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-actions .btn-primary,
.search-actions .btn-secondary {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-actions .btn-primary {
    background: #1c4d82;
    color: white;
}

.search-actions .btn-primary:hover {
    background: #1e3f73;
    color: white;
}

.search-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.search-actions .btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* Archive Search Bar */
.archive-search-bar {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

/* Alternative Archive Search Bar (standalone) */
.archive-search-bar.standalone {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-bottom: none;
}

.archive-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.filter-group select,
.filter-group input[type="search"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px;
}

.filter-group select:focus,
.filter-group input[type="search"]:focus {
    outline: none;
    border-color: #1c4d82;
    box-shadow: 0 0 0 3px rgba(28, 77, 130, 0.1);
}

/* Search Form Group */
.search-form-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.search-form-group input[type="search"] {
    border: none;
    padding: 12px 15px;
    flex-grow: 1;
    outline: none;
    min-width: 200px;
}

.search-form-group input[type="search"]:focus {
    box-shadow: none;
}

.search-form-group .search-button {
    background: #1c4d82;
    color: white;
    border: none;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: auto;
}

.search-form-group .search-button:hover {
    background: #1e3f73;
}

.search-button {
    background: #1c4d82;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.search-button:hover {
    background: #1e3f73;
}

.clear-filters {
    background: #6c757d;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 14px;
}

.clear-filters:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
}

/* Auction View Controls */
.archive-search-row-2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
    border-top: 1px solid #e9ecef;
    background: #ffffff;
}


.results-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-toggle-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.view-toggle-btn:hover {
    background: #e9ecef;
    color: #373a43;
}

.view-toggle-btn.active {
    background: #1c4d82;
    color: white;
}

.view-toggle-btn i {
    font-size: 16px;
}

/* Auction Loop Container */
.auction-loop-container {
    transition: all 0.3s ease;
    padding: 30px;
    background: white;
}

/* Grid View Styles */
.auction-loop-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

/* List View Styles */
.auction-loop-container.list-view {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}

/* Auction Card Styles */
.auction-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.auction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* List View Card Layout */
.auction-loop-container.list-view .auction-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.auction-loop-container.list-view .auction-card-image {
    flex: 0 0 300px;
    height: auto;
    min-height: 200px;
    position: relative;
}

.auction-loop-container.list-view .auction-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

/* Grid View Card Layout */
.auction-loop-container.grid-view .auction-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.auction-loop-container.grid-view .auction-card-image {
    flex: none;
    height: 200px;
    position: relative;
}

.auction-loop-container.grid-view .auction-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Image Styles */
.auction-card-image {
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}

.auction-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.auction-card:hover .auction-card-image img {
    transform: scale(1.05);
}

/* Auction Status Badge */
.auction-status-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    z-index: 10;
}

.auction-status-badge.active {
    background: #28a745;
}

/* Auction Number */
.auction-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* Card Content Styles */
.auction-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.auction-card-title {
    color: #1c4d82;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.auction-card-title:hover {
    text-decoration: underline;
}

.auction-card-subtitle {
    color: #7a7a7a;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.auction-card-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Details */
.auction-card-details {
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 13px;
}

.detail-label {
    color: #666;
    font-weight: 500;
    min-width: 80px;
}

.detail-value {
    color: #333;
    text-align: right;
    flex: 1;
}

/* Auction Dates */
.auction-dates {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-bottom: 15px;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 13px;
}

.date-label {
    color: #666;
    font-weight: 500;
}

.date-value {
    color: #333;
}

.ended-status {
    color: #dc3545;
    font-weight: bold;
    font-size: 11px;
}

/* Card Footer */
.auction-card-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.auction-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.online-badge {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.category-links {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.category-links:hover {
    color: #1c4d82;
    text-decoration: underline;
}

.auction-actions {
    display: flex;
    gap: 8px;
}

.btn-loop {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary-loop {
    background: #1c4d82;
    color: white;
}

.btn-primary-loop:hover {
    background: #1e3f73;
}

.btn-secondary-loop {
    background: #6c757d;
    color: white;
}

.btn-secondary-loop:hover {
    background: #545b62;
}

.btn-view-loop {
    background: #1c4d82;
    color: white;
}

.btn-view-loop:hover {
    background: #1e3f73;
    color: #ffffff !important;
}

.lots-count {
    background: #f8f9fa;
    color: #495057;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

/* Pagination Styles */
.auction-pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.auction-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auction-pagination .nav-links a,
.auction-pagination .nav-links span {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #1c4d82;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.auction-pagination .nav-links a:hover {
    background: #1c4d82;
    color: white;
    border-color: #1c4d82;
}

.auction-pagination .nav-links .current {
    background: #1c4d82;
    color: white;
    border-color: #1c4d82;
}

.no-auctions-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

/* Additional Utility Classes */
.roboto-font {
    font-family: 'Roboto', sans-serif;
}

/* Ensure proper spacing for search results */
.search-results-header + .archive-search-bar {
    margin-top: 0;
}

/* Fix for grid/list view transitions */
.auction-loop-container {
    transition: all 0.3s ease;
}

.auction-loop-container.grid-view,
.auction-loop-container.list-view {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auction-container {
        width: 95%;
        margin: 20px auto;
    }
    
    /* Single Auction Responsive */
    .auction-header {
        flex-direction: column;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .auction-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .detail-group {
        min-width: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .bottom-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .social-section {
        align-self: stretch;
        justify-content: space-between;
    }
    
    /* Gallery Responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .subtab-navigation {
        flex-direction: column;
    }
    
    /* Archive Search Responsive */
    .archive-search-bar {
        padding: 20px;
    }
    
    .archive-filter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: auto;
        width: 100%;
    }
    
    .search-results-header {
        padding: 20px;
    }
    
    .search-results-title {
        font-size: 24px;
    }
    
    .no-search-results {
        padding: 40px 20px;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-actions .btn-primary,
    .search-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Auction View Controls Responsive */
    .auction-view-controls {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    /* Auction Loop Responsive */
    .auction-loop-container {
        padding: 20px;
    }
    
    .auction-loop-container.grid-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .auction-loop-container.list-view .auction-card {
        flex-direction: column;
    }
    
    .auction-loop-container.list-view .auction-card-image {
        flex: none;
        height: 200px;
    }
    
    .auction-card-content {
        padding: 15px;
    }
    
    .auction-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 15px 15px;
    }
    
    .auction-actions {
        justify-content: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    /* Pagination Responsive */
    .auction-pagination .nav-links {
        gap: 5px;
    }
    
    .auction-pagination .nav-links a,
    .auction-pagination .nav-links span {
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auction-card-content {
        padding: 15px;
    }
    
    .auction-card-footer {
        padding: 0 15px 15px;
    }
}

.auction-cat-container, .auction-container-search, .auction-directory-container {
    margin-top: 50px !important;
    flex: 1 1 100%; /* grow, shrink, base width 100% */
    max-width: 100%; /* ensure it never shrinks */
}


.auction-directory-title{
    margin: 10px;
    width: 100%;
    text-align: center;
}
/* --- Archive Search Custom Layout --- */
.custom-archive-search-bar {
    background: white;
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.custom-archive-filter-form {
    display: flex;        
    flex-direction: column;
    gap: 18px;
}
.archive-search-row {
    display: flex;
    width: 100%;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}
.archive-search-row-1 > .filter-group {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 320px;
}
.layout-switcher-group {
    min-width: 180px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}
.layout-switcher-group .view-toggle {
    display: flex;
    gap: 8px;
}
.archive-search-row-2 {
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.items-per-page-group {
    min-width: 180px;
    max-width: 220px;
}
.results-count-group {
    flex: 1 1 0;
    text-align: center;
    font-size: 16px;
    color: #373a43;
    font-weight: 500;
}
.navigation-group {
    min-width: 220px;
    text-align: right;
}
.clear-filters-group {
    margin-top: 18px;
    align-self: flex-end;
}
@media (max-width: 900px) {
    .archive-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .results-count-group, .navigation-group, .items-per-page-group, .layout-switcher-group {
        max-width: 100%;
        min-width: 0;
    }
    .custom-archive-search-bar {
        padding: 18px;
    }
}
@media (max-width: 600px) {
    .custom-archive-search-bar {
        padding: 10px;
    }
    .archive-search-row {
        gap: 8px;
    }
    .results-count-group {
        font-size: 14px;
    }
}

/* ... existing auction styles ... */

/* Asset Styles - Mirror of Auction Styles */
.asset-container {
    width: 80%;
    margin: 50px auto 20px auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.asset-header {
    display: flex;
    align-items: center;
    gap: 40px;
}

.asset-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.asset-closed-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
}

.asset-id {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.asset-title {
    color: #373a43;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: underline;
}

.asset-subtitle {
    color: #7a7a7a;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Asset Loop Container */
.asset-loop-container {
    transition: all 0.3s ease;
    padding: 30px;
    background: white;
}

/* Grid View Styles */
.asset-loop-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

/* List View Styles */
.asset-loop-container.list-view {
    display: flex !important;
    flex-direction: column;
    gap: 20px;
}

/* Asset Card Styles */
.asset-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.asset-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* List View Card Layout */
.asset-loop-container.list-view .asset-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 200px;
}

.asset-loop-container.list-view .asset-card-image {
    flex: 0 0 300px;
    height: auto;
    min-height: 200px;
    position: relative;
}

.asset-loop-container.list-view .asset-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
}

/* Grid View Card Layout */
.asset-loop-container.grid-view .asset-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.asset-loop-container.grid-view .asset-card-image {
    flex: none;
    height: 200px;
    position: relative;
}

.asset-loop-container.grid-view .asset-card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Card Image Styles */
.asset-card-image {
    position: relative;
    background: #f8f8f8;
    overflow: hidden;
}

.asset-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asset-card:hover .asset-card-image img {
    transform: scale(1.05);
}

/* Asset Status Badge */
.asset-status-badge {
    position: absolute;
    top: 15px;
    left: 0;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    z-index: 10;
}

.asset-status-badge.active {
    background: #28a745;
}

/* Asset Number */
.asset-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* Card Content Styles */
.asset-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.asset-card-title {
    color: #1c4d82;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-decoration: none;
    line-height: 1.3;
    display: block;
}

.asset-card-title:hover {
    text-decoration: underline;
}

.asset-card-subtitle {
    color: #7a7a7a;
    font-size: 12px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.asset-card-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Details */
.asset-card-details {
    margin-bottom: 15px;
}

/* Asset Dates */
.asset-dates {
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-bottom: 15px;
}

/* Card Footer */
.asset-card-footer {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.asset-category {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-actions {
    display: flex;
    gap: 8px;
}

/* Asset Pagination */
.asset-pagination {
    grid-column: 1 / -1;
    margin-top: 40px;
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.asset-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.asset-pagination .nav-links a,
.asset-pagination .nav-links span {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #1c4d82;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.asset-pagination .nav-links a:hover {
    background: #1c4d82;
    color: white;
    border-color: #1c4d82;
}

.asset-pagination .nav-links .current {
    background: #1c4d82;
    color: white;
    border-color: #1c4d82;
}

.no-assets-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.asset-cat-container, .asset-container-search, .asset-directory-container {
    margin-top: 50px !important;
    flex: 1 1 100%;
    max-width: 100%;
}

.asset-directory-title{
    margin: 10px;
    width: 100%;
    text-align: center;
}

/* Shortcode Asset Grid Layout Fix */
.asset-shortcode-wrapper .asset-loop-container.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    width: 100% !important;
}

/* Force 3 columns on larger screens for asset shortcodes */
@media (min-width: 1200px) {
    .asset-shortcode-wrapper .asset-loop-container.grid-view {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 2 columns on medium screens for asset shortcodes */
@media (min-width: 768px) and (max-width: 1199px) {
    .asset-shortcode-wrapper .asset-loop-container.grid-view {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1 column on small screens for asset shortcodes */
@media (max-width: 767px) {
    .asset-shortcode-wrapper .asset-loop-container.grid-view {
        grid-template-columns: 1fr !important;
    }
}

/* Ensure asset shortcode wrapper doesn't constrain width */
.asset-shortcode-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* Asset responsive styles would follow the same pattern as auction styles */
@media (max-width: 768px) {
    .asset-container {
        width: 95%;
        margin: 20px auto;
    }
    
    .asset-header {
        flex-direction: column;
    }
    
    .asset-loop-container {
        padding: 20px;
    }
    
    .asset-loop-container.grid-view {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .asset-loop-container.list-view .asset-card {
        flex-direction: column;
    }
    
    .asset-loop-container.list-view .asset-card-image {
        flex: none;
        height: 200px;
    }
    
    .asset-card-content {
        padding: 15px;
    }
    
    .asset-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 15px 15px;
    }
    
    .asset-actions {
        justify-content: center;
    }
}