.filter {
  height: 60px;

  nav {
    @include background-image(linear-gradient(-90deg, rgb(250,250,250), rgb(230,230,230)));

    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), inset 0 0 0 -1px rgba(255, 255, 255, 0.4);

    @include box-sizing(border-box);

    border: 1px solid rgb(190,190,190);
    border-bottom-color: rgb(200,200,200);
    border-top: none;

    @include border-bottom-radius(4px);
    @include clearfix();

    height: 60px;
    padding: 12px 10px;
    position: relative;
    z-index: 9;

    &.fixed-top {
      box-shadow: 0 1px 15px 0 rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
      max-width: map-get($container-max-widths, xl);
      position: fixed;
      top: 0;
      width: flex-grid(12);
    }

    .dropdown {
      float: left;
      margin-right: ($baseline*0.75);
      position: relative;

      .filter-heading {
        @include background-image(linear-gradient(-90deg, rgb(250,250,250) 0%, rgb(245,245,245) 50%, rgb(235,235,235) 50%, rgb(230,230,230) 100%));

        border-radius: 4px;

        @include box-sizing(border-box);

        box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.6);
        border: 1px solid rgb(200,200,200);
        color: $body-color;
        cursor: pointer;
        height: 36px;
        padding: 9px;
        position: relative;
        text-align: center;
        text-shadow: 0 1px rgba(255, 255, 255, 0.8);
        width: 150px;
        z-index: 11;
      }

      ul {
        background: rgb(255, 255, 255);
        border-radius: 0 4px 4px 4px;
        border: 1px solid rgb(200,200,200);
        box-shadow: 0 2px 15px 0 $shadow;
        padding: 20px 0 5px 20px;
        position: absolute;
        visibility: hidden;
        width: 200px;
        z-index: 10;

        li {
          list-style: none;
          margin-bottom: ($baseline*0.75);
        }
      }

      &:hover, &:focus {
        .filter-heading {
          background: rgb(255, 255, 255);

          @include background-image(linear-gradient(-90deg, rgb(250,250,250), rgb(255, 255, 255)));

          border-radius: 4px 4px 0 0;
          border-bottom: 1px dotted rgb(200,200,200);
          box-shadow: 0 2px 0 -1px rgb(255, 255, 255);
          color: $body-color;
          height: 40px;
        }

        ul {
          visibility: visible;
        }
      }
    }

    form.search {
      float: right;

      input[type="text"] {
        border-radius: 3px 0 0 3px;
        float: left;
        height: 36px;
        width: 200px;
      }

      input[type="submit"] {
        border-radius: 0 3px 3px 0;
        float: left;
        height: 36px;
        padding: 2px 20px;
      }
    }
  }
}
