/* =========================================================
   Aero Theme - Elite-Board Integration Styles for Locale
   ========================================================= */

/* Brand & Header */
.site-header .brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--bs-primary, #206bc4);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.navbar-brand img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}
.site-header .badge.n_count {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--bs-primary, #206bc4);
  color: #fff;
  vertical-align: top;
  margin-left: 2px;
}

/* Hero Section */
.search-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.search-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.search-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--hero-scrim, linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.7)));
  z-index: -1;
}
[data-bs-theme="dark"] .search-hero::before {
  background: var(--hero-scrim-dark, linear-gradient(to bottom, rgba(18,20,24,0.5), rgba(18,20,24,0.7)));
}
.search-hero .search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--surface-bg, #fff);
  padding: 0.6rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 900px;
  margin: 0 auto;
}
[data-bs-theme="dark"] .search-hero .search-bar {
  background: var(--bs-body-bg, #1a1e24);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.search-hero .search-bar .form-control {
  flex: 1 1 200px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 0.65rem;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}
.search-hero .search-bar .form-ghost {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  color: inherit;
}
.search-hero .search-bar .btn-solid {
  height: 48px;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 0.65rem;
}

/* Category Tree */
.cat-tree-container {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.cat-card {
  height: 100%;
  padding: 1.25rem;
  border-radius: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}
.cat-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.cat-card-header img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.cat-card-header .cat-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 107, 196, 0.1);
  color: var(--bs-primary, #206bc4);
  font-size: 1.2rem;
}
.cat-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  flex-grow: 1;
}
.cat-card-title a {
  color: inherit;
  text-decoration: none;
}
.cat-card-title a:hover {
  color: var(--bs-primary, #206bc4);
}
.cat-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.cat-sub-list li a {
  color: var(--fg-2, #64748b);
  text-decoration: none;
}
.cat-sub-list li a:hover {
  color: var(--bs-primary, #206bc4);
}
.badge-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-2, #f1f5f9);
  color: var(--fg-2, #64748b);
  font-weight: 600;
}
[data-bs-theme="dark"] .badge-count {
  background: rgba(255,255,255,0.1);
  color: #cbd5e1;
}

/* Listings Grid (Configurable Flex Layout) */
.listing-grid {
  --ads-cols: 3;
  --ads-gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--ads-gap);
  margin-bottom: 2rem;
  width: 100%;
}
.listing-grid > .listing-col {
  flex: 0 0 calc((100% - (var(--ads-cols) - 1) * var(--ads-gap)) / var(--ads-cols));
  max-width: calc((100% - (var(--ads-cols) - 1) * var(--ads-gap)) / var(--ads-cols));
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.listing-grid > .listing-col > .listing {
  flex: 1;
  width: 100%;
  height: 100%;
}
.listing-grid > .listing-col-full {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}
.listing-grid.cols-1 { --ads-cols: 1; }
.listing-grid.cols-2 { --ads-cols: 2; }
.listing-grid.cols-3 { --ads-cols: 3; }
.listing-grid.cols-4 { --ads-cols: 4; }

@media (max-width: 991.98px) {
  .listing-grid {
    --ads-cols: 2;
  }
}
@media (max-width: 575.98px) {
  .listing-grid {
    --ads-cols: 1;
    --ads-gap: 1rem;
  }
}

.listing {
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--border-color, rgba(0,0,0,0.06));
  display: flex;
  flex-direction: column;
  height: 100%;
}
.listing-media {
  position: relative;
  aspect-ratio: 16/9;
  background-color: var(--bg-2, #f1f5f9);
  overflow: hidden;
}
.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.listing:hover .listing-media img {
  transform: scale(1.03);
}
.listing-flag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}
.listing-save {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.listing-save:hover, .listing-save.is-saved {
  background: #fff;
  color: #e11d48;
}
[data-bs-theme="dark"] .listing-save {
  background: rgba(30,41,59,0.8);
  color: #cbd5e1;
}
.listing-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.listing-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.listing-title a {
  color: inherit;
  text-decoration: none;
}
.listing-title a:hover {
  color: var(--bs-primary, #206bc4);
}
.listing-meta {
  font-size: 0.815rem;
  color: var(--fg-2, #64748b);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.listing-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-primary, #206bc4);
  margin-top: 0.5rem;
}

/* Sidebar & Blocks */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.block-card {
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
.block-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}

/* Modals & Region Selection */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
  display: none;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
  padding: 1.5rem 1rem;
}
.modal.fade {
  display: none;
  opacity: 0;
  transition: opacity .15s linear;
}
.modal.show, .modal.in {
  display: block !important;
  opacity: 1 !important;
}
.modal-dialog {
  max-width: 640px;
  margin: 1.5rem auto;
  pointer-events: auto;
}
#selectRegion .modal-dialog {
  max-width: 680px;
}
.modal-content {
  border-radius: 1rem;
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background: var(--surface-bg, #fff);
  color: inherit;
}
[data-bs-theme="dark"] .modal-content {
  background: var(--bs-body-bg, #1a1e24);
  border-color: rgba(255, 255, 255, 0.1);
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-close,
.modal-header .close,
.modal-header .btn-close {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--bs-fg-body, #64748b);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.75;
  transition: all 0.15s ease;
  z-index: 10;
}
.btn-close:empty::before {
  content: "\f00d";
  font-family: FontAwesome;
  font-size: 1.15rem;
  font-weight: normal;
  display: inline-block;
  line-height: 1;
}
.btn-close:hover,
.modal-header .close:hover,
.modal-header .btn-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
  color: var(--bs-danger, #ef4444);
}
[data-bs-theme="dark"] .btn-close,
[data-bs-theme="dark"] .modal-header .close,
[data-bs-theme="dark"] .modal-header .btn-close {
  color: var(--bs-fg-body, #cbd5e1);
}
[data-bs-theme="dark"] .btn-close:hover,
[data-bs-theme="dark"] .modal-header .close:hover,
[data-bs-theme="dark"] .modal-header .btn-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ff6b6b;
}
.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color, rgba(0,0,0,0.06));
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
#contact_iframe,
#premium_iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
  background: transparent;
}
#regionlist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}
#regionlist li a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}
#regionlist li a:hover {
  background: var(--bg-2, #f1f5f9);
  color: var(--bs-primary, #206bc4);
}
.region_control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.region_control a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--bg-2, #f1f5f9);
  color: inherit;
  text-decoration: none;
}
.region_control a:hover {
  background: var(--bs-primary, #206bc4);
  color: #fff;
}
[data-bs-theme="dark"] .region_control a {
  background: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .region_control a:hover {
  background: var(--bs-primary, #206bc4);
}

/* User Menu & Cabinet */
.user-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.user-menu-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.user-menu-list li a:hover, .user-menu-list li.active a {
  background: var(--bg-2, #f1f5f9);
  color: var(--bs-primary, #206bc4);
  font-weight: 600;
}
[data-bs-theme="dark"] .user-menu-list li a:hover,
[data-bs-theme="dark"] .user-menu-list li.active a {
  background: rgba(255,255,255,0.06);
}

/* Message Detail Page - Gallery */
.detail-hero-box {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.04));
}
[data-bs-theme="dark"] .detail-hero-box {
  background: var(--surface, #1e293b);
  border-color: rgba(255, 255, 255, 0.08);
}
.detail-hero-box .bx-wrapper {
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.detail-hero-box .bx-viewport {
  left: 0;
  border: 0;
  background: #000;
  box-shadow: none;
  overflow: hidden;
}
.detail-hero-box img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
  display: block;
}
.detail-hero-box #bx-pager {
  padding: 0.75rem 1rem;
  background: var(--surface, #fff);
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
}
[data-bs-theme="dark"] .detail-hero-box #bx-pager {
  background: var(--surface, #1e293b);
  border-top-color: rgba(255, 255, 255, 0.08);
}
.detail-hero-box .thumb-item-link {
  border: 2px solid transparent;
  border-radius: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.detail-hero-box .thumb-item-link:hover,
.detail-hero-box .thumb-item-link.active {
  border-color: var(--bs-primary, #206bc4);
  transform: scale(1.05);
}

/* Paid Services Promotion Banner */
.paid-services-banner {
  border-left: 4px solid var(--bs-warning, #f59f00);
  background: linear-gradient(135deg, color-mix(in srgb, var(--bs-warning, #f59f00) 6%, var(--surface, #fff)), var(--surface, #fff));
  border-radius: 1rem;
}
[data-bs-theme="dark"] .paid-services-banner {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.08), var(--surface, #1e293b));
  border-left-color: var(--bs-warning, #f59f00);
}
.paid-services-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(245, 159, 0, 0.15);
  color: var(--bs-warning, #f59f00);
  font-size: 1rem;
}
.paid-service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  background: var(--surface, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.paid-service-chip.service-m {
  border-color: rgba(245, 159, 0, 0.35);
  color: #b45309;
  background: rgba(245, 159, 0, 0.08);
}
.paid-service-chip.service-m:hover {
  background: #f59f00;
  color: #fff;
  border-color: #f59f00;
  transform: translateY(-1px);
}
.paid-service-chip.service-r {
  border-color: rgba(47, 179, 68, 0.35);
  color: #15803d;
  background: rgba(47, 179, 68, 0.08);
}
.paid-service-chip.service-r:hover {
  background: #2fb344;
  color: #fff;
  border-color: #2fb344;
  transform: translateY(-1px);
}
.paid-service-chip.service-b {
  border-color: rgba(32, 107, 196, 0.35);
  color: #1d4ed8;
  background: rgba(32, 107, 196, 0.08);
}
.paid-service-chip.service-b:hover {
  background: #206bc4;
  color: #fff;
  border-color: #206bc4;
  transform: translateY(-1px);
}
.paid-service-chip.service-v,
.paid-service-chip:not(.service-m):not(.service-r):not(.service-b) {
  border-color: rgba(234, 179, 8, 0.4);
  color: #a16207;
  background: rgba(234, 179, 8, 0.1);
}
.paid-service-chip.service-v:hover,
.paid-service-chip:not(.service-m):not(.service-r):not(.service-b):hover {
  background: #eab308;
  color: #000;
  border-color: #eab308;
  transform: translateY(-1px);
}
[data-bs-theme="dark"] .paid-service-chip.service-m {
  color: #fbbf24;
  background: rgba(245, 159, 0, 0.15);
}
[data-bs-theme="dark"] .paid-service-chip.service-r {
  color: #4ade80;
  background: rgba(47, 179, 68, 0.15);
}
[data-bs-theme="dark"] .paid-service-chip.service-b {
  color: #60a5fa;
  background: rgba(32, 107, 196, 0.15);
}
[data-bs-theme="dark"] .paid-service-chip.service-v,
[data-bs-theme="dark"] .paid-service-chip:not(.service-m):not(.service-r):not(.service-b) {
  color: #fde047;
  background: rgba(234, 179, 8, 0.15);
}
.detail-attrs-table {
  width: 100%;
  border-collapse: collapse;
}
.detail-attrs-table tr {
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}
.detail-attrs-table td {
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}
.detail-attrs-table td:first-child {
  color: var(--fg-2, #64748b);
  width: 40%;
}
.detail-attrs-table td:last-child {
  font-weight: 500;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--bs-fg-body, #1e293b);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.pagination .page-item .page-link:hover {
  background: var(--bg-2, #f1f5f9);
  color: var(--bs-primary, #206bc4);
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link.active {
  background: var(--bs-primary, #206bc4) !important;
  border-color: var(--bs-primary, #206bc4) !important;
  color: #fff !important;
}
[data-bs-theme="dark"] .pagination .page-item .page-link {
  background: var(--surface, #1e293b);
  border-color: var(--border-color, rgba(255, 255, 255, 0.12));
  color: var(--bs-fg-body, #f1f5f9);
}
[data-bs-theme="dark"] .pagination .page-item .page-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bs-primary, #3b82f6);
}
[data-bs-theme="dark"] .pagination .page-item.active .page-link,
[data-bs-theme="dark"] .pagination .page-item .page-link.active {
  background: var(--bs-primary, #206bc4) !important;
  border-color: var(--bs-primary, #206bc4) !important;
  color: #fff !important;
}

/* Utility classes */
.text-price {
  color: var(--bs-primary, #206bc4);
  font-weight: 700;
}
.text-muted-custom {
  color: var(--fg-2, #64748b);
}
.radius-default {
  border-radius: 0.75rem;
}

/* Bootstrap 3 / Legacy Elite-Board Grid Compatibility */
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1 { flex: 0 0 auto; width: 8.33333333%; }
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2 { flex: 0 0 auto; width: 16.66666667%; }
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3 { flex: 0 0 auto; width: 25%; }
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6 { flex: 0 0 auto; width: 50%; }
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7 { flex: 0 0 auto; width: 58.33333333%; }
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9 { flex: 0 0 auto; width: 75%; }
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { flex: 0 0 auto; width: 100%; }

@media (min-width: 768px) {
  .col-md-offset-1 { margin-left: 8.33333333%; }
  .col-md-offset-2 { margin-left: 16.66666667%; }
  .col-md-offset-3 { margin-left: 25%; }
  .col-md-offset-4 { margin-left: 33.33333333%; }
}

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.clearfix::after { content: ""; clear: both; display: table; }

.form-group {
  margin-bottom: 1.25rem;
}
.form-horizontal .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Modern Input Groups */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
.input-group > .form-control,
.input-group > .form-select {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
}
.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}
.input-group-text,
.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bs-fg-2, #64748b);
  text-align: center;
  white-space: nowrap;
  background-color: var(--bs-tertiary-bg, rgba(0, 0, 0, 0.04));
  border: 1px solid var(--border-color, #e2e8f0);
  border-left: 0;
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}
[data-bs-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .input-group-addon {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
.form-label,
.control-label {
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--bs-fg-body, #1e293b);
}
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .control-label,
[data-bs-theme="dark"] label.list-title,
[data-bs-theme="dark"] .form-check-label {
  color: var(--bs-fg-body, #f1f5f9) !important;
}
.help-block {
  font-size: 0.815rem;
  color: var(--fg-3, #94a3b8);
  margin-top: 0.25rem;
}
.input-icon {
  position: relative;
}
.input-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-3, #94a3b8);
  pointer-events: none;
}
.input-icon .form-control {
  padding-left: 2.5rem;
}

/* ==========================================================================
   Surface Height & Layout Bug Fixes
   ========================================================================== */
/* Reset default 100% height from base.css that caused 4000px ballooning */
.surface {
  height: auto !important;
}
/* Retain 100% height only on specific ad cards and category cards in grids */
#allAds > [class*="col"] > .surface,
.cat-tree-container [class*="col"] > .surface,
.cat-card.surface,
.listing.surface {
  height: 100% !important;
}
/* Ensure main content surfaces never stretch vertically to column height */
[class*="col-8"] > .surface,
[class*="col-9"] > .surface,
[class*="col-12"] > .surface,
.lg\:col-8 > .surface,
.shop_once,
.articles-list,
.article-card {
  height: auto !important;
}

/* ==========================================================================
   DevBridge Autocomplete (#autocomplete-text / .autocomplete-suggestions)
   ========================================================================== */
.autocomplete-suggestions {
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--surface-bg, #ffffff);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  cursor: default;
  overflow: auto;
  max-height: 360px;
  z-index: 99999 !important;
  padding: 0.35rem 0;
  margin-top: 4px;
}
[data-bs-theme="dark"] .autocomplete-suggestions {
  background: var(--bs-body-bg, #1e293b);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.autocomplete-suggestion {
  padding: 0.55rem 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.autocomplete-selected,
.autocomplete-suggestion:hover {
  background: var(--bg-2, #f1f5f9);
  color: var(--bs-primary, #206bc4);
}
[data-bs-theme="dark"] .autocomplete-selected,
[data-bs-theme="dark"] .autocomplete-suggestion:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.autocomplete-suggestions strong {
  font-weight: 700;
  color: var(--bs-primary, #206bc4);
}
.autocomplete-group {
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--fg-3, #94a3b8);
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.06));
}

/* ==========================================================================
   Radio and Checkbox Reset (Bootstrap 6 compatibility)
   ========================================================================== */
/* Prevent Bootstrap 6 .radio from collapsing container divs into 1.25rem circle */
div.radio, ul.radio, .radio:not(input) {
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  position: static !important;
  display: block !important;
  margin-bottom: 0.45rem;
  padding: 0 !important;
  background: transparent !important;
}
div.radio::before, ul.radio::before, .radio:not(input)::before,
div.radio::after, ul.radio::after, .radio:not(input)::after {
  display: none !important;
  content: none !important;
}
div.radio label, ul.radio label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
  font-size: 0.9rem;
}
div.radio input[type="radio"], ul.radio input[type="radio"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}

div.checkbox, .checkbox:not(input) {
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  position: static !important;
  display: block !important;
  margin-bottom: 0.45rem;
  padding: 0 !important;
  background: transparent !important;
}
div.checkbox::before, .checkbox:not(input)::before,
div.checkbox::after, .checkbox:not(input)::after {
  display: none !important;
  content: none !important;
}
div.checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
  font-size: 0.9rem;
}
div.checkbox input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
}

ul.checkbox, ul.radio {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0.4rem 0 !important;
}
ul.checkbox li, ul.radio li {
  list-style-type: none !important;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
ul.checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

/* ==========================================================================
   Search Sliders & Multi-Currency Rates (.rates-range)
   ========================================================================== */
.slider-inputs {
  padding: 0.4rem 0;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.slider-inputs.slider-disabled {
  opacity: 0.38;
  filter: grayscale(85%);
  pointer-events: none;
  user-select: none;
}
.slider-inputs.slider-disabled input {
  cursor: not-allowed;
  background-color: var(--bs-tertiary-bg, rgba(0,0,0,0.04));
}
.slider-cont {
  position: relative;
}
.slider-range.ui-slider {
  height: 6px;
  background: var(--bg-2, #e2e8f0);
  border: none;
  border-radius: 3px;
  margin: 0.75rem 0.4rem;
  position: relative;
  touch-action: none;
}
[data-bs-theme="dark"] .slider-range.ui-slider {
  background: rgba(255, 255, 255, 0.15);
}
.slider-range .ui-slider-range {
  background: var(--bs-primary, #206bc4);
  border-radius: 3px;
  position: absolute;
  height: 100%;
}
.slider-range .ui-slider-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  top: -5px;
  margin-left: -8px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--bs-primary, #206bc4);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: transform 0.1s ease;
  touch-action: none;
}
.slider-range .ui-slider-handle::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
}
.slider-range .ui-slider-handle:hover,
.slider-range .ui-slider-handle.ui-state-active {
  transform: scale(1.15);
}
.input-range {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.input-range input {
  font-size: 0.8125rem;
  height: 30px;
  width: 82px;
  border-radius: 0.375rem;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--surface, #fff);
  color: var(--bs-fg-body, #1e293b);
  text-align: center;
  padding: 0.15rem 0.35rem;
  transition: all 0.15s ease;
}
.input-range input:focus {
  border-color: var(--bs-primary, #206bc4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.15);
}
[data-bs-theme="dark"] .input-range input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
}
[data-bs-theme="dark"] .input-range input:focus {
  border-color: var(--bs-primary, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.rates-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.rates-range .rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--surface, #fff);
  color: var(--fg-2, #475569);
  cursor: pointer;
  transition: all 0.15s ease;
}
.rates-range .rate:hover {
  border-color: var(--bs-primary, #206bc4);
  color: var(--bs-primary, #206bc4);
}
.rates-range .rate.active {
  background: var(--bs-primary, #206bc4);
  border-color: var(--bs-primary, #206bc4);
  color: #fff;
}
[data-bs-theme="dark"] .rates-range .rate {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}
[data-bs-theme="dark"] .rates-range .rate.active {
  background: var(--bs-primary, #206bc4);
  color: #fff;
}
.slider-disabler {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
}
.slider-disabler label {
  cursor: pointer;
}

/* ==========================================================================
   Tooltips (Bootstrap 3/4 absolute positioning & animations)
   ========================================================================== */
.tooltip {
  position: absolute !important;
  z-index: 1070 !important;
  display: block !important;
  font-family: inherit;
  font-size: 0.785rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  line-break: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}
.tooltip.in, .tooltip.show {
  opacity: 0.95 !important;
}
.tooltip.top {
  padding: 6px 0;
  margin-top: -3px;
}
.tooltip.right {
  padding: 0 6px;
  margin-left: 3px;
}
.tooltip.bottom {
  padding: 6px 0;
  margin-top: 3px;
}
.tooltip.left {
  padding: 0 6px;
  margin-left: -3px;
}
.tooltip-inner {
  max-width: 250px;
  padding: 0.4rem 0.75rem;
  color: #fff;
  text-align: center;
  background-color: #0f172a;
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}
.tooltip.top .tooltip-arrow {
  bottom: 0;
  left: 50%;
  margin-left: -5px;
  border-width: 5px 5px 0;
  border-top-color: #0f172a;
}
.tooltip.bottom .tooltip-arrow {
  top: 0;
  left: 50%;
  margin-left: -5px;
  border-width: 0 5px 5px;
  border-bottom-color: #0f172a;
}
.tooltip.left .tooltip-arrow {
  top: 50%;
  right: 0;
  margin-top: -5px;
  border-width: 5px 0 5px 5px;
  border-left-color: #0f172a;
}
.tooltip.right .tooltip-arrow {
  top: 50%;
  left: 0;
  margin-top: -5px;
  border-width: 5px 5px 5px 0;
  border-right-color: #0f172a;
}

/* ==========================================================================
   Alerts & Category Info (.alert_cat_warning, .alert_cat_success)
   ========================================================================== */
.alert {
  display: block;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font-size: 0.9rem;
}
.alert-success, .alert_cat_success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}
.alert-warning, .alert_cat_warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}
.alert-danger, .alert-error {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}
.alert-info {
  color: #055160;
  background-color: #cff4fc;
  border-color: #b6effb;
}
[data-bs-theme="dark"] .alert-success, [data-bs-theme="dark"] .alert_cat_success {
  background-color: rgba(25, 135, 84, 0.2);
  color: #75b798;
  border-color: rgba(25, 135, 84, 0.3);
}
[data-bs-theme="dark"] .alert-warning, [data-bs-theme="dark"] .alert_cat_warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffda6a;
  border-color: rgba(255, 193, 7, 0.25);
}
[data-bs-theme="dark"] .alert-danger, [data-bs-theme="dark"] .alert-error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ea868f;
  border-color: rgba(220, 53, 69, 0.3);
}
[data-bs-theme="dark"] .alert-info {
  background-color: rgba(13, 202, 240, 0.2);
  color: #6edff6;
  border-color: rgba(13, 202, 240, 0.3);
}

/* ==========================================================================
   FileUpload Plugin (.template-upload, .template-download)
   ========================================================================== */
.fade.in,
.fade.show {
  opacity: 1 !important;
}
.template-upload.fade,
.template-download.fade {
  transition: opacity 0.15s linear;
}
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
  align-items: flex-start;
}
.template-upload,
.template-download {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 0.75rem;
  overflow: visible;
  margin: 0 !important;
  float: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 2px solid var(--border-color, #e2e8f0);
  background: var(--surface-bg, #fff);
  display: inline-block;
  vertical-align: top;
}
[data-bs-theme="dark"] .template-upload,
[data-bs-theme="dark"] .template-download {
  background: var(--bs-body-bg, #1a1e24);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.template-upload .preview,
.template-download .preview {
  width: 100%;
  height: 100%;
  border-radius: 0.65rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.template-upload .preview a,
.template-download .preview a,
.files .preview a {
  display: block;
  width: 100%;
  height: 100%;
}
.template-upload .preview canvas,
.template-upload .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview-img {
  width: 100%;
  height: 100%;
  min-width: 100px;
  min-height: 100px;
  border-radius: 0.65rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
}
.template-upload .fileact,
.template-download .fileact {
  position: absolute;
  top: -8px;
  right: -8px;
  left: auto !important;
  z-index: 10;
  width: auto;
}
.fileact a.delete,
.fileact a.cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
}
.fileact a.delete {
  color: #dc3545;
}
.fileact a.delete:hover {
  background: #dc3545;
  color: #ffffff;
  transform: scale(1.1);
}
.fileact a.cancel {
  color: #f59e0b;
}
.fileact a.cancel:hover {
  background: #f59e0b;
  color: #ffffff;
  transform: scale(1.1);
}
.fileact .fa-stack {
  font-size: 0.8rem;
  width: 1.4em;
  height: 1.4em;
  line-height: 1.4em;
}
.files .progress {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-2, #e2e8f0);
  overflow: hidden;
  margin: 0.5rem 0;
}
.files .progress-bar {
  background-color: var(--bs-primary, #206bc4);
  height: 100%;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Yandex Map Field
   ========================================================================== */
.yandex_field {
  width: 100% !important;
  height: auto !important;
  margin-bottom: 1.5rem;
}
.yandex_field iframe {
  width: 100% !important;
  height: 300px !important;
  border-radius: 0.65rem;
  border: 1px solid var(--border-color, #e2e8f0);
  display: block;
}

/* ==========================================================================
   Shop Header & Banner (.block_shop)
   ========================================================================== */
.block_shop {
  position: relative;
  background-color: var(--bs-primary, #206bc4);
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
}
.block_shop_overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.68) 100%);
  width: 100%;
  height: 100%;
}
.block_shop_logo img {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.hover-white:hover {
  color: #fff !important;
}

/* ==========================================================================
   Modern Articles Styles
   ========================================================================== */
.article-card {
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--fg-3, #94a3b8);
}
.article-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.article-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  background: var(--bg-2, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.article-cat-item:hover {
  background: var(--bs-primary, #206bc4);
  border-color: var(--bs-primary, #206bc4);
  color: #fff;
}
[data-bs-theme="dark"] .article-cat-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .article-cat-item:hover {
  background: var(--bs-primary, #206bc4);
  color: #fff;
}

/* ==========================================================================
   Inline Controls & Form Alignments
   ========================================================================== */
.checkbox label,
.radio label,
.form-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.checkbox label > label:empty,
.radio label > label:empty {
  display: none !important;
}

/* Price + Currency Input Group (.price_select) */
.price_select {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  max-width: 380px;
}
.price_select > input.form-control,
.price_select > input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.price_select > select.form-control,
.price_select > select.form-select,
.price_select > select {
  flex: 0 0 110px;
  width: 110px;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  margin-left: -1px;
}

/* Captcha Inline Container (.captcha_cont) */
.captcha_cont {
  display: inline-flex !important;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.captcha_cont img {
  height: 38px;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.captcha_cont input.form-control,
.captcha_cont input {
  max-width: 160px;
  height: 38px;
}

/* ==========================================================================
   Multiselect & Region / Category Status Badges
   ========================================================================== */
.multiselect_cont {
  position: relative;
}
.multiselect {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.multiselect p {
  margin: 0;
}
.multiselect a.change {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  background: var(--bg-2, #f1f5f9);
  color: var(--bs-primary, #206bc4);
  border: 1px solid var(--border-color, #cbd5e1);
  text-decoration: none;
  transition: all 0.2s ease;
}
.multiselect a.change:hover {
  background: var(--bs-primary, #206bc4);
  color: #fff;
  border-color: var(--bs-primary, #206bc4);
  box-shadow: 0 4px 12px rgba(32, 107, 196, 0.25);
  transform: translateY(-1px);
}
.multiselect a.change::after {
  content: "\f044";
  font-family: "FontAwesome";
  font-size: 0.8rem;
  opacity: 0.75;
}
[data-bs-theme="dark"] .multiselect a.change {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #60a5fa;
}
[data-bs-theme="dark"] .multiselect a.change:hover {
  background: var(--bs-primary, #206bc4);
  color: #fff;
}

#alert_region_success,
#alert_region_warning,
#alert_cat_success,
#alert_cat_warning {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
#alert_region_success,
#alert_cat_success {
  background: rgba(47, 179, 71, 0.12);
  color: #2fb344;
  border: 1px solid rgba(47, 179, 71, 0.25);
}
#alert_region_success::before,
#alert_cat_success::before {
  content: "\f058";
  font-family: "FontAwesome";
  font-size: 1rem;
}
#alert_region_warning,
#alert_cat_warning {
  background: rgba(245, 159, 0, 0.12);
  color: #d97706;
  border: 1px solid rgba(245, 159, 0, 0.25);
}
#alert_region_warning::before,
#alert_cat_warning::before {
  content: "\f071";
  font-family: "FontAwesome";
  font-size: 0.95rem;
}
[data-bs-theme="dark"] #alert_region_success,
[data-bs-theme="dark"] #alert_cat_success {
  background: rgba(47, 179, 71, 0.2);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
[data-bs-theme="dark"] #alert_region_warning,
[data-bs-theme="dark"] #alert_cat_warning {
  background: rgba(245, 159, 0, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   Search Block Fields & Dividers
   ========================================================================== */
.block_search .float_field {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
.block_search .float_field:last-child {
  border-bottom: none;
}
.block_search .list-title,
.float_field .list-title {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fg-2, #64748b);
  margin-bottom: 0.5rem;
}
[data-bs-theme="dark"] .block_search .list-title,
[data-bs-theme="dark"] .float_field .list-title {
  color: var(--fg-3, #94a3b8);
}
.float_field ul.checkbox,
.float_field ul.radio {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.float_field ul.checkbox li,
.float_field ul.radio li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
}
.float_field ul.checkbox li input,
.float_field ul.radio li input {
  margin: 0;
  cursor: pointer;
}
.float_field ul.checkbox li label,
.float_field ul.radio li label {
  cursor: pointer;
  margin: 0;
}

/* ==========================================================================
   Shop Cover Banner
   ========================================================================== */
.block_shop_cover {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Map Page Controls & Panel
   ========================================================================== */
.map-nav-btn {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full, 9999px);
  text-decoration: none;
  color: var(--bs-fg-body, #1e293b);
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.map-nav-btn:hover {
  background: var(--surface-hover, #f1f5f9);
  color: var(--primary, #0284c7);
}
[data-bs-theme="dark"] .map-nav-btn {
  background: var(--surface, #1e293b);
  color: var(--bs-fg-body, #f1f5f9);
  border-color: rgba(255, 255, 255, 0.12);
}
[data-bs-theme="dark"] .map-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary, #38bdf8);
}

.map-search-toggle {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 9999;
  border-radius: var(--radius-full, 9999px);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.search_panel {
  width: 340px;
  max-width: calc(100vw - 28px);
  position: absolute;
  right: 14px;
  top: 64px;
  z-index: 9999;
  background: var(--surface, #ffffff);
  color: var(--bs-fg-body, #1e293b);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  border-radius: var(--radius-lg, 12px);
  padding: 18px;
  overflow-y: auto;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
[data-bs-theme="dark"] .search_panel {
  background: var(--surface, #1e293b);
  color: var(--bs-fg-body, #f1f5f9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 770px) {
  .search_panel {
    display: none;
    top: 60px;
    right: 14px;
    left: 14px;
    width: auto;
  }
  .search_panel.open {
    display: block !important;
  }
}

/* ==========================================================================
   Services & Popup Tables
   ========================================================================== */
.checkboxtable tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
.checkboxtable tr:hover td {
  background-color: var(--surface-hover, rgba(0, 0, 0, 0.03));
}
[data-bs-theme="dark"] .checkboxtable tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   VIP Listings & Promotional Cards
   ========================================================================== */
.listing.listing-vip {
  border: 1px solid rgba(var(--primary-rgb, 14, 165, 233), 0.35);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.08);
}
[data-bs-theme="dark"] .listing.listing-vip {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Owl Carousel Enhancements (Aero Theme)
   ========================================================================== */
.item-carousel.owl-carousel {
  margin: 0 -4px;
}
.owl-carousel .owl-item {
  padding: 0 4px;
}
.owl-carousel .owl-item .listing {
  height: 100%;
}
.owl-theme .owl-controls {
  margin-top: 12px;
  text-align: center;
}
.owl-theme .owl-controls .owl-page span {
  width: 8px;
  height: 8px;
  margin: 4px 5px;
  background: var(--border, #cbd5e1);
  border-radius: 999px;
  opacity: 0.7;
  transition: all 0.2s ease;
}
.owl-theme .owl-controls .owl-page.active span,
.owl-theme .owl-controls.clickable .owl-page:hover span {
  background: var(--theme-primary, #0ea5e9);
  opacity: 1;
  width: 18px;
}
[data-bs-theme="dark"] .owl-theme .owl-controls .owl-page span {
  background: rgba(255, 255, 255, 0.2);
}
[data-bs-theme="dark"] .owl-theme .owl-controls .owl-page.active span {
  background: var(--theme-primary, #38bdf8);
}

.carousel-nav .btn-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 6px);
  font-size: 0.75rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--surface, #ffffff);
  color: var(--bs-fg-body, #334155);
  transition: all 0.15s ease;
}
.carousel-nav .btn-icon:hover {
  background: var(--theme-primary, #0ea5e9);
  color: #fff;
  border-color: var(--theme-primary, #0ea5e9);
}
[data-bs-theme="dark"] .carousel-nav .btn-icon {
  background: var(--surface, #1e293b);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

/* ==========================================================================
   Private Messages & Messenger Interface (users_pm.html)
   ========================================================================== */

/* Chat Container */
.pm-chat-container {
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface, #ffffff);
}
[data-bs-theme="dark"] .pm-chat-container {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--surface, #1e293b);
}

/* Chat Header */
.pm-chat-container .chat-title {
  background: var(--surface, #ffffff);
  border-bottom: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
[data-bs-theme="dark"] .pm-chat-container .chat-title {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.pm-back-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.pm-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pm-user-avatar.sm {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.pm-user-name {
  color: var(--bs-fg-body, #1e293b);
  font-size: 0.95rem;
}
[data-bs-theme="dark"] .pm-user-name {
  color: #f1f5f9;
}

/* Chat Scroll Box */
#pm-chat.chat-table {
  height: 480px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: var(--surface-secondary, rgba(0, 0, 0, 0.015));
}
[data-bs-theme="dark"] #pm-chat.chat-table {
  background: rgba(0, 0, 0, 0.15);
}

#pm-chat::-webkit-scrollbar {
  width: 6px;
}
#pm-chat::-webkit-scrollbar-thumb {
  background: var(--border, #cbd5e1);
  border-radius: 3px;
}
[data-bs-theme="dark"] #pm-chat::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

/* Chat Table */
.pm-chat-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  background: transparent !important;
}
.pm-chat-table tr {
  background: transparent !important;
}
.pm-chat-table td {
  padding: 2px 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Message Rows and Bubbles */
.pm-row {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 80%;
  margin-bottom: 2px;
}

/* Outgoing (sent by current user) */
.pm-row.pm-1 {
  margin-left: auto;
  align-items: flex-end;
}
.pm-row.pm-1 .pm {
  background: var(--theme-primary, #0ea5e9);
  color: #ffffff;
  border-radius: 16px 16px 4px 16px;
  padding: 9px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.25);
  word-break: break-word;
}
.pm-row.pm-1 .pm a {
  color: #e0f2fe;
  text-decoration: underline;
}

/* Incoming (from other user) */
.pm-row.pm-2 {
  margin-right: auto;
  align-items: flex-start;
}
.pm-row.pm-2 .pm {
  background: var(--surface, #ffffff);
  color: var(--bs-fg-body, #1e293b);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 16px 16px 16px 4px;
  padding: 9px 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  word-break: break-word;
}
[data-bs-theme="dark"] .pm-row.pm-2 .pm {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
.pm-row.pm-2 .pm a {
  color: var(--theme-primary, #0ea5e9);
  text-decoration: underline;
}

/* Message Bubble Layout & Actions */
.pm-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
}
.pm-row.pm-1 .pm-bubble-wrap {
  flex-direction: row-reverse;
}
.pm-row.pm-2 .pm-bubble-wrap {
  flex-direction: row;
}

.pm-meta-actions {
  opacity: 0;
  transition: opacity 0.18s ease;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.pm-row:hover .pm-meta-actions {
  opacity: 1;
}

.pm-info-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--surface, #ffffff);
  color: var(--fg-3, #94a3b8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  padding: 0;
}
.pm-info-btn:hover,
.pm-info-btn:focus {
  color: var(--theme-primary, #0ea5e9);
  border-color: var(--theme-primary, #0ea5e9);
  background: var(--surface, #ffffff);
}
[data-bs-theme="dark"] .pm-info-btn {
  background: var(--surface, #1e293b);
  border-color: rgba(255, 255, 255, 0.15);
  color: #94a3b8;
}
[data-bs-theme="dark"] .pm-info-btn:hover {
  color: var(--theme-primary, #0ea5e9);
  border-color: var(--theme-primary, #0ea5e9);
}

/* Info Popover */
.pm-info-popover {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  z-index: 1050;
  min-width: 240px;
  max-width: 320px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bs-fg-body, #1e293b);
  text-align: left;
  white-space: normal;
  pointer-events: auto;
}
.pm-info-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  background: transparent;
}
.pm-row.pm-1 .pm-info-popover {
  right: 0;
}
.pm-row.pm-2 .pm-info-popover {
  left: 0;
}
.pm-info-btn:hover .pm-info-popover,
.pm-info-btn:focus .pm-info-popover,
.pm-info-btn:focus-within .pm-info-popover,
.pm-info-btn.is-active .pm-info-popover,
.pm-info-popover:hover {
  display: flex !important;
}
.pm-info-btn.is-active {
  color: var(--theme-primary, #0ea5e9);
  border-color: var(--theme-primary, #0ea5e9);
}
[data-bs-theme="dark"] .pm-info-popover {
  background: var(--surface, #1e293b);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
}

.pm-popover-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2, #64748b);
}
[data-bs-theme="dark"] .pm-popover-item {
  color: #cbd5e1;
}
.pm-popover-item i {
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  color: var(--fg-3, #94a3b8);
}
.pm-popover-delete {
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  padding-top: 5px;
  margin-top: 2px;
  cursor: pointer;
  user-select: none;
}
.pm-popover-delete:hover .pm-deletemsg {
  color: #dc2626;
}
[data-bs-theme="dark"] .pm-popover-delete {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.pm-deletemsg {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--theme-danger, #ef4444);
  transition: opacity 0.15s ease;
}
.pm-deletemsg:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.pm-date-read {
  font-style: italic;
  font-size: 0.72rem;
}

/* Attachments */
.pm-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pm-attachment-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.pm-attachment-image img {
  max-width: 130px;
  max-height: 130px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.pm-attachment-image img:hover {
  transform: scale(1.04);
}

.pm-attachment-file a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.pm-row.pm-1 .pm-attachment-file a {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.pm-row.pm-1 .pm-attachment-file a:hover {
  background: rgba(255, 255, 255, 0.3);
}
.pm-row.pm-2 .pm-attachment-file a {
  background: rgba(0, 0, 0, 0.05);
  color: inherit;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
[data-bs-theme="dark"] .pm-row.pm-2 .pm-attachment-file a {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Input Form */
.pm-msgform-container {
  background: var(--surface, #ffffff);
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
[data-bs-theme="dark"] .pm-msgform-container {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.pm-input-wrapper {
  position: relative;
}

.pm-attach-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--fg-2, #64748b);
  border-color: var(--border, rgba(0, 0, 0, 0.12));
}
.pm-attach-btn:hover {
  color: var(--theme-primary, #0ea5e9);
  border-color: var(--theme-primary, #0ea5e9);
  background: transparent;
}
[data-bs-theme="dark"] .pm-attach-btn {
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.12);
}

.pm-msgbox {
  resize: none;
  min-height: 40px;
  max-height: 120px;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.92rem;
  line-height: 1.4;
  background: var(--surface-secondary, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
}
.pm-msgbox:focus {
  background: var(--surface, #ffffff);
  border-color: var(--theme-primary, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
[data-bs-theme="dark"] .pm-msgbox {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}
[data-bs-theme="dark"] .pm-msgbox:focus {
  background: rgba(255, 255, 255, 0.07);
}

.pm-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  padding: 0;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

/* Selected Attachments Preview Chips */
.pm-attachment-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2, #f1f5f9);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.78rem;
}
[data-bs-theme="dark"] .pm-attachment-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.pm-attachment-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}
.pm-attachment-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.pm-attachment-size {
  font-size: 0.7rem;
  color: var(--fg-3, #94a3b8);
}
.pm-attachment-remove {
  border-radius: 50%;
  width: 18px;
  height: 18px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Photo Modal Lightbox */
.photo-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  text-align: center;
}
.photo-modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.photo-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.15s ease;
  line-height: 1;
}
.photo-modal-close:hover {
  color: var(--theme-primary, #0ea5e9);
}

/* Dialogs List Table (when $pm is active) */
.pm-dialog-row {
  transition: background 0.15s ease;
}
.pm-row-preview {
  padding: 4px 0;
}
.pm-row-preview:hover .pm-text {
  color: var(--theme-primary, #0ea5e9);
}

#main{
  padding-top: 1rem;
}

/* Promo Carousel Overlay Arrows & Container */
.promo-carousel-wrap {
  position: relative;
}
.promo-carousel-wrap .carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface, #ffffff);
  color: var(--bs-fg-body, #1e293b);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.75;
  padding: 0;
  font-size: 0.85rem;
}
.promo-carousel-wrap:hover .carousel-arrow {
  opacity: 1;
}
.promo-carousel-wrap .carousel-arrow:hover {
  background: var(--theme-primary, #0ea5e9);
  color: #ffffff;
  border-color: var(--theme-primary, #0ea5e9);
  transform: translateY(-50%) scale(1.08);
}
.promo-carousel-wrap .carousel-arrow.prevItem {
  left: 6px;
}
.promo-carousel-wrap .carousel-arrow.nextItem {
  right: 6px;
}
[data-bs-theme="dark"] .promo-carousel-wrap .carousel-arrow {
  background: var(--surface, #1e293b);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .promo-carousel-wrap .carousel-arrow:hover {
  background: var(--theme-primary, #0ea5e9);
  color: #ffffff;
  border-color: var(--theme-primary, #0ea5e9);
}

/* User Profile & User Card */
.user-avatar-wrap {
  position: relative;
  display: inline-block;
}
.user-avatar-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--surface-2, #e2e8f0);
  color: var(--fg-3, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid var(--border, rgba(0, 0, 0, 0.08));
}
.user-avatar-wrap.lg .user-avatar-placeholder {
  width: 76px;
  height: 76px;
  font-size: 2.2rem;
}
[data-bs-theme="dark"] .user-avatar-placeholder {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}
.user-card {
  border-radius: var(--radius-lg, 0.75rem);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.user-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}
.user-profile-hero {
  border-radius: var(--radius-xl, 1rem);
}

/* Payouts */
.payout-balance-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  color: var(--theme-primary, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
[data-bs-theme="dark"] .payout-balance-icon {
  background: rgba(14, 165, 233, 0.2);
}

/* Password confirmation and alerts */
#password2 {
  margin-top: 0.5rem;
}

#password_success,
#password_warning,
#password_info {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.82rem;
  line-height: 1.4;
}

#password_success:not([style*="none"]),
#password_warning:not([style*="none"]),
#password_info:not([style*="none"]) {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

#password_success[style*="none"],
#password_warning[style*="none"],
#password_info[style*="none"] {
  display: none !important;
}

#password_success i,
#password_warning i,
#password_info i {
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* Promo Carousel Equal Heights */
.item-carousel.owl-carousel .owl-wrapper {
  display: flex !important;
}
.item-carousel.owl-carousel .owl-item {
  float: none !important;
  display: flex;
  flex-direction: column;
}
.item-carousel.owl-carousel .item {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}
.item-carousel.owl-carousel .listing {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
}
.item-carousel.owl-carousel .listing-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.item-carousel.owl-carousel .listing-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.item-carousel.owl-carousel .promo-price-row {
  min-height: 1.6rem;
}

/* User Shop Badge & Global Text White */
.text-white, a.text-white, a.text-white:hover, a.text-white:focus {
  color: #ffffff !important;
}

.user-shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--bs-radius-pill, 9999px);
  background-color: var(--bs-primary-subtle, rgba(14, 165, 233, 0.12));
  color: var(--theme-primary, #0ea5e9);
  border: 1px solid var(--bs-primary-border-subtle, rgba(14, 165, 233, 0.25));
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.user-shop-badge:hover {
  background-color: var(--theme-primary, #0ea5e9);
  color: #ffffff !important;
  border-color: var(--theme-primary, #0ea5e9);
}
[data-bs-theme="dark"] .user-shop-badge {
  background-color: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
  color: #38bdf8;
}

/* Shop Social Chips */
.chip.chip-social-vk {
  background-color: #4680C2 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.chip.chip-social-fb {
  background-color: #3B5998 !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.chip.chip-social-in {
  background-color: #E1306C !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
.chip.chip-social-vk:hover,
.chip.chip-social-fb:hover,
.chip.chip-social-in:hover {
  opacity: 0.9;
  color: #ffffff !important;
}

/* Video Responsive Embed */
.ratio, [class*="ratio-"] {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  border-radius: 0.75rem;
}
.ratio-16x9 {
  aspect-ratio: 16 / 9;
}
.ratio > iframe,
.ratio > video,
.ratio > embed,
.ratio > object,
[class*="ratio-"] > iframe,
[class*="ratio-"] > video,
[class*="ratio-"] > embed,
[class*="ratio-"] > object {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Map Balloon Card */
.map-balloon-card {
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #1e293b;
  max-width: 320px;
  padding: 4px 2px;
}
.map-balloon-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}
.map-balloon-card h2 a {
  color: var(--theme-primary, #0ea5e9);
  text-decoration: none;
}
.map-balloon-card h2 a:hover {
  color: #0284c7;
  text-decoration: underline;
}
.map-balloon-card h2 .badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-primary, #0ea5e9);
  background-color: var(--bs-primary-subtle, rgba(14, 165, 233, 0.12));
  border: 1px solid var(--bs-primary-border-subtle, rgba(14, 165, 233, 0.25));
  border-radius: 9999px;
  padding: 0.15rem 0.5rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.map-balloon-card .text-left {
  font-size: 0.825rem;
  color: #475569;
}
.map-balloon-card .text-left img {
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-right: 8px !important;
  margin-bottom: 6px !important;
}
.map-balloon-card .text-left p {
  margin: 0 0 0.35rem 0;
}
.map-balloon-card .text-left p:last-child {
  margin-bottom: 0;
  margin-top: 0.5rem;
  clear: both;
}

/* ==========================================================================
   Mobile & Responsive Enhancements
   ========================================================================== */

/* Brand title & Mobile Add Ad visibility */
@media (min-width: 992px) {
  .site-header .brand-title {
    display: none !important;
  }
  .nav-item-add-mobile {
    display: none !important;
  }
}
@media (max-width: 991.98px) {
  .site-header .brand-title {
    display: inline-block !important;
  }
}

/* Search Hero mobile heading */
@media (max-width: 767.98px) {
  .search-hero h1 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .site-header .navbar {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
}

/* Region Modal Mobile Optimization */
@media (max-width: 576px) {
  #selectRegion .modal-dialog {
    margin: 0.5rem auto !important;
    max-width: calc(100% - 1rem) !important;
  }
  #selectRegion .modal-header {
    padding: 0.75rem 1rem !important;
  }
  #selectRegion .modal-body {
    padding: 0.75rem 1rem !important;
    max-height: calc(85vh - 60px) !important;
  }
  #selectRegion #regionlist {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 0.35rem !important;
    margin-top: 0.5rem !important;
  }
  #selectRegion #regionlist li a {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.8125rem !important;
  }
  #selectRegion .region_control {
    gap: 0.35rem !important;
    margin-bottom: 0.65rem !important;
  }
  #selectRegion .region_control a {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.8rem !important;
  }
}

/* Form Horizontal Mobile Stacking */
@media (max-width: 767.98px) {
  .form-horizontal .form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 1.15rem !important;
  }
  .form-horizontal .form-group > label,
  .form-horizontal .form-group > .control-label {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    text-align: left !important;
    margin-bottom: 0.35rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .form-horizontal .form-group > div,
  .form-horizontal .form-group > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Drawer User Panel Sidebar */
.drawer-body .user-panel-sidebar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}
.drawer-body .user-panel-sidebar .user-menu-list {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}
.drawer-body .user-panel-sidebar .user-menu-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  color: var(--bs-fg-body, #334155);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.drawer-body .user-panel-sidebar .user-menu-list li a:hover,
.drawer-body .user-panel-sidebar .user-menu-list li.active a {
  background: var(--bs-primary-subtle, rgba(14, 165, 233, 0.1));
  color: var(--theme-primary, #0ea5e9);
}
.drawer-body .user-panel-sidebar .badge-count {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--bs-primary-subtle, rgba(14, 165, 233, 0.15));
  color: var(--theme-primary, #0ea5e9);
  font-weight: 600;
}
[data-bs-theme="dark"] .drawer-body .user-panel-sidebar {
  border-top-color: rgba(255, 255, 255, 0.1);
}
[data-bs-theme="dark"] .drawer-body .user-panel-sidebar .user-menu-list li a {
  color: var(--bs-fg-body, #cbd5e1);
}

/* User Ads Table Mobile Card Layout */
@media (max-width: 767.98px) {
  #panel_ads thead {
    display: none !important;
  }
  #panel_ads,
  #panel_ads tbody {
    display: block !important;
    width: 100% !important;
  }
  #panel_ads tr.panel-ad-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: 0.75rem !important;
    background: var(--surface-bg, #fff) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  }
  [data-bs-theme="dark"] #panel_ads tr.panel-ad-row {
    background: var(--bs-body-bg, #1a1e24) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
  #panel_ads tr.panel-ad-row .td-check {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    margin-top: 0.25rem !important;
  }
  #panel_ads tr.panel-ad-row .td-img {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #panel_ads tr.panel-ad-row .td-img img {
    width: 52px !important;
    height: 52px !important;
    object-fit: cover !important;
    border-radius: 0.5rem !important;
  }
  #panel_ads tr.panel-ad-row .td-info {
    display: block !important;
    flex: 1 1 calc(100% - 92px) !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  #panel_ads tr.panel-ad-row .td-info p {
    margin-bottom: 0.25rem !important;
    font-size: 0.9375rem !important;
    line-height: 1.35 !important;
  }
  #panel_ads tr.panel-ad-row .td-actions {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.35rem !important;
    padding: 0.5rem 0 0 0 !important;
    margin-top: 0.35rem !important;
    border: 0 !important;
    border-top: 1px solid var(--border-color, #f1f5f9) !important;
    text-align: right !important;
  }
  [data-bs-theme="dark"] #panel_ads tr.panel-ad-row .td-actions {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
  }
  #panel_ads tr.panel-ad-row .td-actions .btn-sm,
  #panel_ads tr.panel-ad-row .td-actions .btn-solid,
  #panel_ads tr.panel-ad-row .td-actions .btn-outline {
    margin: 0 !important;
    padding: 0.35rem 0.6rem !important;
    font-size: 0.8125rem !important;
  }
}

/* List Full Filters mobile wrapping */
@media (max-width: 576px) {
  .list-filters-group {
    width: 100% !important;
  }
  .list-filters-group .list-filter-select {
    flex: 1 1 calc(50% - 0.5rem) !important;
    min-width: 130px !important;
  }
}

