﻿.pb .main-nav.fixed .main-nav-new__actions {
    z-index: 80;
}
.s-search-panel-hide {
	display: none !important;
}
.s-top-panel-new#searchPanel {
	background: #f8f9fa;
	background: linear-gradient(to bottom,#FFF 20%,#EFF1F8);
	border-bottom: 1px solid #eee;
	padding: 10px 0;
	height: auto;
	box-shadow: 0px 5px 10px rgba(0,0,0,0.10);
}
.s-top-panel-new#searchPanel .container {
	height: auto;
}
.header-search {
display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex: 1 0 auto;
}
.search-panel-close {
background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
  position: absolute;
  right: 0;
  top: 0;
}
.search-panel-close:hover {
	opacity: 0.7;
}
.header-search__input-group {
	display: flex;
	width: 100%;
	max-width: 500px;
	flex-direction: row;
	gap: 10px;
	justify-content: center;
	align-items: center;
}
.header-search__input-group .input-text {
	flex-grow: 1;
	height: 44px;
	border-radius: 22px;
	padding: 0 20px;
	border: 1px solid #ddd;
}
.header-search .btn-round-icon {
	border: none;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}
/* Контейнер результатов */
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-top: 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;  /* Скрыто по умолчанию */
}

/* Показываем когда есть результаты */
.live-search-results[style*="display: block"],
.live-search-results.show {
    display: block !important;
}

/* Элемент результата */
.search-result-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.search-result-item .fw-bold {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-result-item .small {
    font-size: 12px;
    color: #888;
}

/* Заголовок количества */
.live-search-results .p-2.text-muted {
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 12px !important;
    font-size: 12px;
    color: #666;
}

/* Ссылка "Все результаты" */
.live-search-results .p-2.text-center {
    background: #f9f9f9;
    border-top: 2px solid #e0e0e0;
    padding: 10px !important;
}

.live-search-results .p-2.text-center a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.live-search-results .p-2.text-center a:hover {
    text-decoration: underline;
}

/* Подсветка совпадений */
.search-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}
.live-search-results mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}

.live-search-results mark {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 600;
}
.search-result-item:hover {
    background-color: #f8f9fa;
}


/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .live-search-results {
        left: -10px;
        right: -10px;
        border-radius: 0;
    }
	.search-panel-close {
		margin-right: 10px;
	}
	.header-search__input-group {
		gap: 5px;
	}
}