/* ListMarkaz Header v1.0.1 — no shadows, gradients, motion or external fonts. */
.lm-site-header {
  position: relative;
  z-index: 5;
  background: var(--lm-white);
  border-bottom: 1px solid var(--lm-border);
}
.lm-icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.lm-visually-hidden {
  position: absolute !important; height: 1px; width: 1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%);
}
.lm-header-main {
  display: grid;
  grid-template-columns: auto minmax(340px, 1fr) auto;
  gap: clamp(16px, 2.2vw, 34px);
  align-items: center;
  min-height: 91px;
}
.lm-site-header .lm-brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--lm-black);
  font-weight: 800;
  font-size: clamp(22px, 2.1vw, 27px);
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}
.lm-site-header .lm-brand:hover { text-decoration: none; }
.lm-brand-accent, .lm-brand-dot { color: var(--lm-blue); }
.lm-brand-dot { font-size: 1.04em; }
.lm-header-search {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.lm-location-field, .lm-search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 49px;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-white);
}
.lm-location-field { position: relative; gap: 5px; padding-inline: 12px 10px; }
.lm-location-field > .lm-icon:first-child { width: 18px; height: 18px; color: var(--lm-blue); }
.lm-location-field > .lm-icon:last-child { width: 15px; height: 15px; color: var(--lm-muted); pointer-events: none; }
.lm-location-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--lm-black);
  cursor: pointer;
  outline: 0;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
}
.lm-location-field:focus-within, .lm-search-field:focus-within {
  border-color: var(--lm-blue);
  outline: 2px solid rgba(36, 87, 197, .15);
  outline-offset: 0;
}
.lm-search-field { padding-inline-start: 15px; gap: 10px; }
.lm-search-field > .lm-icon { width: 18px; height: 18px; color: #68768A; }
.lm-search-field input[type="search"] {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  font-size: 14px;
  color: var(--lm-black);
  height: 46px;
  background: transparent;
}
.lm-search-field input[type="search"]::placeholder { color: #697789; opacity: 1; }
.lm-search-submit {
  align-self: stretch;
  border: 0;
  padding-inline: 20px;
  border-radius: 0 calc(var(--lm-radius) - 1px) calc(var(--lm-radius) - 1px) 0;
  background: var(--lm-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  min-width: 85px;
}
.lm-search-submit .lm-icon { display: none; }
.lm-search-submit:hover, .lm-post-ad:hover { background: #1B48AA; text-decoration: none; }
.lm-header-actions { display: flex; align-items: center; gap: clamp(12px, 1.65vw, 23px); }
.lm-account-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--lm-black);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.lm-account-link .lm-icon { width: 21px; height: 21px; }
.lm-account-link:hover { color: var(--lm-blue); text-decoration: none; }
.lm-post-ad {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--lm-radius);
  background: var(--lm-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.lm-post-ad-pending { cursor: not-allowed; }
.lm-post-ad-pending:hover { background: var(--lm-blue); }
.lm-post-ad .lm-icon { width: 18px; height: 18px; stroke-width: 2.2; }
.lm-header-categories-bar { border-top: 1px solid var(--lm-border); background: var(--lm-white); }
.lm-header-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 31px); min-height: 47px; }
.lm-category-disclosure { position: relative; flex: none; }
.lm-category-disclosure summary { list-style: none; }
.lm-category-disclosure summary::-webkit-details-marker { display: none; }
.lm-category-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  color: var(--lm-black);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}
.lm-category-toggle > .lm-icon:first-child { color: var(--lm-blue); width: 18px; height: 18px; }
.lm-category-toggle > .lm-icon:last-child { color: var(--lm-muted); width: 14px; height: 14px; }
.lm-category-disclosure[open] .lm-category-toggle, .lm-category-toggle:hover { color: var(--lm-blue); }
.lm-category-panel {
  position: absolute;
  inset-block-start: calc(100% + 1px);
  inset-inline-start: 0;
  width: min(550px, calc(100vw - 32px));
  padding: 23px;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-white);
  z-index: 20;
}
.lm-category-panel-title { margin: 0 0 16px; color: var(--lm-black); font-size: 14px; font-weight: 800; }
.lm-category-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 4px; }
.lm-category-panel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 47px;
  padding: 9px;
  color: var(--lm-black);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}
.lm-category-panel-item .lm-icon { color: var(--lm-blue); width: 19px; height: 19px; }
.lm-category-panel-item:hover { text-decoration: none; background: var(--lm-soft); }
.lm-nav-quicklinks { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(17px, 1.8vw, 30px); white-space: nowrap; }
.lm-nav-quicklinks a { color: #495363; font-size: 12.5px; font-weight: 650; }
.lm-nav-quicklinks a:hover { color: var(--lm-blue); text-decoration: none; }
.lm-header-market-label { margin-inline-start: auto; color: #7B8593; font-size: 11px; white-space: nowrap; }
@media (max-width: 1210px) {
  .lm-header-market-label { display: none; }
  .lm-header-main { gap: 17px; }
}
@media (max-width: 1060px) {
  .lm-header-main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .lm-header-search { grid-template-columns: 144px minmax(0, 1fr); gap: 8px; }
  .lm-location-field { padding-inline: 9px; }
  .lm-search-submit { min-width: 45px; padding-inline: 12px; }
  .lm-search-submit .lm-icon { display: inline-block; width: 19px; height: 19px; }
  .lm-search-submit-text { display: none; }
  .lm-header-actions { gap: 10px; }
  .lm-nav-quicklinks { gap: 18px; }
  .lm-nav-quicklinks a:nth-child(n+6) { display: none; }
}
@media (max-width: 850px) {
  .lm-header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 13px;
    column-gap: 12px;
    padding-block: 14px 13px;
    min-height: auto;
  }
  .lm-header-main .lm-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .lm-header-main .lm-header-actions { grid-column: 2; grid-row: 1; }
  .lm-header-main .lm-header-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 172px minmax(0, 1fr); }
  .lm-header-nav { min-height: 44px; gap: 24px; }
  .lm-category-toggle { min-height: 43px; }
  .lm-nav-quicklinks { overflow-x: auto; min-width: 0; scrollbar-width: none; }
  .lm-nav-quicklinks::-webkit-scrollbar { display: none; }
  .lm-nav-quicklinks a:nth-child(n+6) { display: inline; }
}
@media (max-width: 520px) {
  .lm-site-header .lm-brand { font-size: 23px; }
  .lm-header-main { padding-block: 12px; row-gap: 12px; }
  .lm-header-actions { gap: 10px; }
  .lm-account-link { width: 39px; height: 42px; justify-content: center; }
  .lm-account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .lm-post-ad { min-height: 42px; padding-inline: 11px; font-size: 12px; gap: 5px; }
  .lm-post-ad-pending { cursor: not-allowed; }
.lm-post-ad-pending:hover { background: var(--lm-blue); }
.lm-post-ad .lm-icon { width: 16px; height: 16px; }
  .lm-header-main .lm-header-search { grid-template-columns: minmax(116px, 37%) minmax(0, 1fr); gap: 7px; }
  .lm-location-field, .lm-search-field { min-height: 46px; }
  .lm-location-field { gap: 4px; padding-inline: 8px 6px; }
  .lm-location-field > .lm-icon:first-child { width: 16px; height: 16px; }
  .lm-location-field > .lm-icon:last-child { width: 12px; height: 12px; }
  .lm-location-field select { font-size: 12px; }
  .lm-search-field { gap: 5px; padding-inline-start: 9px; }
  .lm-search-field > .lm-icon { display: none; }
  .lm-search-field input[type="search"] { font-size: 12px; height: 44px; }
  .lm-search-submit { min-width: 43px; padding-inline: 9px; }
  .lm-header-nav { gap: 18px; min-height: 43px; }
  .lm-category-toggle { font-size: 12px; gap: 5px; }
  .lm-category-toggle > .lm-icon:first-child { width: 17px; height: 17px; }
  .lm-category-toggle > .lm-icon:last-child { width: 12px; height: 12px; }
  .lm-category-panel { width: min(550px, calc(100vw - 28px)); padding: 16px; }
  .lm-category-panel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  .lm-category-panel-item { font-size: 12px; gap: 7px; padding: 6px; }
  .lm-nav-quicklinks { gap: 19px; }
  .lm-nav-quicklinks a { font-size: 12px; }
}
@media (max-width: 360px) {
  .lm-site-header .lm-brand { font-size: 20px; }
  .lm-post-ad { padding-inline: 9px; }
  .lm-header-main .lm-header-search { grid-template-columns: minmax(106px, 37%) minmax(0, 1fr); }
}
/* The grid and icon system work in RTL; search button end-corner is adjusted. */
[dir="rtl"] .lm-search-submit {
  border-radius: calc(var(--lm-radius) - 1px) 0 0 calc(var(--lm-radius) - 1px);
}
