@import 'src/assets/styles/responsive-base.scss';

:host {
  display: block;
  box-sizing: border-box;
  height: 100%;
  overflow-x: auto;
  position: relative;
}

.advanced-search-results-description {
  margin-right: 6px;
}

#search-layout {
  position: absolute;
  padding: 16px 24px;
  width: 100%;
  box-sizing: border-box;
}

.mat-expansion-panel-header {
  user-select: none;

  .mat-expansion-panel-header-title {
    align-items: center;
  }
  .mat-expansion-panel-header-description {
    justify-content: flex-end;

    @include screen('phone') {
      justify-content: flex-start;
      padding-top: 5px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
  }
}

#search-start-location {
  margin-bottom: 24px;
}
.filter-container {
  margin-bottom: 32px;
  button {
    mat-icon {
      margin-right: 6px;
    }
  }
}
.room-list-container {
  margin-top: 22px;
}
.mat-mdc-selection-list {
  margin-bottom: 22px;
}
.room-avatar {
  max-width: 26px;
  flex-shrink: 0;
}
.room-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 5px;
  flex-grow: 1;
}
.search-room-avatar {
  max-width: 24px;
  margin: 0 2px;

  &:nth-of-type(n + 4) {
    margin-left: -15px;
  }
}
.room-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 0.5fr));
  grid-auto-rows: min-content;
  justify-content: space-between;
  row-gap: 10px;
  column-gap: 10px;
  padding: 10px;
  margin-top: 20px;
  overflow-y: auto;
  @include screen('phone') {
    max-height: 500px;
    justify-content: center;
  }
}
.room-list > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
  border-radius: 3px;
  border: 1px solid transparent;

  &.selected {
    background-color: rgba(255, 255, 255, 0.1);
  }
}

.room-list-card {
  margin-bottom: 20px;
}

.switch-container {
  .mat-mdc-slide-toggle:first-of-type {
    margin-right: 20px;
  }

  @include screen('phone') {
    display: flex;
    justify-content: center;
  }
}
.room-info {
  display: flex;
  align-items: center;
  user-select: none;
  width: 100%;
  justify-content: space-between;
}
.room-icon {
  margin-right: 12px;
}

.search-result-container{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-select-panel {
  max-width: 700px;
  margin-bottom: 20px;
}

.room-card {
  background-color: rgba(255, 255, 255, 0.1);
}
.query-loader {
  opacity: 0;
  &.active {
    opacity: 1;
  }
}

@include screen('phone') {
  .mat-expansion-panel-header {
    height: unset;
  }
}

#dragger {
  width: 100%;
  cursor: ns-resize;
  z-index: 99;
  margin-bottom: 20px;
  text-align: center;

  mat-icon {
    cursor: inherit !important;
  }

  @include screen('phone') {
    display: none;
  }
}
