/* Стили для карты */
#map {
  width: 100%;
  height: 600px;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 180px;
}

span.items-count {
  font-size: small;
}
 
input[type='text'].search-cont-block-input {
  background: transparent;
}

.points-search-left-block {
  box-shadow: unset!important;
}

.points-search-left-block .search-cont {
  margin-right: 0!important;
}

.points-popup .services-list {
  margin-top: 0;
}

.input-block.invalid:after, .search-cont-block:after, .input-block:after {
  content: unset!important;
}

.filter-select-wrapper .selectboxit-container .selectboxit {
  background: unset!important;
}

.filter-select-wrapper .selectboxit-container .selectboxit:after {
  content: unset;
  background: unset!important;
}

.checkbox-label input[type="checkbox"], input[type="radio"] {
  display: initial;
}

/* Стили для балуна (всплывающей подсказки) */
.points-popup {
  max-width: 300px;
  font-family: Arial, sans-serif;
}

.points-popup-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.points-popup-metro {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
  padding-left: 20px;
  background: url('/images/metro-icon.png') left center no-repeat;
  background-size: 16px;
}

.points-popup-param {
  margin-bottom: 8px;
  font-size: 14px;
}

.points-popup-param-name {
  font-weight: bold;
  color: #555;
  margin-bottom: 2px;
}

.points-popup-link {
  margin-top: 10px;
  text-align: right;
}

.points-popup-link a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.points-popup-link a:hover {
  text-decoration: underline;
}

/* Основной контейнер фильтров */
.points-search-left-block {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* Строка поиска */
.search-cont-block {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 30px;
  padding: 4px 4px 4px 16px;
  border: 1px solid #e1e4e8;
  transition: all 0.2s;
}
.search-cont-block:focus-within {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
  background: #fff;
}
.search-cont-block-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  outline: none;
}
.filter-select.json-select {
  padding: 0 0 0 10px;
}
div#time-filters-container {
  align-items: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
#time-visit {
  min-width: 100px;
}
select#factory-filter {
  height: 150px;
}
select#factory-filter option {
  margin: 8px;
}
.filter-block + fieldset {
  border-radius: 10px;
  padding-right: 12px;
  border: 1px solid #e1e4e8;
}
fieldset label.points-search-text {
  padding-top: 7px;
}
span.hyphen {
  margin-bottom: 6px;
}
#search-form .search-cont-block-submit {
  background: #4caf50;
  border: none;
  color: white;
  width: 42px;
  height: 31px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.search-cont-block-submit:hover {
  background: #45a049;
}
.search-icon {
  font-size: 18px;
}

/* Линия с фильтрами */
.points-search-inner-line--filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

/* Блок фильтра */
.filter-block {
  flex: 1 1 200px;
  min-width: 180px;
}
.filter-block--services {
  flex-basis: 100%;
  max-width: 100%;
}

/* Текст заголовка фильтра */
.points-search-text {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
}

/* Обертка для селекта */
.filter-select-wrapper {
  position: relative;
}
.filter-select-wrapper::after {
  content: '▼';
  font-size: 12px;
  color: #666;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.filter-select {
  width: 100%;
  padding: 10px 30px 10px 12px;
  background: #f5f7fa;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-select:focus {
  border-color: #4caf50;
  outline: none;
  background: #fff;
}
.filter-select:disabled {
  background: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Группа чекбоксов */
.services-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4caf50;
}
.checkbox-text {
  color: #495057;
}

/* Кнопка сброса */
.filter-actions {
  display: flex;
  align-items: flex-end;
  margin-left: auto;
}
.button-reset {
  background: none;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.button-reset:hover {
  background: #dc3545;
  color: white;
}

/* Скрытый элемент */
.hidden {
  display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .filter-block {
      flex-basis: 100%;
  }
  .services-checkbox-group {
      flex-direction: column;
      gap: 8px;
  }
  .filter-actions {
      margin-left: 34px;
      width: 100%;
  }
  .button-reset {
      width: 100%;
  }
  .filter-block + fieldset {
    padding-bottom: 12px;
    margin-left: 34px;
  }
}


/* Стили для балунов на карте */
.points-popup {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  max-width: 280px;
}

.points-popup-title {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e9ecef;
}

.points-popup-metro {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 4px 8px;
  background: #f8f9fa;
  border-radius: 4px;
  display: inline-block;
}

.points-popup-param {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.points-popup-param-name {
  font-weight: 500;
  color: #495057;
  margin-bottom: 2px;
}

.points-popup-param a {
  color: #f7cb6c;
  text-decoration: none;
}

.points-popup-param a:hover {
  text-decoration: underline;
}

.services-list {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.points-popup-link {
  margin-top: 12px;
  text-align: right;
}

.points-popup {
  font-family: Arial, sans-serif;
  max-width: 300px;
  padding: 5px;
}

.points-popup-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.points-popup-address,
.points-popup-metro {
  margin: 8px 0;
  color: #666;
}

.points-popup-param {
  margin: 8px 0;
}

.points-popup-param-name {
  font-weight: bold;
  color: #555;
  margin-bottom: 3px;
}

.services-list {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.points-popup-type {
  margin: 8px 0;
  color: #f7cb6c;
  font-weight: bold;
}

.points-popup-link {
  margin-top: 12px;
  text-align: right;
}

.button-small {
  display: inline-block;
  padding: 5px 10px;
  background: #f7cb6c;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
}

.button-small:hover {
  background: #fbc246;
}

.points-popup-param {
  margin: 10px 0;
  line-height: 1.4;
}

.points-popup-param-name {
  font-weight: bold;
  color: #555;
  margin-bottom: 3px;
  font-size: 13px;
}

.work-time {
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}

.work-time div {
  margin: 2px 0;
  padding: 0;
}

.work-time div:not(:last-child) {
  margin-bottom: 4px;
}

/* Стиль для информации о перерыве */
.work-time-break {
  color: #666; /* Оранжевый цвет для выделения */
  font-style: italic;
  margin-top: 5px !important;
  padding-top: 3px;
  border-top: 1px dashed #f7cb6c;
}

.services-list {
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.points-popup-type {
  margin: 8px 0;
  color: #f7cb6c;
  font-weight: bold;
  font-size: 13px;
}

/* Вариант с Flexbox */
.points-cont-list-block-ul {
  display: flex !important;
  flex-wrap: wrap;
  margin: 0 -15px;
  padding: 0;
  list-style: none;
  width: 100% !important;
}

.points-cont-list-block-ul li {
  flex: 0 0 calc(33.333% - 30px);
  margin: 0 15px 15px 15px;
  box-sizing: border-box;
}

.points-cont-table-of-content-list span.letter-count {
  display: none;
}

/* Адаптивность для Flexbox */
@media screen and (max-width: 1024px) {
  .points-cont-list-block-ul li {
      flex: 0 0 calc(50% - 30px);
  }
}

@media screen and (max-width: 768px) {
  .points-cont-list-block-ul li {
      flex: 0 0 calc(100% - 30px);
  }
}

.points-suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
  z-index: 1000;
  display: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-indicator {
  position: sticky;
  bottom: 0;
  text-align: center;
  background: linear-gradient(to top, white, transparent);
  padding: 5px;
  color: #666;
  font-size: 0.8em;
  pointer-events: none;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.suggestion-item-address {
  font-size: 0.9em; color: #666;
}

.points-suggestions {
  position: absolute;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    display: none;
    box-shadow: none;
    top: 32px;
    left: 0;
}

.suggestion-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item:last-child {
  border-bottom: none;
}
