        /* کانتینر اصلی */
        .gf-osm-container {
            display: flex;
            gap: 20px;
            direction: rtl;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
/* From Uiverse.io by alexmaracinaru */ 
.cta {
  position: relative;
  margin: auto;
  padding: 12px 18px;
  transition: all 0.2s ease;
  border: none;
  background: none;
  cursor: pointer;
}
.gf-nested-form-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gf-filter-group.gf-static-filters {
  height: 87px;
  margin-bottom: 12px;
  scrollbar-width: none;
  transition: ease-in-out .9s;
}
.gf-filter-group.gf-static-filters:hover {
  height: 501px;
  scrollbar-width: thin
}
#gf-option-194-1 {
  border-radius: 4px;
  background: linear-gradient(330deg, #0fb701 0%, #d3ff00 110%);
  color: white;
  box-shadow: 0px 3px 10px -4px #22be01;
  padding: 1px 10px 6px 10px;
}
#gf-option-194-2 {
  border-radius: 4px;
  color: white;
  padding: 2px 10px 6px 10px;
  background: linear-gradient(330deg, rgb(0, 168, 247) 0%, rgb(0, 235, 247) 110%);
  box-shadow: 0px 3px 10px -4px #1181b1;
}
#gf-option-194-3 {
  border-radius: 4px;
  color: white;
  padding: 3px 10px 6px 10px;
  background: linear-gradient(330deg, #D76F00 0%, #FFC371 110%);
  box-shadow: 0px 3px 10px -4px #db770b;
}
.gf-checkbox-values {
  display: flex;
  gap: 10px 5px;
  flex-wrap: wrap;
}

.gf-filter-label-text {
  width: 63px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: clip;
  overflow: hidden;
}
.gf-filter-label-text:after {
  content:"...";
position: absolute;
right: 98px;
display: flex;
margin-top: -22px;
  
}
.gf-filter-label-text:hover::after {
display: none
}
.gf-filter-label-text:hover {
  width: 82px;
  line-height: 20px;
  white-space: break-spaces;
  overflow: visible;
}
.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50px;
  background: #b1dae7;
  width: 45px;
  height: 45px;
  transition: all 0.3s ease;
}
.gf-edit-button-container {
  text-align: center;
}
.cta span {
position: relative;
  font-weight: 700;
  color: #333;
  margin-left: 7px;
  bottom: 2px;
}
.leaflet-tooltip {
  padding: 8px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 7px;
  color: #5b7497;
  box-shadow: 0 3px 6px -2px rgba(0, 0, 0, 0.11);
  font-size: 11px;
  font-weight: bold;
}
.leaflet-tooltip-left {
  margin-left: 6px;
  top: -6px;
  left: -22px;
  border-left: 4px solid #2475e3 !important;
}
.leaflet-tooltip-right {
  margin-left: 6px;
  top: -6px;
  left: 8px;
  border-right: 4px solid #2475e3 !important;
}
.cta svg {
  position: relative;
  top: 0;
  margin-left: 4px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #234567;
  stroke-width: 2;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.cta:hover:before {
  width: 100%;
  background: #b1dae7;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active {
  transform: scale(0.95);
}

        /* نقشه */
        .gf-osm-map-wrapper {
            flex: 1;
            position: relative;
            direction: ltr;
        }
.gf-results-counts {
  display: flex;
  justify-content: space-between;
  padding: 5px;

}
        .gf-osm-map {
            height: 78vh;
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        /* سایدبار */
.gf-map-sidebar {
  width: 350px;
  max-height: 78vh;
  overflow-y: auto;
  padding: 20px 10px;
  direction: rtl;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
box-shadow: 0 2px 15px -5px rgba(0, 0, 0, 0.1);
}
/* جایگزین شود با کلاس .leaflet-popup-content موجود */
.leaflet-popup-content {
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: none;
    text-align: right;
    margin: 10px;
    width: 100% !important;
    max-width: 450px !important; /* محدودیت عرض برای دسکتاپ */
    min-width: 250px !important; /* حداقل عرض برای موبایل */
}/* --- ریسپانسیو کردن کامل کانتینرهای نمودار --- */
.chart-container, .chart-box {
    width: 100% !important;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}
.chart-container canvas, .chart-container div {
    max-width: 100% !important;
}
.gf-popup-content {
  font-size: 13px;
  font-family: "IRANSans", Sans-serif;
}
.leaflet-marker-icon.leaflet-zoom-animated.leaflet-interactive {
  height: unset !important;
}
#gf-cluster-min-zoom:focus-visible {
  min-width: fit-content !important;
}
.leaflet-control-attribution.leaflet-control {
  display: none;
}
        .gf-map-sidebar h3 {
            margin: 0 0 10px 0;
            font-size: 15px;
            font-weight: 600;
            color: #7288a6;
            display: flex;
            align-items: center;
            gap: 10px;
        }
/* سرچ باکس برای فیلتر روستا */
.gf-village-search-wrapper {
  margin-bottom: 10px;
  position: relative;
  position: sticky;
  top: 43px;
}
#static-filter-village h4 {
  position: sticky;
  top: 10px;
}
.gf-village-search {
    width: 100%;
    padding: 8px 35px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: IRANSans, Tahoma, sans-serif;
    font-size: 14px;
    direction: rtl;
}


#gf-village-search {
  border-radius: 8px;
  border: 1px solid #d4d9e4;
}
.gf-village-search:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}
.gf-filter-subgroup h4 {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}
.gf-village-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}
.gf-image-field-wrapper img {
  border-radius: 6px !important;
  width: 113px;
  margin: 0 auto;
}
.gf-map-sidebar h4 {
  margin: 0;
    margin-right: 0px;
  font-size: 14px;
  color: #7288a6;
}
.gf-map-sidebar h5 {
  margin: 5px 0 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: #5b7497;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gf-results-header h4 {
  margin-right: -100px;
}
        /* جستجو */
        .gf-search-box {
            position: relative;
            margin-bottom: 20px;
        }

        .gf-search-input {
            width: 100%;
            padding: 12px 40px 12px 12px;
           border: 1px solid #e8e8e8;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s;
            background: white;
        }

        .gf-search-input:focus {
            outline: none;
            border-color: #4CAF50;
            box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
        }

        .gf-search-icon {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            opacity: 0.5;
        }

        /* فیلترها */
        .gf-filters-section {
                     display: grid; /* فعال کردن چیدمان گرید */
            grid-template-columns: 1fr 1fr; /* تعریف دو ستون با عرض برابر */
            gap: 15px; /* ایجاد فاصله 15 پیکسلی بین ستون‌ها و ردیف‌ها */
            margin-bottom: 20px;
        }
.gf-filter-header {
  border-bottom: 1px solid #b7c2d24f;
  padding: 5px 0 8px 0;
}
.gf-filter-group {
  border-radius: 8px;
  padding: 10px;
  transition: box-shadow 0.3s;
  max-height: 315px;
  overflow-y: auto;
  overflow-x: clip;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  scrollbar-width: none;
  box-shadow: 0 2px 15px -5px rgba(0, 0, 0, 0.1);
}

.gf-filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }
.gf-select-all-btn {
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  background-image: linear-gradient(310deg, rgb(51, 124, 238), rgb(106, 198, 253));
box-shadow: 0px 3px 10px -4px #2475e3;
  transition: ease-in-out .3s;
}
.gf-select-all-btn:hover {
  transform: scale(0.95);
}
        .gf-filters-disabled {
            opacity: 0.6;
            pointer-events: none;
            transition: opacity 0.3s ease-in-out;
        }
        .gf-select-all-btn svg {
            width: 14px;
            height: 14px;
        }

        .gf-filter-item {
            padding: 8px 0;
            transition: background 0.2s;
        }
/* دکمه جستجوی هوش مصنوعی */
.gf-ai-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.gf-ai-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

/* مودال جستجوی هوش مصنوعی */
#gf-ai-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.gf-ai-modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.gf-ai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf-ai-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.gf-ai-modal-close {
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gf-ai-modal-close:hover {
    opacity: 0.7;
}

/* تب‌ها */
.gf-ai-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.gf-ai-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.gf-ai-tab:hover {
    background: #eeeeee;
}

.gf-ai-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 -2px 0 #2196F3 inset;
}

/* محتوا */
.gf-ai-content {
    padding: 30px;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
}

.gf-ai-loader {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نتایج */
.gf-ai-results {
    display: none;
}

.gf-ai-search-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gf-ai-content-wrapper {
    line-height: 1.8;
}

.gf-ai-content-wrapper h2 {
    color: #1976D2;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.gf-ai-content-wrapper h3 {
    color: #424242;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.gf-ai-content-wrapper ul {
    margin: 10px 0;
    padding-right: 20px;
}

.gf-ai-content-wrapper li {
    margin: 8px 0;
}

.gf-ai-content-wrapper a {
    color: #1976D2;
    text-decoration: none;
}

.gf-ai-content-wrapper a:hover {
    text-decoration: underline;
}

.gf-ai-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

        .gf-filter-item:hover {
            background: #f5f5f5;
            margin: 0 -8px;
            padding: 8px 8px;
            border-radius: 4px;
        }

        .gf-filter-item label {
            display: flex;
            align-items: center;
            cursor: pointer;
            gap: 8px;
            font-size: 12px;
            color: #333;
        }

        .gf-filter-checkbox {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }
.gf-filter-count {
  margin-right: auto;
  font-size: 12px;
  color: #7288a6;
  background: #fff;
}

        .gf-results-section {
            background: white;
            border-radius: 8px;
            padding: 15px 10px 5px 0px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            position: relative;
        }

        .gf-results-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
        }
.leaflet-pane.leaflet-marker-pane .marker-cluster div {
  border-radius: 6px;
  width: 30px;
  color: white;
  border-bottom: 5px solid #2b6ac6;
  font-weight: 600;
  height: 33px;
  background-image: linear-gradient(310deg, rgb(51, 124, 238), rgb(106, 198, 253));
  box-shadow: 0px 3px 10px -4px #3d89f1;
}
#gf-results-count {
  font-weight: bold;
  color: #3882EF;
  font-size: 14px;
}

        #gf-markers-results {
            max-height: 300px;
            overflow-x: clip;
  overflow-y: scroll;
        }

        .gf-marker-item {
            padding: 12px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 6px;
            margin-bottom: 5px;
			font-family: "IRANSans", Sans-serif;
        }
/* ... آخرین استایل شما قبل از این خط */
@media (max-width: 768px) {
    /* ... استایل‌های ریسپانسیو شما */
}

/* ============== شروع کد جدید: استایل‌های مودال و دکمه خروجی ============== */

.gf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gf-results-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gf-export-button {
  color: white;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s;
  background-image: linear-gradient(310deg, rgb(51, 124, 238), rgb(106, 198, 253));
  box-shadow: 0px 3px 10px -4px #3d89f1;
  margin-left: 10px;
}
.gf-export-button:hover {
    background-color: #177a0e;
}

.gf-export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* توسط جاوااسکریپت نمایش داده می‌شود */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gf-export-modal-content {
    background-color: #f9f9f9;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.gf-export-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf-export-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gf-export-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    line-height: 1;
}
.gf-export-modal-close:hover {
    color: #333;
}

.gf-export-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.gf-export-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

#gf-export-field-search {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}
#gf-export-field-search:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.gf-export-select-all {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.gf-export-fields-list-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    height: 300px;
    overflow-y: auto;
    background-color: #fff;
    position: relative; /* برای لودر */
}
.gf-export-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}
.gf-export-loader span {
    font-size: 14px;
    color: #555;
}

.gf-export-fields-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gf-export-fields-list li {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: grab;
    background-color: white;
    user-select: none;
}
.gf-export-fields-list li:last-child {
    border-bottom: none;
}
.gf-export-fields-list li.ui-sortable-helper {
    background-color: #e6f7ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: grabbing;
}
.gf-export-fields-list li label {
    flex-grow: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  border: none;
  box-shadow: 0 2px 10px -3px rgba(0,0,0,0.2) !important;
}
.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0) !important;
}
.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0) !important;
}
.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0) !important;
}
.leaflet-top.leaflet-left div a {
  border-radius: 4px !important;
}
.leaflet-control-zoom.leaflet-bar.leaflet-control a {
  margin-bottom: 5px;
}
.gf-export-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gf-export-note {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.gf-generate-excel-button {
background-image: linear-gradient(310deg, rgb(51, 124, 238), rgb(106, 198, 253));
  box-shadow: 0px 3px 10px -4px #2475e3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-width: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.gf-generate-excel-button:hover {
    background-color: #45a049;
}
.gf-generate-excel-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
.gf-loading-spinner-small {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 16px;
  height: 16px;
  animation: gf-spin 1s linear infinite;
  margin-left: 8px;
}


/* ============== پایان کد جدید ============== */

        .gf-marker-item:hover {
            background: #f8f9fa;
            transform: translateX(-5px);
        }
.gf-marker-item.active {
  background: #f9fbff;
  border-right: 3px solid #3984F0;
}
        .gf-marker-title {
            font-weight: 600;
            margin-bottom: 5px;
            color: #333;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .gf-marker-info {
            font-size: 12px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .gf-no-results {
            text-align: center;
            padding: 40px 20px;
            color: #999;
            font-style: italic;
        }

        /* کنترل‌ها */
        .gf-map-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            border-radius: 8px;
            padding: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            direction: rtl;
width: 139px;
  overflow: clip;
  height: 41px;
        }
.gf-map-controls:hover {
  width: fit-content;
  height: fit-content;
}
        .gf-control-item {
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .gf-control-item:last-child {
            margin-bottom: 0;
        }

        .gf-control-item label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            cursor: pointer;
        }

        .gf-control-item input[type="number"] {
            width: 60px;
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        /* لودینگ */
        .gf-map-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 20px rgba(0,0,0,0.2);
            display: none;
            z-index: 1000;
            text-align: center;
font-size: 13px;
  font-family: "IRANSans", Sans-serif;
        }

        .gf-map-loading.active {
            display: block;
        }

        .gf-loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3984F0;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
/* دکمه جستجوی هوش مصنوعی */
.gf-ai-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.3);
}

.gf-ai-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

/* مودال رمز عبور */
.gf-password-modal-content {
    background: white;
    margin: 200px auto;
    width: 90%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.gf-password-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf-password-header h3 {
    margin: 0;
    font-size: 20px;
}

.gf-password-close {
    font-size: 28px;
    cursor: pointer;
}

.gf-password-body {
    padding: 30px;
    text-align: center;
}

#gf-ai-password {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

#gf-password-submit {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

#gf-password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.gf-password-error {
    color: #e53935;
    margin-top: 15px;
    font-weight: 500;
}

/* مودال جستجوی هوش مصنوعی */
#gf-ai-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.gf-ai-modal-content {
    position: relative;
    background: white;
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.gf-ai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gf-ai-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.gf-ai-modal-close {
    font-size: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gf-ai-modal-close:hover {
    opacity: 0.7;
}

/* تب‌ها */
.gf-ai-tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.gf-ai-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.gf-ai-tab:hover {
    background: #eeeeee;
}

.gf-ai-tab.active {
    background: white;
    color: #333;
    box-shadow: 0 -2px 0 #2196F3 inset;
}

.tab-icon {
    font-size: 20px;
}

.refresh-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}

.refresh-icon:hover {
    transform: rotate(180deg);
}

/* محتوا */
.gf-ai-content {
    padding: 30px;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
}

.gf-ai-loader {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2196F3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* نتایج */
.gf-ai-results {
    display: none;
}

.gf-ai-search-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cache-notice {
    font-size: 14px;
    color: #1976D2;
    margin-top: 8px;
}

.gf-ai-content-wrapper {
    line-height: 1.8;
}

.gf-ai-content-wrapper h2 {
    color: #1976D2;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 20px;
}

.gf-ai-content-wrapper h3 {
    color: #424242;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
}

.gf-ai-content-wrapper ul {
    margin: 10px 0;
    padding-right: 20px;
}

.gf-ai-content-wrapper li {
    margin: 8px 0;
}

.gf-ai-content-wrapper a {
    color: #1976D2;
    text-decoration: none;
}

.gf-ai-content-wrapper a:hover {
    text-decoration: underline;
}

.gf-ai-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* موبایل */
@media (max-width: 768px) {
    .gf-ai-modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .gf-ai-tab {
        font-size: 14px;
        padding: 12px 5px;
    }
    
    .refresh-icon {
        position: static;
        margin-right: 5px;
    }
}

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* پاپ آپ */
        .gf-popup-content {

            direction: rtl;
        }

        .gf-popup-header {
            background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
            color: white;
            padding: 15px;
            margin: -15px -15px 15px -15px;
            border-radius: 8px 8px 0 0;
            font-weight: 600;
            font-size: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.sidebar.collapsed .MuiListItemIcon-root {
  margin-right: -5px;
}
        .gf-popup-table {
            width: 100%;
            border-collapse: collapse;
        }
/* کنترل لایه‌های سفارشی با انیمیشن هاور */
.custom-layer-control {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 0;
    font-family: IRANSans, Tahoma, Arial;
    position: relative;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 999;
}

/* دکمه آیکون */
.layer-control-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.layer-control-toggle:hover {
    background-color: #f5f5f5;
}

/* منوی کشویی */
.layer-control-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

/* حالت هاور - باز شدن منو */
.custom-layer-control:hover {
    overflow: visible;
}

.custom-layer-control:hover .layer-control-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-layer-control:hover .layer-control-toggle {
    opacity: 0;
    pointer-events: none;
}

.layer-control-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    color: #333;
    background: #f5f5f5;
    border-radius: 8px 8px 0 0;
}

.layer-control-content {
    padding: 8px 0;
    max-height: 400px;
    overflow-y: auto;
}

.layer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}

.layer-item:hover {
    background-color: #f0f7ff;
}

.layer-item.active {
    background-color: #e3f2fd;
    color: #1976d2;
}

.layer-item.active::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #1976d2;
}

.layer-item svg {
    flex-shrink: 0;
}

.layer-item span {
    font-size: 14px;
    color: #555;
}

.layer-item.active span {
    color: #1976d2;
    font-weight: 500;
}

/* انیمیشن برای hover آیتم‌ها */
.layer-item::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 1px;
    background: #e0e0e0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.layer-item:hover::after {
    transform: scaleX(1);
}

/* اسکرول بار سفارشی */
.layer-control-content::-webkit-scrollbar {
    width: 6px;
}

.layer-control-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.layer-control-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.layer-control-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* انیمیشن ورود */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.custom-layer-control:hover .layer-control-dropdown {
    animation: fadeInScale 0.3s ease forwards;
}

.leaflet-control-layers.leaflet-control-layers-expanded.qibla-toggle-control.leaflet-control label {
 margin: 3px 1px; 
}
        .gf-popup-table tr {
            border-bottom: 1px solid #f0f0f0;
			font-family: "IRANSans", Sans-serif;
        }
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
}
        .gf-popup-table tr:last-child {
            border-bottom: none;
        }

        .gf-popup-table th {

            vertical-align: top;

        }
.gf-boundary-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

.gf-boundary-list {
    max-height: 150px;
    overflow-y: auto;
}
.gf-boundaries-toggle svg {
  color: #686868;
  width: 20px;
  height: 20px;
}

.gf-boundary-section-header .gf-select-all-btn svg {
    width: 20px;
    height: 20px;
}

        .gf-popup-table td {
            padding: 10px 12px;
            font-size: 14px;
            color: #333;
        }

        .gf-popup-table tr:hover {
            background: #f8f9fa;
        }

        /* تصاویر در پاپ آپ */
        .gf-popup-images {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .gf-popup-image-thumb {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
        }
        /* استایل برای برچسب نام منطقه روی نقشه */

/* کنترل مرزها */
.gf-boundaries-control {
  margin-right: 10px;
  position: absolute;
  top: 59px;
  right: 2px;
  height: 41px;
  z-index: 999;
  direction: rtl;
}

.gf-boundary-section-header .gf-select-all-btn svg {
  width: 15px;
}
.gf-boundary-section-header .gf-select-all-btn {
  padding: 3px 7px;
}
.gf-boundaries-toggle {
  background: white;
  border: none;
  border-radius: 7px;
  padding: 8px 8px 5px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gf-boundaries-toggle:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.gf-boundaries-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 280px;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.gf-boundaries-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gf-boundaries-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.gf-boundaries-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.gf-boundary-section {
    border-bottom: 1px solid #eee;
}

.gf-boundary-section:last-child {
    border-bottom: none;
}

.gf-boundary-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #fafafa;
}

.gf-boundary-section-header span {
    font-weight: 500;
    font-size: 13px;
    color: #555;
}



.gf-boundary-items {
    padding: 8px 16px;
    max-height: 200px;
    overflow-y: auto;
}

.gf-boundary-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gf-boundary-item:hover {
    background: #f5f5f5;
    padding-right: 8px;
    margin: 0 -8px;
}

.gf-boundary-item input[type="checkbox"] {
    margin-left: 8px;
    cursor: pointer;
}

.gf-boundary-item label {
    flex: 1;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* انیمیشن اسپین */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* اسکرول‌بار سفارشی */
.gf-boundary-items::-webkit-scrollbar {
    width: 6px;
}

.gf-boundary-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gf-boundary-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gf-boundary-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}

        .gf-popup-image-thumb:hover {
            transform: scale(1.05);
            border-color: #4CAF50;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
.leaflet-bar.leaflet-control.leaflet-control-custom {
 bottom: 4px;
}
        .gf-popup-image-error {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            background: #f5f5f5;
            border-radius: 6px;
            color: #999;
            font-size: 12px;
            text-align: center;
            padding: 10px;
        }
.gf-static-filters {
  background: #f9fbff;
}
.gf-marker-item.static-marker {
    border-left: 3px solid #4CAF50;
}

.gf-marker-item.static-marker:hover {
    background: #e6f7ff !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

        /* کنترل لایه‌های نقشه */
        .leaflet-control-layers {
            font-family: inherit;
        }

        .leaflet-control-layers-expanded {
            padding: 6px 10px;
        }

        /* سایز مارکر بر اساس زوم */
        .leaflet-marker-icon {
            transition: width 0.2s, height 0.2s;
        }

        /* Lightbox styles */
        .gf-lightbox {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
        }

        /* استایل برای کنترلر مناطق GeoJSON */
        .leaflet-control-layers.leaflet-control-layers-bottom-left {
            bottom: 45px !important; /* کمی بالاتر از کپی‌رایت لیفلت */
        }
        .leaflet-control-layers-expanded .leaflet-control-layers-list {
            text-align: right;
            direction: rtl;
        }

        .leaflet-control-layers-selector {
            margin-left: 5px;
        }

        .leaflet-control-layers-overlays label {
            display: flex;
            align-items: center;
            font-size: 14px;
            padding: 2px 0;
        }

        .region-color-box {
            width: 15px;
            height: 15px;
            display: inline-block;
            margin-left: 8px;
            border: 1px solid #888;
            border-radius: 3px;
        }


.gf-nav-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gf-nav-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* دکمه‌های مسیریابی در لیست */
.gf-marker-nav {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.gf-marker-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #f8f8f8;
    border-radius: 50%;
    transition: all 0.3s;
}

.gf-marker-nav a:hover {
    background: #e8e8e8;
    transform: scale(1.1);
}

.gf-marker-nav img {
    width: 18px;
    height: 18px;
}/* Lasso Tool Styles */
.leaflet-control-custom-lasso,
.leaflet-control-clear-lasso {
    transition: all 0.3s ease;
}

.leaflet-control-custom-lasso:hover,
.leaflet-control-clear-lasso:hover {
    transform: scale(1.1);
}

.lasso-hint {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lasso-point {
    cursor: pointer;
}

/* جلوگیری از انتخاب متن در حالت lasso */
.leaflet-container.leaflet-clickable {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

        .gf-lightbox-content {
            margin: auto;
            display: block;
            max-width: 90%;
            max-height: 90%;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.5);
        }
        
        .gf-lightbox-content img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    /* بخش چارت‌ها */
.gf-charts-wrapper {
    margin-top: 40px;
}

.charts-main-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #333;
    font-family: Iransans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gf-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.chart-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-family: Iransans, sans-serif;
}

.chart-actions {
    display: flex;
}


.chart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-family: Iransans, sans-serif;
}

.tab-btn.active {
    color: #5470c6;
    border-bottom-color: #5470c6;
}

.tab-btn:hover {
    background: #f0f0f0;
}

.chart-container {
    direction: ltr;
}

@media (max-width: 768px) {
    .gf-charts-grid {
        grid-template-columns: 1fr;
    }
}
    
        .gf-lightbox-close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 40px;
            font-weight: bold;
            transition: 0.3s;
            cursor: pointer;
            background: rgba(0,0,0,0.5);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .gf-lightbox-close:hover,
        .gf-lightbox-close:focus {
            color: #bbb;
            text-decoration: none;
            cursor: pointer;
        }
        @media (max-width: 768px) {
            .gf-osm-container {
                flex-direction: column;
            }

            .gf-map-sidebar {
                width: 100%;
                height: 400px;
                order: 2;
            }

            .gf-osm-map-wrapper {
                order: 1;
            }

            /* کد زیر را اضافه کنید */
            .gf-filters-section {
                grid-template-columns: 1fr; /* در موبایل به یک ستون برگردان */
            }
        }

        /* ریسپانسیو */
        @media (max-width: 768px) {
            .gf-osm-container {
                flex-direction: column;
            }

            .gf-map-sidebar {
                width: 100%;
                height: 400px;
                order: 2;
            }

            .gf-osm-map-wrapper {
                order: 1;
            }
        }
       /* تنظیمات پایه پاپ‌آپ لیفلت */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    border: 1px solid #f1f5f9;
}
.leaflet-popup-content {
    margin: 0 !important;
    width: 80em !important; 
    max-width: 100%;
}
.gf-popup-content {
    direction: rtl;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 20px;
    animation: popupSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* شبکه گرید اصلی */
.gf-popup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 5px;
}

/* آیتم‌های هر فیلد */
.gf-popup-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gf-popup-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(57, 132, 240, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.gf-popup-item.full-width {
    grid-column: 1 / -1;
    background: transparent;
    border: none;
    padding: 0;
}
.gf-popup-item.full-width:hover {
    box-shadow: none;
    transform: none;
}
.gf-popup-item.full-width > .gf-popup-label {
    font-size: 14px;
    color: #3984F0;
    margin-bottom: 5px;
}

/* تایپوگرافی لیبل‌ها و مقادیر */
.gf-popup-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.gf-popup-value {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.6;
    word-break: break-word;
}

/* =========================================
   طراحی اختصاصی فرم‌های تو در تو (Nested Forms)
   ========================================= */
.gf-nested-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    width: 100%;
}

.gf-nested-card {
    background: #ffffff;
    border-right: 3px solid #3984F0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.gf-nested-card:hover {
    background: #fdfeff;
}

.gf-nested-card-title {
    font-size: 13px;
    color: #3984F0;
    margin-bottom: 12px;
    font-weight: 700;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.gf-nested-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

.gf-nested-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gf-nested-label {
    color: #64748b;
    flex-shrink: 0;
    margin-left: 10px;
}

.gf-nested-val {
    color: #334155;
    font-weight: 600;
    text-align: left;
}

/* ریسپانسیو گوشی‌های موبایل */
@media (max-width: 768px) {
    .leaflet-popup-content { width: 320px !important; }
    .gf-popup-grid { grid-template-columns: 1fr; }
    .gf-nested-grid { grid-template-columns: 1fr; }
    .gf-nested-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .gf-nested-val { text-align: right; width: 100%; }
} 
/* --- تبدیل جدول به ساختار کارتی و گرید در تمام نمایشگرها (دسکتاپ و موبایل) --- */
.gf-list-field-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 15px;
    width: 100%;
}

.gf-list-field-table {
    display: block !important;
    width: 100% !important;
}

/* مخفی کردن هدر سنتی جدول در تمامی حالات */
.gf-list-field-table thead {
    display: none !important; 
}

/* تبدیل بدنه جدول به یک شبکه گرید ریسپانسیو کاملاً خودکار */
.gf-list-field-table tbody {
    display: grid !important;
    /* در دسکتاپ کارت‌ها کنار هم می‌چینند و در موبایل خود به خود زیر هم قرار می‌گیرند */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 4px 2px !important;
}

/* تبدیل هر ردیف جدول به یک کارت مدرن با لبه رنگی */
.gf-list-field-table tbody tr {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #eef2f5 !important;
    border-right: 4px solid #3984F0 !important; /* لبه رنگی شاخص کارت */
    border-radius: 10px !important;
    padding: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* افکت هاور جذاب روی کارت‌ها */
.gf-list-field-table tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(57, 132, 240, 0.08) !important;
}

/* ساختاردهی به هر سلول به عنوان یک ردیف اطلاعات داخل کارت */
.gf-list-field-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-size: 13px !important;
    color: #5b7497 !important;
}

/* حذف خط چین آخرین آیتم کارت */
.gf-list-field-table td:last-child {
    border-bottom: none !important;
}

/* نمایش نام ستون (عنوان) در سمت راست هر ردیف کارت */
.gf-list-field-table td::before {
    content: attr(data-label);
    font-weight: 700 !important;
    color: #3984F0 !important;
    text-align: right !important;
    padding-left: 10px !important;
    white-space: nowrap;
}
.gf-navigation-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 600;
    color: #496079;
    margin-bottom: 15px;
    width: 100%;
}
.gf-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}
.gf-nav-btn:hover {
    background: #fff;
    border-color: #3984F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(57, 132, 240, 0.1);
}
.gf-nav-btn img {
    width: 16px;
    height: 16px;
}
.gf-edit-button-container {
    width: 100%;
    display: flex;
}
.gf-modern-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(310deg, rgb(51, 124, 238), rgb(106, 198, 253));
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    box-shadow: 0px 4px 15px -4px #2475e3;
    font-family: "Vazirmatn", "IRANSans", sans-serif;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* تمام عرض شدن دکمه */
}
.gf-modern-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px -4px #2475e3;
}
@media (max-width: 600px) {
    .gf-navigation-buttons {
        justify-content: center;
    }
}        