/* SRRM DEV04-A — source-derived responsive public shell.
   Adaptation of accepted BranchCar 024-A3 mobile bottom navigation/converged
   public shell. Scoped ONLY to public pages, no change to old routes or DB. */
body.srrm-public-surface {
  --srrm-ink: #183044;
  --srrm-brand: #126b76;
  --srrm-on-brand: #fff;
  --srrm-border: #d9e5e9;
  --srrm-surface: #fff;
  --srrm-muted-surface: #f3f8f8;
  --srrm-focus: #a65f08;
  color: var(--srrm-ink);
  background: #f6f9fa;
  overflow-x: clip;
}
.srrm-skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 2000;
  padding: 12px 16px;
  background: #fff;
  color: #143e54;
  border: 2px solid #143e54;
  border-radius: 10px;
}
.srrm-skip-link:focus { top: 10px; }
body.srrm-public-surface a:focus-visible,
body.srrm-public-surface button:focus-visible,
body.srrm-public-surface select:focus-visible,
body.srrm-public-surface input:focus-visible {
  outline: 3px solid var(--srrm-focus);
  outline-offset: 3px;
}
body.srrm-public-surface .jumbotron {
  margin: 14px auto 20px;
  max-width: 1180px;
  border: 1px solid var(--srrm-border);
  border-radius: 22px;
  background: linear-gradient(125deg, #e7f5f3, #f7fcfd);
  padding: clamp(22px, 4vw, 48px);
  color: var(--srrm-ink);
}
body.srrm-public-surface .jumbotron h1 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.srrm-public-surface .mainnav {
  border-radius: 18px;
  border-color: var(--srrm-border);
  background: var(--srrm-surface);
  padding: 16px;
  min-width: 0;
}
body.srrm-public-surface .mainnav .well,
body.srrm-public-surface .home-cont,
body.srrm-public-surface .boder_mar_pad_div {
  border-radius: 16px;
  border-color: var(--srrm-border);
  box-shadow: 0 3px 18px rgba(28, 60, 72, 0.05);
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
body.srrm-public-surface .container_width { max-width: 100%; }
body.srrm-public-surface .mainnav img { max-width: 100%; height: auto; }
body.srrm-public-surface .btn,
body.srrm-public-surface .search_form button { min-height: 44px; }
body.srrm-public-surface .search_form select,
body.srrm-public-surface .search_form input { min-height: 44px; max-width: 100%; }
body.srrm-public-surface .mainnav a { overflow-wrap: anywhere; }
.srrm-mobile-nav { display: none; }
@media (max-width: 767px) {
  body.srrm-public-surface {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
  body.srrm-public-surface .container-fluid,
  body.srrm-public-surface .container,
  body.srrm-public-surface .row { max-width: 100%; }
  body.srrm-public-surface .mainnav {
    float: none;
    width: auto;
    margin: 8px 8px 16px;
    padding: 12px;
    border-radius: 14px;
  }
  body.srrm-public-surface .sidenav { float: none; width: auto; height: auto; }
  body.srrm-public-surface .jumbotron { margin: 8px 8px 16px; padding: 20px 14px; border-radius: 16px; }
  body.srrm-public-surface .search_form .form-control,
  body.srrm-public-surface .search_form .select2,
  body.srrm-public-surface .search_form .select2-container { max-width: 100%; min-width: 0; }
  .srrm-mobile-nav {
    position: fixed;
    z-index: 95;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    background: var(--srrm-surface);
    border-top: 1px solid var(--srrm-border);
    box-shadow: 0 -5px 20px rgba(29, 61, 75, .11);
    direction: inherit;
  }
  .srrm-mobile-nav__link {
    min-width: 0;
    min-height: 57px;
    color: var(--srrm-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
  }
  .srrm-mobile-nav__link:focus-visible,
  .srrm-mobile-nav__link[aria-current="page"] { background: var(--srrm-muted-surface); color: var(--srrm-brand); }
  .srrm-mobile-nav__glyph { font-family: system-ui, sans-serif; font-size: 22px; line-height: 1; }
  .srrm-mobile-nav__add .srrm-mobile-nav__glyph {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--srrm-brand);
    color: var(--srrm-on-brand);
    font-size: 23px;
  }
  .srrm-mobile-nav__label { text-align: center; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  body.srrm-public-surface *, body.srrm-public-surface *::before, body.srrm-public-surface *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* DEV04B: existing row/detail templates retain all routes and contact actions. */
body.srrm-public-surface .srrm-ad-card { border: 1px solid var(--srrm-border); border-radius: 18px; background: #fff; padding: 15px; margin: 0 0 15px; box-shadow: 0 8px 24px rgba(18, 57, 69, .06); }
body.srrm-public-surface .srrm-ad-card h4 { font-size: clamp(17px, 1.8vw, 22px); line-height: 1.45; font-weight: 750; margin-block: 5px 12px; }
body.srrm-public-surface .srrm-ad-card__photo { width: 100%; max-width: 175px; height: 136px; object-fit: cover; border-radius: 12px; }
body.srrm-public-surface .srrm-ad-card .js_job_data_2_wrapper { line-height: 1.6; margin-bottom: 4px; }
body.srrm-public-surface .srrm-ad-card a.btn { white-space: normal; }
body.srrm-public-surface .srrm-detail-title { font-size: clamp(23px, 2.6vw, 36px); font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
body.srrm-public-surface .srrm-gallery { margin: 12px auto 20px; max-width: 920px; }
body.srrm-public-surface .srrm-gallery__main { display: block; max-height: min(54vh, 480px); width: 100%; max-width: 920px; object-fit: contain; background: #f3f7f8; border-radius: 15px; }
body.srrm-public-surface .srrm-gallery__rail { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 9px; padding: 12px 4px; scrollbar-width: thin; }
body.srrm-public-surface .srrm-gallery__thumb { flex: 0 0 108px; width: 108px; min-height: 84px; border: 2px solid var(--srrm-border); border-radius: 11px; background: #fff; padding: 2px; cursor: pointer; }
body.srrm-public-surface .srrm-gallery__thumb[aria-pressed="true"] { border-color: var(--srrm-brand); }
body.srrm-public-surface .srrm-gallery__thumb img { display: block; width: 100%; height: 82px; object-fit: cover; border-radius: 7px; }
body.srrm-public-surface .srrm-empty-state { max-width: 680px; margin: 30px auto; padding: clamp(20px,5vw,48px); border: 1px solid var(--srrm-border); background: var(--srrm-muted-surface); border-radius: 20px; text-align: center; }
body.srrm-public-surface .srrm-empty-state h2 { font-size: clamp(20px,2vw,27px); }
body.srrm-public-surface .srrm-empty-state__icon { font-size: 40px; margin-bottom: 12px; }
@media (max-width: 767px) {
 body.srrm-public-surface .srrm-ad-card { padding: 12px; }
 body.srrm-public-surface .srrm-ad-card__photo { width: 100%; max-width: 100%; height: 185px; }
 body.srrm-public-surface .srrm-ad-card .row > [class*="col-"] { float: none; width: 100%; max-width: 100%; border-inline: none; }
 body.srrm-public-surface .srrm-gallery__main { max-height: 320px; }
}

/* DEV04C — source-bound country palettes. Tokens only, no country copies of routes or business logic. */
body.srrm-public-surface.srrm-market-all { --srrm-brand:#126b76; --srrm-muted-surface:#f3f8f8; }
body.srrm-public-surface.srrm-market-sa { --srrm-brand:#12644F; --srrm-muted-surface:#EDF7F3; }
body.srrm-public-surface.srrm-market-eg { --srrm-brand:#8E2434; --srrm-muted-surface:#FBF0F2; }
body.srrm-public-surface.srrm-market-ae { --srrm-brand:#17644E; --srrm-muted-surface:#EAF7F2; }
body.srrm-public-surface.srrm-market-kw { --srrm-brand:#174F78; --srrm-muted-surface:#EDF4FA; }
body.srrm-public-surface.srrm-market-qa { --srrm-brand:#7C2754; --srrm-muted-surface:#FBF0F7; }
body.srrm-public-surface.srrm-market-jo { --srrm-brand:#385276; --srrm-muted-surface:#F0F4FA; }
body.srrm-public-surface.srrm-market-iq { --srrm-brand:#824422; --srrm-muted-surface:#FCF3E9; }
body.srrm-public-surface.srrm-market-bh { --srrm-brand:#8C294C; --srrm-muted-surface:#FBF0F5; }
body.srrm-public-surface.srrm-market-lb { --srrm-brand:#1F5F75; --srrm-muted-surface:#EAF6F9; }
body.srrm-public-surface.srrm-market-dz { --srrm-brand:#28643A; --srrm-muted-surface:#EDF8F0; }
body.srrm-public-surface.srrm-market-ye { --srrm-brand:#884222; --srrm-muted-surface:#FCF4EC; }
body.srrm-public-surface.srrm-market-om { --srrm-brand:#852E37; --srrm-muted-surface:#FCF1F2; }
body.srrm-public-surface.srrm-market-ly { --srrm-brand:#14677A; --srrm-muted-surface:#EAF6F8; }
body.srrm-public-surface.srrm-market-mr { --srrm-brand:#695029; --srrm-muted-surface:#F8F4E9; }
body.srrm-public-surface.srrm-market-ma { --srrm-brand:#842B42; --srrm-muted-surface:#F9EFF2; }
body.srrm-public-surface.srrm-market-ps { --srrm-brand:#235E4B; --srrm-muted-surface:#E9F6F0; }
body.srrm-public-surface.srrm-market-tn { --srrm-brand:#8B3042; --srrm-muted-surface:#FBEFF2; }
body.srrm-public-surface.srrm-market-sd { --srrm-brand:#534E78; --srrm-muted-surface:#F4F1FB; }
body.srrm-public-surface.srrm-market-sy { --srrm-brand:#28607B; --srrm-muted-surface:#EDF5FA; }

body.srrm-public-surface .srrm-market-identity {
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  padding: 8px clamp(12px, 3vw, 28px); border-block-end:1px solid var(--srrm-border);
  font-size:14px; line-height:1.6; color:var(--srrm-ink); background:var(--srrm-muted-surface);
}
body.srrm-public-surface .srrm-market-identity__marker { width:11px; height:11px; flex:0 0 11px; border-radius:50%; background:var(--srrm-brand); }
body.srrm-public-surface .srrm-market-identity__label { opacity:.85; }
body.srrm-public-surface .srrm-market-identity strong { font-weight:750; }
body.srrm-public-surface .srrm-mobile-nav__add .srrm-mobile-nav__glyph { box-shadow:0 3px 10px rgba(0,0,0,.16); }
@media(max-width:767px) { body.srrm-public-surface .srrm-market-identity { font-size:13px; padding:6px 12px; } }

/* G4 — source-owned typography + general-classifieds Home.
   Adapted from the SCRA accepted Cairo/Manrope semantic contract and G3.2
   approved visual direction. This extends the existing shared CSS owner;
   there is no parallel stylesheet or copied BranchCar business data. */
body.srrm-public-surface {
  --srrm-font-ar: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  --srrm-font-en: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --srrm-luxury-ink: #142c40;
  --srrm-luxury-gold: #c3a16b;
  font-size: 16px;
  line-height: 1.65;
}
body.srrm-public-surface[dir="rtl"] { font-family: var(--srrm-font-ar); line-height: 1.82; }
body.srrm-public-surface[dir="ltr"] { font-family: var(--srrm-font-en); }
body.srrm-public-surface[dir="rtl"] h1,
body.srrm-public-surface[dir="rtl"] h2,
body.srrm-public-surface[dir="rtl"] h3 { letter-spacing: normal; }
body.srrm-public-surface bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
body.srrm-public-surface .srrm-home {
  float: none;
  clear: both;
  width: calc(100% - 28px);
  max-width: 1220px;
  margin: 20px auto 42px;
  padding: 0 0 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}
body.srrm-public-surface .srrm-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(12px, 3.5vw, 48px);
  align-items: center;
  padding: clamp(26px, 5vw, 66px);
  background: linear-gradient(115deg, #f5faf9 0%, #e2f2ef 66%, #dae9eb 100%);
  border: 1px solid #d3e4e2;
  border-radius: 28px;
  box-shadow: 0 22px 42px rgba(11, 47, 61, .06);
  isolation: isolate;
  overflow: hidden;
}
body.srrm-public-surface .srrm-home-eyebrow {
  margin: 0 0 9px;
  color: var(--srrm-brand);
  font-weight: 800;
  font-size: 13px;
}
body.srrm-public-surface .srrm-home-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 53px);
  font-weight: 800;
  line-height: 1.38;
  color: var(--srrm-luxury-ink);
  overflow-wrap: anywhere;
}
body.srrm-public-surface .srrm-home-hero__lead { margin: 14px 0 0; font-size: clamp(17px, 1.8vw, 22px); font-weight: 600; }
body.srrm-public-surface .srrm-home-hero__support { opacity: .85; margin: 12px 0 0; }
body.srrm-public-surface .srrm-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
body.srrm-public-surface .srrm-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 22px;
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}
body.srrm-public-surface .srrm-home-btn--primary { color: #fff; background: var(--srrm-brand); }
body.srrm-public-surface .srrm-home-btn--primary:hover { color: #fff; filter: brightness(.94); }
body.srrm-public-surface .srrm-home-btn--outline { color: var(--srrm-luxury-ink); background: #fff; border-color: #cbdedc; }
body.srrm-public-surface .srrm-home-hero__art { position: relative; display: grid; place-items: center; min-height: 215px; }
body.srrm-public-surface .srrm-home-hero__circle { position: absolute; width: min(290px, 100%); aspect-ratio: 1; border-radius: 50%; background: #bcd8d6; opacity: .65; }
body.srrm-public-surface .srrm-home-hero__art > svg { position: relative; max-width: 100%; filter: drop-shadow(0 20px 21px rgba(15, 52, 67, .1)); }
body.srrm-public-surface .srrm-home-search {
  margin: 18px 0 30px;
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid #e1eaed;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 50, 62, .055);
}
body.srrm-public-surface .srrm-home-search .search_form { max-width: 100%; }
body.srrm-public-surface .srrm-home-section { margin: 38px 0; }
body.srrm-public-surface .srrm-home-section__head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 12px; margin-bottom: 19px;
}
body.srrm-public-surface .srrm-home-section__head h2 {
  font-size: clamp(22px, 2.7vw, 30px);
  font-weight: 800;
  color: var(--srrm-luxury-ink);
  margin: 0;
  line-height: 1.45;
}
body.srrm-public-surface .srrm-home-section__more { color: var(--srrm-brand); font-weight: 700; }
body.srrm-public-surface .srrm-home-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 13px; margin: 0; padding: 0; list-style: none;
}
body.srrm-public-surface .srrm-home-category {
  min-height: 130px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 11px;
  padding: 19px 10px;
  border: 1px solid #e0e9ec; border-radius: 19px;
  color: var(--srrm-luxury-ink); background: #fff;
  box-shadow: 0 7px 22px rgba(20, 47, 59, .045);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body.srrm-public-surface .srrm-home-category:hover {
  transform: translateY(-2px); border-color: #9bc6c6;
  text-decoration: none; box-shadow: 0 15px 32px rgba(20, 47, 59, .09);
}
body.srrm-public-surface .srrm-home-category__icon {
  width: 47px; height: 47px; display: grid; place-items: center;
  border-radius: 15px; color: var(--srrm-brand); background: #eaf6f3;
  font-size: 26px; line-height: 1;
}
body.srrm-public-surface .srrm-home-category__name { font-weight: 750; font-size: 15px; line-height: 1.5; }
body.srrm-public-surface .srrm-home-ad-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
body.srrm-public-surface .srrm-home-card {
  min-width: 0; overflow: hidden; background: #fff;
  border: 1px solid #e0e8eb; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(21, 50, 64, .055);
}
body.srrm-public-surface .srrm-home-card__media { display: block; height: 185px; background: #e8f0f0; overflow: hidden; }
body.srrm-public-surface .srrm-home-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.srrm-public-surface .srrm-home-card__fallback { display: grid; place-items: center; height: 100%; color: #70969b; }
body.srrm-public-surface .srrm-home-card__body { padding: 17px 16px 20px; }
body.srrm-public-surface .srrm-home-card h3 {
  margin: 0; font-size: 16px; line-height: 1.7;
  font-weight: 750; min-height: 2.8em; overflow-wrap: anywhere;
}
body.srrm-public-surface .srrm-home-card h3 a { color: var(--srrm-luxury-ink); }
body.srrm-public-surface .srrm-home-card__price {
  color: var(--srrm-brand); font-weight: 800; font-size: 19px;
  margin: 11px 0; min-height: 28px;
}
body.srrm-public-surface .srrm-home-card__details {
  border-top: 1px solid #ebf0f2; padding-top: 11px;
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 5px 10px; color: #5b717d; font-size: 13px;
}
body.srrm-public-surface .srrm-home-directory__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
body.srrm-public-surface .srrm-home-directory__market {
  min-width: 0; background: #fff; border: 1px solid #e0e9ec;
  border-radius: 13px; padding: 0 16px;
}
body.srrm-public-surface .srrm-home-directory__market summary {
  cursor: pointer; list-style: revert; display: flex;
  justify-content: space-between; gap: 10px;
  padding: 15px 0; font-weight: 700;
}
body.srrm-public-surface .srrm-home-directory__count { color: #647d83; }
body.srrm-public-surface .srrm-home-directory__links {
  display: flex; flex-wrap: wrap; gap: 8px 13px; padding: 4px 0 16px;
}
body.srrm-public-surface .srrm-home-directory__links a { font-size: 13px; }
body.srrm-public-surface .srrm-home-directory__all { font-weight: 700; }
body.srrm-public-surface .srrm-home-state {
  margin: 0; padding: 30px 24px; background: #f4f8f8;
  border-radius: 16px; border: 1px solid #e1e9e9;
  color: #4d6973; text-align: center;
}
@media(max-width: 1050px) {
  body.srrm-public-surface .srrm-home-ad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.srrm-public-surface .srrm-home-directory__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 767px) {
  body.srrm-public-surface .srrm-home { width: calc(100% - 18px); margin: 10px auto 24px; }
  body.srrm-public-surface .srrm-home-hero { grid-template-columns: 1fr; padding: 22px 19px; border-radius: 21px; }
  body.srrm-public-surface .srrm-home-hero__art { display: none; }
  body.srrm-public-surface .srrm-home-hero__actions { flex-direction: column; }
  body.srrm-public-surface .srrm-home-hero__actions a { width: 100%; }
  body.srrm-public-surface .srrm-home-search { margin-top: 13px; }
  body.srrm-public-surface .srrm-home-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.srrm-public-surface .srrm-home-category { min-height: 109px; padding: 13px 5px; gap: 6px; }
  body.srrm-public-surface .srrm-home-category__icon { height: 40px; width: 40px; font-size: 22px; }
  body.srrm-public-surface .srrm-home-category__name { font-size: 13px; }
  body.srrm-public-surface .srrm-home-ad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.srrm-public-surface .srrm-home-card__media { height: 140px; }
  body.srrm-public-surface .srrm-home-card__body { padding: 12px 10px; }
  body.srrm-public-surface .srrm-home-card h3 { font-size: 14px; }
  body.srrm-public-surface .srrm-home-card__price { font-size: 16px; }
  body.srrm-public-surface .srrm-home-card__details { font-size: 12px; }
  body.srrm-public-surface .srrm-home-directory__grid { grid-template-columns: 1fr; }
}
@media(max-width: 359px) {
  body.srrm-public-surface .srrm-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.srrm-public-surface .srrm-home-ad-grid { grid-template-columns: 1fr; }
}

/* G4 (offline): source-owner integrated, no alternative search form or second
   country/category/AJAX engine. Progressive enhancement of legacy .search_form.
   Patterns from approved SCRA searchable-select, filter-sheet and accordion. */
body.srrm-public-surface .srrm-search-ui {
  max-width: 1180px;
  margin: 16px auto;
  width: 100%;
  color: var(--srrm-ink, #183044);
}
body.srrm-public-surface .srrm-search-ui__panel {
  background: #fff;
  border: 1px solid var(--srrm-border, #d9e5e9);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(18, 51, 61, .07);
  overflow: visible;
}
body.srrm-public-surface .srrm-search-ui__heading {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--srrm-border, #d9e5e9);
}
body.srrm-public-surface .srrm-search-ui__heading h2 { font-size: 22px; margin: 0; line-height: 1.5; font-weight: 700; }
body.srrm-public-surface .srrm-search-ui__heading p { width: 100%; margin: 4px 0 0; font-size: 14px; color: #536a75; }
body.srrm-public-surface .srrm-search-ui__form { display: block; width: 100%; padding: 0; }
body.srrm-public-surface .srrm-search-ui__facets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
}
body.srrm-public-surface .srrm-search-ui__facet {
  position: relative;
  min-width: 0;
  align-self: start;
  border: 1px solid #dde6e6;
  border-radius: 12px;
  background: #fbfdfd;
}
body.srrm-public-surface .srrm-search-ui__facet[hidden] { display: none !important; }
body.srrm-public-surface .srrm-search-ui__facet summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  min-height: 46px;
  padding: 12px 14px;
  line-height: 1.35;
  list-style-position: inside;
}
body.srrm-public-surface .srrm-search-ui__facet[open] > summary { color: var(--srrm-brand, #126b76); }
body.srrm-public-surface .srrm-search-ui__facet-body { padding: 0 12px 14px; }
body.srrm-public-surface .srrm-search-ui__native { display: none !important; }
body.srrm-public-surface .srrm-search-ui__combobox { position: relative; width: 100%; }
body.srrm-public-surface .srrm-search-ui__search,
body.srrm-public-surface .srrm-search-ui__price-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #cedcdd;
  border-radius: 10px;
  background: #fff;
  color: #173444;
  font-size: 16px;
  outline-offset: 2px;
  box-sizing: border-box;
}
body.srrm-public-surface .srrm-search-ui__options {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  z-index: 32;
  max-height: min(38vh, 320px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c7dfe0;
  box-shadow: 0 14px 28px rgba(18, 52, 65, .16);
  border-radius: 12px;
  padding: 6px;
}
body.srrm-public-surface .srrm-search-ui__options[hidden] { display: none !important; }
body.srrm-public-surface .srrm-search-ui__option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #193647;
  padding: 9px 12px;
  font-size: 15px;
  text-align: start;
  direction: inherit;
}
body.srrm-public-surface .srrm-search-ui__option[hidden] { display: none !important; }
body.srrm-public-surface .srrm-search-ui__option:hover,
body.srrm-public-surface .srrm-search-ui__option.is-active,
body.srrm-public-surface .srrm-search-ui__option[aria-selected="true"] {
  background: var(--srrm-muted-surface, #edf8f6);
  color: var(--srrm-brand, #126b76);
}
body.srrm-public-surface .srrm-search-ui__no-options { margin: 8px; font-size: 14px; }
body.srrm-public-surface .srrm-search-ui__no-options[hidden] { display: none !important; }
body.srrm-public-surface .srrm-search-ui__price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.srrm-public-surface .srrm-search-ui__price-field { display: block; font-size: 14px; font-weight: 600; }
body.srrm-public-surface .srrm-search-ui__price-field span { display: block; margin-bottom: 5px; }
body.srrm-public-surface .srrm-search-ui__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--srrm-border, #d9e5e9);
}
body.srrm-public-surface .srrm-search-ui__actions .form-inline { display: flex; flex-wrap: wrap; gap: 8px; }
body.srrm-public-surface .srrm-search-ui__actions .btn,
body.srrm-public-surface .srrm-search-ui__clear { min-height: 46px; border-radius: 10px; margin: 0; }
body.srrm-public-surface .srrm-search-ui__clear { background: transparent; border: 1px solid #c2d2d7; padding: 8px 16px; font-weight: 650; }
body.srrm-public-surface .srrm-search-ui__open,
body.srrm-public-surface .srrm-search-ui__close { display: none; }
@media (max-width: 1023px) {
  body.srrm-public-surface .srrm-search-ui__facets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.srrm-public-surface .srrm-search-ui__open {
    display: block;
    width: calc(100% - 24px);
    min-height: 52px;
    margin: 0 12px 10px;
    border: 1px solid var(--srrm-brand, #126b76);
    color: var(--srrm-brand, #126b76);
    background: #fff;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 700;
  }
  body.srrm-public-surface.srrm-search-enhanced .srrm-search-ui__panel {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: none;
    border-radius: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
  }
  body.srrm-public-surface.srrm-search-enhanced .srrm-search-ui.is-open .srrm-search-ui__panel {
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  body.srrm-search-sheet-open { overflow: hidden !important; }
  body.srrm-public-surface .srrm-search-ui__heading {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    padding: 12px 16px;
  }
  body.srrm-public-surface .srrm-search-ui__heading h2 { font-size: 20px; padding-inline-end: 62px; }
  body.srrm-public-surface .srrm-search-ui__heading p { font-size: 13px; }
  body.srrm-public-surface .srrm-search-ui__close {
    display: block;
    position: absolute;
    inset-inline-end: 14px;
    top: 10px;
    min-height: 44px;
    border-radius: 9px;
    padding: 8px 10px;
    border: 1px solid #cbdadd;
    background: #fff;
  }
  body.srrm-public-surface .srrm-search-ui__facets { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 18px; }
  body.srrm-public-surface .srrm-search-ui__facet { flex: 0 0 auto; width: 100%; }
  body.srrm-public-surface .srrm-search-ui__options {
    position: static;
    max-height: none;
    overflow: visible;
    margin-top: 6px;
    box-shadow: none;
  }
  body.srrm-public-surface .srrm-search-ui__actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #fff;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body.srrm-public-surface .srrm-search-ui__actions .form-inline { flex: 1 1 auto; }
  body.srrm-public-surface .srrm-search-ui__actions .form-inline span,
  body.srrm-public-surface .srrm-search-ui__actions .form-inline .btn { width: 100%; }
}

/* G1: historical seller cards use the shared Home card owner, but legacy
 * seller pages do not set the Home-specific body class. Keep this isolated. */
.srrm-seller-archive-list { margin-top: 12px; margin-bottom: 18px; }
.srrm-seller-archive-list > [class*="col-"] { margin-bottom: 16px; }
.srrm-seller-archive-list .srrm-home-card {
  overflow: hidden; border: 1px solid #dfe9ed; border-radius: 14px;
  background: #fff; box-shadow: 0 5px 18px rgba(29,54,65,.07);
}
.srrm-seller-archive-list .srrm-home-card__media { display: block; height: 174px; overflow: hidden; background: #f1f5f7; }
.srrm-seller-archive-list .srrm-home-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.srrm-seller-archive-list .srrm-home-card__fallback { display: grid; place-items: center; height: 100%; }
.srrm-seller-archive-list .srrm-home-card__body { padding: 13px 15px; }
.srrm-seller-archive-list .srrm-home-card__body h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.srrm-seller-archive-list .srrm-home-card__price { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.srrm-seller-archive-list .srrm-home-card__details { font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; }

/* Macro-001 G1: keyboard/touch public detail reaction controls. */
body.srrm-public-surface .srrm-rating-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; background: transparent;
  border: 0; border-radius: 8px; margin-inline: 2px; padding: 6px;
}
body.srrm-public-surface .srrm-rating-btn:focus-visible {
  outline: 3px solid var(--srrm-focus); outline-offset: 2px;
}

/* G4 seller mobile parity: five accessible tabs only in authenticated Web mode.
 * Guest navigation remains unchanged at four tabs; verified App has its own shell. */
@media (max-width: 767px) {
  .srrm-mobile-nav--five {grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;}
  .srrm-mobile-nav--five .srrm-mobile-nav__link {font-size:11px;min-width:0;padding-inline:2px;}
  .srrm-mobile-nav__link:focus-visible {outline:3px solid var(--srrm-brand);outline-offset:2px;}
}
@media (max-width: 350px) {
  .srrm-mobile-nav--five .srrm-mobile-nav__link {font-size:10px;letter-spacing:-.1px;}
}

/* AR/EN price validity hint within the existing mobile filter panel. */
.srrm-public-surface .srrm-search-ui__price-warning{font-size:14px;line-height:1.5;color:#a12323;margin:5px 0;grid-column:1/-1}
.srrm-public-surface .srrm-search-ui__price-warning[hidden]{display:none}
.srrm-public-surface .srrm-search-ui__price input[aria-invalid="true"]{border-color:#a12323;outline:2px solid #a12323;outline-offset:1px}
