.gallery-section {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative;
}

.gallery-img-box {
    background: #f8f9fa;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* اصلاح بج‌ها (کوچک‌تر و ظریف‌تر) */
.detail-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px; /* راست‌چین برای فارسی */
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

.badge-pill {
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* اصلاح برچسب فوری (سایز نرمال) */
.badge-urgent-large {
    background: #dc3545; /* قرمز استاندارد */
    color: white;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.4);
    animation: pulse-detail 2s infinite;
    display: inline-block;
    text-align: center;
}

@keyframes pulse-detail {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); } /* انیمیشن ملایم‌تر */
    100% { transform: scale(1); }
}

/* بقیه استایل‌ها */
.detail-header { margin-bottom: 20px; }
.police-alert-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.9rem;
}
.sticky-sidebar { position: sticky; top: 90px; }
.mobile-action-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; padding: 10px; border-top: 1px solid #ddd;
    display: flex; gap: 10px; z-index: 1000;
}
@media (min-width: 992px) { .mobile-action-bar { display: none; } }