/* NumberBarn Search Plugin Styles */

#nb-search-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* Filters */
.nb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.nb-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 160px;
}

.nb-field-btn { flex: 0 0 auto; }

.nb-field label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.nb-field input {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
    width: 100%;
}

.nb-field input:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}

#nb-search-btn {
    padding: 9px 22px;
    background: #185FA5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

#nb-search-btn:hover  { background: #0C447C; }
#nb-search-btn:active { transform: scale(0.98); }

/* Status */
#nb-status { margin-bottom: 1rem; }

.nb-loading {
    text-align: center;
    padding: 1.5rem;
    color: #6b7280;
    font-size: 14px;
}

.nb-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 13px;
}

/* Count */
#nb-count {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Grid */
.nb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

/* Card */
.nb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nb-card:hover {
    border-color: #185FA5;
    box-shadow: 0 2px 10px rgba(24,95,165,0.10);
}

.nb-card-num {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.4px;
}

.nb-card-type {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.nb-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #185FA5;
    margin-bottom: 10px;
}

/* Enquire button */
.nb-enquire-btn {
    display: block;
    text-align: center;
    padding: 8px 0;
    background: #185FA5;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    margin-top: auto;
}

.nb-enquire-btn:hover { background: #0C447C; }

/* No results */
.nb-no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .nb-filters    { flex-direction: column; }
    .nb-field      { flex: 1 1 100%; }
    #nb-search-btn { width: 100%; }
}
