/* ============================================================
   Tender Filter Plugin – assets/tender-filter.css
   ============================================================ */

/* ── Wrapper card ──────────────────────────────────────────── */
.tender-filter-wrap {
    background: #fdf8f4;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 24px 28px 24px;
    margin-bottom: 30px;
   
    font-family: inherit;
}

/* ── Form row ──────────────────────────────────────────────── */
.tender-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

/* ── Individual field ──────────────────────────────────────── */
.tf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
    min-width: 150px;
}

.tf-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0;
}
.tf-btn.tf-btn--search{border:0;color:#fff;background-color:#a87850;border-radius: 8px;}
.tf-btn.tf-btn--search:hover{background-color:#212121;}
.tf-field select,
.tf-field input[type="date"] {
    height: 44px;
    border: 1.5px solid #e3e3e3;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    appearance: auto;
    -webkit-appearance: auto;
    cursor: pointer;
}

.tf-field select:focus,
.tf-field input[type="date"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.tf-field select:hover,
.tf-field input[type="date"]:hover {
    border-color: #94a3b8;
}

/* ── Action buttons ────────────────────────────────────────── */
.tf-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    border: none;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.1s ease;
    white-space: nowrap;
    line-height: 1;
    font-family: inherit;
}

.tf-btn--search {
    background: #2563eb;
    color: #ffffff !important;
}

.tf-btn--search:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
    color: #ffffff !important;
}

.tf-btn--search:active {
    transform: translateY(0);
    box-shadow: none;
}

.tf-btn--clear {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
}

.tf-btn--clear:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

/* ── Active filter badges ──────────────────────────────────── */
.tf-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e3e3e3;
}

.tf-active-label {
    font-size: 11px;
    font-weight: 700;
    color: #212121;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tf-badge {
    display: inline-flex;
    align-items: center;
       background: #fdf6f0;
    color: #a87850;
    border: 1px solid #f1e6dc;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* ── Loading state ─────────────────────────────────────────── */
.tender-filter-wrap.tf-loading .tf-btn--search {
    opacity: 0.7;
    pointer-events: none;
    cursor: wait;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .tender-filter-wrap {
        padding: 18px 16px 16px;
        margin-bottom: 28px;
    }

  
  
    .tf-btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
   
    .tf-btn {
        width: 100%;
    }
	.tender-filter-wrap{margin-bottom:0}
}

/* ============================================================
   Elementor Native Empty State: .e-loop-nothing-found-message
   Elementor renders this div automatically inside the Loop Grid
   when the query returns zero posts. We style it here.
   ============================================================ */
.e-loop-nothing-found-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
       background: #fdf6f0;
    border: 2px dashed #f1e6dc;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

/* Icon — injected by JS since Elementor only puts plain text here */
.e-loop-nothing-found-message .tf-nf-icon {
    color: #a87850;
    margin-bottom: 20px;
    line-height: 1;
}

.e-loop-nothing-found-message .tf-nf-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px;
    display: block;
}

.e-loop-nothing-found-message .tf-nf-desc {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 24px;
    max-width: 420px;
    line-height: 1.6;
    display: block;
}

.e-loop-nothing-found-message .tf-nf-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #a87850;
    color: #fff !important;
    border:0px solid #e2e8f0;
    text-decoration: none !important;
    transition: background 0.18s ease;
}

.e-loop-nothing-found-message .tf-nf-reset:hover {
    background: #212121;
    
}
