:root {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #102235;
  --muted: #5f6f85;
  --border: #d7e0ea;
  --dark: #012f34;
  --dark-2: #063b41;
  --primary: #0d6efd;
  --primary-strong: #0b58ca;
  --featured-bg: #fff3ce;
  --featured-text: #845100;
  --success-bg: #e9f8ef;
  --success-text: #166534;
  --warning-bg: #fff7e5;
  --warning-text: #92400e;
  --error-bg: #ffe9e9;
  --error-text: #991b1b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 7px 20px rgba(15, 33, 63, 0.08);
  --shadow-md: 0 14px 34px rgba(15, 33, 63, 0.14);
  --shadow-lg: 0 20px 48px rgba(15, 33, 63, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1240px, calc(100% - 2rem));
  margin: 0 auto;
}

.page-home.container {
  width: min(1540px, calc(100% - 2.6rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(5, 20, 39, 0.08);
}

.mobile-home-header {
  display: none;
}

.topbar {
  background: linear-gradient(90deg, var(--dark), var(--dark-2));
  color: #eaf5f7;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #18d7d9, #0eb5b7);
  color: #02363c;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.brand-text {
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.icon-action {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #e7f2f4;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 700;
}

.icon-action:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.subbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.subbar-inner {
  display: block;
  align-items: center;
  padding: 0.78rem 0;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a,
.link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.main-nav a:hover,
.footer-nav a:hover,
.link:hover {
  text-decoration: underline;
}

.page {
  padding: 1.35rem 0 2.2rem;
}

.page-home {
  padding-top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}

.page-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.3rem, 2.4vw, 2.1rem);
  line-height: 1.15;
}

.page-subtitle,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.78rem;
  color: #286ec9;
}

.home-top-zone {
  display: grid;
  gap: 1.15rem;
  margin-bottom: 1.2rem;
}

.home-search-shell {
  padding: 0.72rem;
  border-radius: 22px;
  border: 1px solid #d2deee;
  background: linear-gradient(180deg, #f7faff, #f1f6ff);
  box-shadow: 0 12px 30px rgba(14, 33, 60, 0.08);
}

.home-search-form {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.15fr) auto;
  gap: 0;
  align-items: stretch;
  border: 1px solid #ccdaec;
  border-radius: 16px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 12px 26px rgba(17, 42, 79, 0.08);
}

.home-search-input-wrap,
.home-search-location {
  position: relative;
}

.home-search-input-wrap::after,
.home-search-location::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: #e2e8f1;
}

.home-search-input-wrap input,
.home-search-location input {
  min-height: 64px;
  border-radius: 0;
  border: 0;
  background: #fff;
  font-size: 1.02rem;
  padding-inline: 1.1rem;
}

.home-search-submit {
  min-width: 178px;
  border-radius: 0;
  border: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.home-search-location {
  display: block;
  position: relative;
}

.home-geocoder-host {
  display: none;
}

.home-search-location.mapbox-ready .home-geocoder-host {
  display: block;
}

.home-search-location.mapbox-ready [data-location-input] {
  display: none;
}

.location-help {
  margin-top: 0.4rem;
}

.home-search-location.mapbox-ready .location-help {
  display: none;
}

.home-geocoder-host .mapboxgl-ctrl-geocoder {
  width: 100%;
  max-width: none;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.home-geocoder-host .mapboxgl-ctrl-geocoder--input {
  height: 64px;
  font-size: 1.02rem;
  padding-left: 2.2rem;
}

.home-geocoder-host .mapboxgl-ctrl-geocoder--icon {
  top: 50%;
  transform: translateY(-50%);
}

.home-geocoder-host .suggestions-wrapper {
  max-height: 320px;
  overflow-y: auto;
  z-index: 70;
}

.hero-market {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
  background: linear-gradient(135deg, #eaf2ff, #f8fbff);
  border-color: #c7d8f2;
  box-shadow: var(--shadow-md);
}

.hero-market h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-copy {
  margin: 0.95rem 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}

.hero-market-side {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.hero-kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}

.hero-kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-kpi strong {
  font-size: 1.55rem;
}

.hero-benefit-list {
  border: 1px dashed #b9cbe6;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.85rem;
}

.hero-benefit-list p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.center-head {
  justify-content: center;
}

.section-head h2 {
  margin: 0;
}

.home-categories-showcase {
  display: grid;
  gap: 0.9rem;
}

.categories-scrollbar {
  display: none;
  height: 4px;
  border-radius: 999px;
  background: #dfe7f2;
  position: relative;
  overflow: hidden;
}

.categories-scrollbar-thumb {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0fbec0, #1f6fda);
  transition: transform 0.18s ease-out, width 0.18s ease-out;
}

.home-categories-shell {
  border: 1px solid #d7e2f2;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 1.2rem 1.3rem 1.25rem;
  box-shadow: 0 10px 28px rgba(16, 34, 53, 0.07);
}

.home-categories-head {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.95rem;
}

.home-categories-head p {
  margin: 0;
  color: #5d7088;
  font-size: 0.93rem;
  text-align: left;
}

.home-categories-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 0.72rem 1rem;
  align-items: start;
}

.category-circle-item {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  padding: 0.3rem 0.2rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  text-align: center;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.category-circle-item:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}

.category-trigger.is-active {
  opacity: 1;
  transform: translateY(-2px);
}

.category-circle-label {
  font-size: 0.95rem;
  line-height: 1.28;
  color: #0f2236;
  transition: color 0.2s ease;
}

.category-chevron {
  font-size: 1rem;
  color: #5b6f86;
  transition: transform 0.24s ease, color 0.2s ease;
}

.category-trigger.is-active .category-chevron {
  transform: rotate(180deg);
  color: #1f5fc7;
}

.category-circle-icon {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(145deg, #edf4ff, #deebff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f4f9f;
  box-shadow: 0 7px 18px rgba(16, 34, 53, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.category-icon-glyph {
  font-style: normal;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  color: currentColor;
}

.category-circle-icon svg {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.category-trigger:hover .category-circle-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 26px rgba(16, 34, 53, 0.2);
}

.category-trigger.is-active .category-circle-icon {
  box-shadow: 0 14px 24px rgba(33, 92, 183, 0.32);
}

.category-trigger.is-active .category-circle-label {
  color: #0b4a99;
}

.home-category-entry[data-category-key='vehiculos'] .category-circle-icon {
  background: linear-gradient(145deg, #fff4cf, #ffe29f);
  color: #815300;
}

.home-category-entry[data-category-key='inmuebles'] .category-circle-icon {
  background: linear-gradient(145deg, #e8f1ff, #cddfff);
  color: #1e4f98;
}

.home-category-entry[data-category-key='empleos'] .category-circle-icon {
  background: linear-gradient(145deg, #e2fbf9, #bff1ed);
  color: #0f6662;
}

.home-category-entry[data-category-key='electronica'] .category-circle-icon {
  background: linear-gradient(145deg, #ffeade, #ffd0b5);
  color: #91431a;
}

.home-category-entry[data-category-key='hogar-y-muebles'] .category-circle-icon {
  background: linear-gradient(145deg, #fff4e8, #f9e4ca);
  color: #7c5428;
}

.home-category-entry[data-category-key='moda-y-belleza'] .category-circle-icon {
  background: linear-gradient(145deg, #f5edff, #e5d8ff);
  color: #5f3ca7;
}

.home-category-entry[data-category-key='bebes-y-ninos'] .category-circle-icon {
  background: linear-gradient(145deg, #e8fff5, #c9f4df);
  color: #16624b;
}

.home-category-entry[data-category-key='servicios'] .category-circle-icon {
  background: linear-gradient(145deg, #edf3fb, #dbe7f6);
  color: #395575;
}

.home-category-entry[data-category-key='mascotas'] .category-circle-icon {
  background: linear-gradient(145deg, #eef0ff, #dddfff);
  color: #4a55a6;
}

.home-category-entry[data-category-key='otros'] .category-circle-icon {
  background: linear-gradient(145deg, #f2f4f9, #e4e9f1);
  color: #576171;
}

.home-category-panels {
  position: relative;
}

.category-panel {
  --notch-left: 50%;
  position: relative;
  border: 1px solid #dbe6f6;
  background: #f8fbff;
  border-radius: 16px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.24s ease, transform 0.24s ease;
  padding: 0 1.2rem;
}

.category-panel::before {
  content: '';
  position: absolute;
  top: -9px;
  left: var(--notch-left);
  width: 16px;
  height: 16px;
  background: #fbfcff;
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  transform: translateX(-50%) rotate(45deg);
}

.category-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  padding: 1rem 1.2rem 1.2rem;
}

.category-panel-all {
  display: inline-flex;
  margin-bottom: 0.9rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  border-bottom: 1px solid #dce6f5;
  padding-bottom: 0.55rem;
  width: 100%;
}

.category-panel-all:hover {
  text-decoration: underline;
}

.category-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.category-chip {
  border: 1px solid #dae5f4;
  background: #fff;
  border-radius: 12px;
  padding: 0.58rem 0.72rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.18s ease;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.category-chip:hover {
  border-color: #b9ccef;
  background: #eef5ff;
  transform: translateY(-1px);
}

.listing-block {
  padding-top: 1.15rem;
}

.home-listing-section {
  border: 1px solid #d6e2f1;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 1.15rem 1.2rem 1.2rem;
  margin-bottom: 1.2rem;
}

.home-listing-featured {
  border-color: #d8e0ef;
  box-shadow: 0 12px 30px rgba(14, 33, 60, 0.08);
}

.home-listing-recent {
  border-color: #dce6f5;
  box-shadow: 0 9px 24px rgba(16, 34, 53, 0.06);
}

.section-head-listing {
  margin-bottom: 1rem;
}

.section-head-copy {
  display: grid;
  gap: 0.2rem;
}

.section-head-copy h2 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.section-head-copy p {
  margin: 0;
  color: #5f6f84;
  font-size: 0.9rem;
}

.section-head-link {
  font-size: 0.9rem;
  padding: 0.35rem 0;
}

.listing-grid {
  display: grid;
  gap: 0.9rem;
}

.listing-grid-featured {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.listing-grid-recent {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listing-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(16, 34, 53, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.listing-card:hover {
  transform: translateY(-4px);
}

.listing-card-featured {
  border-color: #d8e0ef;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 12px 28px rgba(13, 34, 66, 0.11);
}

.listing-card-featured:hover {
  box-shadow: 0 18px 36px rgba(13, 34, 66, 0.16);
}

.listing-card-recent {
  border-color: #dbe5f4;
}

.listing-card-recent:hover {
  box-shadow: 0 13px 28px rgba(15, 33, 63, 0.11);
}

.listing-image-wrap {
  display: block;
  position: relative;
}

.listing-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e5ebf4;
}

.listing-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.listing-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.88rem 0.9rem 0.9rem;
  align-content: start;
  flex: 1;
}

.listing-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.34;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #0d3060;
}

.listing-card-featured .price {
  font-size: 1.32rem;
  color: #082f68;
}

.listing-meta-stack {
  display: grid;
  gap: 0.16rem;
  margin-top: 0.08rem;
}

.listing-meta-stack .meta {
  font-size: 0.82rem;
  line-height: 1.33;
}

.listing-cta {
  margin-top: auto;
  width: 100%;
  padding-block: 0.56rem;
  font-size: 0.88rem;
  border-radius: 10px;
}

.listing-cta-subtle {
  background: #f5f8fd;
  border-color: #d2deee;
  color: #163f78;
}

.listing-cta-subtle:hover {
  background: #edf3fb;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 800;
  background: #e8efff;
  color: #194ebb;
}

.badge-featured {
  position: absolute;
  top: 0.62rem;
  left: 0.62rem;
  background: linear-gradient(180deg, #ffe39c, #ffd466);
  color: #714200;
  border: 1px solid #e8c16e;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(86, 55, 0, 0.2);
}

.badge-featured-inline {
  background: var(--featured-bg);
  color: var(--featured-text);
}

@media (max-width: 1440px) {
  .listing-grid-featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .listing-grid-featured,
  .listing-grid-recent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .listing-grid-featured {
    grid-template-columns: 1fr;
  }

  .listing-grid-recent {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
  }

  .home-listing-section {
    padding: 0.88rem;
  }

  .home-listing-recent .section-head-listing {
    margin-bottom: 0.72rem;
  }

  .listing-card-recent {
    border-radius: 14px;
    box-shadow: 0 7px 16px rgba(16, 34, 53, 0.08);
  }

  .listing-card-recent .listing-image {
    aspect-ratio: 1 / 1;
  }

  .listing-card-recent .listing-body {
    padding: 0.62rem 0.62rem 0.68rem;
    gap: 0.36rem;
  }

  .listing-card-recent .listing-title {
    font-size: 0.83rem;
    line-height: 1.28;
    min-height: 2.42em;
    -webkit-line-clamp: 2;
  }

  .listing-card-recent .price {
    font-size: 1rem;
    line-height: 1.03;
  }

  .listing-card-recent .listing-meta-stack {
    gap: 0.08rem;
  }

  .listing-card-recent .listing-meta-stack .meta {
    font-size: 0.73rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .listing-card-recent .listing-cta {
    padding-block: 0.45rem;
    font-size: 0.76rem;
    border-radius: 9px;
  }

  .section-head-copy p {
    font-size: 0.82rem;
  }
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.compact-actions {
  gap: 0.42rem;
}

.btn,
button,
input[type='submit'] {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn:hover,
button:hover,
input[type='submit']:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn:disabled,
button:disabled,
input[type='submit']:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.btn-publish {
  min-width: 176px;
  border: 0;
  background: #fff;
  color: #07353b;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.17);
}

.btn-quiet {
  background: transparent;
}

.btn-danger {
  background: #c52424;
  border-color: #c52424;
  color: #fff;
}

.btn-block {
  width: 100%;
}

.banner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
}

.banner-chip {
  border: 1px dashed #bfd0ef;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.benefits-grid article {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.8rem;
}

.benefits-grid h3 {
  margin: 0 0 0.35rem;
}

.modern-list-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(145deg, #f4f8ff, #fbfdff);
}

.hero-meta-kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.75rem 0.9rem;
  min-width: 170px;
}

.hero-meta-kpi strong {
  font-size: 1.3rem;
}

.listing-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.15rem;
}

.filters-panel {
  position: sticky;
  top: 140px;
  align-self: start;
  background: linear-gradient(180deg, #fbfcff, #f7faff);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.filters-panel .btn {
  border-color: #cbd7e8;
}

.filters-panel .btn:hover {
  border-color: #b8cae3;
}

.filter-subcategories {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.35rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.pagination-modern {
  background: #f7fbff;
}

.empty-state {
  text-align: center;
  padding: 1.1rem;
}

.breadcrumbs {
  margin-bottom: 0.7rem;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.detail-hero-premium {
  background: linear-gradient(140deg, #f6fbff, #fff);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
}

.detail-main-image {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.65rem;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-card {
  background: #f7faff;
  border-color: #cfe0ff;
}

.sticky-contact {
  position: sticky;
  top: 140px;
}

.detail-specs p {
  margin: 0.45rem 0;
}

.ad-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.35rem;
}

.ad-detail-main,
.ad-detail-side {
  min-width: 0;
}

.ad-gallery-card,
.ad-side-panel,
.ad-seller-card,
.ad-detail-section {
  box-shadow: none;
}

.ad-soft-panel {
  border: 1px solid #e4ebf4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(12, 30, 58, 0.04);
  padding: 1.25rem;
}

.ad-main-media-wrap {
  position: relative;
}

.ad-main-media {
  width: 100%;
  max-height: 500px;
  min-height: 320px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5ebf4;
  background: #e8edf6;
}

.ad-main-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
}

.ad-main-featured {
  top: 0.8rem;
  left: 0.8rem;
}

.ad-thumb-row {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 0.55rem;
}

.ad-thumb-btn {
  border: 1px solid #dce6f4;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ad-thumb-btn:hover {
  transform: translateY(-1px);
  border-color: #bfd0e8;
}

.ad-thumb-btn.is-active {
  border-color: #7fa8de;
  box-shadow: 0 0 0 2px rgba(127, 168, 222, 0.18);
}

.ad-thumb-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ad-detail-section h2,
.ad-detail-section h3 {
  margin-top: 0;
}

.ad-content-card {
  background: #fff;
}

.ad-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.ad-content-head h2 {
  margin: 0;
  text-align: left;
}

.ad-primary-info-card {
  background: #fff;
}

.ad-main-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  line-height: 1.12;
  text-align: left;
}

.ad-main-price {
  margin: 0;
  font-size: clamp(2.15rem, 3vw, 2.7rem);
  font-weight: 900;
  color: #0a2f61;
  line-height: 1.02;
  text-align: left;
}

.ad-main-meta {
  margin: 0.62rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: #5a7088;
  font-size: 0.93rem;
  font-weight: 600;
  text-align: left;
}

.ad-content-head-simple {
  margin-bottom: 0.95rem;
}

.ad-content-head-simple h3 {
  margin: 0;
  text-align: left;
}

.ad-description-head {
  margin-bottom: 0.55rem;
}

.ad-chip-row-inline {
  margin-top: 0.7rem;
}

.ad-content-tabs {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ad-tab {
  border: 1px solid #d5e1f2;
  border-radius: 999px;
  padding: 0.36rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4d6078;
  background: #f7faff;
}

.ad-tab.is-active {
  border-color: #b9cff1;
  color: #184d9d;
  background: #edf4ff;
}

.ad-description-body p {
  margin: 0;
  line-height: 1.8;
  color: #2a4158;
  font-size: 1rem;
}

.ad-description-body {
  margin-top: 0.7rem;
}

.ad-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.ad-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dbe6f4;
  background: #f9fbff;
  color: #2d4b6d;
  padding: 0.34rem 0.72rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.ad-chip-highlight {
  border-color: #e7c276;
  background: linear-gradient(180deg, #ffedbf, #ffe4a0);
  color: #744600;
}

.ad-detail-divider {
  height: 1px;
  background: #dbe6f5;
  margin: 0.95rem 0;
}

.ad-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e2e9f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ad-spec-item {
  padding: 0.72rem 0.82rem;
  border-right: 1px solid #e7edf6;
  border-bottom: 1px solid #e7edf6;
  display: grid;
  gap: 0.16rem;
}

.ad-spec-item:nth-child(2n) {
  border-right: 0;
}

.ad-spec-item:last-child,
.ad-spec-item:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.ad-spec-item span {
  font-size: 0.76rem;
  color: #667b93;
  font-weight: 700;
}

.ad-spec-item strong {
  font-size: 0.97rem;
  color: #1f3d5f;
  line-height: 1.32;
}

.ad-info-grid {
  display: grid;
  gap: 0.45rem;
}

.ad-info-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}

.ad-report-card {
  border-style: dashed;
  opacity: 0.95;
}

.ad-side-panel {
  background: #fff;
}

.ad-side-head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.ad-side-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: left;
}

.ad-side-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  color: #092b57;
}

.ad-side-actions {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.05rem;
}

.ad-phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #dee7f4;
  border-radius: 12px;
  padding: 0.48rem 0.62rem;
  background: #f7fbff;
}

.ad-side-map h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  text-align: left;
}

.ad-location-text {
  margin: 0 0 0.7rem;
  color: #1f3d5f;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.ad-mini-map {
  width: 100%;
  min-height: 190px;
  border-radius: 14px;
  border: 1px solid #dfe8f5;
  overflow: hidden;
  background: #eef4fb;
}

.ad-mini-map-fallback {
  min-height: 140px;
  border: 1px solid #e0e9f6;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #f3f8ff);
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 0.6rem;
  padding: 0.8rem;
}

.ad-mini-map-fallback .meta {
  margin: 0;
  text-align: left;
  font-weight: 700;
}

.ad-map-fallback-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1d5fc0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-map-fallback-icon i,
.ad-map-fallback-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.ad-seller-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.ad-seller-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(145deg, #d8ebff, #b4d8ff);
  color: #154a99;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-seller-name {
  margin: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.ad-seller-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.ad-seller-meta span {
  border: 1px solid #dee7f3;
  border-radius: 999px;
  background: #f8fbff;
  padding: 0.28rem 0.58rem;
  font-size: 0.78rem;
  color: #4a6381;
  font-weight: 700;
}

.ad-seller-card .ad-side-actions {
  margin-bottom: 0.85rem;
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
}

.report-modal[hidden] {
  display: none !important;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 37, 0.55);
}

.report-modal-dialog {
  position: relative;
  width: min(520px, calc(100% - 1.4rem));
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 16px;
  box-shadow: 0 22px 52px rgba(15, 33, 63, 0.3);
  padding: 1rem;
  z-index: 1;
}

.report-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.report-modal-head h3 {
  margin: 0;
}

.myads-hero,
.form-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.myads-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.summary-chip {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 0.75rem;
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.summary-chip strong {
  font-size: 1.2rem;
}

.form-layout {
  display: grid;
  gap: 1rem;
}

.auth-shell {
  max-width: 460px;
  margin: 1.2rem auto;
}

.auth-card {
  padding: 1.35rem;
  border-radius: 18px;
}

.auth-card-register {
  max-width: 520px;
}

.auth-screen {
  max-width: 560px;
  margin: 1.2rem auto;
}

.auth-brand-hero {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.auth-brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(145deg, #18d7d9, #0eb5b7);
  color: #02363c;
  font-size: 1.25rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(4, 53, 60, 0.22);
}

.auth-brand-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #123e6f;
}

.auth-card-premium {
  border: 1px solid #d6e3f2;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 16px 40px rgba(12, 30, 58, 0.12);
  border-radius: 20px;
}

.auth-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #2d65b7;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  border: 1px solid #d9e4f4;
  background: #f4f8ff;
  border-radius: 12px;
  padding: 0.28rem;
  margin: 0.9rem 0 0.95rem;
}

.auth-switch-item {
  text-decoration: none;
  color: #486281;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  border-radius: 9px;
  padding: 0.5rem 0.6rem;
}

.auth-switch-item.is-active {
  background: #fff;
  color: #164f97;
  box-shadow: 0 5px 12px rgba(19, 66, 131, 0.12);
}

.social-auth-block {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.social-auth-btn {
  border: 1px solid #d6e2f3;
  border-radius: 11px;
  background: #fff;
  color: #1d385b;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 46px;
  padding: 0.45rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-auth-btn:hover {
  background: #f7faff;
}

.social-auth-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #d8e4f5;
  background: #f3f8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2968b8;
}

.social-auth-icon i,
.social-auth-icon svg {
  width: 14px;
  height: 14px;
}

.auth-separator {
  position: relative;
  text-align: center;
  margin: 0.2rem 0 0;
}

.auth-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e8f3;
}

.auth-separator span {
  position: relative;
  z-index: 1;
  background: #fbfdff;
  color: #62758c;
  font-size: 0.83rem;
  padding: 0 0.55rem;
}

.auth-errors ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #9b1c1c;
  font-size: 0.86rem;
}

.auth-meta-tip {
  margin-top: 0.7rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.auth-step-note {
  border: 1px solid #d7e4f7;
  border-radius: 12px;
  background: #f5f9ff;
  padding: 0.72rem 0.8rem;
  margin-bottom: 0.85rem;
}

.auth-step-note strong {
  display: block;
  margin-bottom: 0.22rem;
}

.auth-step-note p {
  margin: 0;
  color: #455f7d;
}

.auth-inline-actions {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.auth-password-rules {
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff, #f4f8ff);
  padding: 0.78rem 0.82rem;
  display: grid;
  gap: 0.5rem;
}

.auth-password-rules h2 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1b3f70;
}

.auth-rule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.auth-rule-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #58708d;
}

.auth-rule-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #c7d8ee;
  background: #fff;
  color: #6a819e;
  font-size: 0.73rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.auth-rule-item.is-valid {
  color: #1b6e47;
}

.auth-rule-item.is-valid .auth-rule-icon {
  border-color: #31a06c;
  background: #eaf9f1;
  color: #1b8252;
}

.password-field-wrap {
  position: relative;
  display: block;
}

.password-field-wrap input {
  padding-right: 3rem;
}

.password-visibility-btn {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d5e1f2;
  background: #f7faff;
  color: #476688;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.password-visibility-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-visibility-btn .eye-closed-icon {
  display: none;
}

.password-visibility-btn.is-visible .eye-open-icon {
  display: none;
}

.password-visibility-btn.is-visible .eye-closed-icon {
  display: block;
}

.password-visibility-btn:hover {
  background: #eef5ff;
}

.auth-legal-text {
  margin: 0.2rem 0 0;
  color: #5e718a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-legal-text a {
  color: #1554a3;
  font-weight: 700;
  text-decoration: none;
}

.auth-legal-text a:hover {
  text-decoration: underline;
}

.wizard-shell {
  padding: 1.55rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #d8e3f1;
  box-shadow: 0 18px 42px rgba(12, 28, 56, 0.1);
}

.wizard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.wizard-head-copy .page-title {
  margin-bottom: 0.36rem;
  font-size: clamp(1.75rem, 2.7vw, 2.35rem);
  letter-spacing: -0.01em;
}

.wizard-head-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cce0ff;
  background: linear-gradient(180deg, #f3f8ff, #edf5ff);
  color: #184f9a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.44rem 0.72rem;
}

.wizard-progress-modern {
  margin-bottom: 1rem;
  padding: 0.65rem 0.78rem;
  border: 1px solid #d7e4f5;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fbff, #f5f9ff);
}

.wizard-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e5edf8, #dbe6f5);
  overflow: hidden;
  border: 1px solid #d5dfef;
}

.wizard-progress-fill {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0cc9bb 0%, #1f72db 55%, #2453b5 100%);
  box-shadow: 0 4px 12px rgba(32, 95, 192, 0.35);
  transition: width 0.3s ease;
}

.wizard-progress-meta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.wizard-progress-meta span {
  font-size: 0.9rem;
  color: #355173;
  font-weight: 700;
}

.wizard-progress-meta strong {
  font-size: 0.95rem;
  color: #103766;
}

.wizard-stepper {
  list-style: none;
  margin: 0 0 1.05rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
}

.wizard-stepper-modern .wizard-step {
  background: #f7faff;
  border-color: #d7e2f3;
}

.wizard-step {
  border: 1px solid #d9e5f5;
  border-radius: 999px;
  background: #f7faff;
  color: #587093;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0.65rem;
  transition: all 0.22s ease;
}

.wizard-step.is-complete {
  border-color: #bde4cc;
  background: linear-gradient(180deg, #effcf4, #e8f8ef);
  color: #1f6940;
}

.wizard-step.is-active {
  border-color: #8fb9f3;
  background: linear-gradient(180deg, #eaf2ff, #e0ecff);
  color: #15498f;
  box-shadow: 0 10px 18px rgba(30, 93, 190, 0.16);
}

.wizard-form {
  display: grid;
  gap: 0.95rem;
}

.wizard-panel {
  display: none;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fcfdff;
  padding: 1.05rem;
  box-shadow: 0 10px 26px rgba(13, 35, 68, 0.06);
}

.wizard-panel.is-active {
  display: block;
  animation: wizardPanelIn 0.24s ease;
}

.wizard-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.3rem;
}

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

.wizard-tip {
  margin-top: 0.8rem;
  border: 1px solid #d6e4f7;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4f8ff, #eff5ff);
  padding: 0.72rem 0.85rem;
}

.wizard-tip strong {
  display: block;
  margin-bottom: 0.22rem;
  color: #10418a;
}

.wizard-tip p {
  margin: 0;
  color: #4d6482;
  font-size: 0.9rem;
}

.wizard-inline-tip {
  margin: 0.48rem 0 0.72rem;
  border-radius: 10px;
  border: 1px dashed #c8daf3;
  background: #f5f9ff;
  color: #47617f;
  font-size: 0.86rem;
  padding: 0.42rem 0.65rem;
}

.wizard-upload-box {
  border: 1px solid #d9e5f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #f4f8ff);
  padding: 1rem;
}

.wizard-input-hidden {
  display: none;
}

.wizard-dropzone {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
  border: 2px dashed #b7cbe8;
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wizard-dropzone:hover,
.wizard-dropzone.is-dragover {
  border-color: #6d9ce4;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 56, 102, 0.12);
}

.wizard-dropzone-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1f5fc7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
}

.wizard-dropzone-title {
  font-size: 1rem;
  font-weight: 800;
  color: #113257;
}

.wizard-dropzone-help {
  font-size: 0.84rem;
  color: var(--muted);
}

.wizard-upload-feedback {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #1d5ebc;
  font-weight: 700;
}

.wizard-empty-state {
  margin: 0.75rem 0 0;
}

.wizard-image-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.wizard-image-card {
  position: relative;
  border: 1px solid #d7e3f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(14, 40, 77, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
  cursor: pointer;
}

.wizard-image-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(14, 40, 77, 0.16);
  filter: saturate(1.03);
}

.wizard-image-card.is-cover {
  border-color: #2e74d6;
  box-shadow: 0 0 0 2px rgba(46, 116, 214, 0.16), 0 14px 24px rgba(14, 40, 77, 0.14);
}

.wizard-image-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.wizard-cover-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  background: linear-gradient(180deg, #1f6bd3, #194fa7);
  color: #fff;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.wizard-image-meta {
  padding: 0.6rem;
  display: grid;
  gap: 0.42rem;
}

.wizard-image-name {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-image-actions {
  display: flex;
  gap: 0.42rem;
}

.wizard-image-action {
  flex: 1;
  border: 1px solid #c9d9ef;
  border-radius: 8px;
  background: #f5f9ff;
  color: #194f9d;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.42rem;
  cursor: pointer;
}

.wizard-image-action:hover {
  background: #e9f2ff;
}

.wizard-image-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wizard-image-action.is-danger {
  border-color: #f0ccd3;
  background: #fff6f7;
  color: #b13a4f;
}

.wizard-image-action.is-danger:hover {
  background: #ffecef;
}

.wizard-ai-status {
  margin-top: 0.7rem;
}

.wizard-ai-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.92rem;
}

.wizard-ai-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.wizard-ai-card {
  margin: 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
}

.wizard-ai-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.wizard-ai-value {
  margin: 0;
  color: #233f61;
  min-height: 1.1rem;
  line-height: 1.55;
}

.wizard-ai-attrs {
  margin: 0;
  padding-left: 1.1rem;
  color: #233f61;
}

.wizard-ai-attrs-missing li {
  color: #5b6d84;
}

.wizard-ai-attrs-probable li {
  color: #6f5a1f;
}

.wizard-review-card,
.wizard-ai-final {
  margin: 0.9rem 0 0;
  padding: 0.9rem;
}

.wizard-review-card h3,
.wizard-ai-final h3 {
  margin: 0 0 0.45rem;
}

.wizard-review-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.wizard-actions {
  border-top: 1px solid #d9e5f4;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.wizard-actions-right {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.wizard-field-applied {
  border-color: #2da764 !important;
  box-shadow: 0 0 0 3px rgba(45, 167, 100, 0.16);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn.is-applied {
  border-color: #267f57;
  background: linear-gradient(180deg, #ebf9f1, #d9f1e5);
  color: #135439;
  box-shadow: 0 6px 14px rgba(23, 101, 63, 0.16);
}

.wizard-ai-card,
.wizard-dropzone,
.wizard-image-card,
.wizard-step,
.btn,
input,
select,
textarea {
  will-change: transform;
}

.form-section {
  padding-top: 1rem;
}

.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

form p {
  margin: 0;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
}

.location-picker {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff, #f6faff);
  padding: 1rem;
}

.mapbox-geocoder-wrap {
  margin-bottom: 0.78rem;
}

.mapbox-geocoder-wrap .mapboxgl-ctrl-geocoder {
  width: 100%;
  max-width: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: none;
}

.mapbox-current-location {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #dde7f5;
  background: #f5f9ff;
  color: #174c98;
  font-weight: 700;
  text-align: left;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}

.mapbox-current-location:hover {
  background: #e8f1ff;
}

.mapbox-map {
  width: 100%;
  min-height: 330px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wizard-location-summary {
  margin-top: 0.7rem;
  border: 1px solid #d6e4f8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #f2f8ff);
  padding: 0.72rem 0.82rem;
}

.wizard-location-summary h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: #174b92;
}

.wizard-location-text {
  margin: 0;
  color: #233f61;
  font-weight: 600;
}

.wizard-location-note {
  margin: 0.55rem 0 0;
  color: #5b6f86;
  font-size: 0.86rem;
}

.coords-preview {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.mini-image-card {
  padding: 0.8rem;
}

.messages {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.alert {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.alert-success { background: var(--success-bg); color: var(--success-text); }
.alert-warning { background: var(--warning-bg); color: var(--warning-text); }
.alert-error { background: var(--error-bg); color: var(--error-text); }
.alert-info { background: #e8f3ff; color: #0c4a6e; }

.errorlist {
  margin: 0.2rem 0 0.4rem;
  padding: 0;
  list-style: none;
  color: var(--error-text);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.mobile-bottom-nav {
  display: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

@media (max-width: 700px) {
  .ad-spec-grid {
    grid-template-columns: 1fr;
  }

  .ad-spec-item,
  .ad-spec-item:nth-child(2n) {
    border-right: 0;
  }

  .ad-spec-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 1200px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ad-detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky-contact,
  .filters-panel {
    position: static;
  }
}

@media (max-width: 960px) {
  .mobile-home-header {
    display: grid;
    gap: 0.62rem;
    padding: 0.68rem 0.82rem 0.72rem;
    background: linear-gradient(90deg, #032e34, #08444b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .mobile-home-header + .topbar {
    display: none;
  }

  .mobile-home-header + .topbar + .subbar {
    display: none;
  }

  .mobile-home-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
  }

  .mobile-brand {
    gap: 0.52rem;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 0.8rem;
  }

  .mobile-brand .brand-text {
    font-size: 1.02rem;
  }

  .mobile-home-actions {
    display: flex;
    align-items: center;
    gap: 0.44rem;
  }

  .mobile-header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #e8f4f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.16s ease, border-color 0.16s ease;
  }

  .mobile-header-icon-btn i,
  .mobile-header-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: currentColor;
  }

  .mobile-home-search {
    margin: 0;
  }

  .mobile-home-search-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #d2dfef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(7, 24, 46, 0.16);
    padding: 0 0.38rem 0 0.66rem;
    min-height: 50px;
  }

  .mobile-home-search-icon {
    width: 18px;
    height: 18px;
    color: #4f6682;
  }

  .mobile-home-search-wrap input {
    min-height: 48px;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.94rem;
    color: #12314f;
  }

  .mobile-home-search-wrap input::placeholder {
    color: #6a7e95;
  }

  .mobile-home-search-submit {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(180deg, #1269da, #0b56bd);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 7px 14px rgba(13, 88, 193, 0.32);
  }

  .mobile-home-search-submit i,
  .mobile-home-search-submit svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
  }

  .home-search-shell {
    display: none;
  }

  .topbar-inner,
  .subbar-inner,
  .hero-market,
  .myads-hero,
  .form-hero,
  .modern-list-hero,
  .detail-hero {
    flex-direction: column;
    align-items: flex-start;
    display: flex;
  }

  .btn-publish {
    width: 100%;
  }

  .home-search-form {
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
    overflow: visible;
    gap: 0.6rem;
    background: transparent;
    box-shadow: none;
  }

  .home-search-input-wrap::after,
  .home-search-location::after {
    display: none;
  }

  .home-search-input-wrap input,
  .home-search-location input {
    border: 1px solid #cfdae8;
    border-radius: 12px;
    min-height: 54px;
  }

  .home-search-location.mapbox-ready [data-location-input] {
    display: none;
  }

  .home-geocoder-host .mapboxgl-ctrl-geocoder {
    min-height: 54px;
    border: 1px solid #cfdae8;
    border-radius: 12px;
  }

  .home-geocoder-host .mapboxgl-ctrl-geocoder--input {
    height: 54px;
    border-radius: 12px;
  }

  .home-search-submit {
    min-height: 54px;
    border-radius: 12px;
  }

  .listing-layout,
  .form-columns,
  .benefits-grid,
  .myads-summary {
    grid-template-columns: 1fr;
  }

  .wizard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wizard-head-chip {
    align-self: flex-start;
  }

  .wizard-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-ai-grid {
    grid-template-columns: 1fr;
  }

  .wizard-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wizard-actions-right {
    width: 100%;
  }

  .wizard-actions-right .btn {
    width: 100%;
  }

  .wizard-progress-meta {
    flex-direction: row;
  }

  .ad-main-media {
    min-height: 240px;
    max-height: 380px;
  }

  .ad-info-grid-two {
    grid-template-columns: 1fr;
  }

  .category-circle-icon {
    width: 66px;
    height: 66px;
    font-size: 1.65rem;
  }

  .category-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
  }

  .home-categories-shell {
    padding: 0.92rem;
    border-radius: 18px;
  }

  .home-categories-showcase {
    gap: 0.7rem;
  }

  .home-categories-row {
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    grid-template-columns: none;
    gap: 0.65rem 0.7rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.2rem 0.35rem;
    margin-inline: -0.2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }

  .home-categories-row::-webkit-scrollbar {
    display: none;
  }

  .home-category-entry {
    scroll-snap-align: start;
  }

  .category-circle-item {
    gap: 0.36rem;
    padding: 0.2rem 0.1rem;
    min-height: 104px;
  }

  .category-circle-icon {
    width: 58px;
    height: 58px;
  }

  .category-circle-icon svg {
    width: 28px;
    height: 28px;
  }

  .category-circle-label {
    font-size: 0.77rem;
    line-height: 1.25;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-chevron,
  .home-category-panels {
    display: none !important;
  }

  .categories-scrollbar {
    display: block;
    width: min(140px, 42%);
    margin: 0 auto;
  }

  .page {
    padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 0.25rem;
    padding: 0.42rem 0.55rem calc(0.48rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #dbe5f3;
    box-shadow: 0 -8px 24px rgba(7, 24, 46, 0.12);
  }

  .mobile-bottom-nav--guest {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    padding-inline: 0.85rem;
  }

  .mobile-nav-item {
    min-height: 58px;
    border-radius: 12px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.12rem;
    text-decoration: none;
    color: #4f647f;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .mobile-nav-item:active {
    transform: translateY(1px);
  }

  .mobile-nav-item.is-active {
    background: #eaf3ff;
    color: #144f9f;
  }

  .mobile-nav-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  .mobile-nav-label {
    font-size: 0.68rem;
    line-height: 1.1;
    font-weight: 700;
  }

  .mobile-nav-item-publish {
    background: linear-gradient(180deg, #1065d5, #0b53b6);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 9px 16px rgba(13, 89, 196, 0.36);
  }

  .mobile-nav-item-publish .mobile-nav-icon {
    width: 23px;
    height: 23px;
  }

  .mobile-nav-item-publish.is-active {
    background: linear-gradient(180deg, #0f5ecc, #0a4ea8);
    color: #fff;
  }

  .mobile-bottom-nav--guest .mobile-nav-item {
    min-height: 60px;
  }

  .ad-content-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-shell {
    margin-top: 0.55rem;
  }

  .auth-screen {
    margin-top: 0.55rem;
  }

  .auth-card {
    padding: 1.05rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .wizard-image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
