/* ==========================================================================
   Kizmio Gigs Marketplace CSS
   Theme Color: Green (#198754)
   ========================================================================== */

:root {
  --gig-primary: #198754;
  --gig-primary-hover: #146c43;
  --gig-primary-soft: #f0fdf4;
  --gig-primary-border: #bbf7d0;
  --gig-accent: #0d9488;
  --gig-dark: #091a33;
  --gig-ink: #111827;
  --gig-muted: #6b7280;
  --gig-line: #e5e7eb;
}

/* Page scope theme override for Gigs */
.kizmio-gigs-page {
  --kzm-primary: #198754 !important;
  --kzm-primary-hover: #146c43 !important;
  --kzm-primary-active: #0f5132 !important;
  --kzm-primary-soft: rgba(25, 135, 84, 0.09) !important;
  --kzm-primary-tint: #f0fdf4 !important;
  --kzm-focus: 0 0 0 3px rgba(25, 135, 84, 0.22) !important;
}

.gigs-sidebar-backdrop {
  display: none;
}

/* --------------------------------------------------------------------------
   Header Tabs & Action Buttons (#198754)
   -------------------------------------------------------------------------- */
.kizmio-gigs-page .content-tabs,
.gigs-content-tabs {
  border-radius: 14px;
}

.kizmio-gigs-page .content-tabs > ul > li > a:hover,
.kizmio-gigs-page .content-tabs > ul > li.active > a,
.gigs-content-tabs > ul > li > a:hover,
.gigs-content-tabs > ul > li.active > a {
  color: #198754 !important;
}

.kizmio-gigs-page .content-tabs > ul > li.active > a,
.gigs-content-tabs > ul > li.active > a {
  border-bottom: 2px solid #198754 !important;
}

.kizmio-gigs-page .content-tabs .main-icon,
.kizmio-gigs-page .content-tabs .main-icon *,
.kizmio-gigs-page .content-tabs svg,
.kizmio-gigs-page .content-tabs svg *,
.gigs-content-tabs .main-icon,
.gigs-content-tabs .main-icon *,
.gigs-content-tabs svg,
.gigs-content-tabs svg * {
  color: #198754 !important;
  fill: #198754 !important;
}

.kizmio-gigs-page .btn-primary,
.gigs-content-tabs .btn-primary,
.btn-gig-create {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #fff !important;
}

.kizmio-gigs-page .btn-primary:hover,
.kizmio-gigs-page .btn-primary:focus,
.gigs-content-tabs .btn-primary:hover,
.gigs-content-tabs .btn-primary:focus,
.btn-gig-create:hover,
.btn-gig-create:focus {
  background-color: #146c43 !important;
  border-color: #146c43 !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   1. Hero Banner
   -------------------------------------------------------------------------- */
.gigs-hero-v2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(130deg, #071e16 0%, #0d2f23 45%, #154534 100%);
  color: #fff;
  min-height: 420px;
  margin-bottom: 25px;
}

.gigs-hero-v2:before,
.gigs-hero-v2:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.gigs-hero-v2:before {
  width: 480px;
  height: 480px;
  right: 5%;
  top: -180px;
  background: radial-gradient(circle, rgba(25, 135, 84, 0.38), transparent 70%);
}

.gigs-hero-v2:after {
  width: 380px;
  height: 380px;
  left: 30%;
  bottom: -200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
}

.gigs-hero-v2__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(600px) rotateX(48deg) scale(1.35);
  transform-origin: center bottom;
}

.gigs-hero-v2__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 48px;
  align-items: center;
  min-height: 420px;
  padding-top: 48px;
  padding-bottom: 54px;
}

.gigs-hero-v2__copy {
  max-width: 640px;
}

.gigs-hero-v2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.gigs-hero-v2__badge i {
  color: #4ade80;
}

.gigs-hero-v2 h1 {
  margin: 16px 0 12px;
  color: #fff;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.gigs-hero-v2 h1 span {
  background: linear-gradient(135deg, #4ade80 0%, #86efac 50%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gigs-hero-v2__copy > p {
  max-width: 580px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.6;
}

/* Hero Search */
.gigs-hero-search {
  display: flex;
  align-items: center;
  max-width: 580px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 16px 42px rgba(2, 29, 15, 0.28);
  transition: box-shadow 0.2s, transform 0.2s;
}

.gigs-hero-search:focus-within {
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.28), 0 18px 48px rgba(2, 29, 15, 0.3);
  transform: translateY(-1px);
}

.gigs-hero-search > i {
  color: #64748b;
  font-size: 16px;
}

.gigs-hero-search input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
}

.gigs-hero-search input::placeholder {
  color: #94a3b8;
}

.gigs-hero-search button {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--gig-primary);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.gigs-hero-search button:hover {
  background: var(--gig-primary-hover);
  transform: translateY(-1px);
}

/* Popular Category Chips */
.gigs-hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
}

.gigs-hero-chips span {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 700;
}

.gigs-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
}

.gigs-hero-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Hero Visual Composition */
.gigs-hero-visual {
  position: relative;
  height: 310px;
}

.gigs-hero-card {
  position: absolute;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(8, 38, 25, 0.84);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.25s, box-shadow 0.25s;
}

.gigs-hero-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.38);
}

.gigs-hero-card--featured {
  width: 295px;
  left: 8%;
  top: 40px;
  z-index: 3;
  flex-direction: column;
  padding: 16px;
  border-color: rgba(74, 222, 128, 0.4);
}

.gigs-hero-card--featured .gigs-hero-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gigs-hero-card--featured .gigs-hero-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #198754, #059669);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.gigs-hero-card--featured .gigs-hero-card__user strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.gigs-hero-card--featured .gigs-hero-card__user small {
  display: block;
  font-size: 10px;
  color: #86efac;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gigs-hero-card--featured .gigs-hero-card__title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.gigs-hero-card--featured .gigs-hero-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
}

.gigs-hero-card--featured .gigs-hero-card__rating {
  color: #fbbf24;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.gigs-hero-card--featured .gigs-hero-card__price {
  color: #4ade80;
  font-weight: 850;
  font-size: 13px;
}

.gigs-hero-card--badge-1 {
  right: 0;
  top: 12px;
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 750;
  transform: rotate(2deg);
  border-color: rgba(74, 222, 128, 0.4);
}

.gigs-hero-card--badge-1 i {
  color: #4ade80;
  font-size: 16px;
}

.gigs-hero-card--badge-2 {
  right: 4%;
  bottom: 16px;
  padding: 10px 14px;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 750;
  transform: rotate(-3deg);
  border-color: rgba(74, 222, 128, 0.4);
}

.gigs-hero-card--badge-2 i {
  color: #86efac;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   2. Places Category Card Sidebar for Gigs (Green #198754)
   -------------------------------------------------------------------------- */
.gigs-detail-sidebar,
.places-detail-sidebar {
  overflow: hidden;
  border: 1px solid #d1e7dd;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(25, 135, 84, 0.06);
  margin-bottom: 20px;
}

.places-detail-sidebar__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 16px;
  border-bottom: 1px solid #e8f5e9;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.places-detail-sidebar__identity > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #e8f5e9;
  color: var(--gig-primary);
  font-size: 16px;
}

.places-detail-sidebar__identity small {
  display: block;
  color: #4b6354;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.places-detail-sidebar__identity h2 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.places-detail-sidebar__categories {
  padding: 16px 13px;
}

.places-category-strip__head--sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 12px;
}

.places-category-strip__head--sidebar span {
  display: block;
  color: var(--gig-primary);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.places-category-strip__head--sidebar h3 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.places-category-sidebar-grid {
  display: grid;
  gap: 8px;
}

/* Category Pill */
.places-category-pill--sidebar {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #d1e7dd;
  border-radius: 13px;
  background: #f8fbf9;
  color: #1e293b;
  text-decoration: none !important;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.places-category-pill--sidebar:hover,
.places-category-pill--sidebar.is-active {
  border-color: rgba(25, 135, 84, 0.45);
  background: #e8f5e9;
  color: var(--gig-primary);
  transform: translateY(-2px);
}

.places-category-pill--sidebar.is-active {
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.places-category-pill--sidebar .places-category-pill__icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 10px;
  background: #e8f5e9;
  color: var(--gig-primary);
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

.places-category-pill--sidebar:hover .places-category-pill__icon,
.places-category-pill--sidebar.is-active .places-category-pill__icon {
  background: var(--gig-primary);
  color: #fff;
}

.places-category-pill__copy {
  min-width: 0;
  flex: 1;
}

.places-category-pill--sidebar strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
}

.places-category-pill--sidebar:hover strong,
.places-category-pill--sidebar.is-active strong {
  color: var(--gig-primary);
}

.places-category-pill--sidebar small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}

.places-category-pill__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 9px;
  font-weight: 750;
  transition: background-color 0.2s, color 0.2s;
}

.places-category-pill--sidebar:hover .places-category-pill__count,
.places-category-pill--sidebar.is-active .places-category-pill__count {
  background: var(--gig-primary);
  color: #fff;
}

.places-category-pill__toggle {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 10px;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.places-category-pill__toggle:hover {
  color: var(--gig-primary);
}

.places-category-pill__toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Subcategories Container */
.gigs-subcategories-list {
  display: grid;
  gap: 4px;
  padding: 6px 4px 6px 18px;
  margin-top: 4px;
  border-left: 2px solid #bbf7d0;
  margin-left: 18px;
}

.gigs-subcategory-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  color: #475569;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 650;
  transition: background-color 0.15s, color 0.15s;
}

.gigs-subcategory-pill:hover,
.gigs-subcategory-pill.is-active {
  background: #e8f5e9;
  color: var(--gig-primary);
}

.gigs-subcategory-pill.is-active {
  font-weight: 800;
}

.gigs-subcategory-pill small {
  color: #94a3b8;
  font-size: 9px;
}

/* Community / Offer Gig Card */
.places-community-entry {
  display: block;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(25, 135, 84, 0.3);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbf9, #e8f5e9);
  color: #0f172a;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.places-community-entry:hover {
  border-color: rgba(25, 135, 84, 0.55);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(25, 135, 84, 0.14);
}

.places-community-entry__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gig-primary);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.places-community-entry > strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 14px;
  font-weight: 850;
}

.places-community-entry > small {
  display: block;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.places-community-entry__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--gig-primary);
  font-size: 10px;
  font-weight: 850;
}

/* --------------------------------------------------------------------------
   3. Marketplace Active Filters & Toolbar
   -------------------------------------------------------------------------- */
.gigs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.gigs-toolbar__count {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.gigs-toolbar__count strong {
  color: #0f172a;
  font-weight: 800;
}

.gigs-filter-chips-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.gigs-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e8f5e9;
  border: 1px solid #bbf7d0;
  color: var(--gig-primary);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none !important;
}

.gigs-active-chip i {
  font-size: 10px;
  color: var(--gig-primary-hover);
}

.gigs-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #d1e7dd;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.gigs-mobile-filter-btn i {
  color: var(--gig-primary);
}

/* --------------------------------------------------------------------------
   4. Gig Card Refinements & 2-Column Mobile Layout
   -------------------------------------------------------------------------- */
.gigs-listing-grid {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 16px;
}

.gig-card {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.gig-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

.gig-card .gig-thumbnail-wrapper {
  height: 160px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #f1f5f9;
  position: relative;
}

.gig-card .gig-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gig-card .gig-seller-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.gig-card .gig-seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
}

.gig-card .gig-title-link {
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a !important;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none !important;
  cursor: pointer;
}

.gig-card .gig-title-link:hover {
  color: var(--gig-primary) !important;
}

.gig-card .gig-desc-preview {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gig-card .gig-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gig-card .gig-price {
  color: var(--gig-primary);
  font-weight: 850;
  font-size: 1.15rem;
}

.gig-card .gig-action-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.gig-card .btn-gig-order {
  background: var(--gig-primary) !important;
  border-color: var(--gig-primary) !important;
  color: #fff !important;
}

.gig-card .btn-gig-order:hover {
  background: var(--gig-primary-hover) !important;
  border-color: var(--gig-primary-hover) !important;
}

/* --------------------------------------------------------------------------
   5. Responsive / Mobile Breakpoints & 2-Column Grid
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .gigs-hero-v2__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }
  .gigs-hero-card--featured {
    width: 260px;
    left: 0;
  }
}

@media (max-width: 991.98px) {
  .gigs-hero-v2 {
    min-height: auto;
  }
  .gigs-hero-v2__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
    padding-bottom: 42px;
  }
  .gigs-hero-visual {
    display: none;
  }
  .gigs-hero-v2 h1 {
    font-size: 34px;
  }
  .gigs-mobile-filter-btn {
    display: inline-flex;
  }
}

/* Keep sidebar content within its column, including long translated labels. */
.kizmio-gigs-page .sg-offcanvas-sidebar {
  min-width: 0;
  overflow-wrap: anywhere;
  container-type: inline-size;
}

.kizmio-gigs-page .kzm-wishlist-sidebar-grid,
.kizmio-gigs-page .kzm-wishlist-filter-form,
.kizmio-gigs-page .gigs-subcategories-list {
  grid-template-columns: minmax(0, 1fr);
}

.kizmio-gigs-page .kzm-wishlist-sidebar-identity > div,
.kizmio-gigs-page .kzm-wishlist-sidebar-grid > div,
.kizmio-gigs-page .gigs-subcategory-pill > span {
  min-width: 0;
}

.kizmio-gigs-page .kzm-wishlist-sidebar-pill__copy strong,
.kizmio-gigs-page .kzm-wishlist-sidebar-pill__copy small {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.kizmio-gigs-page .gigs-subcategory-pill {
  gap: 8px !important;
  white-space: normal;
}

.kizmio-gigs-page .gigs-subcategory-pill > small {
  flex-shrink: 0;
}

/* Give category descriptions a full row when the sidebar column is narrow. */
@container (max-width: 280px) {
  .kizmio-gigs-page .kzm-wishlist-sidebar-pill:has(.kzm-wishlist-sidebar-pill__count) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kizmio-gigs-page .kzm-wishlist-sidebar-pill__count {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .kizmio-gigs-page .kzm-wishlist-sidebar-pill:has(.kzm-wishlist-sidebar-pill__count) .kzm-wishlist-sidebar-pill__copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Mobile 2-Column Grid for Gigs */
@media (max-width: 767.98px) {
  .kizmio-gigs-page.sg-offcanvas {
    overflow: visible !important;
  }
  .kizmio-gigs-page.sg-offcanvas.active {
    position: relative !important;
    z-index: 1000000 !important;
    isolation: isolate;
    overflow: visible !important;
    min-height: max-content !important;
  }
  .kizmio-gigs-page.sg-offcanvas .sg-offcanvas-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 2 !important;
    display: block !important;
    width: min(88vw, 340px) !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 12px 10px 70px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-105%) !important;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility .28s !important;
    scrollbar-width: thin;
    scrollbar-color: var(--gig-primary) var(--gig-primary-soft);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
  .kizmio-gigs-page.sg-offcanvas.active .sg-offcanvas-sidebar {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }
  .kizmio-gigs-page.sg-offcanvas.active .sg-offcanvas-sidebar * {
    pointer-events: auto !important;
  }
  .kizmio-gigs-page.sg-offcanvas .sg-offcanvas-sidebar::-webkit-scrollbar {
    width: 7px;
  }
  .kizmio-gigs-page.sg-offcanvas .sg-offcanvas-sidebar::-webkit-scrollbar-track {
    background: var(--gig-primary-soft);
  }
  .kizmio-gigs-page.sg-offcanvas .sg-offcanvas-sidebar::-webkit-scrollbar-thumb {
    border: 2px solid var(--gig-primary-soft);
    border-radius: 999px;
    background: linear-gradient(var(--gig-primary), var(--gig-accent));
  }
  .kizmio-gigs-page.sg-offcanvas .gigs-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    border: 0;
    background: rgba(15, 23, 42, .55);
    pointer-events: auto;
  }
  .kizmio-gigs-page.sg-offcanvas.active .gigs-sidebar-backdrop {
    display: block;
  }
  .kizmio-gigs-page.sg-offcanvas .sg-offcanvas-mainbar,
  .kizmio-gigs-page.sg-offcanvas.active .sg-offcanvas-mainbar {
    position: static !important;
    left: 0 !important;
    width: 100% !important;
  }
  .gigs-hero-v2 {
    margin-bottom: 18px;
  }
  .gigs-hero-v2__inner {
    padding-top: 28px;
    padding-bottom: 34px;
  }
  .gigs-hero-v2 h1 {
    font-size: 28px;
  }
  .gigs-hero-v2__copy > p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .gigs-hero-search {
    padding: 4px 4px 4px 12px;
  }
  .gigs-hero-search input {
    height: 40px;
    font-size: 13px;
  }
  .gigs-hero-search button {
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
  }
  .gigs-hero-chips {
    font-size: 11px;
    gap: 6px;
  }
  .gigs-hero-chip {
    padding: 3px 9px;
    font-size: 10px;
  }

  /* 2-Column Cards */
  .gigs-listing-grid {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }
  .gig-card {
    border-radius: 12px !important;
  }
  .gig-card .gig-thumbnail-wrapper {
    height: 120px;
  }
  .gig-card .gig-card-body {
    padding: 10px;
  }
  .gig-card .gig-seller-header {
    margin-bottom: 8px;
    gap: 6px;
  }
  .gig-card .gig-seller-avatar {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
  }
  .gig-card .gig-seller-name {
    font-size: 0.78rem !important;
  }
  .gig-card .gig-seller-username {
    display: none !important;
  }
  .gig-card .gig-seller-rating-btn {
    display: none !important;
  }
  .gig-card .gig-title-link {
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 6px;
    height: 2.1rem;
  }
  .gig-card .gig-desc-preview {
    display: none !important;
  }
  .gig-card .gig-card-footer {
    padding-top: 6px;
  }
  .gig-card .gig-badge-type {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
  }
  .gig-card .gig-price {
    font-size: 0.88rem;
  }
  .gig-card .gig-action-btns {
    margin-top: 8px;
    gap: 5px;
  }
  .gig-card .gig-action-btns .btn {
    height: 32px !important;
    font-size: 0.75rem !important;
    padding: 0 8px !important;
  }
  .gig-card .gig-action-btns .btn-icon {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (max-width: 420px) {
  .gigs-listing-grid {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
  }
  .gig-card .gig-thumbnail-wrapper {
    height: 105px;
  }
  .gig-card .gig-card-body {
    padding: 8px;
  }
  .gig-card .gig-title-link {
    font-size: 0.76rem;
  }
  .gig-card .gig-price {
    font-size: 0.82rem;
  }
}

/* Dark mode: marketplace titles and seller entry card */
body.night-mode .kizmio-gigs-page .gig-card .gig-title-link,
.night-mode .kizmio-gigs-page .gig-card .gig-title-link,
body[data-bs-theme="dark"] .kizmio-gigs-page .gig-card .gig-title-link,
[data-bs-theme="dark"] .kizmio-gigs-page .gig-card .gig-title-link {
  color: #f8fafc !important;
}

body.night-mode .kizmio-gigs-page .gig-card .gig-title-link:hover,
.night-mode .kizmio-gigs-page .gig-card .gig-title-link:hover,
body[data-bs-theme="dark"] .kizmio-gigs-page .gig-card .gig-title-link:hover,
[data-bs-theme="dark"] .kizmio-gigs-page .gig-card .gig-title-link:hover {
  color: #4ade80 !important;
}

body.night-mode .kizmio-gigs-page .places-community-entry,
.night-mode .kizmio-gigs-page .places-community-entry,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry {
  border-color: #334155 !important;
  background: linear-gradient(145deg, #1e293b, #16251f) !important;
  color: #f8fafc !important;
}

body.night-mode .kizmio-gigs-page .places-community-entry:hover,
.night-mode .kizmio-gigs-page .places-community-entry:hover,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry:hover,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry:hover {
  border-color: #198754 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
}

body.night-mode .kizmio-gigs-page .places-community-entry__eyebrow,
body.night-mode .kizmio-gigs-page .places-community-entry__action,
.night-mode .kizmio-gigs-page .places-community-entry__eyebrow,
.night-mode .kizmio-gigs-page .places-community-entry__action,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry__eyebrow,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry__action,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry__eyebrow,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry__action {
  color: #4ade80 !important;
}

body.night-mode .kizmio-gigs-page .places-community-entry > strong,
.night-mode .kizmio-gigs-page .places-community-entry > strong,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry > strong,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry > strong {
  color: #f8fafc !important;
}

body.night-mode .kizmio-gigs-page .places-community-entry > small,
.night-mode .kizmio-gigs-page .places-community-entry > small,
body[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry > small,
[data-bs-theme="dark"] .kizmio-gigs-page .places-community-entry > small {
  color: #a7b3c5 !important;
}

body.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip,
.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip,
body[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip,
[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip {
  border-color: #365c49 !important;
  background: #16251f !important;
  color: #86efac !important;
}

body.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip:hover,
.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip:hover,
body[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip:hover,
[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip:hover {
  border-color: #4a7c60 !important;
  background: #1d3328 !important;
  color: #bbf7d0 !important;
}

body.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip i,
.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip i,
body[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip i,
[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .gigs-active-chip i {
  color: currentColor !important;
}

body.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .btn-link,
.night-mode .kizmio-gigs-page .gigs-filter-chips-wrap .btn-link,
body[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .btn-link,
[data-bs-theme="dark"] .kizmio-gigs-page .gigs-filter-chips-wrap .btn-link {
  color: #94a3b8 !important;
}
