a, button, input, textarea, select {
  -webkit-tap-highlight-color: transparent;
}
/* ===== Cleaned header.css ===== */

/* Header container */
header { display:flex; justify-content:center; width:100%; box-shadow:0 1px 2px rgba(0,0,0,0.075); }
.main-header { padding-top:15px; padding-bottom:10px; position:relative; }
a { text-decoration:none; }

/* Top header layout */
.top-header { width:100%; display:flex; justify-content:center; }
.top-header-items { display:flex; max-width:1000px; justify-content:space-between; align-items:center; }
.inline-filters { display:flex; justify-content:center;}

.logo h1 {
  font-family:'Inter',sans-serif; font-weight:800; font-size:26px; color:#FF9412;
  margin:0 33px 0 0;
}

/* Buttons (primary rounded) */
.catalog-btn, .header-btn {
  background:#FF9412; border:2px solid #FF9412; font-family:'Inter',sans-serif;
  font-weight:500; font-size:16px; color:#fff; padding:8px 40px; cursor:pointer;
  border-radius:20px; transition:all .3s;
}
.catalog-btn:hover, .header-btn:hover { background-color:rgba(255,255,255,0.2); color:#FF9412; }

/* Search */
.search-bar {
  flex-grow:1; max-width:500px; display:flex; margin:0 33px;
  border:1.5px solid #c6c6c6d6; border-radius:20px; font-size:16px; max-height:37px;
}
#search-bar { font-size:16px; }
.search-bar input {
  width:100%; max-width:500px; padding:10px 15px; border:none; border-radius:20px 0 0 20px;
  font-size:16px; outline:none; font-family:'Inter',sans-serif; font-weight:300;
}
.search-bar input::placeholder { color:#C6C6C6; opacity:1; }
.search-btn { background:#fff; border:none; border-radius:0 20px 20px 0; padding:0 15px; cursor:pointer; }

/* CTAs */
.create-ad-btn, .advices-and-rules-btn {
  background-color:#FF9412; color:#fff; border:2px solid #FF9412; padding:8px 40px;
  border-radius:20px; margin-right:33px; font-family:'Inter',sans-serif; font-weight:500;
  text-decoration:none; transition:all .3s; flex-wrap:nowrap; white-space: nowrap;
}
.create-ad-btn:hover, .advices-and-rules-btn:hover { color:#FF9412; background:#fff; }

#settings_1 .create-ad-btn {
  margin-right: 0;
}

/* Avatar */
.avatar { width:40px; height:40px; border-radius:50%; overflow:hidden; cursor:pointer; transition:transform .3s ease; }
.avatar-img { width:100%; height:100%; object-fit:cover; transition:opacity .3s ease; }
.avatar:hover { transform:scale(1.1); }
.avatar:hover .avatar-img { opacity:.8; }

.back {display: flex; justify-content: center; align-items: center; width:40px; height:40px; transition: all 0.2s; }
.row-img {width:35px; height:35px; }
.back:hover { transform:scale(1.1); }
.back:hover .avatar-img { opacity:.8; }

/* Catalog sidebar */
.catalog-overlay { display:none; position:fixed; inset:0; background-color:rgba(0,0,0,0.5); z-index:1000; }
.catalog-content { position:absolute; top:0; left:0; width:300px; height:100%; background:#fff; padding:20px; box-shadow:2px 0 5px rgba(0,0,0,0.1); }
.close-catalog { position:absolute; top:10px; right:10px; background:none; border:none; font-size:24px; cursor:pointer; }

/* Round Filter Button */
.filter-btn {
  min-width:40px; height:40px; border-radius:50%; border:2px solid #FF9412; background:#FF9412;
  color:#fff; font-weight:700; cursor:pointer; margin-left:10px; transition:all .2s;
  display:flex; align-items:center; justify-content:center;
}
.filter-btn:hover { background:#fff; color:#FF9412; }

/* Inline filters grid (separate block) */
.inline-filters__inner {
  max-width:1200px; margin:0 auto; padding:12px 0 0;
  display:flex; gap:16px; align-items:center; justify-content:center;
}
@media (max-width:980px){ .inline-filters__inner { grid-template-columns:1fr; justify-items:center; } }

.control-label { font-weight:600; margin-bottom:6px; display:block; }

/* Range / numeric inputs */
#priceMin,#priceMax,#mileageMin,#engineMin{
  width:67px; padding:6px 7px 6px 12px; border:1.5px solid #c6c6c6d6; border-radius:9999px;
  transition:all .3s; font-weight:500; font-family:'Inter',sans-serif; color:#FF9412;
  font-size: 13px
}

#citySelectPanel #citySearch {
  width: 177px;
}
#if-home-rooms-max, #if-home-area-max, #if-home-floor-max,#mileageMax,#engineMax
{
  width:50px; padding:6px 7px 6px 10px; border:1.5px solid #c6c6c6d6; border-radius:9999px;
  transition:all .3s; font-weight:500; font-family:'Inter',sans-serif; color:#FF9412; font-size: 13px;
}
#if-home-rooms-min {
  width:90px; padding:6px 7px 6px 10px; border:1.5px solid #c6c6c6d6; border-radius:9999px;
  transition:all .3s; font-weight:500; font-family:'Inter',sans-serif; color:#FF9412; font-size: 13px;
}

#if-home-area-min {
  width:115px; padding:6px 7px 6px 10px; border:1.5px solid #c6c6c6d6; border-radius:9999px;
  transition:all .3s; font-weight:500; font-family:'Inter',sans-serif; color:#FF9412;font-size: 13px;
}

#if-home-floor-min {
  width:70px; padding:6px 7px 6px 10px; border:1.5px solid #c6c6c6d6; border-radius:9999px;
  transition:all .3s; font-weight:500; font-family:'Inter',sans-serif; color:#FF9412;font-size: 13px;
}

#priceMin::placeholder, #priceMax::placeholder, #mileageMin::placeholder, #mileageMax::placeholder, #engineMin::placeholder, #engineMax::placeholder { color:#C6C6C6; }
#priceMin:focus, #priceMax:focus { border:2px solid #FF9412; outline:none;font-size: 13px; }

/* Apply/Clear controls */
#applyAll {
  background:#fff; border:1.5px solid #FF9412; border-radius:999px; padding:6px 14px;
  font-family:'Inter',sans-serif; cursor:pointer; font-weight:500; transition:all .3s;
}
#applyAll:hover { color:#fff; background:#FF9412; }
#clearAll {
  background:#fff; border:1.5px solid #c6c6c6; color:#c6c6c6; border-radius:999px; padding:6px 14px;
  font-family:'Inter',sans-serif; cursor:pointer; font-weight:500; transition:all .3s; margin-right:5px;
}
#clearAll:hover { color:#fff; background:#c6c6c6; }

/* City multiselect */
.city-control { position:relative; min-width:230px; }
.select-toggle {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:8px; color:#9a9a9a;
  padding: 6px 7px 6px 12px; border:1.5px solid #c6c6c6d6; border-radius:30px; background:#fff; cursor:pointer; transition:.2s;
  
}
.select-toggle:hover, .select-toggle[aria-expanded="true"] { border-color:#FF9412; }
.select-toggle .chev { flex:0 0 auto; fill:#9a9a9a; }

.select-panel {
  position:absolute; left:0; top:calc(100% + 6px); z-index:20;
  max-width: 240px; max-height:280px; overflow:auto; overflow-x: hidden;
  background:#fff; border:1.5px solid #FF9412; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.1);
  padding:0; display:none;
}
.select-panel.open { display:block; }

.select-search { padding:12px 10px 8px; border:none; border-radius:10px; font-size:14px; margin-bottom:8px; }
.select-search:focus { outline:none; border:none; }

.options { display:grid; gap:4px; scrollbar-gutter:stable; }
.option { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer; transition:.15s; }
.option:hover { background:#FFF4E6; color:#FF9412; }
.option .box {
  width:18px; height:18px; border:2px solid #C6C6C6; border-radius:4px; display:inline-flex; align-items:center; justify-content:center;
}
.option input {
  width:18px; height:18px; border:2px solid #C6C6C6; border-radius:4px;
}
.option:hover .box { border:2px solid #FF9412; }
.option:hover input { border:2px solid #FF9412; }
.option.selected .box { border-color:#FF9412; background:#FF9412; }
.option .tick { width:12px; height:12px; fill:#fff; display:none; }
.option.selected .tick { display:block; }
.option span {max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Better scrollbar for city panel */
#citySelectPanel .options { scrollbar-gutter:stable both-edges; }
#citySelectPanel .options::-webkit-scrollbar { width:10px; }
#citySelectPanel .options::-webkit-scrollbar-thumb { border-radius:8px; }

/* Catalog Inline Filters (strip under main filters) */
.CatalogInlineFilters { display:flex; justify-content:center; width:100%; }
.CatalogInlineFilters .cif-inner {
  width:100%; display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center;
}

/* Shared select inside CatalogInlineFilters */
.CatalogInlineFilters .model-control { position:relative; width:210px; }
.CatalogInlineFilters .select-toggle { color:#9a9a9a; }
.CatalogInlineFilters .select-panel {
  position:absolute; left:0; top:calc(100% + 6px); z-index:20;
  width:100%; max-height:280px; overflow:auto;
  background:#fff; border:1.5px solid #FF9412; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.1);
  padding:0; display:none;
}
.CatalogInlineFilters .select-panel.open { display:block; }
.CatalogInlineFilters .select-search { padding: 12px 0 8px 10px; border:none; font-size:14px; }
.CatalogInlineFilters .options { display:grid; gap:6px; scrollbar-gutter:stable both-edges; }
.CatalogInlineFilters .option { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; cursor:pointer; transition:.2s; }
.CatalogInlineFilters .option:hover { background:#FFF4E6; color:#FF9412; }
.CatalogInlineFilters .option .box {
  min-width:18px; min-height:18px; border:2px solid #C6C6C6; border-radius:4px; display:inline-flex; align-items:center; justify-content:center;
}
.CatalogInlineFilters .option:hover .box { border-color:#FF9412; }
.CatalogInlineFilters .option.selected .box { border-color:#FF9412; background:#FF9412; }
.CatalogInlineFilters .option .tick { width:12px; height:12px; fill:#fff; display:none; }
.CatalogInlineFilters .option.selected .tick { display:block; }

#fuelToggle {max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}

/* Keep range inputs on one line */
.range.inputs { display:inline-flex; flex-wrap:nowrap; white-space:nowrap; align-items:center; gap:8px; }

/* Absolute dropdown within CIF */
.CatalogInlineFilters .select-wrap { position:relative; max-width: 200px;}
.CatalogInlineFilters .select-wrap .select-panel {
  position:absolute; left:0; top:calc(100% + 6px); z-index:30; width:230px; max-height:280px; overflow:auto;
  background:#fff; border:1.5px solid #FF9412; border-radius:12px; box-shadow:0 10px 24px rgba(0,0,0,.1);
  padding: 0; display:none;
}
.CatalogInlineFilters .select-wrap .select-panel.open { display:block; }
.CatalogInlineFilters .select-wrap .select-search { width: calc(100% - 12px); margin-bottom:8px; }
.CatalogInlineFilters .select-wrap .options { display:grid; gap:6px; scrollbar-gutter:stable both-edges; }

/* Кнопки селектов: текст и стрелка в одной линии */
.CatalogInlineFilters .select-toggle {display: flex;align-items: center;gap: 8px;}

/* Текст с обрезкой, чтобы стрелка (chev) всегда видна справа */
.CatalogInlineFilters .select-toggle .label-text {
  min-width: 0;               /* нужно для ellipsis во flex-контейнере */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.CatalogInlineFilters .select-toggle .chev {
  flex: 0 0 auto;
}
#carCategoryToggle span{
  max-width: 200px;
}


.inline-filters .select-wrap { position: relative;}
.inline-filters .select-wrap .select-toggle { width: 100%; display:flex; align-items:center; gap:8px; }
.inline-filters .select-wrap .label-text { min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.inline-filters .select-wrap .select-panel {
  position: absolute; left: 0; top: calc(100% + 6px);
  z-index: 30; max-width: 240px; width: 218px; max-height: 280px; overflow: auto;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.1);
  padding: 0; display: none; overflow-x: hidden;
  /* border: 1.5px solid #FF9412; */
}
.inline-filters .select-wrap .select-panel.open { display:block; }

/* Панель подсказок под поиском */
.search-suggest{
  position:absolute;
  left:0; right:0; top:100%;
  margin-top:6px;
  z-index: 1000;
  max-height: 320px;
  overflow:auto;
}
.search-suggest.hidden{ display:none; }
.search-suggest .option .label small{ margin-left:6px; }


.select-wrap.priceFilter {
  min-width: none;
}
.select-toggle.sortPrice { width: 80px;
  max-width: 170px;
}
.select-panel.sortPrice {padding: 0;}
#priceSortToggle {
  max-width: 170px; justify-content: flex-start;
}

#priceSortPanel span {
  max-width: 180px;
  font-family:'Inter',sans-serif;
  font-weight: 400;
}

#CatalogInlineFilters {margin-top: 8px;}
#check-elevator {display:inline-flex;align-items:center;gap:8px;margin-left:8px;cursor:pointer; border: none; background: none; padding: 0;}





.select-panel .option .box {
  width: 18px; height: 18px; border: 2px solid #FF9412; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Лифт — отдельный кастом-тоггл */
.option#homeElevatorOption{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 12px;cursor:pointer;
}
.option#homeElevatorOption:hover {
  background: none;
}
.option#homeElevatorOption .box{
  width:18px;height:18px;border:2px solid #FF9412;border-radius:4px;
  display:inline-flex;align-items:center;justify-content:center;
}
.option#homeElevatorOption .tick{opacity:0;fill:#fff;}
.option#homeElevatorOption.selected .tick{opacity:1;}

/* чтобы дропдауны не резались полосой */
#inlineFilters,
#CatalogInlineFilters { overflow: visible; }
/* якорь для абсолютного позиционирования панели */
#inlineFilters .filter.control,
#CatalogInlineFilters .filter.control { position: relative; }

#homeCategoryFilter {width: 110px;  text-overflow: ellipsis;  white-space: nowrap; }
#homeCategoryPanel {width: 200px; overflow-x: hidden;}

/* Базовый цвет подписи селект-кнопок */
.select-toggle .label-text { color:#C6C6C6; transition:color .15s ease; white-space: nowrap;}

/* Когда есть выбранные значения */
.select-toggle.has-value .label-text { color:#FF9412; }


/* Форма — чтобы панель могла позиционироваться поверх */
form[data-search]{
  position: relative;
  overflow: visible;   /* чтобы панель не обрезалась */
}

/* Панель подсказок (как у ваших селектов) */
.select-panel{
  background:#fff; border:1px solid #E5E7EB; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  padding:6px; max-height:320px; overflow:auto; overflow-x: hidden;
}
.select-panel .option{
  display:flex; align-items:center; gap:8px;
  padding:8px 10px; border-radius:8px; cursor:pointer;
}
.select-panel .option:hover{ background:#FAF7F5; }
.select-panel .option .box{
  width:18px; height:18px; border:2px solid #FF9412; border-radius:4px;
  display:inline-flex; align-items:center; justify-content:center;
}

/* Портальная панель подсказок под поиском */
.search-suggest-portal{
  position:absolute;
  background:#fff;
  border:1px solid #E5E7EB;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
  padding:6px;
  max-height:320px;
  overflow:auto;
}
.search-suggest-portal.hidden{ display:none; }

.search-suggest-portal .option{
  display:flex; align-items:center; gap:4px;
  padding:8px 8px; border-radius:8px; cursor:pointer;
}
.search-suggest-portal .option:hover{ background:#FAF7F5; }
.search-suggest-portal .option .box{
  width:18px; height:18px; border:2px solid #FF9412; border-radius:4px;
  display:inline-flex; align-items:center; justify-content:center;
}
.search-suggest-portal .empty-note{
  padding:10px; opacity:.7;
}


/* Убрать нативный крестик */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration{
  -webkit-appearance:none; appearance:none; display:none;
}

form[data-search].search-bar{ position: relative; overflow: visible; }
.search-suggest{ position:absolute; left:0; right:0; top:100%; margin-top:6px; z-index:1000; }
.search-suggest.hidden{ display:none; }
.select-panel .empty-note{ padding:10px; opacity:.7; }

/* Иконки в опциях подсказок */
.select-panel .option .ico{
  width:18px; height:18px;
  display:inline-flex; align-items:center; justify-content:center;
  flex:0 0 18px;
}
.select-panel .option .ico svg{
  width:100%; height:100%;
}

#searchSuggestPortal .option span {
  font-size: 13px; max-width: inherit; width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* Лоадер поверх страницы по умолчанию ВИДЕН (aria-hidden=false) */
.loader-overlay {
  position: fixed;
  inset: 0;
  display: flex;            /* важно для видимости без JS */
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,1);
  z-index: 1000;
}

/* Скрываем, когда готово */
.loader-overlay[aria-hidden="true"] {
  display: none;
}
/* кружок внутри overlay */
.loader-overlay .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0,0,0,0);
  border-top-color: #FF9412;      /* фирменный цвет */
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
  box-sizing: border-box;
}

/* анимация */
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

/* Пока лоадер виден — блокируем прокрутку */
body.loading {
  overflow: hidden;
}
:root{
  --helpme-size: 50px;
  --helpme-bg: #FF9412;
  --helpme-fg: #fff;
  --helpme-shadow: 0 8px 24px rgba(0,0,0,.25);
  --helpme-shadow-hover: 0 10px 28px rgba(0,0,0,.35);
  --helpme-z: 9997;
}

#helpMeFab{
  position: fixed;
  right: 48px;
  bottom: 48px;
  width: var(--helpme-size);
  height: var(--helpme-size);
  border-radius: 50%;
  background: none;
  border: 3px solid #fff;
  color: #FF9412;
  display: inline-flex;
  align-items: center;
  justify-content: center;


  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.042);
  cursor: pointer;
  user-select: none;
  z-index: var(--helpme-z);
  outline: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

#helpMeFab:hover{transition: all .2s; border: 3px solid #FF9412;}
#helpMeFab:active{ transform: translateY(0); }

@media (max-width: 480px){
  :root{ --helpme-size: 64px; }
  #helpMeFab{ font-size: 28px; display: none;}
}

/* Если нужен вариант со сворачиванием (на будущее) */
.helpme-hidden{ opacity: .0; pointer-events: none; }

.signup {
  box-shadow: none;
}
/* ===================== MOBILE HEADER (MVP) ===================== */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3.125rem;
    width: 100vw;
    background: var(--white);
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 12px;
    box-sizing: border-box;
    z-index: 4500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .mobile-logo {
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.3px;
    color: var(--accent);
    text-decoration: none;
    line-height: 1;
  }

  .mobile-header__right {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .mh-btn {
    width: 10vw;
    height: 10vw;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    border: 1.5px solid var(--accent-border);
    background: var(--accent-soft);
    cursor: pointer;
    box-sizing: border-box;
    transition: .2s;

    border: none;
    background: none;
  }

  .mh-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
  }
  .mh-btn svg rect,
  .mh-btn svg circle { stroke: var(--accent); }

  .mh-btn:active { transform: scale(0.96); }
  .mh-btn--link { text-decoration: none; }

  .icon--close { display: none; }

  .catalog-sheet {
    width: 100vw;
    min-height: calc(100vh - 50px);
    margin-top: 48px;
    border-radius: 0;
  }
}

/* ===== Public lightweight header ===== */
.public-lite-header[hidden] {
  display: none !important;
}

.public-lite-header {
  width: 100%;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.075);
}

.public-lite-header__inner {
  width: min(100%, 1000px);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.public-lite-header__logo {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #FF9412;
  line-height: 1;
  text-decoration: none;
}

.public-lite-header__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  border: 2px solid #FF9412;
  background: #FF9412;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all .2s ease;
}

.public-lite-header__login:hover {
  background: #fff;
  color: #FF9412;
}

@media (max-width: 768px) {
  .public-lite-header__inner {
    padding: 10px 12px;
  }

  .public-lite-header__logo {
    font-size: 22px;
  }

  .public-lite-header__login {
    padding: 6px 16px;
    font-size: 14px;
  }
}