/* Search Results Section Styles */
.search-results-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(to right, rgba(245, 249, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
    margin: 0;
    width: 100%;
}

.search-results-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure the main content area doesn't interfere */
.search-results-section #content {
    margin: 0;
    padding: 0;
}

.search-results-section #primary {
    margin: 0;
    padding: 0;
}

/* Search Results Header */
.search-results-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0;
}

/* Override any default WordPress styles */
.search-results-section article {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.search-results-section .entry-content {
    margin: 0;
    padding: 0;
}

.search-results-section .entry-title {
    margin: 0;
    padding: 0;
}

.search-results-title {
    color: #005480;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.search-results-title .search-query {
    color: #C4122F;
    font-weight: 600;
}

.search-results-info {
    margin-bottom: 20px;
}

.search-results-count {
    color: #000000;
    font-weight: 700;
    font-size: 20px;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    list-style: none;
    padding: 0;
}

/* Search Result Item */
.search-result-item {
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Search Result Image */
.search-result-image {
    position: relative;
    height: 250px;
    background-color: #f5f5f5;
    overflow: hidden;
}

.search-result-image-link {
    display: block;
    height: 100%;
    text-decoration: none;
}

.search-result-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-result-item:hover .search-result-thumbnail {
    transform: scale(1.05);
}

.search-result-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: #f8f9fa;
}

.placeholder-icon {
    font-size: 48px;
    color: #ccc;
}

/* Post Type Badge */
.post-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vehicle-badge {
    background-color: #8cc641;
    color: white;
}

.faq-badge {
    background-color: #005480;
    color: white;
}

.page-badge {
    background-color: #6c757d;
    color: white;
}

/* Page-specific search result styling */
.search-result-item .page-badge {
    background-color: #495057;
}

.search-result-item:hover .page-badge {
    background-color: #343a40;
}

.post-badge {
    background-color: #C4122F;
    color: white;
}

.service-badge {
    background-color: #17a2b8;
    color: white;
}

.sector-badge {
    background-color: #C4122F !important;
    color: white !important;
}

/* Search Result Content */
.search-result-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* Search Result Title */
.search-result-title {
    margin: 0 0 15px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.search-result-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: #005480;
}

/* Search Result Excerpt */
.search-result-excerpt {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.search-result-excerpt .vehicle-price {
    font-size: 20px;
    font-weight: bold;
    color: #8cc641;
    margin-bottom: 10px;
}

.search-result-excerpt .vehicle-registration,
.search-result-excerpt .vehicle-mileage {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

/* Search Result Meta */
.search-result-meta {
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.search-result-date {
    margin-right: 15px;
}

.search-result-author {
    color: #666;
}

/* Search Result Actions */
.search-result-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.search-result-button {
    flex: 1;
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-button:not(.enquire-button) {
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #ddd;
}

.search-result-button.enquire-button {
    background-color: #8cc641;
    color: white;
    border: 1px solid #8cc641;
}

.search-result-button:not(.enquire-button):hover {
    background-color: #eee;
    border-color: #ccc;
}

.search-result-button.enquire-button:hover {
    background-color: #78b32f;
    transform: translateY(-2px);
}

/* Search Pagination */
.search-pagination {
    margin-top: 50px;
    text-align: center;
}

.search-pagination .pagination {
    margin-top: 0;
}

/* No Results Section */
.no-results-section {
    background: #fff;
    padding: 80px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.no-results-title {
    color: #005480;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.no-results-description {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* No Results Search */
.no-results-search {
    margin: 40px auto;
    max-width: 500px;
}

.no-results-search .search-form {
    position: relative;
}

.no-results-search .search-field {
    width: 100%;
    padding: 18px 60px 18px 25px;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
}

.no-results-search .search-field:focus {
    border-color: #005480;
}

.no-results-search .search-submit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.no-results-search .search-submit img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.no-results-search .search-submit:hover img {
    opacity: 1;
}

/* Suggested Actions */
.suggested-actions {
    margin-top: 50px;
}

.suggested-actions-title {
    color: #005480;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.suggested-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.suggested-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.suggested-action-item:hover {
    background-color: #fff;
    border-color: #005480;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.suggested-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #005480;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.suggested-action-item:hover .suggested-action-icon {
    background-color: #8cc641;
    transform: scale(1.1);
}

.suggested-action-icon i {
    font-size: 24px;
    color: white;
}

.suggested-action-text {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.suggested-action-item:hover .suggested-action-text {
    color: #005480;
}

/* Responsive Design for Search Results */
@media (max-width: 1400px) {
    .search-results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .search-results-section {
        padding: 60px 0;
    }
    
    .search-results-title {
        font-size: 36px;
    }
    
    .suggested-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .search-results-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .search-result-image {
        height: 200px;
    }
    
    .search-result-content {
        padding: 20px;
    }
    
    .search-result-title {
        font-size: 18px;
    }
    
    .search-result-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .no-results-section {
        padding: 60px 20px;
    }
    
    .no-results-title {
        font-size: 28px;
    }
    
    .suggested-actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .suggested-action-item {
        padding: 25px 15px;
    }
}

@media (max-width: 480px) {
    .search-results-section {
        padding: 40px 0;
    }
    
    .search-results-title {
        font-size: 28px;
    }
    
    .search-result-image {
        height: 180px;
    }
    
    .search-result-content {
        padding: 15px;
    }
    
    .search-result-actions {
        flex-direction: row;
    }
    
    .no-results-section {
        padding: 40px 15px;
    }
    
    .suggested-action-icon {
        width: 50px;
        height: 50px;
    }
    
    .suggested-action-icon i {
        font-size: 20px;
    }
} 