/* ==========================================================================
   استایل نمایش مشاوران املاک اونونو
   ========================================================================== */

.ona-wrapper {
    direction: rtl;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* --- تب‌های شهر --- */
.ona-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eef0f2;
    padding-bottom: 18px;
}

.ona-tab-btn {
    background: #f4f6f8;
    border: 1px solid #e1e4e8;
    color: #33404d;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ona-tab-btn:hover {
    background: #e8f0fe;
    border-color: #a9c6f7;
}

.ona-tab-btn.active {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

/* --- پنل هر شهر --- */
.ona-tab-panel { display: none; animation: onaFadeIn 0.35s ease; }
.ona-tab-panel.active { display: block; }

@keyframes onaFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- گرید کارت‌ها --- */
.ona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.ona-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(20, 30, 50, 0.08);
    border: 1px solid #eef0f2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.ona-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(20, 30, 50, 0.14);
}

.ona-card-photo {
    width: 100%;
    height: 190px;
    background: #f0f3f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ona-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ona-avatar-placeholder {
    font-size: 60px;
    color: #b7c0cc;
}

.ona-card-body {
    padding: 18px 18px 22px;
    text-align: right;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ona-card-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1c2733;
}

.ona-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}

.ona-district, .ona-exp {
    font-size: 13.5px;
    color: #5b6773;
    margin: 4px 0;
}

.ona-bio {
    font-size: 13.5px;
    color: #6b7684;
    line-height: 1.8;
    margin: 10px 0 14px;
}

.ona-contact {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ona-btn {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.ona-btn:hover { opacity: 0.85; }

.ona-btn-call { background: #1a73e8; color: #fff; }
.ona-btn-tg   { background: #229ed9; color: #fff; }
.ona-btn-ig   { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); color: #fff; }

.ona-empty {
    text-align: center;
    color: #8a94a0;
    padding: 40px 0;
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .ona-tab-btn { padding: 8px 16px; font-size: 13.5px; }
    .ona-card-photo { height: 160px; }
}
