/* =============================
   Behtarinsaz Directory Styles
   RTL / Persian optimized
   ============================= */

:root {
    --btz-primary: #1a7fba;
    --btz-accent:  #f0a500;
    --btz-text:    #1a1a2e;
    --btz-muted:   #6b7280;
    --btz-bg:      #f8fafc;
    --btz-card-bg: #ffffff;
    --btz-border:  #e2e8f0;
    --btz-radius:  12px;
    --btz-shadow:  0 2px 16px rgba(0,0,0,.07);
    --btz-green:   #10b981;
    --btz-wa:      #25d366;
}

/* ── Search Box ────────────────── */
.btz-search-box {
    background: linear-gradient(135deg, #1a7fba 0%, #0d5a8a 100%);
    padding: 2rem;
    border-radius: var(--btz-radius);
    margin-bottom: 2rem;
}

.btz-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.btz-input,
.btz-select {
    flex: 1 1 180px;
    padding: .75rem 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--btz-text);
    direction: rtl;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: box-shadow .2s;
}

.btz-input:focus,
.btz-select:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,.4);
}

.btz-btn {
    padding: .75rem 2rem;
    background: var(--btz-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    white-space: nowrap;
}

.btz-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240,165,0,.4);
}

/* ── Results ───────────────────── */
.btz-found {
    color: var(--btz-muted);
    font-size: 13px;
    margin-bottom: 1rem;
}

.btz-loading {
    text-align: center;
    padding: 3rem;
    color: var(--btz-muted);
    font-size: 16px;
}

.btz-no-result {
    text-align: center;
    padding: 3rem;
    color: var(--btz-muted);
}

/* ── Grid ──────────────────────── */
.btz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ── Card ──────────────────────── */
.btz-card {
    background: var(--btz-card-bg);
    border-radius: var(--btz-radius);
    box-shadow: var(--btz-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    border: 1px solid var(--btz-border);
}

.btz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.btz-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.btz-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    direction: rtl;
}

.btz-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.btz-card-title a {
    color: var(--btz-text);
    text-decoration: none;
}

.btz-card-title a:hover {
    color: var(--btz-primary);
}

.btz-badge {
    font-size: 11px;
    background: #dcfce7;
    color: var(--btz-green);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

.btz-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: 13px;
    color: var(--btz-muted);
}

.btz-cat, .btz-city, .btz-exp, .btz-price {
    background: var(--btz-bg);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.btz-stars {
    color: var(--btz-accent);
    font-size: 16px;
    letter-spacing: 1px;
}

.btz-rating {
    font-size: 13px;
    color: var(--btz-muted);
}

.btz-excerpt {
    font-size: 13px;
    color: var(--btz-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.btz-card-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.btz-btn-sm {
    padding: .4rem .9rem;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity .2s;
}

.btz-btn-sm:hover { opacity: .85; }

.btz-call    { background: var(--btz-primary); color: #fff; }
.btz-wa      { background: var(--btz-wa);      color: #fff; }
.btz-profile { background: var(--btz-bg);      color: var(--btz-text); border: 1px solid var(--btz-border); }

/* ── Pagination ────────────────── */
.btz-pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 14px;
    color: var(--btz-muted);
}

.btz-page-btn {
    padding: .5rem 1.25rem;
    border: 1px solid var(--btz-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: background .2s;
}

.btz-page-btn:hover {
    background: var(--btz-primary);
    color: #fff;
    border-color: var(--btz-primary);
}

/* ── Provider Profile Page ──────── */
.btz-profile-hero {
    background: linear-gradient(135deg, #1a7fba, #0d5a8a);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: var(--btz-radius);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    direction: rtl;
    margin-bottom: 2rem;
}

.btz-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,.3);
}

.btz-profile-info h1 {
    font-size: 28px;
    margin: 0 0 .5rem;
}

.btz-contact-bar {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btz-contact-bar a {
    padding: .6rem 1.25rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.btz-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.btz-portfolio-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .2s;
}

.btz-portfolio-grid img:hover {
    transform: scale(1.03);
}

/* ── Category / City Header ──────── */
.btz-tax-header {
    background: var(--btz-bg);
    border-right: 4px solid var(--btz-primary);
    padding: 1.5rem;
    border-radius: var(--btz-radius);
    margin-bottom: 2rem;
    direction: rtl;
}

.btz-tax-header h1 {
    font-size: 24px;
    margin: 0 0 .5rem;
}

.btz-tax-header p {
    color: var(--btz-muted);
    font-size: 15px;
    margin: 0;
}

/* ── Responsive ────────────────── */
@media (max-width: 640px) {
    .btz-search-row { flex-direction: column; }
    .btz-input, .btz-select, .btz-btn { width: 100%; flex: none; }
    .btz-grid { grid-template-columns: 1fr; }
    .btz-profile-hero { flex-direction: column; }
    .btz-profile-avatar img { width: 80px; height: 80px; }
}
