@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');
        * { margin: 0; padding: 0; box-sizing: border-box; }
        html, body {
  overscroll-behavior: none;
  touch-action: manipulation;
}
        body { 
            font-family: 'Vazirmatn', sans-serif; 
            overflow-x: hidden;
            background: #f3f4f6;
        }
        .icon { 
            font-family: 'Material Icons'; 
            font-size: 24px; 
            vertical-align: middle;
        }
        .hidden { display: none !important; }
        .show { display: block !important; }
        #app-container { 
            transition: filter 0.3s; 
            max-width: 430px;
            margin: 0 auto;
            min-height: 100vh;
            background: white;
            position: relative;
        }
        .footer-btn { 
            transition: all 0.3s;
            position: relative;
        }
        .footer-btn.active { 
            color: #ef4444;
            font-weight: 600;
        }
        .footer-btn:hover {
            transform: scale(1.05);
        }
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 50;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.3s;
            z-index: 201;
        }
        .modal-content {
            background: white;
            width: 100%;
            max-width: 430px;
            max-height: 90vh;
            border-radius: 24px 24px 0 0;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        }
        .modal-header {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: white;
            position: sticky;
            top: 0;
            z-index: 10;
            border-radius: 24px 24px 0 0;
        }
        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 1rem;
        }
        .image-preview-item {
            position: relative;
            width: 100%;
            padding-top: 100%;
            border: 1px solid #ddd;
            border-radius: 8px;
            overflow: hidden;
            background-color: #f0f0f0;
        }
        .image-preview-item img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .upload-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            color: white;
            transition: opacity 0.3s;
        }
        .upload-progress-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 5px;
            background: #3b82f6;
            width: 0%;
            transition: width 0.2s;
        }
        .upload-status-icon {
            font-size: 32px;
            display: none;
        }
        .upload-success .upload-status-icon.success {
            display: block;
            color: #22c55e;
        }
        .upload-success .upload-overlay {
            background: rgba(16, 185, 129, 0.5);
        }
        .location-modal-content {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-width: 430px;
            margin: 0 auto;
            background: white;
            border-radius: 24px 24px 0 0;
            max-height: 70vh;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.3s;
        }
        .location-item {
            padding: 0.875rem 1rem;
            border-bottom: 1px solid #f3f4f6;
            transition: background 0.2s;
            overflow: visible !important;
        }
        .location-item:hover {
            background: #f9fafb;
        }
        .location-item-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }
        .location-item-name {
            font-weight: 500;
            color: #1f2937;
        }
        .location-arrow {
            transition: transform 0.3s;
            color: #6b7280;
        }
        .location-arrow.open {
            transform: rotate(90deg);
        }
        .location-sublist {
            max-height: 0;
            overflow: auto;
            transition: max-height 0.3s ease-out;
            padding-right: 1rem;
            position: static !important;
        }
        .location-sublist.open {
            max-height: 500px;
            margin-top: 0.5rem;
        }
        .location-subitem {
            padding: 0.625rem 1rem;
            cursor: pointer;
            border-radius: 8px;
            transition: all 0.2s;
            color: #4b5563;
        }
        .location-subitem:hover {
            background: #f3f4f6;
            color: #1f2937;
            padding-right: 1.25rem;
        }
        #details-view {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: white;
            z-index: 60;
            transform: translateX(100%);
            transition: transform 0.3s ease-in-out;
            max-width: 430px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            opacity: 0;
            animation-name : slideindetailed;
            animation-duration: 0.2s;
            animation-fill-mode: forwards;
        }
            @keyframes slideindetailed {
            from {opacity: 1;}
            to {opacity: 0;}
            }
        #details-view.active {
            transform: translateX(0);
            animation-name : slideindetailedactivate;
            animation-duration: 0.2s;
            animation-fill-mode: forwards;
        }
            @keyframes slideindetailedactivate {
            from {opacity: 0;}
            to {opacity: 1;}
            }
        .form-container {
            padding: 1rem;
        }
        .form-group {
            margin-bottom: 1rem;
        }
        .form-label {
            display: block;
            margin-bottom: 0.375rem;
            font-weight: 500;
            color: #374151;
            font-size: 0.875rem;
        }
        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 0.625rem 0.875rem;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            font-size: 0.9375rem;
            transition: all 0.2s;
        }
        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }
        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }
        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s;
            cursor: pointer;
            border: none;
            font-size: 0.9375rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        .btn-primary {
            background: #ef4444;
            color: white;
        }
        .btn-primary:hover {
            background: #dc2626;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
        }
        .btn-secondary {
            background: #10b981;
            color: white;
        }
        .btn-secondary:hover {
            background: #059669;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
        }
        .btn-outline {
            background: transparent;
            color: #ef4444;
            border: 2px solid #ef4444;
        }
        .btn-outline:hover {
            background: #ef4444;
            color: white;
        }
        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }
        .card {
            background: white;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        .card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            transform: translateY(-2px);
        }
        .ad-card {
            display: flex;
            gap: 1rem;
            cursor: pointer;
            margin-bottom: 1rem;
            position: relative;
        }
        .ad-card-image {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            object-fit: cover;
            background: #f3f4f6;
            flex-shrink: 0;
        }
        .ad-card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .ad-card-title {
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.25rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .ad-card-price {
            color: #ef4444;
            font-weight: 500;
            font-size: 0.875rem;
        }
        .ad-card-location {
            color: #6b7280;
            font-size: 0.8125rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .ad-card-time {
            color: #9ca3af;
            font-size: 0.75rem;
        }
        .ring-2{
            border-radius : 10px;
        }
        .status-badge {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
            padding: 0.25rem 0.625rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            z-index: 10;
        }
        .status-approved {
            background: #10b981;
            color: white;
        }
        .status-pending {
            background: #f59e0b;
            color: white;
        }
        .status-rejected {
            background: #ef4444;
            color: white;
        }
        .status-expired {
            background: #6b7280;
            color: white;
        }
        .category-icon {
            width: 60px;
            height: 60px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            transition: all 0.3s;
        }
        .category-icon:hover {
            transform: scale(1.1) rotate(5deg);
        }
        .message {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            animation: slideDown 0.3s;
        }
        .message-success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #10b981;
            z-index: 10000;
        }
        .message-error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #ef4444;
            z-index: 10000;
        }
        .message-info {
            background: #dbeafe;
            color: #1e40af;
            border: 1px solid #3b82f6;
            z-index: 10000;
        }
        .message-warning {
            background: #fed7aa;
            color: #92400e;
            border: 1px solid #f59e0b;
            z-index: 10000;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        @keyframes slideDown {
            from { 
                transform: translateY(-20px) translateX(-50%); 
                opacity: 0; 
            }
            to { 
                transform: translateY(0) translateX(-50%); 
                opacity: 1; 
            }
        }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        .spinner {
            border: 3px solid #f3f4f6;
            border-top: 3px solid #ef4444;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            gap: 1rem;
        }
        .tab-nav {
            display: flex;
            gap: 0.5rem;
            padding: 0.5rem;
            background: #f3f4f6;
            border-radius: 12px;
            margin-bottom: 1rem;
        }
        .tab-btn {
            flex: 1;
            padding: 0.625rem;
            border: none;
            background: transparent;
            color: #6b7280;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s;
            cursor: pointer;
        }
        .tab-btn.active {
            background: white;
            color: #ef4444;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block !important;
            animation: fadeIn 0.3s;
        }
        .search-container {
            position: relative;
        }
        .search-input {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.75rem;
            background: #f3f4f6;
            border: none;
            border-radius: 12px;
            font-size: 0.9375rem;
            transition: all 0.3s;
        }
        .search-input:focus {
            outline: none;
            background: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        .search-icon {
            position: absolute;
            left: 0.875rem;
            top: 50%;
            transform: translateY(-50%);
            color: #6b7280;
        }
        .community-checkbox {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem;
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 8px;
            margin-bottom: 1rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        .community-checkbox:hover {
            background: #fee2e2;
            border-color: #fca5a5;
        }
        .community-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        .perks-grid {
            display: grid;
            gap: 0.5rem;
        }
        .perk-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            background: #f9fafb;
            border-radius: 6px;
            transition: all 0.2s;
        }
        .perk-item:hover {
            background: #f3f4f6;
        }
        .perk-item input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }
        .comment-item {
        transition: all 0.3s;
        }
        .comment-item:hover {
            background: #f9fafb;
            margin: 0 -0.5rem;
            padding: 0.5rem;
        }
        .btn.active {
            font-weight: 600;
        }
        .animate-pulse {
            animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
        }
        @keyframes pulse {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: .5;
            }
        }
        .spinner-small {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #f3f4f6;
            border-top: 2px solid #ef4444;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
    @media (max-width: 640px) {
        #admin-page .card {
            padding: 0.75rem;
        }
        #admin-page .btn-sm {
            padding: 0.25rem 0.5rem;
            font-size: 0.75rem;
        }
        #admin-page .tab-nav {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        #admin-page .tab-btn {
            white-space: nowrap;
            min-width: fit-content;
        }
        }
        .truncate {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .min-w-0 {
            min-width: 0;
        }
    @media (max-width: 400px) {
        .grid-cols-3 {
            gap: 0.5rem;
        }
        .category-icon {
            width: 50px;
            height: 50px;
            font-size: 24px;
        }
        .category-btn span {
            font-size: 0.65rem;
        }
    }
    #landing-page-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s;
    }
    .landing-page-content {
        background: white;
        width: 90%;
        max-width: 500px;
        max-height: 90vh;
        border-radius: 20px;
        overflow-y: auto;
        position: relative;
        animation: slideUp 0.4s;
    }
    .landing-close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.7);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        transition: all 0.3s;
    }
    .landing-close-btn:hover {
        background: rgba(239, 68, 68, 0.9);
        transform: scale(1.1);
    }

    .landing-top-section {
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid #e5e7eb;
    }
    .landing-top-icon {
        font-size: 1.5rem;
        font-weight: bold;
        color: #ef4444;
    }
    .landing-top-icon img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        margin: 0 auto;
    }
    .landing-main-image {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }
    .landing-bottom-section {
        padding: 1.5rem;
        text-align: center;
    }
    .landing-bottom-text {
        color: #374151;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    .landing-button {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        background: #ef4444;
        color: white;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
    }
    .landing-button:hover {
        background: #dc2626;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    }
    .image-delete-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        background-color: rgba(239, 68, 68, 0.8);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        padding: 2px 6px;
        transition: all 0.2s;
        z-index: 10;
    }
    .image-delete-btn:hover {
        background-color: #dc2626;
        transform: scale(1.05);
    }
    .slider-container {
        position: relative;
        width: 100%;
        overflow: hidden;
        border-radius: 12px;
        background-color: #e5e7eb;
    }
    .slider-wrapper {
        display: flex;
        transition: transform 0.3s ease-in-out;
    }
    .slider-slide {
        min-width: 100%;
        position: relative;
    }
    .slider-slide img {
        width: 100%;
        display: block;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    .slider-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .slider-control.prev { right: 10px; }
    .slider-control.next { left: 10px; }
    .slider-counter {
        position: absolute;
        bottom: 10px;
        left: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 0.8rem;
        font-weight: 500;
    }
    .slider-fullscreen-btn {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .fullscreen-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s;
    }
    .fullscreen-overlay img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    .fullscreen-close-btn {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 28px;
    }
    .fullscreen-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        border: none;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 110;
        transition: background-color 0.2s;
    }
    .fullscreen-control:hover {
        background-color: rgba(255, 255, 255, 0.4);
    }
    .fullscreen-control.prev { right: 15px; }
    .fullscreen-control.next { left: 15px; }
    @keyframes kenburns {
        0% {
            transform: scale(1) translate(0, 0);
            transform-origin: center center;
        }
        25% {
            transform: scale(1.1) translate(2%, -2%);
            transform-origin: top left;
        }
        50% {
            transform: scale(1) translate(0, 0);
            transform-origin: center center;
        }
        75% {
            transform: scale(1.1) translate(-2%, 2%);
            transform-origin: bottom right;
        }
        100% {
            transform: scale(1) translate(0, 0);
            transform-origin: center center;
        }
    }
    .slider-slide.is-animating img {
        animation: kenburns 15s ease-in-out infinite;
    }
.sponsor-ad {
    background-color: #e7e7e7;
}
.ad-list-badge {
    position: absolute;
    width: 120px;
    text-align: center;
    transform: rotate(-45deg);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 0;
    z-index: 5;
    top: 15px;
    left: -32px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.ad-card-price span {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
}
.price-deposit {
    color: #1d4ed8;
}
.price-rent {
    color: #059669;
}
.ad-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.ad-type-sale {
    background-color: #fef2f2;
    color: #b91c1c;
}
.ad-type-rent {
    background-color: #eff6ff;
    color: #1d4ed8;
}

/* Instagram-style Interaction Buttons */
.interaction-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #262626;
    font-size: 1.5rem;
}

.interaction-btn:hover {
    transform: scale(1.1);
}

.interaction-btn .material-icons {
    font-size: 28px;
}

.interaction-btn.liked .heart-icon {
    color: #ed4956;
    font-variation-settings: 'FILL' 1;
}

.heart-icon {
    transition: all 0.3s;
}

.salavat-btn {
    color: #10b981;
    font-size: medium;
    background: aliceblue;
    border-radius: 20px;
}

.salavat-btn:hover {
    color: #059669;
    font-size: medium;
    background: rgb(208, 233, 255);
    border-radius: 20px;
}

/* Comment Reply Styles */
.comment-reply-section {
    margin-top: 0.75rem;
    padding-right: 0;
    border-right: none;
}

.reply-toggle-btn {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
}

.reply-toggle-btn:hover {
    color: #374151;
}

.reply-form {
    margin-top: 0.5rem;
    display: none;
    animation: fadeIn 0.3s;
}

.reply-form.active {
    display: block;
}

.reply-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    resize: vertical;
}
.reply-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.reply-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Share Modal */
.share-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 100000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
#share-modal-overlay {
    z-index: 199 !important;
}

.share-modal.active {
    transform: translateY(0);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.share-option:hover {
    background: #f3f4f6;
}

.share-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.share-option-label {
    font-size: 0.75rem;
    color: #6b7280;
}

#details-view #reactions-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    
    background: white;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 20; 
}
#details-content {
    padding-bottom: 180px; 
}

.location-item.search-result {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
        }
.location-context {
            font-size: 0.8rem;
            color: #6b7280;
        }
.search-result-header {
            font-weight: bold;
            padding: 10px 16px;
            background-color: #f3f4f6; 
            color: #4b5563;
            font-size: 0.9rem;
        }
/* =====================================================
   استایل‌های فلش انتخاب‌گر لوکیشن - بزرگ‌تر و با انیمیشن
   نسخه بهبود یافته برای تاچ موبایل
   ===================================================== */

/* فلش‌های انتخاب‌گر لوکیشن - سایز بزرگ‌تر */
.location-arrow {
    font-size: 28px !important;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin-right: 8px;
    background: transparent;
}

/* هاور روی فلش */
.location-arrow:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* حالت فعال (کلیک یا لمس) */
.location-arrow:active {
    transform: scale(0.9);
}

/* انیمیشن حرکت به سمت متن هنگام لمس */
.location-arrow.touched,
.location-item:hover .location-arrow:not(.open) {
    animation: arrowBounce 0.5s ease;
    transform: translateX(-8px);
}

/* انیمیشن Bounce */
@keyframes arrowBounce {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-12px);
    }
    50% {
        transform: translateX(-6px);
    }
    75% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(-8px);
    }
}

/* حالت باز شدن زیرشاخه - اوررایت استایل قبلی */
.location-arrow.open {
    transform: rotate(90deg) !important;
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* آیتم‌های لوکیشن - بهبود یافته */
.location-item {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
    padding: 0 !important;
}

.location-item:hover {
    background-color: #f9fafb;
}

/* هدر آیتم لوکیشن - بهبود یافته */
.location-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    min-height: 60px;
}

/* نام آیتم لوکیشن - بهبود یافته */
.location-item-name {
    flex: 1;
    cursor: pointer;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s;
}

.location-item-name:hover {
    color: #ef4444;
}

/* زیر آیتم‌ها - بهبود یافته */
.location-subitem {
    padding: 12px 24px !important;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    min-height: 48px;
    display: flex;
    align-items: center;
}

.location-subitem:hover {
    background-color: #fef2f2;
    color: #ef4444;
    padding-right: 28px !important;
}

.location-subitem:last-child {
    border-bottom: none;
}

/* لیست زیرشاخه - بهبود یافته */
.location-sublist {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fafafa;
    border-radius: 0 0 8px 8px;
}

.location-sublist.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
    margin-top: 0;
}

/* =====================================================
   استایل‌های اضافی برای تاچ‌پد موبایل
   ===================================================== */

@media (max-width: 768px) {
    /* فلش‌ها در موبایل بزرگ‌تر باشند */
    .location-arrow {
        font-size: 32px !important;
        min-width: 56px;
        min-height: 56px;
    }
    
    /* فاصله بیشتر برای آیتم‌ها */
    .location-item-header {
        padding: 16px 16px;
        min-height: 68px;
    }
    
    /* زیر آیتم‌ها فاصله بیشتر */
    .location-subitem {
        padding: 16px 28px !important;
        min-height: 56px;
    }
    
    /* انیمیشن لمسی برای موبایل */
    .location-arrow:active {
        animation: arrowPulse 0.3s ease;
    }
    
    @keyframes arrowPulse {
        0% {
            transform: scale(1);
            background-color: transparent;
        }
        50% {
            transform: scale(1.2);
            background-color: rgba(239, 68, 68, 0.2);
        }
        100% {
            transform: scale(1);
            background-color: rgba(239, 68, 68, 0.1);
        }
    }
}

/* =====================================================
   استایل‌های فرمت جدید لوکیشن آگهی
   ===================================================== */

.ad-card-location {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
    flex-wrap: wrap;
}

.ad-card-location .material-icons {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px !important;
}

/* =====================================================
   استایل‌های بهبود یافته نتایج جستجو
   ===================================================== */

.search-result-header {
    font-size: 13px;
    color: #6b7280;
    padding: 10px 16px 6px;
    background-color: #f9fafb;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.location-item.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px !important;
    min-height: 56px;
}

.location-item.search-result:hover {
    background-color: #fef2f2;
}

.location-context {
    font-size: 12px;
    color: #9ca3af;
    margin-right: auto;
    padding-right: 12px;
}