/* Общие стили */
html {
  font-size: 16px;
  font-family: Arial, sans-serif;
}
body {
  position: absolute;
  left:0px;
  right:0px;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #EEE;
  min-width: 360px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::-webkit-scrollbar {
    width: 0;  /* Устанавливаем ширину нулевой */
}

h1, h2, h3, h4, h5, h6, header-logo__name {
  font-family: Arial, sans-serif;
/*    font-family: Poppins, sans-serif;*/
    font-weight: 500;
}

a{
  color: rgba(10, 10, 10, .6);
  text-decoration: none; /* Убрать подчеркивание ссылок, если не нужно */
}

footer{
  padding: 5px 20px;
}
header{
  display: flex;
  justify-content: space-between; /* Распределить элементы по краям контейнера */
  align-items: center;
  padding: 0px 2rem;
  height: 70px;

  border-bottom: 1px solid rgba(7, 36, 86, .075);
  background: #e38736;
  z-index: 2;
}

.logo{
  flex: 1;
  line-height: 1.25;
  font-size: 1.5625rem;
  color: rgba(15, 23, 39, .85);
  transition: color .25s;
}
.logo a{
  align-items: center;
  color: rgba(10, 10, 10, .85);
  white-space: nowrap; 
}

.darkmodebtn{
  cursor: pointer;
  margin-right: 150px;
}
#loginBlock{
  position: absolute;
  right: 0px;
  width: 100px;
  height: auto;

  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  z-index: 55;
  padding-right: 25px;

/*    border-left: 1px solid #222;*/
/*#e38736;*/
}
#loginBlock:hover{
  text-shadow: 0 0 5px blue;
  color: white;
}

#userBlock{
  display: flex;
  position: absolute;
  top: 0px;
  right: 15px;
  width: 150px;
  height: 70px;

  justify-content: center;
  align-items: center;
  color: black;
  z-index: 55;
  padding: 0px;

  cursor: default;
}
.userBlockBTN {
    display: flex;
}
.userBlockBTN button {
  border-radius: 10%;
  color: black;
  border: none;
  padding: 10px;
  font-size: 16px;
  margin-left: 10px;
  display: flex;
  align-items: center;
  position: relative;
  transition: transform 0.2s ease;

  z-index: 100;
}
.userBlockBTN button:hover {
  background-color: #ffc163;
  color: #0a0c0f;
  transform: scale(1.25);
  cursor: pointer;
}
.notification-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
  content: "";
  display: block;
}

#userBlockMenu{
  display: none;
  position: absolute;

  top: 70px; left:0px; right: 0px;
  padding-bottom: 8px;
  height: 130px;

  z-index: 1;
  background: #e38736;
  color: #66c0f4;

  transition: padding-top 0.3s ease;
}
#userMessBlock, #userInfoBlock {
  display: none;
  flex-direction: column;
  width: 100%;
}

#userMessBlock button, #userInfoBlock button {
  flex: 1;
  margin: 2px 5px;
  border: none;
  color: black;
  padding: 4px;
  max-height: 35px;
}
#userMessBlock button:hover, #userInfoBlock button:hover {
  border: none;
  background: #ffc163;
  color: blue;
  cursor: pointer;
}


/* Стили для контента */
main {
  display: block;
/*  margin-right:300px;*/
  color: #444;
  padding: 20px;
  min-height: 1000px;
/*  position: relative*/
}

section {
  margin-bottom: 30px;
}
.container{
  width: 70%; min-width: 700px; margin-left: auto; margin-right: auto; max-height: 1000px; overflow-y: auto; overflow-x: hidden;
}
.container::-webkit-scrollbar {
  display: none; /* Скрыть полосу прокрутки вебкит-браузеров (Chrome, Safari) */
}
.container {
  scrollbar-width: none; /* Скрыть полосу прокрутки для браузеров, поддерживающих свойство scrollbar-width (Firefox) */
}

/* Стили для Рекламный блок */
.adsBG{
  display:flex; justify-content:center; align-items:center;
  background: #DDD;
}
.ads_block_top {
  height: 250px;
}
.ads_block_right1, .ads_block_right2 {
  position: absolute;
  right: 5px;
  width: 300px;
  height: 350px;
} .ads_block_right1 { margin-top:0px;}.ads_block_right2 { margin-top:365px;}

/* ===============  SEARCH BLOCK */
.searching{
  display: flex;
  justify-content: space-between; /* Распределение пространства между элементами */
  height: 60px;
  background: #e38736;
  border-radius: 8px;
}
.sidiv, .sodiv {
  flex-grow: 1;
  margin: 10px;
  display: flex;
}.ssdiv{
  margin: 10px;
  display: flex;
  width: 100%;
  max-width: 100px;
}
.sodiv{
  position: relative;
  display: flex;
  flex-wrap: wrap;
  min-width: 265px;
}
.searching div:last-child {
  margin-right: 10px;
}
.searchinput, .searchort, .searchbutton{
  flex-grow: 1;
  border: 1px solid gray;
  padding-left: 10px;
}
.searchbutton:hover{
  background: #999;
}
.searchradius{
  padding-left:10px;
  padding-right:10px;
  border-left: none;
  z-index: 10;
}
.search-container {
    position: relative;
    display: inline-block;
}
.searchort{
  position: relative;
  z-index: 10;
}
#searchResults {
  display: none;
  position: absolute;
  top:15px;
  padding-top: 30px;
  z-index: 9;
  left:2px; right: 90px;
  min-width: 200px;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding-left: 0;
  margin-top: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 5px 5px;
  font-size: 10pt;
}
#searchResults li {
    padding: 5px 10px;
    cursor: pointer;
}
#searchResults li:hover {
    background-color: #f0f0f0;
}






/* Стили для списка новых объявлений */
.categ-listings {
  display: flex;
  flex-direction: row;
  justify-items: center;
}
.categ{
/*  flex:1;*/
  min-width: 270px;
  height: 900px;
  background: #fff;
  border-radius: 8px;
  text-align: left;
}
.category{
  background: #fff;
  transition: background .45s;
}
.category:hover{
  background: rgba(10, 10, 10, .05);
  transition: background .45s;
}

.listings {
  flex:3;
}
.category, .subcategory {
  list-style-type: none;
  cursor: pointer;
}

.category ul{
  padding-bottom: 10px;
}
.subcategory li{
  margin-left: -15px;
}

.subcategory li a{
  font-size: 10pt;
  color: #666;
  transition: color .25s;
/*  text-shadow: 0px 0px 2px black;*/
}

.subcategory li span{
  font-size: 10pt;
  color: #666;
  transition: color .25s;
  display: inline-block;
}
.subcategory li input, .subcategory li label{
  vertical-align: middle;
}


.subcategory li a:hover, .subcategory li span:hover{
  color: black;
  transition: color .25s;
  border-bottom: 1px solid black;
/*  text-shadow: 0px 0px 2px black;*/
}
/* =====================  ADS */
.ads_block_top {
  display: block;
}
.ads_block_right1 {
  display: block;
}
.ads_block_right2 {
  display: none;
}


/* =====================  LISTINGS */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px;
  margin-left: 15px;
}

.listings-item {
  position: relative;
  background: #fff;
  padding: 0px;
  border-radius: 5px;
  text-align: center;
  height: 250px;
  overflow: hidden;
  box-shadow: 0px 0px 1px 1px #ddd; 
/*e38736*/
}
.listing-img{
/*  border: 1px solid yellow;*/
  height: 170px;
  overflow: hidden; /* Скрытие текста, выходящего за границы блока */
  background: #ddd;
}
.listing-img img{
  margin: 0px;
  height: 100%;
  z-index: 5;
}

.listing-label {
  position: absolute;
  left:5px; right:5px; bottom: 5px;
  text-align: left;
}
.listing-label label{
  font-size: 10pt;
  color: #222;
  display: block;
  overflow: hidden; /* Скрытие текста, выходящего за границы блока */
  white-space: nowrap; /* Запрет переноса строки */
  text-overflow: ellipsis; /* Отображение троеточия в конце текста, который выходит за границы блока */
}

.listing-price {
  position: absolute;
  color: white;
  font-size: 10pt;
  background: #e38736;
  padding: 2px 10px 0px 10px;
  margin-top:5px; right:5px;
  border-radius: 12px;
}
.listing-price-vb {
  position: absolute;
  color: #e38736;
  background-color: white;
  font-size: 10pt;
  border-radius: 20px;
  padding: 5px 5px 5px 5px;
  margin-top:-20px; left:5px;
  border-radius: 12px;
}

.listing-ort{
  position: absolute;
  display: flex;
  justify-content: space-between;

  left:5px; right: 5px; bottom:25px;
  text-align: left;
}
.listing-ort div{
  color: #aaa;
  font-size:14pt;
  width: 25px;
}
.listing-ort span{
  flex: 1;
  color: #aaa;
  font-size: 10pt;
  text-align: left;

  display: block;
  overflow: hidden; /* Скрытие текста, выходящего за границы блока */
  white-space: nowrap; /* Запрет переноса строки */
  text-overflow: ellipsis; /* Отображение троеточия в конце текста, который выходит за границы блока */
}
.wishheart{
  position: absolute;
  top:10px; right:10px;
  font-size: 15pt;

}
.profile_label{
  font-size: 20pt;
  color: #e38736;
  width: 100%;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}
.profile_cont{
  padding-left:0px;
}
.profile_cont div{
  display: flex;
  width: 500px;
  justify-content: space-between;
  border-bottom: 1px solid #aaa;
/*  background: rgba(255, 255, 255, 1);*/
  margin: 3px;
  padding: 5px;
}
.profile_cont label{
  padding: 10px;
  width: 200px;
}
.profile_cont input{
  padding: 10px;
  width: 250px;
  border-radius: 12px;
  border: none;
}
.profile_cont span{
  margin: 50px;
  font-weight: 600;
}

.autorisation{
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) { /* Пример значения ширины экрана */
  body{

    width: auto;
    height: 100%;
    overflow-x: hidden;
  }
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Изменение количества колонок для мобильных устройств */
  }
  .autorisation-cont{
    max-width: 370px;
    margin-top: 120px;
    margin-bottom: 120px;
  }
}
@media (max-width: 400px) { /* Пример значения ширины экрана */
  body{
    height: 100%;
    overflow-x: hidden;
  }
  .logo{
    font-size: 13pt;
  }
  .listings-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Изменение количества колонок для мобильных устройств */
  }
  .autorisation-cont{
    max-width: 370px;
    margin:20px;
    margin-top: 120px;
    margin-bottom: 120px;
  }
}
@media (max-width: 860px) { /* Пример значения ширины экрана */
  .ads_block_top, .ads_block_right1, .ads_block_right2 {
    display: none;
  }
  main{
    margin-right:0px;
  }
}


/* Стили для подвала */
footer {
  /*
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0px;
*/
  text-align: center;
  background: #e38736;
  padding: 10px 0;
  min-width: 360px;
}


.social-links a {
  margin-right: 10px;
}

.legal-info a {
  margin-right: 10px;
}

.hidden {
  display: none;
}

.arrow {
  display: none;
  width: 1em;
  height: 1.7em;
  float: right;
  margin-right: 5px;
}

.rotate {
  display: inline-block;
/*  transform: rotate(90deg);*/
}

.blr{
  border-top-left-radius: 8px; border-bottom-left-radius: 8px;
}
.brr{
  border-top-right-radius: 8px; border-bottom-right-radius: 8px;
}

.flex-grow {
  flex-grow: 1;
}


:root {
    --wp--preset--font-size--normal: 16px;
    --wp--preset--font-size--huge: 42px;
}
/* Для WebKit браузеров (Chrome, Safari) */
::-webkit-scrollbar {
  width: 5px; /* Ширина полосы прокрутки */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.6); /* Цвет бегунка полосы прокрутки */
}