/* سازگاری فرم‌های Razor، نقشه و ویجت‌های پنل با قالب جدید */
.field-validation-error,
.validation-summary-errors,
span[style*="color:red"] {
  color: var(--danger) !important;
  font-size: var(--fs-sm);
  display: block;
  margin-top: 6px;
}
.input-validation-error,
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
  border-color: var(--danger) !important;
}
.validation-summary-errors ul { margin: 0; padding-right: 18px; }
.alert-danger, .text-danger { color: var(--danger); }

.map-frame.list-map,
.map-frame.detail-map,
.map-frame.form-map {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
}
.map-frame.list-map,
.map-frame.form-map {
  contain: layout paint;
}
.map-frame.detail-map,
.map-frame.form-map {
  height: 400px;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}
.map-frame.detail-map #map,
.map-frame.form-map #map,
.map-frame.detail-map .leaflet-container,
.map-frame.form-map .leaflet-container {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  z-index: 0;
  border-radius: inherit;
}
.map-frame.detail-map .leaflet-pane,
.map-frame.form-map .leaflet-pane,
.map-frame.detail-map .leaflet-top,
.map-frame.form-map .leaflet-top,
.map-frame.detail-map .leaflet-bottom,
.map-frame.form-map .leaflet-bottom {
  z-index: 2;
}
.list-map-pin { background: none !important; border: none !important; }
.list-map-pin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #e11d48;
  box-shadow: 0 6px 12px rgba(15, 23, 42, .28);
}
.list-map-pin-inner svg {
  width: 16px !important;
  height: 16px !important;
  transform: rotate(45deg);
  color: #fff;
}

.cat-tree-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.cat-tree-item label { flex: 1; cursor: pointer; font-size: var(--fs-sm); }
.cat-tree-toggle { background: none; border: 0; cursor: pointer; color: var(--text-muted); }

.panel-content .k-widget,
.panel-content .form-control,
.panel-content input[type="text"],
.panel-content input[type="email"],
.panel-content input[type="tel"],
.panel-content input[type="password"],
.panel-content input[type="number"],
.panel-content select,
.panel-content textarea {
  font-family: inherit;
}
.panel-content .form-control,
.panel-content .form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
}
.panel-content .btn,
.panel-content button[type="submit"] {
  font-family: inherit;
}
.panel-content .row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--sp-4); }
.panel-content .form-group { margin-bottom: 0; }
.panel-content .col-6 { flex: 1 1 240px; }
.panel-content .col-12,
.panel-content .col-xl-12 { flex: 1 1 100%; max-width: 100%; }

.panel-content .row > [class*="col-xl-6"],
.panel-content .row > [class*="col-lg-6"] {
  flex: 1 1 calc(50% - var(--sp-4));
  max-width: calc(50% - var(--sp-4));
}
.panel-content .business-map-wrap {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100%;
}
.panel-content .business-map-wrap .map-frame,
.panel-content .business-map-wrap #map {
  width: 100%;
  height: 320px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  overflow: hidden;
}

@media (max-width: 991px) {
  .panel-content .row > [class*="col-xl-6"],
  .panel-content .row > [class*="col-lg-6"] {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.yektanet-native-ad { margin: var(--sp-4) 0; }

/* leftover bootstrap-like grid so unconverted pages still layout */
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
[class*="col-"] { padding-inline: 12px; flex: 1 1 100%; max-width: 100%; box-sizing: border-box; }
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}
@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-2 { flex: 0 0 16.66%; max-width: 16.66%; }
  .col-lg-5 { flex: 0 0 41.66%; max-width: 41.66%; }
}
@media (min-width: 1200px) {
  .col-xl-2 { flex: 0 0 16.66%; max-width: 16.66%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-xl-5 { flex: 0 0 41.66%; max-width: 41.66%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
}
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.d-flex { display: flex; }
.d-block { display: block; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.py-3 { padding-block: 12px; } .py-5 { padding-block: 32px; } .px-3 { padding-inline: 12px; } .px-4 { padding-inline: 16px; }
.img-fluid { max-width: 100%; height: auto; }
.rounded { border-radius: var(--r-md); }
.bg-white { background: var(--surface); }
.gray, .space, .middle { background: var(--bg); padding-block: var(--sp-7); }
.form-control, .form-select, select.form-control, input.form-control, textarea.form-control {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-family: inherit;
}
.panel-content .form-group { margin-bottom: 0; }
.btn.theme-bg, .theme-bg { background: var(--primary); color: #fff !important; border: 0; border-radius: var(--r-md); padding: 10px 16px; }
.full-width { width: 100%; }
.signup-screen-wrap, .signup-screen-single {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-md);
}
.page-hero { padding: var(--sp-7) 0 var(--sp-5); }
.page-hero h1 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.prose { line-height: 2; color: var(--text); }
.prose img { max-width: 100%; border-radius: var(--r-md); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: var(--sp-5); }
.gup_blg_grid_box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; height: 100%; }
.gup_blg_grid_thumb img { width: 100%; height: 180px; object-fit: cover; }
.Goodup-grid-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.list-single-main-item, .list-single-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); }

.captcha-wrap,
.captcha {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.captcha-wrap img,
.captcha img,
#captchaImage {
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.vis-hidden, .visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.alert-success { background: var(--success-soft); color: var(--success); padding: var(--sp-3); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.alert-danger { background: var(--danger-soft); color: var(--danger); padding: var(--sp-3); border-radius: var(--r-md); margin-bottom: var(--sp-4); }
.textarea, textarea.form-control { min-height: 140px; }
.header-inner .logo { display: inline-flex; align-items: center; gap: 8px; }

/* pagination leftover from old markup */
.pagination .page-item { list-style: none; }
.pagination .page-link {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding-inline: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.pagination .page-item.active .page-link,
.pagination .page-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.pagination .page-link svg { width: 16px; height: 16px; }
