@import url("custom.css");

.el-main{
  margin-top: 110px;
}

.el-header.search-header{
  margin-top: 50px;
}

.search-header .header-row{
  padding: 0;
}

.search-header .header-row .el-col:last-child {
  flex: 1;
  margin: 0px 20px;
}

/* 折叠面板样式 - 模拟ElementUI */
.collapse-container{
  margin: 20px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.collapse-item {
  margin-bottom: 15px;
  border: 1px solid #ebeef5;
  border-radius: 4px;
  overflow: hidden;
}

.collapse-header {
  padding: 15px;
  color: #303133;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  transition: background 0.3s;
  border-bottom: 1px solid #ebeef5;
  background-color: #fff;
  line-height: 1;
}
.collapse-header.active{
  background-color: #ECF0F3;
}

.collapse-header:hover {
  /* background: #ecf5ff; */
}

.collapse-content {
  background: #fff;
  display: none;
}

.collapse-content.active  {
  display: block;
}

.route-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e4e7ed;
  cursor: pointer;
}
.route-item:hover {
  background: #f5f7fa;
}

/* Legend样式 */
.legend-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ebeef5;
  cursor: pointer;
}

.legend-item.no-route {
  cursor: default;
  background: #ecf0f3;
}

.legend-item .el-icon-arrow-right{
  flex: 0 0 30px;
  text-align: right;
}

.legend-icon {
  width: 0;
  flex: 0 0 49px;
  height: 21px;
  border: 2px solid #000;
  border-radius: 18px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  outline: 1.5px solid #000;
  box-sizing: border-box;
  padding: 1px 0px 0px 0px;
}

.legend-text {
    flex: 1;
    min-width: 0;
}
.legend-info {
  max-width: calc(100% - 15px);
}

.legend-vehicle {
  font-size: 13px;
  margin-bottom: 5px;
  color: #303133;
}

.legend-note {
  font-size: 13px;
  color: #303133;
}

.legend-item.no-route .legend-icon{
  position: relative;
  border: none;
  outline: none;
}
.legend-item.no-route .legend-icon::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--before-border-color);
  transform: translateY(-50%);
}
.legend-item.no-route .legend-icon::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border: 3px solid var(--after-border-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.search-result-container{
    width: 100%;
    background: #fff;
    margin-top: 110px;
    display: none;
}

.search-result-container .collapse-container{
  margin:0px;
  box-shadow: none;
  border-radius: none;
}
.search-result-container .collapse-item{
  margin-bottom: 0px;
  border: none;
  box-shadow: none;
}
.search-result-container .legend-item{
  padding: 10px 15px;
}

.search-result-container .collapse-header.search-label{
  border-bottom: none;
  justify-content: flex-start;
  background-color: #FEFEFE;
}

.search-result-container .collapse-header.search-title{
  padding: 4px 15px;
  background: #ebeff3;
}

.search-no-result{
    height: calc(100vh - 220px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.search-no-result i{
  font-size: 68px;
  color: #8b9dac;
}

.search-label i{
  margin-right:5px;
}

.legend-item .special-tip {
  padding: 2px 4px;
  border-radius: 5px;
  background: #EDF1F4;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  display: inline-block;
  overflow: hidden;
  font-size: 12px;
}
.legend-item .special-icon {
  width:14px;
  height:14px;
  position: relative;
  top: 2px;
  left: -2px;
}
.legend-item.spr div.legend-icon {
  font-size: 11px;
  padding: 0px 0px 0px 0px;
}