/*
 * Saudizle Marketplace v1.0 - visual system and responsive OSClass integration.
 * Based on the owner's original November 2026 homepage proportions and palette.
 * Loaded AFTER Sigma's base, responsive and RTL styles. Does not modify Osclass core.
 */
:root {
  --sz-green: #005027;
  --sz-green-hover: #006639;
  --sz-deep: #00381B;
  --sz-deepest: #002714;
  --sz-gold: #C5A059;
  --sz-gold-hover: #D8B673;
  --sz-bg: #F7F9F7;
  --sz-card: #FFFFFF;
  --sz-ink: #0F172A;
  --sz-muted: #64748B;
  --sz-border: #DFE8E2;
  --sz-radius: 16px;
  --sz-shadow: 0 8px 28px rgba(0, 45, 24, .07);
  --sz-shadow-up: 0 16px 38px rgba(0, 45, 24, .12);
  --sz-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; background: var(--sz-bg); color: var(--sz-ink); font: 400 15px/1.6 var(--sz-font); overflow-x: clip; font-family: var(--sz-font); }
html, body, input, select, textarea, button { font-family: var(--sz-font); }
body input[type=text], body input[type=url], body input[type=password], body input[type=email], body input[type=date], body input[type=time], body input[type=week], body input[type=month], body input[type=color], body input[type=datetime-local], body input[type=tel], body input[type=phone], body input[type=number], body input[type=search], body select, body textarea, body button { font-family: var(--sz-font); }
img { max-width: 100%; }
.wrapper { width: min(1100px, calc(100% - 32px)); max-width: 1100px; margin-inline: auto; }
.wrapper * { min-width: 0; }
a { color: var(--sz-green); text-decoration: none; }
a:hover { color: var(--sz-green-hover); }
:focus-visible { outline: 3px solid var(--sz-gold); outline-offset: 3px; }
body h1, body h2, body h3, body h4, body h5, body h6, body .h1 { font-family: var(--sz-font); letter-spacing: -.025em; color: var(--sz-deep); }
body h1 { font-weight: 800; }
body h2 { font-weight: 800; }
input, select, textarea { color: var(--sz-ink); }
input::placeholder, textarea::placeholder { color: #87988E; opacity: 1; }
/* Banner and navigation */
.sz-announcement { display: flex; gap: 10px; align-items: center; justify-content: center; background: var(--sz-gold); color: #173321; font-size: 12px; font-weight: 800; text-align: center; letter-spacing: .025em; padding: 6px 12px; min-height: 30px; }
.sz-announcement-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #346747; opacity: .8; flex-shrink: 0; }
header.sz-site-header { z-index: 45; position: sticky; top: 0; display: block; float: left; width: 100%; clear: both; height: auto; padding: 9px 15px; background: var(--sz-deep) !important; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .12) !important; box-shadow: 0 4px 16px rgba(0, 30, 14, .10); }
.sz-site-header .sz-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }
.sz-site-header #logo { flex: 0 0 auto; float: none; margin: 0; line-height: normal; }
.sz-site-header #logo a.sz-brand { display: inline-flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; }
.sz-site-header .sz-brand picture, .sz-site-header .sz-brand img { display: block; width: 58px; height: 58px; flex: 0 0 58px; margin: 0; border-radius: 9px; object-fit: contain; }
.sz-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.sz-brand-copy strong { font-size: 22px; letter-spacing: -.045em; font-weight: 850; line-height: 1.2; color: #fff; }
.sz-brand-copy small { font-size: 10px; letter-spacing: .02em; color: #C7DCD1; line-height: 1.4; white-space: nowrap; }
.sz-site-header .nav { display: flex; float: none; height: auto; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.sz-site-header .nav a { float: none; margin: 0; padding: 9px 12px; height: auto; min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; line-height: 1.2; border-radius: 9px; font-weight: 750; border: 1px solid transparent; color: #F4FCF7 !important; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.sz-site-header .nav a:hover { color: #F5D483 !important; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); }
/* Original Saudizle gold CTA styling: Register & Post Ad are always genuine buttons. */
.sz-site-header .nav a.sz-nav-register,
.sz-site-header .nav a.publish.sz-post-btn,
.sz-site-header a.sz-mobile-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #C5A059 !important;
  border: 1px solid #C5A059 !important;
  border-radius: 6px !important;
  color: #173321 !important;
  font-family: var(--sz-font);
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.sz-site-header .nav a.sz-nav-register:hover,
.sz-site-header .nav a.publish.sz-post-btn:hover,
.sz-site-header a.sz-mobile-post:hover {
  background: #D8B673 !important;
  border-color: #D8B673 !important;
  color: #173321 !important;
  transform: translateY(-1px);
}
.sz-site-header .nav a.sz-nav-login,
.sz-site-header .nav a.sz-nav-account {
  border: 1px solid rgba(197,160,89,.70) !important;
  border-radius: 6px !important;
  color: #FFE6B1 !important;
}
.sz-site-header .nav a.sz-nav-login:hover,
.sz-site-header .nav a.sz-nav-account:hover {
  border-color: #C5A059 !important;
  background: rgba(197,160,89,.12) !important;
  color: #FFEDC2 !important;
}
.sz-site-header a.sz-mobile-post { display: none; }

.sz-site-header .nav a.publish.sz-post-btn { background: var(--sz-gold) !important; border-color: var(--sz-gold) !important; color: #173321 !important; border-radius: 6px !important; margin-left: 7px; padding: 10px 16px; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.sz-site-header .nav a.publish.sz-post-btn:hover { transform: translateY(-1px); background: var(--sz-gold-hover) !important; border-color: var(--sz-gold-hover) !important; box-shadow: 0 6px 14px rgba(0,0,0,.16); }
.sz-site-header .nav .sz-post-btn > span { font-size: 20px; line-height: 11px; font-weight: 400; }
.sz-site-header .menu-icon { display: none !important; cursor: pointer; }
/* Preserve the entire banner artwork and reduce perceived vertical size by integrating search into it. */
.sz-hero { position: relative; clear: both; float: left; width: 100%; padding: 0; background: var(--sz-deep); border-bottom: 3px solid var(--sz-gold); overflow: hidden; }
.sz-hero::before, .sz-hero::after { content: ''; position: absolute; top: 0; bottom: 0; width: max(0px, calc((100vw - 1100px) / 2)); opacity: .36; pointer-events: none; background: radial-gradient(circle at center, #087A43, transparent 68%); }
.sz-hero::before { left: 0; }
.sz-hero::after { right: 0; }
.sz-banner-frame { position: relative; width: min(1100px, 100%); margin: 0 auto; background: var(--sz-deep); aspect-ratio: 16 / 5; overflow: hidden; }
/* Intentional feathering, directly over the artwork. The 0/100% edge color
   equals the full-width hero backdrop, avoiding rectangular seams. */
.sz-banner-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background-image:
    linear-gradient(90deg,
      #00381B 0%, rgba(0,48,23,.98) 2%, rgba(0,48,23,.84) 4.5%,
      rgba(0,56,27,.62) 8%, rgba(0,56,27,.26) 12%,
      rgba(0,56,27,0) 17%, rgba(0,56,27,0) 83%,
      rgba(0,56,27,.26) 88%, rgba(0,56,27,.62) 92%,
      rgba(0,48,23,.84) 95.5%, rgba(0,48,23,.98) 98%, #00381B 100%),
    linear-gradient(180deg,
      rgba(0,56,27,.12) 0%, rgba(0,56,27,0) 14%,
      rgba(0,56,27,0) 65%, rgba(0,56,27,.10) 77%,
      rgba(0,56,27,.30) 88%, rgba(0,56,27,.55) 95%,
      #00381B 100%);
}

.sz-banner-frame picture, .sz-banner-frame img { display: block; width: 100%; height: 100%; }
.sz-banner-frame img { object-fit: cover; object-position: center; }
.sz-hero-search { position: relative; z-index: 3; clear: both; margin-top: -30px; }
.sz-search-form { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 24px; align-items: end; width: 100%; padding: 18px 22px 20px; background: #fff; border: 1px solid #DCE7E0; border-top: 3px solid var(--sz-gold); border-radius: 15px; box-shadow: 0 12px 35px rgba(0,45,24,.15); }
.sz-eyebrow { display: inline-block; width: auto; font-size: 10px; letter-spacing: .135em; text-transform: uppercase; font-weight: 900; color: var(--sz-green); line-height: 1.45; }
.sz-search-intro h1 { color: var(--sz-deep); margin: 5px 0 2px; font-size: clamp(19px, 2.2vw, 25px); line-height: 1.2; }
.sz-search-intro p { display: block; color: var(--sz-muted); font-size: 12px; width: auto; line-height: 1.45; margin: 0; }
.sz-search-inputs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(165px, .75fr) auto; gap: 10px; align-items: end; }
.sz-search-field { display: flex; flex-direction: column; width: 100%; gap: 5px; margin: 0; padding: 0; font-size: 12px; font-weight: 800; color: #345342; line-height: 1.4; }
.sz-search-form .sz-search-field input[type='search'], .sz-search-form .sz-search-field select { display: block; width: 100%; min-width: 0; height: 45px; border: 1px solid #D4E0D7; border-radius: 8px; background: #FBFCFB; padding: 0 12px; margin: 0; color: var(--sz-ink); font-size: 13px; line-height: 1; appearance: auto; }
.sz-search-form .sz-search-field input:focus, .sz-search-form .sz-search-field select:focus { border-color: #5A9774; outline: 3px solid rgba(0,80,39,.10); }
.sz-search-form .sz-search-button { width: auto; min-height: 45px; height: 45px; margin: 0; background: var(--sz-gold); border: 1px solid var(--sz-gold); border-radius: 8px; padding: 0 17px; color: #173321; font-family: inherit; font-size: 13px; font-weight: 850; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.sz-search-form .sz-search-button:hover { background: var(--sz-gold-hover); transform: translateY(-1px); }
.sz-search-button span { font-size: 22px; line-height: 10px; vertical-align: middle; margin-right: 3px; }
/* Repeated compact inner-page brand strip (without enlarged/cropped image text). */
.sz-inner-banner { position: relative; clear: both; float: left; width: 100%; padding: 22px 15px; background: radial-gradient(circle at 92% 22%, rgba(3, 174, 111, .21), transparent 32%), linear-gradient(115deg, #00381B, #005027 65%, #00381B); border-bottom: 3px solid var(--sz-gold); overflow: hidden; }
.sz-inner-banner::after { content: 'S'; font-size: 120px; font-weight: 900; color: rgba(255,255,255,.035); position: absolute; top: -71px; right: max(16px, calc((100vw - 1100px) / 2)); line-height: 1.35; pointer-events: none; }
.sz-inner-banner-content { display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; color: #E5F3EA; font-size: 13px; }
.sz-inner-kicker { font-size: 10px; font-weight: 900; letter-spacing: .13em; color: #FADEAA; }
.sz-kicker-divider { color: #D8B673; margin: 0 5px; }
/* Shared site content */
section.sz-content-section { background: var(--sz-bg); padding: 24px 15px 58px; min-height: 460px; }
section.sz-content-section > .wrapper { max-width: 1100px; }
section.sz-content-section #content { display: flow-root; min-height: 250px; }
section.sz-content-section #content #main { max-width: 100%; }
body.home section.sz-content-section { padding-top: 30px; }
body.home #main { float: none; width: 100% !important; }
body.home #sidebar { display: none; }
.wrapper-flash { width: min(1100px, calc(100% - 32px)); margin: 0 auto 13px; }
.wrapper-flash:empty { display: none; }
div.breadcrumb { display: block; margin: 5px 0 12px; padding: 0; color: var(--sz-muted); font-size: 12px; line-height: 1.5; }
div.breadcrumb a { color: var(--sz-green); }
.sz-home-sections { display: flex; flex-direction: column; gap: 0; width: 100%; }
/* Three journey blocks: same words/design intention as original index.html. */
.sz-journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; width: 100%; margin: 0 0 34px; }
.sz-journey-card { display: flex; flex-direction: row; align-items: flex-start; gap: 13px; min-width: 0; min-height: 176px; padding: 19px; background: #fff; border: 1px solid var(--sz-border); border-radius: 15px; color: var(--sz-ink) !important; box-shadow: 0 4px 15px rgba(0, 45, 24, .035); text-decoration: none !important; transition: transform .18s, border-color .18s, box-shadow .18s; }
.sz-journey-card:hover { transform: translateY(-4px); border-color: #A4C9B4; box-shadow: var(--sz-shadow-up); }
.sz-journey-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; font-size: 23px; border-radius: 12px; background: #E9F4EC; }
.sz-journey-content { display: flex; flex-direction: column; flex: 1; align-items: flex-start; min-width: 0; }
.sz-journey-content strong { color: var(--sz-deep); font-size: 17px; font-weight: 850; line-height: 1.35; margin: 3px 0 7px; letter-spacing: -.035em; }
.sz-journey-content small { font-size: 12px; line-height: 1.6; color: var(--sz-muted); }
.sz-journey-content em { margin-top: auto; padding-top: 15px; font-size: 12px; font-weight: 850; color: var(--sz-green); font-style: normal; }
.sz-journey-card.sz-featured { background: linear-gradient(125deg, #006337, #00381B); border-color: #2E7C54; }
.sz-featured .sz-journey-icon { background: rgba(255,255,255,.14); }
.sz-featured .sz-journey-content strong { color: #fff; }
.sz-featured .sz-journey-content small { color: #D8ECE0; }
.sz-featured .sz-journey-content em { color: #F6D786; }
.sz-section-titlebar { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 6px 0 17px; }
.sz-section-titlebar h2 { display: block; width: auto; margin: 3px 0 4px; color: var(--sz-deep); font-size: clamp(22px, 3.2vw, 27px); font-weight: 850; line-height: 1.25; }
.sz-section-titlebar p { display: block; width: auto; margin: 0; font-size: 13px; color: var(--sz-muted); }
.sz-view-all { flex: 0 0 auto; white-space: nowrap; color: var(--sz-green); font-size: 13px; font-weight: 850; border-bottom: 1px solid rgba(0, 80, 39, .2); padding-bottom: 3px; }
.sz-view-all:hover { border-color: var(--sz-green); }
.sz-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 0 0 40px; }
.sz-category-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 127px; padding: 14px 9px; text-align: center; color: var(--sz-deep) !important; background: #fff; border: 1px solid var(--sz-border); border-radius: 14px; box-shadow: 0 3px 12px rgba(15,23,42,.035); text-decoration: none !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
.sz-category-card:hover { transform: translateY(-4px); border-color: #8BBBA0; box-shadow: var(--sz-shadow); }
.sz-category-icon { display: grid; place-items: center; width: 53px; height: 53px; font-size: 29px; line-height: 1; border-radius: 15px; background: #F0F7F2; transition: transform .18s; }
.sz-category-card:hover .sz-category-icon { transform: scale(1.07); }
.sz-category-card strong { display: block; font-size: 12px; font-weight: 800; line-height: 1.35; max-width: 100%; overflow-wrap: anywhere; }
.sz-category-arrow { position: absolute; top: 9px; right: 11px; color: #9AB0A2; font-size: 13px; }
.sz-empty-categories { grid-column: 1 / -1; background: #fff; border: 1px dashed #B4D0BD; border-radius: 14px; padding: 26px; display: flex; align-items: center; gap: 15px; color: var(--sz-muted); }
.sz-empty-categories > span { font-size: 35px; color: var(--sz-gold); }
.sz-empty-categories p { display: block; width: auto; margin: 0; font-size: 13px; }
/* Dynamic listing cards, search results and image crop handling. */
.home-latest { float: none; width: 100%; margin: 0 0 37px; clear: both; }
.home-latest .listing-card-list.listing-grid, body.search .listing-card-list.listing-grid, .similar_ads .listing-card-list.listing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 0; padding: 0; }
body.search .listing-card-list.listing-grid, .similar_ads .listing-card-list.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-latest .listing-grid .listing-card, body.search .listing-grid .listing-card, .similar_ads .listing-grid .listing-card, .listing-card-list.listing-grid .listing-card { display: block; float: none; clear: none; width: auto !important; max-width: 100%; min-width: 0; margin: 0 !important; padding: 0; border-radius: 14px; border: 1px solid var(--sz-border); background: #fff; box-shadow: 0 3px 12px rgba(0,45,24,.04); overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s; }
.listing-card-list.listing-grid .listing-card:hover { transform: translateY(-3px); border-color: #A4C9B4; box-shadow: var(--sz-shadow-up); }
.listing-grid .listing-card .listing-thumb { float: none; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; overflow: hidden; background: #ECF2EE; border-bottom: 1px solid var(--sz-border); }
.listing-grid .listing-card .listing-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; border-radius: 0; max-width: none; transform: none; transition: transform .25s; }
.listing-grid .listing-card .listing-thumb:hover img { transform: scale(1.025); }
.listing-card img[src*="saudizle-no-photo"] { object-fit: contain !important; padding: 24px; background: #ECF2EE; }
.listing-grid .listing-card .listing-detail { padding: 13px 14px 15px; min-height: 112px; }
.listing-grid .listing-card .listing-basicinfo a.title { display: -webkit-box; width: 100%; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: ellipsis; color: var(--sz-ink); font-size: 14px; line-height: 1.4; min-height: 40px; margin: 0 0 8px; font-weight: 800; }
.listing-grid .listing-card .listing-basicinfo a.title:hover { color: var(--sz-green); }
.listing-grid .listing-card .currency-value { color: var(--sz-green); font-weight: 900; font-size: 16px; line-height: 1.4; margin: 0 0 5px; }
.listing-grid .listing-card .listing-details { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--sz-muted); font-size: 11px; line-height: 1.4; }
.listing-grid .listing-card .listing-details .category, .listing-grid .listing-card .listing-details .location { display: inline; color: var(--sz-muted); font-size: 11px; }
.listing-grid .listing-card .listing-details .date { display: none; }
.listing-card .fi_make_favorite { z-index: 3; }
.listing-list .listing-card { display: flex; align-items: stretch; gap: 17px; width: 100%; padding: 13px; margin: 0 0 12px; background: #fff; border: 1px solid var(--sz-border); border-radius: 13px; box-shadow: 0 2px 8px rgba(0, 45, 24, .035); }
.listing-list .listing-card .listing-thumb { float: none; flex: 0 0 165px; width: 165px; height: 125px; border-radius: 9px; overflow: hidden; background: #ECF2EE; }
.listing-list .listing-card .listing-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-list .listing-card .listing-detail { float: none; margin: 0; min-width: 0; flex: 1; }
.listing-list .listing-card .listing-basicinfo a.title { display: block; margin: 0 0 6px; color: var(--sz-ink); font-weight: 850; font-size: 16px; line-height: 1.4; }
.listing-list .listing-card .listing-attributes .currency-value { color: var(--sz-green); font-size: 17px; font-weight: 900; }
.listing-list .listing-card .listing-details { color: var(--sz-muted); font-size: 12px; }
.listing-list .listing-card .desc { color: var(--sz-muted); font-size: 12px; line-height: 1.5; }
li.listing-card.premium { background: #FFFDF4; border-color: #E6D5A7 !important; }
.sz-empty-listings { width: 100%; min-height: 195px; padding: 27px 20px; margin: 0 0 38px; background: #fff; border: 1px dashed #B7D6C2; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sz-empty-listings > span { color: var(--sz-gold); font-size: 32px; }
.sz-empty-listings h3 { width: auto; font-size: 18px; line-height: 1.3; margin: 6px 0 2px; }
.sz-empty-listings p { width: auto; color: var(--sz-muted); font-size: 13px; margin: 0 0 12px; }
.sz-cta-small { display: inline-block; padding: 7px 12px; color: var(--sz-deep); background: #F4E9D2; border-radius: 8px; font-weight: 850; font-size: 12px; }
/* Bottom panels and resources */
.sz-bottom-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; margin: 6px 0 35px; }
.sz-section-titlebar-small { margin: 0 0 15px; }
.sz-section-titlebar-small h2 { font-size: 22px; }
.sz-region-panel { padding: 24px; background: #fff; border: 1px solid var(--sz-border); border-radius: 15px; }
.sz-region-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.sz-region-grid a { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 11px 13px; background: #F7FAF7; border: 1px solid #E4EFE7; border-radius: 9px; color: #29533B; font-size: 12px; font-weight: 800; transition: background .18s; }
.sz-region-grid a:hover { background: #EDF5EF; }
.sz-region-grid a > span:first-child { font-size: 20px; color: var(--sz-green); }
.sz-region-grid a > span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sz-region-grid em { flex: 0 0 auto; margin-left: auto; color: #698276; font-weight: 650; font-style: normal; }
.sz-muted-note { display: block; width: auto; color: var(--sz-muted); font-size: 13px; grid-column: 1 / -1; }
.sz-safety-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 28px; color: #E1EFE6; background: radial-gradient(circle at 90% 0, #1A7D4C 0, transparent 47%), linear-gradient(150deg, #005027, #00381B); border-radius: 15px; border: 1px solid #166842; }
.sz-safety-symbol { width: 43px; height: 43px; display: grid; place-items: center; background: rgba(255,255,255,.11); color: #FFE4A5; font-size: 23px; font-weight: 850; border-radius: 13px; margin-bottom: 16px; }
.sz-safety-panel .sz-eyebrow { color: #F1D08D; }
.sz-safety-panel h2 { color: #fff; font-size: 25px; line-height: 1.22; margin: 8px 0 9px; }
.sz-safety-panel p { display: block; width: auto; margin: 0 0 20px; color: #DCEDE3; font-size: 13px; line-height: 1.7; }
.sz-safety-panel a { color: #F7D78B; font-size: 12px; font-weight: 850; }
.sz-resources { width: 100%; padding: 0; clear: both; }
.sz-resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.sz-resource-card { display: flex; align-items: flex-start; flex-direction: column; position: relative; gap: 4px; min-height: 155px; padding: 20px; background: #fff; border: 1px solid var(--sz-border); border-radius: 13px; color: var(--sz-deep); box-shadow: 0 2px 12px rgba(0,45,24,.03); text-decoration: none !important; }
.sz-resource-card > span { font-size: 24px; line-height: 1.3; margin-bottom: 5px; }
.sz-resource-card > strong { font-size: 13px; font-weight: 850; }
.sz-resource-card p { display: block; width: auto; margin: 0; color: var(--sz-muted); font-size: 12px; line-height: 1.55; }
.sz-resource-link:hover { border-color: #A4C9B4; box-shadow: var(--sz-shadow); color: var(--sz-deep); }
.sz-resource-link > em { position: absolute; top: 16px; right: 18px; color: var(--sz-green); font-size: 16px; font-style: normal; }
.sz-home-ad { margin: 26px auto; }
/* Shared footer with no unpredictable inherited Sigma floats. */
footer.sz-footer { position: relative; display: block; clear: both; float: left; width: 100%; padding: 38px 15px 20px; margin: 0; background: linear-gradient(180deg, #005027, #00381B) !important; border-top: 3px solid var(--sz-gold); color: #E0EFE6; }
.sz-footer .sz-footer-inner { width: min(1100px, calc(100% - 0px)); }
.sz-footer-upper { display: grid; grid-template-columns: 1.45fr .75fr 1fr 1.1fr; gap: 30px; padding-bottom: 32px; }
.sz-footer-brand { display: flex; align-items: center; gap: 13px; color: white !important; text-decoration: none !important; }
.sz-footer-brand img { width: 62px; height: 62px; border-radius: 8px; object-fit: contain; }
.sz-footer-brand > span { display: flex; flex-direction: column; gap: 2px; }
.sz-footer-brand strong { font-size: 20px; color: #fff; line-height: 1.2; font-weight: 850; }
.sz-footer-brand small { font-size: 11px; color: #D6E9DE; }
.sz-footer-about > p, .sz-footer-follow > p { display: block; margin: 13px 0 0; font-size: 12px; line-height: 1.7; color: #C3DACB; width: auto; }
.sz-footer-links, .sz-footer-follow { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; }
.sz-footer-links > strong, .sz-footer-follow > strong { font-size: 13px; font-weight: 850; color: #F6DFA9; margin-bottom: 3px; }
.sz-footer-links a { color: #E7F1EB !important; font-size: 12px; line-height: 1.5; }
.sz-footer-links a:hover { color: #FFE3A8 !important; }
.sz-footer-follow > p { margin: -5px 0 5px; }
.sz-footer-social { display: flex; flex-wrap: wrap; gap: 7px; }
.sz-footer-social a { display: inline-flex; min-height: 33px; align-items: center; padding: 6px 9px; border: 1px solid rgba(255,255,255,.20); border-radius: 8px; color: #F5FCF7 !important; font-size: 11px; font-weight: 800; }
.sz-footer-social a:hover { background: rgba(255,255,255,.10); color: #FFE3A8 !important; }
.sz-footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding-top: 17px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #C3D9CD; }
.sz-footer-meta { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sz-footer-meta a { color: #D6E9DE !important; }
footer.sz-footer .language { display: inline-flex; gap: 8px; float: none; width: auto; clear: none; margin: 0; }
footer.sz-footer .language a { margin: 0; font-size: 11px; color: #DBEDE1; }
/* Inner pages: consistent cards, typography and listing/media geometry. */
body:not(.home) #main { min-width: 0; }
body.search #sidebar, body.user #sidebar { float: left; width: 24%; }
body.search #main, body.user #main { float: right; width: 73%; }
body.item:not(.item-post) #main, body.user-public-profile #main { float: left; width: 69%; }
body.item:not(.item-post) #sidebar, body.user-public-profile #sidebar { float: right; width: 28%; }
body.item.item-post #main { float: none; width: 100%; max-width: 100%; }
body.search .list-header { margin: 0 0 22px; padding: 20px; border: 1px solid var(--sz-border); background: #fff; border-radius: 14px; }
body.search h1 { font-size: 24px; line-height: 1.25; font-weight: 850; color: var(--sz-deep); }
body.search .counter-search { color: var(--sz-muted); font-size: 12px; }
body.search .see_by.btn, body.search .doublebutton .btn { background: #F2F7F3; border-color: #DBE6DE; color: var(--sz-deep); border-radius: 8px; }
body.search .doublebutton .btn.active { background: var(--sz-green); color: #fff; }
body.search .paginate { clear: both; margin: 20px 0 8px; }
body.search #sidebar, body.user #sidebar { padding: 19px; border: 1px solid var(--sz-border); background: #fff; border-radius: 15px; box-shadow: 0 3px 12px rgba(0,45,24,.03); }
body.search #sidebar h2, body.user #sidebar h2 { font-size: 17px; color: var(--sz-deep); line-height: 1.3; }
#sidebar .filters { background: #fff; }
#sidebar input[type='text'], #sidebar input[type='date'], #sidebar input[type='number'], #sidebar select { background: #FAFCFA; border: 1px solid #D6E3DA; border-radius: 8px; }
#sidebar .btn, #sidebar button { border-radius: 9px; }
#sidebar ul.category a { color: var(--sz-ink); }
#sidebar ul.category a:hover { color: var(--sz-green); }
body.item #item-content, body.user-public-profile #main { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--sz-border); border-radius: 15px; box-shadow: 0 3px 15px rgba(0,45,24,.035); }
body.item #item-content h1 { display: block; color: var(--sz-deep); font-size: clamp(22px, 2.8vw, 29px); font-weight: 850; line-height: 1.22; margin: 0 0 20px; }
body.item #item-content .item-header { color: var(--sz-muted); border-color: var(--sz-border); font-size: 12px; line-height: 1.6; }
body.item .item-photos { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 12px; width: 100%; float: none; margin: 10px 0 28px; align-items: start; }
body.item .item-photos .main-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: auto; aspect-ratio: 4 / 3; float: none; border: 1px solid var(--sz-border); border-radius: 12px; background: #F3F7F4; overflow: hidden; }
body.item .item-photos .main-photo img { width: 100%; height: 100%; max-height: 470px; object-fit: contain; }
body.item .item-photos .thumbs { display: flex; flex-direction: column; gap: 9px; width: 78px; max-height: 470px; overflow: auto; float: none; }
body.item .item-photos .thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--sz-border); border-radius: 8px; margin: 0; }
body.item #description .desc { line-height: 1.8; color: #33483C; font-size: 14px; }
body.item #sidebar .price { display: block; padding: 18px; background: #EDF7F0; border: 1px solid #CFE7D7; border-radius: 11px; font-weight: 900; font-size: 26px; color: var(--sz-green); margin-bottom: 15px; }
body.item #sidebar .widget-box { padding: 20px; background: #fff; border: 1px solid var(--sz-border); border-radius: 14px; margin: 0 0 15px; }
body.item #sidebar .widget-box h2 { font-weight: 850; color: var(--sz-deep); }
body.item #sidebar .widget-box .btn { background: var(--sz-gold); border: 1px solid var(--sz-gold); color: #173321; border-radius: 8px; }
body.item #comments, body.item .similar_ads { margin-top: 28px; }
body.item #comments h2, body.item .similar_ads h2 { color: var(--sz-deep); font-size: 21px; }
.sz-static-page { background: #fff; border: 1px solid var(--sz-border); border-radius: 16px; max-width: 900px; margin-inline: auto; padding: clamp(20px, 4.3vw, 42px); box-shadow: var(--sz-shadow); }
.sz-static-page h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 9px 0 24px; }
.sz-prose { line-height: 1.8; font-size: 14px; color: #33483C; }
.sz-prose p, .sz-prose ul, .sz-prose ol { margin: 0 0 14px; }
.sz-prose h2 { font-size: 21px; line-height: 1.4; margin: 26px 0 12px; }
.sz-prose h3 { font-size: 17px; line-height: 1.4; margin: 20px 0 10px; }
.sz-prose ul, .sz-prose ol { padding-inline-start: 24px; list-style: disc; }
.sz-prose li { margin-bottom: 7px; }
.sz-prose a { text-decoration: underline; text-underline-offset: 3px; }
/* OSClass native publish/login/contact forms: restore robust sizing and touch targets. */
.form-container-box { display: block; float: none; max-width: 560px; width: 100%; margin: 24px auto 40px; padding: clamp(20px, 4vw, 32px); border-radius: 16px; background: #fff; border: 1px solid var(--sz-border); box-shadow: var(--sz-shadow); text-align: left; }
.form-container-box .header h1 { font-size: 27px; line-height: 1.3; font-weight: 850; color: var(--sz-deep); margin: 0 0 20px; }
.form-container input[type='text'], .form-container input[type='password'], .form-container input[type='email'], .form-container input[type='number'], .form-container select, .form-container textarea, #sidebar input[type='text'], #sidebar select { border: 1px solid #D2E0D7; border-radius: 9px; background: #FBFCFB; font-size: 14px; min-height: 44px; }
.form-container input[type='text']:focus, .form-container input[type='password']:focus, .form-container input[type='email']:focus, .form-container input[type='number']:focus, .form-container textarea:focus, .form-container select:focus { border-color: #6B9F80; outline: 3px solid rgba(0,80,39,.10); }
.form-container textarea { min-height: 128px; }
.form-container .btn-primary, .form-container button[type='submit'], .form-container input[type='submit'] { background: var(--sz-gold); color: #173321; border: 1px solid var(--sz-gold); border-radius: 9px; font-weight: 850; min-height: 43px; }
.form-container .btn-primary:hover, .form-container button[type='submit']:hover { background: var(--sz-gold-hover); }
body.login #main, body.register #main, body.contact #main, body.recover #main, body.report #main { width: 100%; float: none; text-align: left; }
body.item-post #main > .form-container { width: 100%; max-width: 1050px; margin: 22px auto 35px; padding: clamp(18px, 4vw, 35px); border: 1px solid var(--sz-border); border-radius: 16px; background: #fff; box-shadow: var(--sz-shadow); }
body.item-post .form-container h1, body.item-post .form-container h2 { color: var(--sz-deep); font-weight: 850; }
body.item-post .form-container h1 { font-size: 28px; }
body.item-post .form-container h2 { font-size: 19px; }
body.item-post .form-container .control-group { margin-bottom: 20px; }
body.item-post .form-container .controls input[type='text'], body.item-post .form-container .controls select, body.item-post .form-container .controls textarea { max-width: 100%; }
body.item-post .form-container .box.location, body.item-post .form-container .box.seller_info { border-top: 1px solid var(--sz-border); padding-top: 20px; margin-top: 25px; }
body.item-post .form-container #item-post .pblbt { margin-top: 17px; }
body.user #main { padding: 20px; background: #fff; border: 1px solid var(--sz-border); border-radius: 15px; }
body.user #main h1 { color: var(--sz-deep); font-weight: 850; }
body.user .form-horizontal label { color: #294835; }
body.user .form-container input[type='text'], body.user .form-container input[type='email'], body.user .form-container select { max-width: 100%; }
/* Shared transitions: reveal only after JS attaches the flag, so content never disappears without JS. */
.sz-can-reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.sz-can-reveal.sz-in-view { opacity: 1; transform: translateY(0); }
/* Progressive responsive system. These override Sigma's older fixed-width values. */
@media (max-width: 1100px) {
  .sz-site-header .nav { gap: 2px; }
  .sz-site-header .nav a { font-size: 12px; padding-inline: 8px; }
  .sz-brand-copy strong { font-size: 20px; }
}
@media (max-width: 960px) {
  .sz-site-header { position: sticky; top: 0; }
  .sz-site-header .sz-topbar { min-height: 57px; }
  .sz-site-header .sz-brand picture, .sz-site-header .sz-brand img { width: 51px; height: 51px; flex-basis: 51px; }
  .sz-site-header .sz-topbar { gap: 10px; }
  .sz-site-header a.sz-mobile-post {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 11px;
    margin-left: auto;
    font-size: 12px;
    line-height: 1.2;
  }
  .sz-site-header .menu-icon { display: flex !important; align-items: center; justify-content: center; position: relative; right: auto; top: auto; flex: 0 0 42px; width: 42px; height: 42px; margin-left: 0; border: 1px solid rgba(255,255,255,.30); border-radius: 9px; padding: 9px; background: rgba(255,255,255,.06); }
  /* Sigma only defines the hamburger bars below 768px. Provide them for tablets too. */
  .sz-site-header .menu-icon > div { display: block; position: relative; width: 24px; height: 18px; }
  .sz-site-header .menu-icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 99px; background: #fff; transition: transform .2s, opacity .2s, top .2s; }
  .sz-site-header .menu-icon span.l1 { top: 0; }
  .sz-site-header .menu-icon span.l2 { top: 8px; margin-top: 0; }
  .sz-site-header .menu-icon span.l3 { top: 16px; bottom: auto; }
  .sz-site-header .menu-icon.opened span.l1 { top: 8px; transform: rotate(45deg); }
  .sz-site-header .menu-icon.opened span.l2 { opacity: 0; }
  .sz-site-header .menu-icon.opened span.l3 { top: 8px; transform: rotate(-45deg); }
  .sz-site-header .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 9px); bottom: auto; width: 100%; height: auto; max-height: min(80vh, 540px); overflow-y: auto; padding: 12px; background: var(--sz-deep); border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--sz-gold); box-shadow: var(--sz-shadow-up); border-radius: 0 0 13px 13px; z-index: 50; }
  .sz-site-header .nav a { float: none; display: flex; width: 100%; justify-content: flex-start; clear: both; height: auto; min-height: 45px; margin: 0 0 3px; padding: 12px 13px; color: #fff !important; text-align: left; border: 0; border-radius: 8px; font-size: 14px; }
  .sz-site-header .nav a.sz-nav-register { justify-content: center; margin: 8px 0 4px; border-radius: 6px !important; }
  .sz-site-header .nav a.sz-nav-login, .sz-site-header .nav a.sz-nav-account { justify-content: center; margin-top: 7px; }
  .sz-site-header .nav a.publish.sz-post-btn { margin: 8px 0 0; justify-content: center; border-radius: 6px !important; }
  .sz-footer-upper { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .sz-search-form { grid-template-columns: 1fr; gap: 13px; }
  .sz-search-intro { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .sz-search-intro h1 { font-size: 21px; margin: 0; }
  .sz-search-intro p { display: none; }
  .sz-journey-card { flex-direction: column; gap: 8px; min-height: 190px; }
  .sz-journey-content strong { margin-top: 0; }
  .sz-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-latest .listing-card-list.listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 961px) {
  .sz-site-header .nav { display: flex !important; }
}
@media (max-width: 767px) {
  /* Cancel Sigma's 60px fixed-header/padding pair: the announcement must not overlap. */
  body { padding-top: 0; }
  body.osc-has-admin-header header.sz-site-header { margin-top: 0; }
  .sz-announcement { font-size: 10px; min-height: 26px; padding: 5px 8px; }
  header.sz-site-header { height: auto; padding: 8px 15px; position: sticky; top: 0; left: auto; }
  .sz-site-header .nav { top: calc(100% + 8px); }
  body.home #main, body.search #main, body.user #main, body.item #main, body.user-public-profile #main, body.item.item-post #main { float: none; width: 100% !important; max-width: 100%; }
  body.search #sidebar, body.user #sidebar, body.item #sidebar, body.user-public-profile #sidebar { float: none; width: 100%; margin: 0 0 18px; }
  body.search #sidebar { display: none; }
  body.search #sidebar[style*='display: block'] { display: block; }
  .sz-journey-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; }
  .sz-journey-card { padding: 14px; }
  .sz-journey-icon { width: 40px; height: 40px; font-size: 20px; flex-basis: 40px; }
  .sz-journey-content strong { font-size: 14px; }
  .sz-journey-content small { font-size: 11px; }
  .sz-journey-content em { font-size: 11px; }
  .sz-bottom-layout { grid-template-columns: 1fr; }
  .home-latest .listing-card-list.listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.search .listing-card-list.listing-grid, .similar_ads .listing-card-list.listing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.item #item-content { padding: 18px; }
  .form-container-box { padding: 22px; }
  body.item-post .form-container { padding: 18px; }
  .sz-resource-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .wrapper { width: min(1100px, calc(100% - 22px)); }
  .sz-site-header .sz-brand picture, .sz-site-header .sz-brand img { width: 45px; height: 45px; flex-basis: 45px; }
  .sz-brand-copy strong { font-size: 18px; }
  .sz-brand-copy small { font-size: 9px; }
  .sz-hero { padding: 0; }
  .sz-banner-frame { width: min(1100px, 100%); }
  .sz-hero-search { margin-top: -16px; width: min(1100px, calc(100% - 26px)); }
  .sz-search-form { padding: 16px; border-radius: 13px; }
  .sz-search-intro { display: block; }
  .sz-search-intro .sz-eyebrow { font-size: 9px; }
  .sz-search-intro h1 { margin-top: 4px; font-size: 19px; }
  .sz-search-inputs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sz-search-field:first-child { grid-column: 1 / -1; }
  .sz-search-button { align-self: end; }
  .sz-search-form .sz-search-button { padding: 0 9px; width: 100%; }
  body.home section.sz-content-section { padding-top: 24px; }
  section.sz-content-section { padding-inline: 11px; padding-bottom: 37px; }
  .sz-journey-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 30px; }
  .sz-journey-card { flex-direction: row; min-height: 0; gap: 12px; padding: 15px; }
  .sz-journey-content strong { margin: 2px 0 3px; font-size: 16px; }
  .sz-journey-content small { font-size: 12px; }
  .sz-journey-content em { padding-top: 7px; font-size: 12px; }
  .sz-section-titlebar { align-items: flex-start; }
  .sz-section-titlebar h2 { font-size: 22px; }
  .sz-section-titlebar p { font-size: 12px; }
  .sz-view-all { font-size: 11px; align-self: end; }
  .sz-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-bottom: 33px; }
  .sz-category-card { min-height: 113px; }
  .sz-category-icon { width: 45px; height: 45px; font-size: 26px; }
  .sz-region-panel { padding: 18px; }
  .sz-safety-panel { padding: 21px; }
  .sz-footer-upper { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sz-footer-about { grid-column: 1 / -1; }
  .sz-footer-follow { grid-column: 1 / -1; }
  .sz-footer-bottom { align-items: flex-start; flex-direction: column; }
  .listing-list .listing-card .listing-thumb { flex-basis: 105px; width: 105px; height: 105px; }
  .listing-list .listing-card .listing-basicinfo a.title { font-size: 13px; }
  body.item .item-photos { display: flex; flex-direction: column; }
  body.item .item-photos .main-photo { width: 100%; }
  body.item .item-photos .thumbs { flex-direction: row; flex-wrap: nowrap; width: 100%; max-height: 92px; overflow-x: auto; overflow-y: hidden; }
  body.item .item-photos .thumbs a { flex: 0 0 72px; }
  body.item .item-photos .thumbs img { width: 72px; height: 72px; }
}
@media (max-width: 380px) {
  .sz-site-header .sz-brand-copy { display: none; }
  .sz-site-header a.sz-mobile-post { font-size: 11px; min-height: 36px; padding: 7px 9px; }
  .sz-announcement-dot { display: none; }
  .sz-search-inputs { grid-template-columns: 1fr; }
  .sz-search-field:first-child { grid-column: 1; }
  .sz-journey-card { padding: 12px; }
  .sz-view-all { font-size: 10px; }
  .sz-region-grid { grid-template-columns: 1fr; }
  .sz-resource-grid { grid-template-columns: 1fr; }
  .home-latest .listing-card-list.listing-grid, body.search .listing-card-list.listing-grid, .similar_ads .listing-card-list.listing-grid { grid-template-columns: 1fr; }
  body.item #item-content { padding: 13px; }
}
html[dir='rtl'], html[dir='rtl'] body { direction: rtl; }
html[dir='rtl'] .sz-site-header .nav { margin-left: 0; margin-right: auto; }
html[dir='rtl'] .sz-site-header .nav a.publish.sz-post-btn { margin-left: 0; margin-right: 7px; }
html[dir='rtl'] .sz-category-arrow { right: auto; left: 11px; }
html[dir='rtl'] .sz-region-grid em { margin-left: 0; margin-right: auto; }
html[dir='rtl'] .sz-resource-link > em { right: auto; left: 18px; }
html[dir='rtl'] .sz-search-field { text-align: right; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sz-can-reveal, .sz-can-reveal.sz-in-view { opacity: 1; transform: none; transition: none; }
  .sz-category-card, .sz-journey-card, .listing-card, .sz-site-header .nav a.publish.sz-post-btn, .sz-search-button { transition: none !important; }
}

@media (max-width: 640px) {
  .sz-banner-frame { aspect-ratio: 16 / 7; }
  .sz-banner-frame::after {
    background-image:
      linear-gradient(90deg,
        #00381B 0%, rgba(0,48,23,.80) 2.5%, rgba(0,56,27,.48) 5%,
        rgba(0,56,27,0) 10%, rgba(0,56,27,0) 90%,
        rgba(0,56,27,.48) 95%, rgba(0,48,23,.80) 97.5%, #00381B 100%),
      linear-gradient(180deg,
        rgba(0,56,27,.05) 0%, rgba(0,56,27,0) 12%,
        rgba(0,56,27,0) 73%, rgba(0,56,27,.16) 86%,
        rgba(0,56,27,.38) 94%, #00381B 100%);
  }
  .sz-banner-frame picture, .sz-banner-frame img { height: 100%; }
  .sz-banner-frame img { object-fit: contain; }
}
