/* Search Results Page Redesign */

/* Hero Search Section */
.header-search.advanced {
    background: #FCFBF8;
    margin-bottom: 0;
    border-bottom: none;
    position: relative;
}

.hero-section {
    background: #FCFBF8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 120px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-search.advanced h1 {
    font-size: 42px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-align: center;
    text-shadow: none !important;
}

.search-subtitle {
    font-size: 18px;
    color: #6B7280;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

/* Search Form - Positioned to overlap (half hero, half results) */
.header-search .container {
    position: relative;
}

.header-search .search-form {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -120px;
    z-index: 10;
    width: calc(100% - 40px);
}

/* Non-search pages - less overlap */
body:not(.search-page) .header-search .search-form {
    bottom: -70px;
}

/* Stats Badge - "Over 73 Million plates available!" */
.search-stats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
    text-align: center;
    width: 100%;
}

.search-stats-badge .sparkle {
    font-size: 16px;
}

.search-stats-badge strong {
    color: #000000;
    font-weight: 700;
}

.header-search .keyword {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
    background: transparent;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 4px;
}

.search-input-wrapper:focus-within {
    border-color: var(--pr-yellow);
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.1);
}

.search-icon {
    color: #9CA3AF;
    font-size: 18px;
    pointer-events: none;
    margin-right: 0px !important;
    margin-left: 15px !important;
}

.header-search .search-value {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: #111827;
    background: transparent;
    transition: all 0.3s;
    outline: none;
    width: 100%;
}

.header-search .search-value:focus {
    border-color: var(--pr-yellow);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.1);
}

.header-search .search-value::placeholder {
    color: #9CA3AF;
}

.header-search .keyword button,
.header-search .search-form div button {
    padding: 16px 32px;
    background: #82B92E !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: none !important;
    text-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.header-search .keyword button:hover {
    background: #6B9B23 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 185, 46, 0.3);
}

/* Override green-link styling for header search button */
.green-link,
.header-search .search-form div button,
.page-checkout .postcode-button {
    text-transform: none !important;
    text-shadow: none !important;
}

/* Popular Searches Inline */
.popular-searches-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 10px;
}

.popular-searches-inline .popular-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.popular-searches-inline .popular-tag {
    padding: 6px 14px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.popular-searches-inline .popular-tag:hover {
    background: var(--pr-yellow);
    border-color: var(--pr-yellow);
    color: #000000;
    transform: translateY(-1px);
}


.search-results .content {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 30px;
    margin-bottom: 30px;
}

/* Results Type Header */
.results-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F3F4F6;
}

.results-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1F2937;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.results-badge .count {
    background: #374151;
    color: #FFFFFF;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.results-type h1 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    border: none;
    padding: 0;
}

/* Sort Dropdown */
.search-price {
    padding: 10px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    outline: none;
}

.search-price:hover {
    border-color: var(--pr-yellow);
}

.search-price:focus {
    border-color: var(--pr-yellow);
    box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.1);
}

/* Lowest Prices Badge */
.lowest-prices {
    max-width: 200px;
    height: auto;
    margin-top: 10px;
}

/* Type Sections */
.type-block {
    margin-bottom: 40px;
}

.type-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
}

/* Results Container */
.results-container {
    background: #FFFFFF;
}

/* Table Headers */
.results-container > .clearfix {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 15px;
}

.reg-title,
.all-in-title {
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Results Table */
.results {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.results tr {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    transition: all 0.3s;
}

.results tr:hover {
    border-color: var(--pr-yellow);
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.15);
    transform: translateY(-2px);
}

.results td {
    padding: 20px;
    vertical-align: middle;
}

.results td:first-child {
    border-radius: 8px 0 0 8px;
}

.results td:last-child {
    border-radius: 0 8px 8px 0;
}

/* Plate Number Display */
.results .plate-number {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 2px;
}

/* Price Display */
.results .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--pr-yellow);
}

.results .all-inc-price {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
}

/* Action Buttons */
.results .btn-view,
.results .btn-add-basket {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    margin: 0 5px;
}

.results .btn-view {
    background: transparent;
    border: 2px solid #D1D5DB;
    color: #374151;
}

.results .btn-view:hover {
    border-color: #9CA3AF;
    background: #F9FAFB;
}

.results .btn-add-basket {
    background: var(--pr-yellow);
    border: 2px solid var(--pr-yellow);
    color: #000000;
}

.results .btn-add-basket:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.pagination li {
    display: inline-block;
}

.pagination a {
    padding: 10px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background: #FFFFFF;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.pagination a:hover {
    border-color: var(--pr-yellow);
    background: #FFFBF0;
}

.pagination li.active a {
    background: var(--pr-yellow);
    border-color: var(--pr-yellow);
    color: #000000;
    font-weight: 700;
}

.pagination li.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #F9FAFB;
    border-radius: 12px;
    margin: 40px 0;
}

.no-results h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
}

.no-results p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .header-search.advanced {
        padding: 40px 0 60px;
    }
    
    .header-search.advanced h1 {
        font-size: 32px;
    }
    
    .search-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .header-search .search-form {
        padding: 25px;
        bottom: -117px;
    }
    
    body:not(.search-page) .header-search .search-form {
        bottom: -60px;
    }
    
    .search-results .content {
        padding: 20px;
    }
    
    .results-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .results-type h1 {
        font-size: 24px;
    }
    
    .search-price {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .header-search.advanced {
        padding: 30px 0 50px;
    }
    
    .header-search.advanced h1 {
        font-size: 26px;
        max-width: 100%;
    }
    .search-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .header-search .search-form {
        padding: 20px;
        border-radius: 12px;
        bottom: -138px;
    }
    
    body:not(.search-page) .header-search .search-form {
        bottom: -50px;
    }
    
    .header-search .keyword {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-search .keyword button {
        width: 100%;
    }
    
    .popular-searches-inline {
        gap: 8px;
    }
    
    .popular-searches-inline .popular-label {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .search-results .content {
        padding: 15px;
        border-radius: 8px;
    }
    
    .results-type h1 {
        font-size: 20px;
    }
    
    .type-title {
        font-size: 18px;
    }
    
    .results td {
        padding: 15px 10px;
        font-size: 14px;
    }
    
    .results .plate-number {
        font-size: 18px;
    }
    
    .results .price,
    .results .all-inc-price {
        font-size: 16px;
    }
    
    .results .btn-view,
    .results .btn-add-basket {
        padding: 8px 16px;
        font-size: 13px;
        margin: 5px 2px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 13px;
    }
}
.hero-section {
    background-color: #FCFBF8;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: auto;
    color: #000000;
    font-size: 24px;
    font-weight: 700;   
    text-align: center;
    padding-top: 10px;
}
.search-results {
    padding-top: 3% !important;
}
@media (min-width: 768px) {
    .header-search {
        padding: 0px !important;
    }
}
@media (max-width: 459px) {
.header-search .keyword {
    flex-direction: column !important;
}
.header-search .keyword button, .header-search .search-form div button {
    width: 100% !important;
}
.header-search.advanced {
    padding-top: 0px !important;
}
.hero-section {
    padding-top: 0px !important;
    padding-bottom: 30%;
}
.search-stats-badge {
    display: none;

}
.popular-searches-inline {
    display: none;
}
} 
.search-hero-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 20px;
}
@media (max-width: 992px) {
    .search-hero-features {
           margin-top: 0px !important;
    }
    .search-results {
        padding-top: 11% !important;
    }
}

/* ── Hero section mobile responsiveness (non-search pages only) ── */
@media (max-width: 991px) {
    body:not(.search-page) .header-search .search-form {
        bottom: -75px;
    }
}
@media (max-width: 767px) {
    body:not(.search-page) .hero-section {
        padding-bottom: 80px !important;
        font-size: 18px;
    }
    body:not(.search-page) .header-search.advanced h1 {
        font-size: 22px !important;
        padding: 0 12px;
    }
    body:not(.search-page) .header-search .search-form {
        position: relative !important;
        bottom: auto !important;
        transform: none !important;
        left: auto !important;
        width: 100% !important;
        margin: 0 auto !important;
        border-radius: 12px;
    }
    body:not(.search-page) .hero-section {
        padding-bottom: 20px !important;
    }
    .search-hero-features {
        gap: 16px;
        margin-top: 10px;
    }
    .search-hero-features .hero-feature-item {
        font-size: 12px;
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
    .search-hero-features .feature-icon {
        width: 32px;
        height: 32px;
    }
    .search-hero-features .feature-icon i {
        font-size: 14px;
    }
}
@media (max-width: 459px) {
    body:not(.search-page) .hero-section {
        padding-bottom: 10px !important;
    }
}