/* ==================== استایل‌های اصلی ==================== */


body{
	font-family: 'Shabnam', 'Segoe UI', Roboto, Tahoma, sans-serif;
	background: #f4f6fa !important;
}
a , h1 , h2 , h3, h4, h5, h6, p, input ,span ,button, tr, td, th, strong{
	font-family: 'Shabnam' !important;
}

:root {
    --primary-color: #0a1157;
	--second-color: #388E3C;
	}
.persian-osm-map-container {
    direction: rtl;
    font-family: 'Shabnam', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

#pom-front-map {
    direction: ltr;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
}
/* ==================== فیلتر دسته‌بندی ==================== */
.pom-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.pom-filter-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 500;
}

.pom-filter-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.pom-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pom-section .pom-map-top .leaflet-pane img.leaflet-marker-icon{
	width:25px !important;
	height: 35px !important;
}
/* ==================== پاپ‌آپ ==================== */
.pom-popup {
    max-width: 280px;
    direction: rtl;
    text-align: right;
}

.pom-popup-header h3 {
    margin: 0;
    font-size: 15px;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.4;
    flex: 1;
}

.pom-popup-category {

}

.pom-popup-image {
    border-radius: 4px;
    overflow: hidden;
}

.pom-popup-image img {
    width: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pom-popup-content {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}


.pom-popup-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pom-popup-content i {
    width: 22px;
    text-align: center;
    color: var(--primary-color);
    font-size: 15px;
    margin-left: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==================== لیست مکان‌ها (دسکتاپ) ==================== */
.pom-markers-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.pom-columns-1 { grid-template-columns: 1fr; }
.pom-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pom-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pom-columns-4 { grid-template-columns: repeat(4, 1fr); }

.pom-marker-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pom-marker-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pom-marker-image {
    height: 150px;
    overflow: hidden;
}

.pom-marker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pom-marker-item:hover .pom-marker-image img {
    transform: scale(1.05);
}

.pom-marker-content {
    padding: 12px;
}

.pom-marker-content h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #2d3748;
}

.pom-marker-content p {
    margin: 6px 0;
    font-size: 12px;
    color: #718096;
}

.pom-marker-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pom-show-on-map {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
}

.pom-show-on-map:hover {
    background: var(--second-color);;
}

/* ==================== استایل چینش مشابه نشان ==================== */
.neshan-style-container {
    direction: rtl;
    font-family: 'Shabnam', 'Segoe UI', Roboto, Tahoma, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.neshan-style-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 10px;
	padding-left: 0;
    background: white;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 0;
    border-top: 1px solid #eee;
}
.neshan-search-wrapper .neshan-search-clear{
	left: 0 !important;
	background: #008000 !important;
}
.pom-neshan-badge-large {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.title-map-neshan{
	width: 20%;
}
.neshan-search-box {
    display: flex;
    width: 50%;
    max-width: 100%;
}
.neshan-search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 0px 12px 12px 0px;
    font-size: 14px;
    transition: border-color 0.3s;
    margin-left: -1px;
	width: 70%;
}

.neshan-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.neshan-search-box button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px 0px 0px 10px;
    padding: 13px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.neshan-search-box button:hover {
    background: var(--second-color);;
}

/* ==================== چیدمان اصلی (دسکتاپ) ==================== */
.neshan-main-wrapper {
    overflow: hidden;
}

.neshan-map-side {
    width: 100%;
    background: #f5f5f5;
    padding: 0;
}

#neshan-style-map {
    flex: 1;
    width: 100%;
    border-radius: 0;
    border: none;
}

.neshan-map-filters {
    background: white;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    width: 55%;
}

.neshan-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-left: 4px solid var(--primary-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.neshan-filter-btn:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.neshan-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--second-color);;
}

.neshan-list-side {
    flex: 0 0 16%;
    width: 16%;
    min-width: 250px;
    max-width: 350px;
    background: white;
    border-left: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.neshan-list-header {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    background: #f9f9f9;
}

.neshan-list-header h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.neshan-sort-buttons {
    display: flex;
    gap: 8px;
}

.neshan-sort-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.neshan-sort-btn:hover {
    background: #f5f5f5;
}

.neshan-sort-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--second-color);
}

/* ==================== لیست مکان‌ها (دسکتاپ - نسخه نشان) ==================== */
.neshan-markers-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.neshan-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.neshan-empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.neshan-marker-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
	border-left: 3px solid #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
	display: flex;
}

.neshan-marker-item:hover {
    background: #e8f5e9;
	border-left: 3px solid var(--second-color);
}

.neshan-marker-item.active {
    background: #e8f5e9;
    border-left: 3px solid var(--second-color);
}

.neshan-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.neshan-item-number {
    background: #7d8693;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.neshan-marker-item.active .neshan-item-number {
    background: var(--second-color);;
}

.neshan-item-header h4 {
    margin: 0;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}
.neshan-items-list {
    width: 75%;
}
.neshan-show-list-item {
    width: 25%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.neshan-item-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.neshan-item-address,
.neshan-item-phone {
    margin: 5px 0;
    font-size: 11px;
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.neshan-item-address i,
.neshan-item-phone i {
    color:var(--primary-color);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}
.neshan-show-on-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
    color: #42464f;
    font-size: 11px;
    font-weight: normal;
}

.neshan-show-on-map-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== استایل مخصوص موبایل (اسکرول افقی) ==================== */
@media (max-width: 768px) {
    /* تغییر چیدمان اصلی در موبایل */
    .neshan-main-wrapper {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    
    /* مخفی کردن لیست سایدبار در موبایل */
    .neshan-list-side {
        display: none !important;
    }
    
    /* نمایش نوار لیست افقی */
    .neshan-mobile-horizontal-list {
        display: block !important;
        position: relative;
        width: 100%;
        background: white;
        border-bottom: 1px solid #eaeaea;
        z-index: 1000;
        order: 1; /* بالا قرار بگیرد */
    }
    
    /* نمایش نقشه در کل عرض */
    .neshan-map-side {
        width: 100%;
    }
    
    #neshan-style-map {
        flex: none;
        height: 100%;
    }
    
    .neshan-mobile-list-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 12px 10px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        scroll-behavior: smooth;
        display: flex !important; /* نمایش flex برای کنترل بهتر */
        flex-wrap: nowrap;
    }
    
    .neshan-mobile-list-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .neshan-mobile-list-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background: #f8f9fa;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .neshan-mobile-list-header h3 {
        margin: 0;
        font-size: 14px;
        color: #2d3748;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .neshan-mobile-list-count {
        background: var(--primary-color);
        color: white;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: bold;
        margin-right: 8px;
    }
    
    /* آیتم‌های افقی */
    .neshan-mobile-marker-item {
        display: inline-block;
        width: 150px;
        min-width: 150px; /* عرض ثابت */
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        margin: 0 8px;
        vertical-align: top;
        white-space: normal;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        flex-shrink: 0; /* جلوگیری از کوچک شدن */
    }
    
    .neshan-mobile-marker-item:first-child {
        margin-right: 15px;
    }
    
    .neshan-mobile-marker-item:last-child {
        margin-left: 15px;
    }
    
    .neshan-mobile-marker-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .neshan-mobile-marker-item.active {
        border: 2px solid var(--primary-color);
        background: #f0f9f0;
    }
    
    .neshan-mobile-item-content {
        padding: 12px;
    }
    
    .neshan-mobile-item-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }
    
    .neshan-mobile-item-number {
        background: var(--primary-color);
        color: white;
        min-width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        font-weight: bold;
        flex-shrink: 0;
    }
    
    .neshan-mobile-marker-item.active .neshan-mobile-item-number {
        background: var(--second-color);;
    }
    
    .neshan-mobile-item-header h4 {
        margin: 0;
        font-size: 14px;
        color: #2d3748;
        font-weight: 600;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .neshan-mobile-item-category {
        display: inline-block;
        padding: 3px 10px;
        background: var(--primary-color);
        color: white;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 500;
        margin-bottom: 8px;
    }
    
    .neshan-mobile-item-details {
        margin-top: 8px;
    }
    
    .neshan-mobile-item-address,
    .neshan-mobile-item-phone {
        margin: 4px 0;
        font-size: 11px;
        color: #666;
        display: flex;
        align-items: flex-start;
        gap: 6px;
        line-height: 1.5;
    }
    
    .neshan-mobile-item-address i,
    .neshan-mobile-item-phone i {
        color: var(--primary-color);
        font-size: 11px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    .neshan-mobile-item-address span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    
    /* دکمه‌های کنترل اسکرول */
    .neshan-scroll-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        background: #f8f9fa;
        border-top: 1px solid #e2e8f0;
    }
    .neshan-scroll-controls{
		display: none;
	}
    .neshan-scroll-btn {
        background: white;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .neshan-scroll-btn:hover {
        background: var(--primary-color);
        color: white;
    }
    
    .neshan-scroll-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    /* دکمه‌های کوچک‌تر در موبایل */
    .neshan-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pom-neshan-badge-large {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* مخفی کردن نوار جستجو در موبایل اگر فضای کم است */
    .neshan-search-box {
        width: 100%;
        margin-top: 10px;
    }
    
    /* ارتفاع کمتر برای نقشه در موبایل */
    #pom-front-map {
        height: 400px !important;
    }
    
    /* تغییر چیدمان ستون‌ها در موبایل */
    .pom-columns-2, .pom-columns-3, .pom-columns-4 {
        grid-template-columns: 1fr;
    } 
    .neshan-mobile-list-container {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 12px 10px;
        scroll-behavior: smooth;
        display: flex !important;
        flex-wrap: nowrap;
        scrollbar-width: thin; /* Firefox - نازک‌تر کردن اسکرول‌بار */
        scrollbar-color: var(--primary-color) #f0f0f0; /* Firefox - رنگ اسکرول‌بار */
        position: relative;
        -webkit-overflow-scrolling: touch; /* اسکرول نرم در iOS */
    }
    
    /* اسکرول‌بار سفارشی برای وب‌کیت (Chrome, Safari, Edge) */
    .neshan-mobile-list-container::-webkit-scrollbar {
        height: 6px;
        display: block !important; /* همیشه نمایش بده */
    }
    
    .neshan-mobile-list-container::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
        margin: 0 15px;
    }
    
    .neshan-mobile-list-container::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
        transition: background 0.3s;
    }
    
    .neshan-mobile-list-container::-webkit-scrollbar-thumb:hover {
        background: var(--second-color);;
    }
    
    /* نشانگر اسکرول (Scroll Indicator) */
    .neshan-scroll-indicator {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        pointer-events: none;
    }
    
    .neshan-scroll-dot {
        width: 8px;
        height: 8px;
        background: #ccc;
        border-radius: 50%;
        transition: all 0.3s;
    }
    
    .neshan-scroll-dot.active {
        background: var(--primary-color);
        transform: scale(1.2);
    }
    
    /* نشانگر متن "اسکرول کنید" */
    .neshan-scroll-hint {
        text-align: center;
        padding: 8px 0;
        font-size: 12px;
        color: #666;
        background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
        position: relative;
        margin-top: -5px;
    }
    
    .neshan-scroll-hint i {
        margin: 0 5px;
        color: var(--primary-color);
        animation: scrollHint 2s infinite;
    }
    
    @keyframes scrollHint {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
    
    /* آیتم‌های افقی */
    .neshan-mobile-marker-item {
    display: inline-block;
    width: 280px;
    min-width: 150px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin: 0 5px;
    vertical-align: top;
    white-space: normal;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    flex-shrink: 0;
    scroll-snap-align: start;
}
    
    /* اسنپ هنگام اسکرول */
    .neshan-mobile-list-container {
        scroll-snap-type: x mandatory;
    }
    
    /* ... ادامه استایل‌ها ... */
	
.neshan-map-filters {
	width: 100%;
	padding: 10px 0;;
}
.has-global-padding{
	padding: 10px !important;
}
}
/* ==================== حالت دسکتاپ ==================== */
@media (min-width: 769px) {
    /* مخفی کردن لیست موبایل در دسکتاپ */
    .neshan-mobile-horizontal-list {
        display: none !important;
    }
    
    /* نمایش لیست سایدبار در دسکتاپ */
    .neshan-list-side {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .neshan-map-side {
        height: 50vh;
    }
    
    #neshan-style-map {
        height: 100%;
    }
    
    .neshan-mobile-marker-item {
        width: 150px;
    }
    
    #pom-front-map {
        height: 350px !important;
        border-radius: 6px;
    }
    
    .neshan-style-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }


.neshan-style-header {
    padding: 10px 5px;
    margin-bottom: 0;
}
.neshan-search-box button {
    padding: 10px 5px;
}

}

/* ==================== بهبود ظاهر leaflet ==================== */
.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    padding: 5px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    border: 1px solid #e2e8f0 !important;
    animation: popupFadeIn 0.2s ease-out !important;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaflet-popup-close-button {
    width: 28px !important;
    height: 28px !important;
    line-height: 28px !important;
    font-size: 20px !important;
    color: #718096 !important;
    transition: all 0.2s !important;
    border-radius: 50% !important;
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

.leaflet-popup-close-button:hover {
    color: #e53e3e !important;
    background: #fed7d7 !important;
    transform: scale(1.1) !important;
}

/* حذف attribution از نقشه */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-bottom.leaflet-right {
    display: none !important;
}

/* ==================== پنل مدیریت ==================== */
.pom-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.pom-stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.pom-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pom-stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pom-stat-content h3 {
    margin: 0;
    font-size: 26px;
    color: #2d3748;
    font-weight: 700;
}

.pom-stat-content p {
    margin: 6px 0 0 0;
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

.pom-dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pom-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pom-card h2 {
    margin-top: 0;
    color: #2d3748;
    font-size: 17px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 18px;
}

.pom-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pom-color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pom-category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pom-status-active {
    color: #059669;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.pom-status-inactive {
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.pom-filters {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.button-danger {
    color: #dc3232 !important;
    border-color: #dc3232 !important;
}

.button-danger:hover {
    background: #dc3232 !important;
    color: white !important;
}

/* نشان‌دهنده فعال بودن نشان */
.pom-neshan-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
    vertical-align: middle;
}

/* هشدار برای فعال نبودن نشان */
.pom-neshan-alert {
    background: #FFF3CD;
    border: 1px solid #FFECB5;
    border-radius: 6px;
    padding: 12px;
    margin: 10px 0;
    color: #856404;
    font-size: 13px;
    line-height: 1.5;
}

.pom-neshan-alert a {
    color: #0056b3;
    font-weight: 600;
}

/* تنظیمات نشان */
#neshan_settings, #neshan_style_settings {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #FF9800;
}

/* ریسپانسیو برای پنل مدیریت */
@media (max-width: 1200px) {
    .pom-dashboard-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pom-two-column {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .pom-stat-card {
        padding: 15px;
    }
    
    .pom-stat-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .pom-stat-content h3 {
        font-size: 22px;
    }
    
    .pom-card {
        padding: 15px;
    }
    
    .pom-card h2 {
        font-size: 16px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .pom-category-filters {
        padding: 10px;
    }
    
    .pom-filter-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* اسکرول‌بار سفارشی */
.neshan-markers-list::-webkit-scrollbar {
    width: 6px;
}

.neshan-markers-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.neshan-markers-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.neshan-markers-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.leaflet-popup-pane .leaflet-popup{
   margin-bottom: 50px !important;
}

/* استایل‌های جدید برای صفحات تاریخ انقضا */
.pom-expiration-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.pom-expiration-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: right;
    border-bottom: 2px solid #ddd;
}

.pom-expiration-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.pom-expiration-table tr:hover {
    background: #f9f9f9;
}

/* استایل‌های کارت‌های وضعیت */
.pom-status-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 4px solid;
}

.pom-status-card.warning {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.pom-status-card.danger {
    border-left-color: #f44336;
    background: #ffebee;
}

.pom-status-card.success {
    border-left-color: #4CAF50;
    background: #e8f5e9;
}

/* دکمه‌های عملیات */
.pom-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pom-action-buttons .button {
    margin: 0;
}

/* هدر صفحات */
.pom-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.pom-page-header h1 {
    margin: 0;
}

/* آمار سریع */
.pom-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.pom-quick-stat {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.pom-quick-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pom-quick-stat .number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.pom-quick-stat .label {
    color: #666;
    font-size: 14px;
}

.pom-quick-stat.expired .number {
    color: #f44336;
}

.pom-quick-stat.expiring .number {
    color: #ff9800;
}

.pom-quick-stat.valid .number {
    color: #4CAF50;
}

/* فیلترها */
.pom-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pom-filter-tab {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.pom-filter-tab:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.pom-filter-tab.active {
    background: #4CAF50;
    color: white;
    border-color: #388E3C;
}

/* نمودارها */
.pom-chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pom-stat-card {
    animation: fadeIn 0.5s ease-out;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .pom-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .pom-filter-tabs {
        flex-direction: column;
    }
    
    .pom-action-buttons {
        flex-direction: column;
    }
    
    .pom-action-buttons .button {
        width: 100%;
        text-align: center;
    }
}



.pom-lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.pom-lazy-image.loaded {
    opacity: 1;
}
/* به فایل style.css اضافه شود */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* اعمال انیمیشن‌ها */
.pom-marker-item {
    animation: slideInUp 0.5s ease-out;
}

.pom-stat-card:hover {
    animation: pulse 0.5s ease-in-out;
}

.neshan-marker-item.active {
    animation: fadeIn 0.3s ease-out;
}