/* General styles for the search container */
.numberplate-search-container {
    max-width: 100%;
    /* Full width as requested */
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}


/* Search Form Styles */
#numberplate-search-form {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#numberplate-search-form input[type="text"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 70%;
    max-width: 400px;
    margin-right: 10px;
    box-sizing: border-box;
}

#numberplate-search-form button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#numberplate-search-form button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Loader Styles */
#numberplate-search-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    flex-direction: column;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Premium subtle spinner */
.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

.loader-text {
    font-size: 1.2em;
    font-weight: 500;
    color: #333;
    min-height: 1.5em;
    /* Reserve space for text */
    transition: opacity 0.5s ease;
    font-family: 'Inter', sans-serif;
    /* Use a clean font if available, or fallback */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animation for text fading */
.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

/* Results Container Styles */
.numberplate_section_div {
    max-width: 100%;
    margin: 0 auto;
}

#numberplate-search-results a,
.numberplate_list_cards,
.amt_dv a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.number_plate_sec_headings {
    text-align: center;
    margin-bottom: 30px;
}

.sec_title {
    font-size: 2.2em;
    color: #1a1a1a;
    font-weight: 700;
    margin: 0;
}

.reslt_txt {
    color: #007bff;
}

/* Results List - Flex Grid System */
.numberplate_list_row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    /* Center if less than 3 */
}

/* Individual Column - 3 per row on desktop */
.numberplate_list_colm {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    box-sizing: border-box;
}

/* Card Styling - Compact Horizontal Layout */
.numberplate_list_cards {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    background: transparent;
    width: 100%;
}

.numberplate_list_cards:hover {
    background-color: #fcfcfc;
}

/* Plate Box */
.shadowbox {
    flex: 0 0 auto;
    width: 100px;
    /* Smaller width for grid */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700;
    border-radius: 4px;
    padding: 8px 5px;
    margin-right: 10px;
}

.mdl_nmbr_dv h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    /* Adjusted for grid spacing */
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    /* Prevent wrapping */
}

/* Price and Action Container */
.amt_dv {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out price and button */
    padding: 0;
    gap: 10px;
}
.amt_dv .view {
        display: flex;
    justify-content: center;
    align-items: center;
    background: #191715;
    color: #F5BA00;
    border-radius: 6px;
    width: 110px;
        padding: 8px 0px;
    font-size: 14px;
    font-weight: 600;
        margin: auto;
    margin-right: 0;
}
.numberplate_list_colm {
    border-bottom: 1px solid lightgray;
        margin-bottom: 8px;
}
.amt_dv h6 {
        margin: 0;
    font-size: 16px;
    color: #999;
    font-weight: 700;
}

/* View Button Styling */
.amt_dv a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #FFD700;
    padding: 8px 15px;
    /* Compact padding */
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    gap: 8px;
}

.amt_dv a:hover {
    background-color: #333;
}

/* Custom Icon Styling */
.btn-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFD700;
    border-radius: 50%;
    color: #000;
    font-size: 20px;
    height: 20px;
    width: 20px;
    padding-bottom: 5px;
}

.amt_dv a::after {
    display: none;
    /* Disable default arrow */
}
button.num_plate_viewmore_btn {
    background: #6DC9C6;
    border: 1px solid black;
    border-radius: 8px;
    color: black;
    font-weight: 600;
    font-size: 18px;
    width: 150px;
        margin-top: 20px;
    margin-bottom: 50px;
}
button.num_plate_viewmore_btn:hover {
    background: #FFD700;
}
/* Responsive adjustments */


@media (max-width: 992px) {

    /* Tablet and Mobile - 1 per row */
    .numberplate_list_colm {
        flex: 0 0 100%;
        /* Full width */
        max-width: 100%;
    }

    .numberplate_list_row {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    #numberplate-search-form {
        flex-direction: column;
        align-items: center;
    }

    #numberplate-search-form input[type="text"] {
        width: 90%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .numberplate_list_row {
        gap: 15px;
    }

    /* 1 per row on mobile */
    .numberplate_list_colm {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .numberplate_list_cards {
        padding: 15px 0;
        /* More touch space */
    }

    .shadowbox {
        width: 110px;
    }

    .amt_dv h6 {
        font-size: 1.1em;
    }
}