/*
 * Ads Modern Marketplace - design layer
 *-loaded after style.css, responsive.css and rtl.css.
 * Everything here is scoped to body.ads-modern so the original sigma layout
 * remains available as a fallback. No hook, form field or plugin class is
 * removed: only visuals and responsive behaviour are modernised.
 */

:root{
  /* Friendly marketplace palette: confident blue, warm coral, soft pastels. */
  --am-bg:            #f7f8fc;
  --am-surface:       #ffffff;
  --am-text:          #14213d;
  --am-muted:         #697386;
  --am-border:        #e6e9f0;
  --am-primary:       #3457d5;
  --am-primary-dark:  #2443ad;
  --am-primary-soft:  #eef2ff;
  --am-accent:        #ff6b4a;
  --am-accent-soft:   #fff1ec;
  --am-sunny:         #ffb020;
  --am-danger:        #e11d48;
  --am-warning:       #f59e0b;
  --am-mint:          #e6f8f0;
  --am-peach:         #fff0e9;
  --am-lavender:      #eeeaff;
  --am-radius:        18px;
  --am-radius-sm:     12px;
  --am-shadow-sm:     0 1px 2px rgba(20,33,61,.04), 0 6px 18px rgba(20,33,61,.06);
  --am-shadow-md:     0 18px 44px rgba(20,33,61,.14);
  --am-header-h:      72px;
  --am-container:     1240px;
}

/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

body.ads-modern {
  background: var(--am-bg);
  color: var(--am-text);
  font-family: 'Inter', 'Noto Sans Arabic', 'Nunito', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 0;
}

body.ads-modern h1,
body.ads-modern h2,
body.ads-modern h3,
body.ads-modern h4,
body.ads-modern h5 {
  font-family: 'Inter', 'Noto Sans Arabic', sans-serif;
  color: var(--am-text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.ads-modern h1 { font-size: 34px; line-height: 1.2; }
body.ads-modern h2 { font-size: 24px; line-height: 1.25; }
body.ads-modern h3 { font-size: 18px; line-height: 1.3; }
body.ads-modern p  { margin: 0 0 12px; }

body.ads-modern a { color: var(--am-primary); text-decoration: none; }
body.ads-modern a:hover { color: var(--am-primary-dark); text-decoration: none; }

body.ads-modern .wrapper,
header .wrapper,
footer .wrapper {
  width: 100%;
  max-width: var(--am-container);
  margin-inline: auto;
  float: none;
}

body.ads-modern section,
body.ads-modern header,
body.ads-modern footer {
  padding-inline: 16px;
}

body.ads-modern section { padding-block: 28px; float: none; }
body.ads-modern header  { float: none; }
body.ads-modern footer  { float: none; }

body.ads-modern .clear { clear: both; }

/* Focus visible for keyboard users */
body.ads-modern a:focus-visible,
body.ads-modern button:focus-visible,
body.ads-modern input:focus-visible,
body.ads-modern select:focus-visible,
body.ads-modern textarea:focus-visible,
body.ads-modern .menu-icon:focus-visible {
  outline: 3px solid rgba(52,87,213,.35);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. Buttons, fields, alerts, pagination
   -------------------------------------------------------------------------- */

body.ads-modern .btn,
body.ads-modern button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--am-radius-sm);
  border: 1px solid transparent;
  padding: 11px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.ads-modern .btn:hover,
body.ads-modern button:hover { transform: translateY(-1px); text-decoration: none; }

body.ads-modern .btn.btn-primary,
body.ads-modern button.btn-primary {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(52,87,213,.22);
}
body.ads-modern .btn.btn-primary:hover,
body.ads-modern button.btn-primary:hover {
  background: var(--am-primary-dark);
  border-color: var(--am-primary-dark);
  color: #fff;
}

body.ads-modern .btn.btn-secondary,
body.ads-modern button.btn-secondary {
  background: var(--am-surface);
  border-color: var(--am-border);
  color: var(--am-text);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .btn.btn-secondary:hover,
body.ads-modern button.btn-secondary:hover {
  border-color: var(--am-primary);
  color: var(--am-primary);
}

body.ads-modern input[type="text"],
body.ads-modern input[type="url"],
body.ads-modern input[type="password"],
body.ads-modern input[type="email"],
body.ads-modern input[type="date"],
body.ads-modern input[type="time"],
body.ads-modern input[type="tel"],
body.ads-modern input[type="phone"],
body.ads-modern input[type="number"],
body.ads-modern select,
body.ads-modern textarea {
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  background: var(--am-surface);
  color: var(--am-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  height: 46px;
  padding: 10px 12px;
  margin-bottom: 14px;
  box-shadow: none;
}
body.ads-modern textarea { height: auto; min-height: 120px; }
body.ads-modern input:focus,
body.ads-modern select:focus,
body.ads-modern textarea:focus {
  border-color: var(--am-primary);
  box-shadow: 0 0 0 3px rgba(52,87,213,.12);
  outline: none;
}
body.ads-modern label { font-size: 13px; font-weight: 600; color: var(--am-text); }

body.ads-modern .flashmessage {
  border-radius: var(--am-radius-sm);
  padding: 13px 48px 13px 16px;
  font-size: 14px;
  box-shadow: var(--am-shadow-sm);
  border: 0;
  border-inline-start: 4px solid rgba(255,255,255,.5);
}
body.ads-modern .flashmessage-ok,
body.ads-modern .flashmessage-success { background: #047857; }
body.ads-modern .flashmessage-error { background: #be123c; }
body.ads-modern .flashmessage-warning { background: #b45309; }
body.ads-modern .flashmessage-info { background: #1d4ed8; }
body.ads-modern .flashmessage .ico-close { border-radius: 50%; }

body.ads-modern div.breadcrumb { font-size: 13px; color: var(--am-muted); margin-bottom: 16px; }
body.ads-modern ul.breadcrumb li { color: var(--am-muted); }
body.ads-modern ul.breadcrumb a { color: var(--am-primary); }

body.ads-modern .paginate { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 28px 0; }
body.ads-modern .paginate li { display: block; }
body.ads-modern .paginate a,
body.ads-modern .paginate span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  margin: 0;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  background: var(--am-surface);
  color: var(--am-text);
  line-height: 1;
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .paginate a:hover { border-color: var(--am-primary); color: var(--am-primary); }
body.ads-modern .paginate span.searchPaginationSelected {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

body.ads-modern #related-searches { border-top: 1px solid var(--am-border); }
body.ads-modern #related-searches a {
  border: 1px solid var(--am-border);
  border-radius: 999px;
  background: var(--am-surface);
  color: var(--am-text);
  padding: 6px 12px;
  font-size: 13px;
}
body.ads-modern #related-searches a:hover { border-color: var(--am-primary); color: var(--am-primary); }

/* --------------------------------------------------------------------------
   3. Header + navigation
   -------------------------------------------------------------------------- */

body.ads-modern header.site-header,
body.home header.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
  width: 100%;
  min-height: var(--am-header-h);
  height: auto;
  padding-block: 10px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--am-border);
  box-shadow: 0 2px 18px rgba(15,23,42,.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.ads-modern header.site-header .wrapper { display: flex; align-items: center; gap: 16px; }
body.ads-modern header.site-header .box { display: flex; align-items: center; gap: 16px; width: 100%; float: none; }
body.ads-modern header #logo { float: none; flex: 0 0 auto; line-height: 1; }
body.ads-modern header #logo img { height: 42px; width: auto; margin: 0; }
body.ads-modern header #logo a { color: var(--am-text); font-weight: 800; font-size: 20px; }

body.ads-modern header .nav {
  float: none;
  display: flex;
  align-items: center;
  gap: 4px;
  height: auto;
  margin-inline-start: auto;
}
body.ads-modern header .nav a,
body.ads-modern header .nav a.active {
  float: none;
  height: auto;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--am-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
body.ads-modern header .nav a:hover,
body.ads-modern header .nav a.active:hover {
  background: #f1f5f9;
  color: var(--am-primary);
  border-color: transparent;
  box-shadow: none;
}
body.ads-modern header .nav a.publish,
body.ads-modern header .nav a.publish:hover {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(52,87,213,.22);
  margin-inline-start: 8px;
}

/* Language switcher in the header (the footer keeps the full-name version). */
body.ads-modern .lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px 5px;
  border: 1px solid var(--am-border);
  border-radius: 999px;
  background: var(--am-bg);
  color: var(--am-muted);
}
body.ads-modern .lang-switch > i { font-size: 12px; margin-inline: 4px 2px; }
body.ads-modern .lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 27px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--am-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1;
}
body.ads-modern .lang-switch a:hover { background: #fff; color: var(--am-primary); }
body.ads-modern .lang-switch a.active {
  background: var(--am-primary);
  color: #fff;
  box-shadow: 0 3px 10px rgba(52,87,213,.25);
}

body.ads-modern .menu-icon {
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--am-border);
  inset-inline-end: 0;
  inset-inline-start: auto;
}
body.ads-modern .menu-icon span,
body.ads-modern .menu-icon.opened span { background: var(--am-text); }
body.ads-modern .menu-icon:active,
body.ads-modern .menu-icon:focus { border-color: var(--am-primary); }

body.ads-modern section.header-ad { padding-block: 12px; }
body.ads-modern .ads_300,
body.ads-modern .ads_728,
body.ads-modern .ads_468 { background: transparent; margin-block: 16px; }

/* Mobile / tablet drawer navigation */
@media screen and (max-width: 980px) {
  body.ads-modern header .nav {
    display: none;
    position: fixed;
    inset-block-start: var(--am-header-h);
    inset-block-end: 0;
    inset-inline: 0;
    width: auto;
    height: auto;
    max-height: none;
    margin: 0;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow-y: auto;
    background: var(--am-surface);
    box-shadow: var(--am-shadow-md);
    border-radius: 0;
    z-index: 60;
  }
  body.ads-modern header .nav a,
  body.ads-modern header .nav a.active,
  body.ads-modern header .nav a.publish,
  body.ads-modern header .nav a.publish:hover {
    width: 100%;
    text-align: start;
    justify-content: flex-start;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--am-border);
    background: var(--am-surface);
    color: var(--am-text);
    box-shadow: none;
    font-size: 15px;
  }
  body.ads-modern header .nav a.publish,
  body.ads-modern header .nav a.publish:hover {
    background: var(--am-primary);
    border-color: var(--am-primary);
    color: #fff;
    justify-content: center;
    text-align: center;
  }
  body.ads-modern .menu-icon { position: relative; inset-inline: auto; inset-block: auto; order: 3; }
  body.ads-modern header.site-header .box { justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   4. Home: hero search, categories, locations
   -------------------------------------------------------------------------- */

body.ads-modern section.home-search {
  position: relative;
  overflow: hidden;
  padding-block: 50px 58px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,176,32,.18), transparent 36%),
    radial-gradient(circle at 88% 10%, rgba(255,107,74,.2), transparent 38%),
    linear-gradient(135deg, #3457d5 0%, #2a44a8 52%, #14213d 100%);
  color: #fff;
}
body.ads-modern section.home-search::before,
body.ads-modern section.home-search::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
body.ads-modern section.home-search::before {
  width: 540px;
  height: 540px;
  inset-inline-end: -180px;
  inset-block-start: -280px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 60px rgba(255,255,255,.035), 0 0 0 120px rgba(255,255,255,.025);
}
body.ads-modern section.home-search::after {
  width: 280px;
  height: 280px;
  inset-inline-start: -140px;
  inset-block-end: -190px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
}
/* The signature "smile" under the hero title. */
body.ads-modern form.search h1 {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  text-align: center;
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
body.ads-modern form.search h1::after {
  content: "";
  position: absolute;
  inset-inline: 18%;
  inset-block-end: -10px;
  height: 9px;
  border-block-end: 3px solid var(--am-accent);
  border-radius: 0 0 50% 50%;
  opacity: .9;
}
body.ads-modern form.search > h1 { display: block; }
body.ads-modern form.search > h1::after { inset-inline: 38%; }

body.ads-modern .hero-search-card {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding: 18px;
  background: var(--am-surface);
  border-radius: 22px;
  box-shadow: var(--am-shadow-md);
  float: none;
}

/* Small promises strip: warmth and trust, leboncoin-style. */
body.ads-modern .trust-strip {
  padding-block: 0;
  margin-block-start: -14px;
}
body.ads-modern .trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}
body.ads-modern .trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  background: var(--am-surface);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .trust-item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--am-text);
  line-height: 1.35;
}
body.ads-modern .trust-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 16px;
  color: var(--am-primary);
}
body.ads-modern .trust-icon-mint     { background: var(--am-mint);     color: #0f8a63; }
body.ads-modern .trust-icon-peach    { background: var(--am-peach);    color: var(--am-accent); }
body.ads-modern .trust-icon-lavender { background: var(--am-lavender); color: #6d4ddb; }

body.ads-modern .main-search {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 0;
  float: none;
  width: 100%;
}
body.ads-modern .main-search > .cell { float: none; width: auto; min-width: 0; padding: 0; }
body.ads-modern .main-search > .cell label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--am-muted);
}
body.ads-modern .main-search > .c1 input[type="text"],
body.ads-modern .main-search > .c2 select {
  width: 100%;
  height: 52px;
  margin: 0;
  border: 1px solid var(--am-border);
  border-radius: 12px;
  font-size: 15px;
}
body.ads-modern .main-search > .c3 .btn {
  width: 100%;
  height: 52px;
  padding-inline: 26px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}
body.ads-modern #message-seach { clear: both; font-size: 13px; color: var(--am-danger); }

body.ads-modern #home-cats { background: transparent; padding: 34px 0 8px; margin: 0; border-radius: 0; }
body.ads-modern #home-cats h2 { margin: 0 0 18px; font-size: 24px; }
body.ads-modern #home-cats .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
body.ads-modern #home-cats a {
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 18px 12px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.ads-modern #home-cats a:hover {
  transform: translateY(-3px);
  border-color: var(--am-primary);
  box-shadow: var(--am-shadow-md);
  text-decoration: none;
}
body.ads-modern #home-cats a .icon {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 18px;
  background: var(--am-primary-soft);
  color: var(--am-primary);
  display: grid;
  place-items: center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
body.ads-modern #home-cats a:nth-child(5n+2) .icon { background: var(--am-mint);     color: #0f8a63; }
body.ads-modern #home-cats a:nth-child(5n+3) .icon { background: var(--am-peach);    color: var(--am-accent); }
body.ads-modern #home-cats a:nth-child(5n+4) .icon { background: var(--am-lavender); color: #6d4ddb; }
body.ads-modern #home-cats a:nth-child(5n+5) .icon { background: #fff6da;            color: #b7791f; }
body.ads-modern #home-cats a:hover .icon { transform: rotate(-8deg) scale(1.08); }
body.ads-modern #home-cats a .icon i { font-size: 23px; line-height: 1; }
body.ads-modern #home-cats a strong {
  width: 100%;
  max-height: none;
  overflow: visible;
  color: var(--am-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

body.ads-modern #home-regs {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 24px;
  margin: 26px 0 10px;
}
body.ads-modern #home-regs h2 { margin: 0 0 16px; font-size: 20px; }
body.ads-modern #home-regs .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}
body.ads-modern #home-regs .wrap > div,
body.ads-modern #home-regs .wrap > div:nth-of-type(1n+10) {
  float: none;
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  clear: none;
}
body.ads-modern #home-regs a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: var(--am-radius-sm);
  background: var(--am-bg);
  color: var(--am-text);
  font-size: 13px;
  font-weight: 500;
}
body.ads-modern #home-regs a:hover { background: var(--am-primary-soft); color: var(--am-primary); }
body.ads-modern #home-regs a i { float: none; margin: 0; color: var(--am-primary); }
body.ads-modern #home-regs a em { color: var(--am-muted); }

body.ads-modern .home-latest { margin: 6px 0 34px; float: none; width: 100%; }
body.ads-modern .home-latest h2 { margin: 12px 0 18px; font-size: 24px; }

/* --------------------------------------------------------------------------
   5. Two-column content layout
   -------------------------------------------------------------------------- */

body.ads-modern #content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  float: none;
  width: 100%;
}
body.ads-modern .home-latest { grid-column: 1 / -1; grid-row: 1; }
body.ads-modern #main,
body.home #main,
body.search #main,
body.user #main,
body.item #main,
body.user-public-profile #main,
body.item-post #main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  float: none !important;
  width: auto !important;
  max-width: none;
}
body.ads-modern.home #main { grid-row: 2; }
body.ads-modern #sidebar,
body.home #sidebar,
body.search #sidebar,
body.item #sidebar,
body.user #sidebar,
body.user-public-profile #sidebar {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  float: none !important;
  width: auto !important;
  margin: 0;
}
body.ads-modern.home #sidebar { grid-row: 2; }

body.login #content,
body.register #content,
body.recover #content,
body.contact #content,
body.page #content,
body.error404 #content { grid-template-columns: minmax(0, 1fr); }
body.login #main,
body.register #main,
body.recover #main,
body.contact #main { max-width: 620px; margin-inline: auto; }

/* Item detail: sticky sidebar */
body.item #sidebar,
body.user-public-profile #sidebar { position: sticky; inset-block-start: calc(var(--am-header-h) + 18px); align-self: start; }

/* --------------------------------------------------------------------------
   6. Listing cards
   -------------------------------------------------------------------------- */

body.ads-modern .listing-card-list {
  display: grid;
  gap: 16px;
  float: none;
  width: 100%;
  margin: 0;
}
body.ads-modern .listing-card-list.listing-list { grid-template-columns: minmax(0, 1fr); }
body.ads-modern .listing-card-list.listing-grid,
body.search .listing-card-list.listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  width: 100%;
  margin: 0;
}
body.ads-modern .listing-card,
body.search .listing-grid .listing-card,
.similar_ads .listing-grid .listing-card {
  display: block;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.ads-modern .listing-card:hover,
body.search .listing-grid .listing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52,87,213,.35);
  box-shadow: var(--am-shadow-md);
}
body.ads-modern .premium-list li.listing-card,
body.ads-modern li.listing-card.premium {
  position: relative;
  background: var(--am-surface);
  border-color: var(--am-sunny);
  box-shadow: 0 0 0 2px rgba(255,176,32,.18), var(--am-shadow-sm);
}
/* Tiny gold star badge on highlighted ads - no language dependency. */
body.ads-modern .premium-list li.listing-card::before,
body.ads-modern li.listing-card.premium::before {
  content: "\2605";
  position: absolute;
  z-index: 2;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--am-sunny);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(255,176,32,.4);
}

body.ads-modern .listing-list .listing-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
}
body.ads-modern .listing-list .listing-card .listing-thumb,
body.ads-modern .listing-grid .listing-card .listing-thumb {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  border: 0;
  overflow: hidden;
}
body.ads-modern .listing-list .listing-card .listing-thumb { height: 150px; }
body.ads-modern .listing-card .listing-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 0;
  float: none;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
body.ads-modern .listing-card:hover .listing-thumb img { transform: scale(1.05); }
body.ads-modern .listing-grid .listing-card .listing-thumb img { height: 155px; }

body.ads-modern .listing-card .listing-cell,
body.ads-modern .listing-card .listing-data { display: block; width: 100%; float: none; }
body.ads-modern .listing-card .listing-data { padding: 16px; }
body.ads-modern .listing-list .listing-card .listing-detail,
body.ads-modern .listing-grid .listing-detail { margin: 0 !important; width: auto; float: none; }
body.ads-modern .listing-card .listing-basicinfo { width: 100%; display: block; }
body.ads-modern .listing-card .listing-basicinfo a.title,
body.ads-modern .listing-grid .listing-basicinfo a {
  display: block;
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  color: var(--am-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
body.ads-modern .listing-card .listing-basicinfo a.title:hover { color: var(--am-primary); }
body.ads-modern .listing-card .currency-value {
  display: block;
  margin: 0 0 8px;
  color: var(--am-primary);
  font-size: 19px;
  font-weight: 800;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
body.ads-modern .listing-card .listing-details {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin: 0;
  color: var(--am-muted);
  font-size: 13px;
  line-height: 1.5;
}
body.ads-modern .listing-list .listing-details > span:after { content: "·"; margin-inline: 0 8px; }
body.ads-modern .listing-list .listing-details > span:last-child:after { display: none; }
body.ads-modern .listing-card .desc,
body.ads-modern .listing-grid .listing-basicinfo .desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--am-muted);
  font-size: 13px;
  line-height: 1.5;
  max-height: none;
}
body.ads-modern .listing-grid .date,
body.ads-modern .listing-grid .category,
body.ads-modern .listing-grid .location { display: inline; }
body.ads-modern .listing-grid .listing-basicinfo,
body.ads-modern .listing-grid .listing-data { float: none; }
body.ads-modern .listing-grid .admin-options { display: none; }
body.ads-modern .listing-card .admin-options { margin-top: 10px; }
body.ads-modern .fi_make_favorite.fi_make {
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  padding: 7px 9px;
  box-shadow: var(--am-shadow-sm);
  color: var(--am-accent);
}
body.ads-modern .fi_make_favorite.fi_make:hover { transform: scale(1.08); }
body.ads-modern .fi_make_favorite.fi_remove { color: var(--am-accent); }

/* --------------------------------------------------------------------------
   7. Search results + filters
   -------------------------------------------------------------------------- */

body.ads-modern .list-header {
  float: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .list-header .resp-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; float: none; }
body.ads-modern .list-header h1,
body.ads-modern.search h1 { width: 100%; margin: 0 0 2px; font-size: 26px; line-height: 1.2; }
body.ads-modern .counter-search { float: none; margin: 0; color: var(--am-muted); font-size: 14px; }
body.ads-modern .list-header .actions { float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-inline-start: auto; }
body.ads-modern .btn.see_by {
  float: none;
  height: 40px;
  padding: 9px 12px;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  color: var(--am-text);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .see_by ul {
  top: 44px;
  inset-inline-start: -1px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  box-shadow: var(--am-shadow-md);
  background: var(--am-surface);
  padding: 6px;
}
body.ads-modern .see_by ul a { color: var(--am-text); border-radius: 8px; padding: 7px 9px; }
body.ads-modern .see_by ul a:hover { background: var(--am-bg); color: var(--am-primary); }
body.ads-modern .doublebutton { float: none; margin: 0; display: inline-flex; gap: 6px; }
body.ads-modern .doublebutton a {
  float: none;
  width: 40px;
  height: 40px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-sm);
  background: var(--am-surface);
  color: var(--am-text);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .doublebutton a.active { background: var(--am-primary); border-color: var(--am-primary); color: #fff; }
body.ads-modern .show-filters-btn { height: 40px; margin: 0; }

body.ads-modern #sidebar .filters {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 18px;
  margin: 0 0 16px;
  float: none;
  width: 100%;
}
body.ads-modern #sidebar fieldset { padding: 0 0 16px; margin: 0 0 16px; border: 0; border-bottom: 1px solid var(--am-border); }
body.ads-modern #sidebar fieldset:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
body.ads-modern #sidebar h3 {
  margin: 0 0 10px;
  color: var(--am-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
body.ads-modern #sidebar input[type="text"],
body.ads-modern #sidebar input[type="date"],
body.ads-modern #sidebar input[type="number"],
body.ads-modern #sidebar select { height: 42px; margin: 0; }
body.ads-modern #sidebar .btn,
body.ads-modern #sidebar button { width: 100%; min-height: 42px; }
body.ads-modern #sidebar ul.category li { padding: 4px 0; }
body.ads-modern #sidebar ul.category a { color: var(--am-text); font-size: 13px; }
body.ads-modern #sidebar ul.category a:hover { color: var(--am-primary); }
body.ads-modern #sidebar .plugin-hooks h6 { color: var(--am-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
body.ads-modern .alert_form { background: var(--am-primary-soft); border: 1px solid #a7f3d0; border-radius: var(--am-radius-sm); padding: 16px; }
body.ads-modern .refine { padding: 16px !important; background: var(--am-surface); border: 1px solid var(--am-border); border-radius: var(--am-radius); }
body.ads-modern .widget-box {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 18px;
  margin-bottom: 16px;
}
body.ads-modern .widget-box h2 { font-size: 18px; margin: 0 0 12px; }

/* --------------------------------------------------------------------------
   8. Item detail
   -------------------------------------------------------------------------- */

body.ads-modern #item-content h1 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
body.ads-modern.item h1 .price {
  background: var(--am-primary);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 24px;
  font-weight: 800;
  float: none;
  display: inline-block;
}
body.ads-modern .item-header {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  padding: 14px 18px;
  margin: 0 0 20px;
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .item-photos { margin: 0 0 20px; }
body.ads-modern .item-photos .main-photo {
  float: none;
  width: 100%;
  max-width: 100%;
  border-radius: var(--am-radius);
  overflow: hidden;
  background: var(--am-surface);
  box-shadow: var(--am-shadow-sm);
}
body.ads-modern .item-photos .main-photo img { display: block; width: 100%; height: auto; }
body.ads-modern .item-photos .thumbs {
  float: none;
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
body.ads-modern .item-photos .thumbs img {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  object-fit: cover;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
}
body.ads-modern .item-photos .thumbs img:hover { border-color: var(--am-primary); }

body.ads-modern #description,
body.ads-modern #custom_fields,
body.ads-modern .item-hook {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 20px;
  margin: 0 0 18px;
  width: 100%;
}
body.ads-modern #description .desc { font-size: 15px; line-height: 1.75; margin: 0 0 18px; }
body.ads-modern .item-hook h2,
body.ads-modern .item-hook h3 { font-size: 16px; margin: 0 0 10px; }
body.ads-modern .table-attributes table td { padding: 9px 6px; border-bottom: 1px solid var(--am-border); }
body.ads-modern .table-attributes table td:first-child { width: 40%; color: var(--am-muted); }
body.ads-modern .custom_fields .meta strong,
body.ads-modern #custom_fields .meta strong { color: var(--am-muted); font-weight: 500; }

body.ads-modern #useful_info {
  background: #fff8ed;
  border: 1px solid #fed7aa;
  border-radius: var(--am-radius);
  padding: 18px 20px;
}
body.ads-modern #useful_info h2 { font-size: 15px; margin: 0 0 8px; }
body.ads-modern #useful_info ul { padding-inline-start: 18px; }
body.ads-modern #useful_info li { font-size: 13px; }

body.ads-modern .contact_button { margin-bottom: 18px; }
body.ads-modern .contact_button a { border-radius: var(--am-radius-sm); margin-inline-end: 10px; }
body.ads-modern.item #sidebar .price { font-size: 32px; line-height: 1.2; text-align: start; color: var(--am-primary); }
body.ads-modern #sidebar #contact {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 20px;
}
body.ads-modern #sidebar #contact h2 { font-size: 18px; margin: 0 0 14px; }
body.ads-modern #sidebar #contact p.user-img img { width: 72px; border-radius: 50%; object-fit: cover; }
body.ads-modern #sidebar #contact .btn { width: 100%; }
body.ads-modern #sidebar #contact-in textarea { width: 100%; }
body.ads-modern #sidebar #contact-in input[type="text"],
body.ads-modern #sidebar #contact-in input[type="email"] { width: 100%; }

body.ads-modern .item #comments {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 20px;
  margin-top: 20px;
}
body.ads-modern .item #comments h2 { font-size: 18px; }
body.ads-modern .item #comments input[type="text"],
body.ads-modern .item #comments textarea { width: 100%; }
body.ads-modern .comment-leave-rating i.is-rating-item { color: var(--am-warning); }

body.ads-modern .similar_ads h2 { margin-top: 32px; font-size: 22px; }

/* Fixed contact CTA on small screens (the existing button is reused) */
@media screen and (max-width: 767px) {
  body.ads-modern .show-contact-btn {
    position: fixed;
    inset-block-end: 82px;
    inset-inline: 16px;
    z-index: 35;
    width: auto;
    height: 48px;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(52,87,213,.35);
  }
}

/* --------------------------------------------------------------------------
   9. Forms, auth, publish, account
   -------------------------------------------------------------------------- */

body.ads-modern .form-container-box {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 28px;
  max-width: 620px;
}
body.ads-modern .form-container-box .header h1 { font-size: 28px; line-height: 1.2; margin: 0 0 20px; text-align: start; }
body.ads-modern .form-container-box label { font-size: 13px; font-weight: 600; }
body.ads-modern .form-container-box .control-group { margin-bottom: 18px; }
body.ads-modern .form-container-box .control-group:empty,
body.ads-modern .form-container-box .controls:empty { display: none; }

body.ads-modern.login > section,
body.ads-modern.register > section,
body.ads-modern.recover > section,
body.ads-modern.contact > section,
body.ads-modern.item-post > section { background: transparent; min-height: 0; }

body.ads-modern .form-horizontal label { font-size: 13px; font-weight: 600; color: var(--am-text); }
body.ads-modern .form-horizontal .control-group { margin-bottom: 18px; }
body.ads-modern .form-horizontal .actions .btn { margin-inline-end: 8px; }
body.ads-modern .item.item-post h2,
body.ads-modern .item-post .pblbt { font-size: 17px; border-bottom: 1px solid var(--am-border); padding-bottom: 8px; }
body.ads-modern .ui-drop-files {
  border: 2px dashed #cbd5e1;
  border-radius: var(--am-radius-sm);
  background: #f8fafc;
  color: var(--am-muted);
}
body.ads-modern .qq-upload-button { background: var(--am-primary); border-radius: var(--am-radius-sm); }
body.ads-modern #plugin-hook table { border: 1px solid var(--am-border); border-radius: var(--am-radius-sm); }
body.ads-modern .user-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow-sm);
  padding: 18px 18px 18px 134px;
}
body.ads-modern .user-card img { width: 110px; border-radius: 12px; object-fit: cover; }
body.ads-modern ul.user_menu li { padding: 0; margin-bottom: 6px; }
body.ads-modern ul.user_menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--am-radius-sm);
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  color: var(--am-text);
  font-size: 14px;
}
body.ads-modern ul.user_menu li a:hover { border-color: var(--am-primary); color: var(--am-primary); }

body.ads-modern #error_list,
body.ads-modern .error_list,
body.ads-modern #comment_error_list {
  border: 1px solid #fecdd3;
  border-inline-start: 4px solid var(--am-danger);
  border-radius: var(--am-radius-sm);
  background: #fff1f2;
  color: #9f1239;
}

/* --------------------------------------------------------------------------
   10. Footer + mobile tab bar + helpers
   -------------------------------------------------------------------------- */

body.ads-modern footer,
body.ads-modern footer[class] {
  background: linear-gradient(180deg, #182847 0%, #101a30 100%);
  color: #cbd5e1;
  padding-block: 48px 28px;
  float: none;
}
body.ads-modern footer .footer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body.ads-modern footer .footer-logo { color: #fff; font-size: 20px; font-weight: 800; }
body.ads-modern footer .footer-logo img { height: 42px; width: auto; filter: brightness(0) invert(1); }
body.ads-modern footer .footer-cta { margin: 0; }
body.ads-modern footer .box,
body.ads-modern footer .footer-box { display: flex; flex-wrap: wrap; gap: 8px 22px; float: none; width: 100%; }
body.ads-modern footer .box > a {
  float: none;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
body.ads-modern footer .box > a:hover { color: #fff; text-decoration: underline; }
body.ads-modern footer .copy,
body.ads-modern footer .language {
  float: none;
  width: auto;
  margin: 18px 0 0;
  color: #94a3b8;
  font-size: 12px;
}
body.ads-modern footer .language { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.ads-modern footer .language-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}
body.ads-modern footer .language a {
  color: #aab6cc;
  font-weight: 600;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  line-height: 1.2;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
body.ads-modern footer .language a:hover { color: #fff; border-color: rgba(255,255,255,.35); }
body.ads-modern footer .language a.active {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52,87,213,.3);
}
body.ads-modern footer .copy a { color: #94a3b8; }

body.ads-modern .mobile-tabbar { display: none; }

body.ads-modern .back-to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 34;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  color: var(--am-primary);
  box-shadow: var(--am-shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
body.ads-modern .back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
body.ads-modern .back-to-top:hover { background: var(--am-primary); color: #fff; }

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1024px) {
  body.ads-modern .listing-list .listing-card { grid-template-columns: 160px minmax(0, 1fr); }
  body.ads-modern .listing-list .listing-card .listing-thumb { height: 130px; }
}

@media screen and (max-width: 980px) {
  body.ads-modern #content { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  body.ads-modern header .nav a { padding-inline: 10px; font-size: 13px; }
  body.ads-modern #home-cats .wrap { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
}

@media screen and (max-width: 767px) {
  body.ads-modern { padding-top: 0; padding-bottom: 72px; }

  body.ads-modern section { padding-block: 20px; }
  body.ads-modern section.home-search { padding-block: 32px 44px; }
  body.ads-modern form.search h1 { font-size: 26px; }
  body.ads-modern form.search > h1::after { inset-inline: 30%; }
  body.ads-modern .hero-search-card { padding: 14px; border-radius: 18px; }

  body.ads-modern .trust-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body.ads-modern .trust-item { padding: 10px 12px; }
  body.ads-modern .trust-item strong { font-size: 12px; }
  body.ads-modern .trust-icon { width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }

  /* Keep the category field visible on phones (sigma hid it) */
  body.ads-modern .main-search > .cell.c2 { display: block !important; }
  body.ads-modern .main-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.ads-modern .main-search > .c3 .btn { width: 100%; }

  body.ads-modern #content { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.ads-modern .home-latest,
  body.ads-modern #main,
  body.home #main,
  body.home #sidebar,
  body.search #main,
  body.item #main,
  body.user #main,
  body.user #sidebar { grid-column: 1; grid-row: auto; position: static; }

  /* The search sidebar keeps its fixed-layout drawer behaviour on mobile. */
  body.search #sidebar.fixed-layout { grid-column: 1; grid-row: auto; }

  /* Item / public-profile sidebars are sticky on desktop only. */
  body.item #sidebar,
  body.user-public-profile #sidebar { grid-column: 1; grid-row: auto; position: static; }
  body.ads-modern.home #sidebar { grid-row: auto; }

  body.ads-modern .listing-card-list.listing-grid,
  body.search .listing-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  body.ads-modern .listing-list .listing-card { grid-template-columns: 128px minmax(0, 1fr); }
  body.ads-modern .listing-list .listing-card .listing-thumb { height: 108px; }
  body.ads-modern .listing-card .listing-data { padding: 13px; }
  body.ads-modern .listing-card .listing-basicinfo a.title,
  body.ads-modern .listing-grid .listing-basicinfo a { font-size: 15px; }
  body.ads-modern .listing-card .currency-value { font-size: 17px; }
  body.ads-modern .listing-card .desc { display: none; }

  body.ads-modern .list-header .actions { width: 100%; margin-inline-start: 0; }
  body.ads-modern .list-header .counter-search { width: 100%; }
  body.ads-modern #home-cats .wrap { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  body.ads-modern #home-cats a { padding: 14px 8px; }
  body.ads-modern #home-cats a .icon { width: 44px; height: 44px; }
  body.ads-modern #home-regs { padding: 18px; }
  body.ads-modern #home-regs .wrap { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

  body.ads-modern .form-container-box { padding: 20px; max-width: 100%; }
  body.ads-modern .form-container-box .header h1 { font-size: 24px; }
  body.ads-modern .form-horizontal label { width: 100%; float: none; text-align: start; padding: 0 0 4px; }
  body.ads-modern .form-horizontal .controls,
  body.ads-modern .form-horizontal .actions { width: 100%; float: none; padding: 0; }
  body.ads-modern .form-horizontal .control-group { width: 100%; }
  body.ads-modern #sidebar .g-recaptcha,
  body.ads-modern .g-recaptcha { max-width: 100%; transform-origin: 0 0; }

  body.ads-modern .item-photos .main-photo { width: 100%; }
  body.ads-modern .item-photos .thumbs img { width: 58px; height: 58px; }
  body.ads-modern #description,
  body.ads-modern #custom_fields,
  body.ads-modern .item-hook,
  body.ads-modern #useful_info,
  body.ads-modern #sidebar #contact { padding: 16px; }

  body.ads-modern .mobile-tabbar {
    display: flex;
    position: fixed;
    inset-block-end: 0;
    inset-inline: 0;
    z-index: 30;
    height: 64px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--am-border);
    box-shadow: 0 -6px 20px rgba(15,23,42,.07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  body.ads-modern .mobile-tabbar a {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--am-muted);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    border: 0;
    border-radius: 0;
    padding: 6px 2px;
  }
  body.ads-modern .mobile-tabbar a i { font-size: 19px; line-height: 1; }
  body.ads-modern .mobile-tabbar a:hover,
  body.ads-modern .mobile-tabbar a.active { background: transparent; color: var(--am-primary); }
  body.ads-modern .mobile-tabbar .tab-publish { color: var(--am-primary); }
  body.ads-modern .mobile-tabbar .tab-publish i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--am-primary);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(52,87,213,.3);
  }

  body.ads-modern footer { padding-block: 30px 90px; }
  body.ads-modern footer .footer-brand { flex-direction: column; align-items: flex-start; }
  body.ads-modern footer .box > a { width: auto; }
  body.ads-modern .back-to-top { inset-block-end: 82px; inset-inline-end: 14px; }
}

@media screen and (max-width: 490px) {
  body.ads-modern .listing-card-list.listing-grid,
  body.search .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ads-modern .listing-grid .listing-card .listing-thumb img { height: 120px; }
  body.ads-modern .listing-list .listing-card { grid-template-columns: 104px minmax(0, 1fr); }
  body.ads-modern .listing-list .listing-card .listing-thumb { height: 100px; }
  body.ads-modern .main-search > .cell button i { display: inline-block; }
  body.ads-modern .show-filters-btn { width: 100%; }
  body.ads-modern .lang-switch > i { display: none; }
  body.ads-modern .lang-switch a { min-width: 26px; padding: 0 5px; font-size: 10px; }
  body.ads-modern footer .language-label { width: 100%; }
  body.ads-modern #description .item-hook .table-attributes table td,
  body.ads-modern #description .item-hook .table-attributes table td:first-child,
  body.ads-modern #description .item-hook .table-attributes table td:last-child { width: 100%; display: block; }
  body.ads-modern .contact_button a { width: 100%; margin: 0 0 8px; }
}

/* --------------------------------------------------------------------------
   12. RTL fine-tuning (logical properties above already handle most of it)
   -------------------------------------------------------------------------- */

html[dir="rtl"] body.ads-modern .see_by ul { inset-inline-start: auto; inset-inline-end: -1px; }
html[dir="rtl"] body.ads-modern .listing-list .listing-details > span:after { margin-inline: 8px 0; }
html[dir="rtl"] body.ads-modern .flashmessage .ico-close { inset-inline-end: auto; inset-inline-start: 5px; }
html[dir="rtl"] body.ads-modern .main-search > .cell { float: none; padding: 0; }
html[dir="rtl"] body.ads-modern .form-horizontal label { text-align: start; }
html[dir="rtl"] body.ads-modern #home-regs a i { float: none; }
html[dir="rtl"] body.ads-modern footer .language { gap: 8px; }
html[dir="rtl"] body.ads-modern .lang-switch { flex-direction: row-reverse; }
html[dir="rtl"] body.ads-modern footer .language-label { flex-direction: row-reverse; }

@media (prefers-reduced-motion: reduce) {
  body.ads-modern *,
  body.ads-modern *::before,
  body.ads-modern *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
