#adViewMap {
            height: 240px;
            width: 100%;
            border-radius: 0.9rem;
            z-index: 1;
            background: #eef2f7;
        }
        @media (min-width: 768px) {
            #adViewMap { height: 300px; }
        }
        .leaflet-container { font-family: 'Vazirmatn', sans-serif; }
        #adViewMap.is-loading::after {
            content: 'در حال بارگذاری نقشه...';
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            color: #64748b;
            background: #eef2f7;
            z-index: 2;
            border-radius: inherit;
        }

        /* Key info card */
        .key-info-item {
            display: flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.55rem 0.65rem;
            border-radius: 0.75rem;
            border: 1px solid #f1f5f9;
            background: #fafafa;
            min-width: 0;
            transition: background 0.15s ease, border-color 0.15s ease;
        }
        .key-info-item:hover {
            background: #f8fafc;
            border-color: #e2e8f0;
        }
        .key-info-icon {
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 0.5rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            font-size: 0.7rem;
        }
        .key-info-label {
            font-size: 0.625rem;
            color: #94a3b8;
            font-weight: 500;
            line-height: 1.2;
            margin-bottom: 0.1rem;
        }
        .key-info-value {
            font-size: 0.75rem;
            font-weight: 600;
            color: #1f2937;
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        @media (min-width: 640px) {
            .key-info-item {
                padding: 0.65rem 0.75rem;
                gap: 0.65rem;
            }
            .key-info-icon {
                width: 1.9rem;
                height: 1.9rem;
                font-size: 0.75rem;
            }
            .key-info-label { font-size: 0.6875rem; }
            .key-info-value { font-size: 0.8125rem; }
        }
        /**
 * Mobile Sticky Bar Styles
 * فقط برای موبایل فعال است
 */

.mobile-sticky-bar {
    display: none; /* پیش‌فرض مخفی */
}

/* فقط موبایل */
@media (max-width: 767px) {

    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        display: flex;
        gap: 8px;
        padding: 4px;
        background-color: #ffffff;
        border-top: 1px solid #e5e7eb;
padding-bottom: 4px !important;
    }

    .mobile-sticky-btn {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;

        padding: 10px 10px;
        font-size: 12px;
        font-weight: 500;
        border-radius: 10px;
        color: #ffffff;

        transition: background-color 0.2s ease;
    }

    .mobile-call-btn {
        background-color: var(--dosta-primary-600, #DC371B); /* blue-600 */
    }

    .mobile-call-btn:hover {
        background-color: var(--dosta-primary-700, #B42D16); /* blue-700 */
    }

    .mobile-chat-btn {
        background-color: #16a34a; /* green-600 */
    }

    .mobile-chat-btn:hover {
        background-color: #15803d; /* green-700 */
    }

    /* جلوگیری از پوشانده شدن محتوای صفحه */
    body {
        padding-bottom: 80px;
    }
}

        body { font-family: 'Vazirmatn', sans-serif; direction: rtl; }
        .aspect-4-3 { aspect-ratio: 4 / 3; }
        .thumbnail-scroll { scrollbar-width: none; -ms-overflow-style: none; }
        .thumbnail-scroll::-webkit-scrollbar { display: none; }
        .fade-in { animation: fadeIn 0.5s ease-in; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
        .prose-lg { font-size: 1.125rem; line-height: 1.75; }
        .gradient-price { background: linear-gradient(135deg, var(--dosta-primary-600, #DC371B), var(--dosta-primary-700, #B42D16)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

        /* Ad description card */
        .ad-description-card {
            border: 1px solid rgba(15, 23, 42, 0.06);
            box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
        }
        .ad-description-body {
            font-size: 0.8125rem;
            line-height: 1.85;
            color: #4b5563;
            text-align: right;
            word-break: break-word;
            overflow-wrap: anywhere;
        }
        .ad-description-body p {
            margin: 0;
            padding: 0;
        }
        .ad-description-body p + p {
            border-top: 1px dashed #f1f5f9;
        }
        @media (min-width: 640px) {
            .ad-description-body {
                font-size: 0.875rem;
                line-height: 1.9;
            }
        }
        @media (min-width: 1024px) {
            .ad-description-body {
                font-size: 0.9375rem;
                line-height: 1.95;
                max-width: 72ch;
            }
        }
        .ad-description-body.is-collapsed {
            max-height: 12.5rem;
            overflow: hidden;
        }
        @media (min-width: 640px) {
            .ad-description-body.is-collapsed {
                max-height: 14rem;
            }
        }
        @media (min-width: 1024px) {
            .ad-description-body.is-collapsed {
                max-height: 16rem;
            }
        }
        .ad-description-fade {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 3.5rem;
            background: linear-gradient(to top, #fff 15%, rgba(255,255,255,0));
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .ad-description-wrap.is-collapsed .ad-description-fade {
            opacity: 1;
        }
        .ad-desc-toggle {
            display: none;
            margin-top: 0.75rem;
            width: 100%;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.55rem 0.85rem;
            border-radius: 0.75rem;
            border: 1px solid #e5e7eb;
            background: #f9fafb;
            color: #374151;
            font-size: 0.8125rem;
            font-weight: 600;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .ad-desc-toggle:hover {
            background: #eff6ff;
            border-color: #bfdbfe;
            color: #1d4ed8;
        }
        .ad-desc-toggle.is-visible {
            display: inline-flex;
        }
        .ad-desc-toggle i {
            font-size: 0.7rem;
            transition: transform 0.2s ease;
        }
        .ad-desc-toggle[aria-expanded="true"] i {
            transform: rotate(180deg);
        }

        /* Modal animations */
        .modal-slide-up {
            animation: modalSlideUp 0.3s ease-out;
        }

        @keyframes modalSlideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }

        /* Custom checkbox styling */
        #rulesCheckbox:checked {
            background-color: var(--dosta-primary-600, #DC371B);
            border-color: var(--dosta-primary-600, #DC371B);
        }

        /* Button hover effects */
        #showPhoneBtn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
        }

        /* Favorite heart animations */
        .fav-heart-bounce {
            animation: heartBounce 0.45s cubic-bezier(0.17, 0.89, 0.32, 1.49);
        }
        @keyframes heartBounce {
            0% { transform: scale(1); }
            25% { transform: scale(0.8); }
            50% { transform: scale(1.3); }
            75% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        .fav-particles {
            position: relative;
        }
        .fav-particles::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(239,68,68,0.3) 0%, transparent 70%);
            animation: favPulseRing 0.6s ease-out forwards;
            pointer-events: none;
        }
        @keyframes favPulseRing {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }

        /* Security banner pulse animation */
        .security-icon-pulse {
            animation: iconPulse 3s ease-in-out infinite;
        }
        @keyframes iconPulse {
            0%, 100% { box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2); }
            50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4); }
        }

        /* Security banner expand transition */
        #securityBannerBody {
            transition: max-height 0.4s ease-in-out;
        }

        /* Security tip hover/touch effect */
        .security-tip {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .security-tip:active {
            transform: scale(0.985);
        }
        @media (min-width: 768px) {
            .security-tip:hover {
                transform: translateX(-4px);
                box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            }
        }

        /* Safe area for bottom bar */
        .safe-area-bottom {
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }

        /* Login modal animations */
        .modal-fade-in {
            animation: modalFadeIn 0.3s ease-out;
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Seller info reveal animation */
        .seller-info-card {
            animation: revealSellerInfo 0.5s ease-out;
        }

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

        /* Enhanced mobile responsiveness for owner section */
        @media (max-width: 640px) {
            .owner-section-mobile {
                margin: 0 -0.5rem;
                border-radius: 1.5rem;
            }

            .owner-section-mobile .owner-stats-grid {
                gap: 0.75rem;
            }

            .owner-section-mobile .stat-item {
                padding: 0.5rem;
            }

            /* Minimal mobile edit button styling */
            .owner-section-mobile .mobile-edit-btn {
                box-shadow: 0 2px 4px rgba(250, 62, 31, 0.2);
                border: 1px solid rgba(250, 62, 31, 0.1);
            }

            .owner-section-mobile .mobile-edit-btn:active {
                transform: scale(0.98);
            }
        }

        /* Store badge mobile optimization */
        @media (max-width: 640px) {
            .store-badge-mobile {
                margin: 0.25rem 0;
                border-radius: 0.75rem;
            }

            .store-badge-mobile .store-icon {
                width: 2rem;
                height: 2rem;
            }
        }

        /* Smooth scrolling for mobile */
        @media (max-width: 768px) {
            * {
                -webkit-overflow-scrolling: touch;
            }
        }

        /* Breadcrumb scrollbar hiding */
        .no-scrollbar {
            -ms-overflow-style: none; /* IE and Edge */
            scrollbar-width: none; /* Firefox */
        }
        .no-scrollbar::-webkit-scrollbar {
            display: none; /* Chrome, Safari and Opera */
        }

        /* Image lightbox / zoom viewer */
        #imageLightbox {
            position: fixed;
            inset: 0;
            z-index: 10050;
            background: rgba(0, 0, 0, 0.94);
            display: none;
            flex-direction: column;
            opacity: 0;
            transition: opacity 0.2s ease;
            touch-action: none;
            overscroll-behavior: none;
        }
        #imageLightbox.is-open {
            display: flex;
            opacity: 1;
        }
        #imageLightbox.is-closing {
            opacity: 0;
        }
        .lightbox-toolbar {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            padding-top: max(0.75rem, env(safe-area-inset-top));
            color: #fff;
            background: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent);
        }
        .lightbox-toolbar .lb-btn {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s ease, transform 0.15s ease;
            backdrop-filter: blur(8px);
        }
        .lightbox-toolbar .lb-btn:hover {
            background: rgba(255,255,255,0.22);
        }
        .lightbox-toolbar .lb-btn:active {
            transform: scale(0.94);
        }
        .lightbox-counter {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            opacity: 0.9;
        }
        .lightbox-stage {
            flex: 1;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: grab;
            min-height: 0;
        }
        .lightbox-stage.is-dragging {
            cursor: grabbing;
        }
        .lightbox-stage img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            user-select: none;
            -webkit-user-drag: none;
            transform-origin: center center;
            will-change: transform;
            transition: transform 0.05s linear;
        }
        .lightbox-stage.is-zooming img {
            transition: none;
        }
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(8px);
            transition: background 0.2s ease;
        }
        .lightbox-nav:hover {
            background: rgba(255,255,255,0.25);
        }
        #imageLightbox.has-many .lightbox-nav {
            display: inline-flex;
        }
        .lightbox-nav.prev { right: 12px; }
        .lightbox-nav.next { left: 12px; }
        .lightbox-hint {
            position: absolute;
            bottom: max(1rem, env(safe-area-inset-bottom));
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            color: rgba(255,255,255,0.7);
            font-size: 0.75rem;
            background: rgba(0,0,0,0.35);
            padding: 0.4rem 0.85rem;
            border-radius: 999px;
            pointer-events: none;
            white-space: nowrap;
        }
        .main-image-wrap {
            cursor: zoom-in;
            position: relative;
        }
        .main-image-wrap .zoom-hint {
            position: absolute;
            left: 12px;
            bottom: 12px;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(0,0,0,0.45);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            pointer-events: none;
            opacity: 0.85;
            backdrop-filter: blur(4px);
        }
        body.lightbox-open {
            overflow: hidden;
        }
        body.lightbox-open .mobile-sticky-bar {
            display: none !important;
        }
        @media (max-width: 640px) {
            .lightbox-nav.prev { right: 8px; }
            .lightbox-nav.next { left: 8px; }
            .lightbox-toolbar .lb-btn {
                width: 40px;
                height: 40px;
            }
        }
